提交代码
This commit is contained in:
parent
9fcabc9f9f
commit
64c92b8284
|
@ -27,7 +27,7 @@ REM --------------
|
|||
@echo.
|
||||
@call "%VS150%"
|
||||
|
||||
SqlMetal /views /server:DESKTOP-1QITK9E\MSSQLSERVER2 /user:sa /password:123 /database:SGGLDB_WH /code:%Model_ROOT%\Model.cs /namespace:Model
|
||||
SqlMetal /views /server:. /user:sa /password:1111 /database:SGGLDB_WH /code:%Model_ROOT%\Model.cs /namespace:Model
|
||||
|
||||
@ECHO 完成
|
||||
pause
|
||||
|
|
|
@ -0,0 +1,87 @@
|
|||
alter table [dbo].[Person_TestRunPerformance] add Num int null
|
||||
GO
|
||||
|
||||
CREATE TABLE [dbo].[Person_TestRunMonthSummary](
|
||||
[TestRunMonthSummaryId] [nvarchar](50) NOT NULL,
|
||||
[ProjectId] [nvarchar](50) NULL,
|
||||
[UserId] [nvarchar](50) NULL,
|
||||
[ProcessName] [nvarchar](50) NULL,
|
||||
[RaiseDate] [datetime] NULL,
|
||||
[ProblemDescription] [nvarchar](4000) NULL,
|
||||
[HandleMethod] [nvarchar](4000) NULL,
|
||||
[ExperienceOrSuggestion] [nvarchar](4000) NULL,
|
||||
CONSTRAINT [PK_Person_TestRunMonthSummary] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[TestRunMonthSummaryId] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[Person_TestRunMonthSummary] WITH CHECK ADD CONSTRAINT [FK_Person_TestRunMonthSummary_Sys_User] FOREIGN KEY([UserId])
|
||||
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||
GO
|
||||
|
||||
ALTER TABLE [dbo].[Person_TestRunMonthSummary] CHECK CONSTRAINT [FK_Person_TestRunMonthSummary_Sys_User]
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunMonthSummary', @level2type=N'COLUMN',@level2name=N'TestRunMonthSummaryId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'提出人Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunMonthSummary', @level2type=N'COLUMN',@level2name=N'UserId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'工序名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunMonthSummary', @level2type=N'COLUMN',@level2name=N'ProcessName'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'提出时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunMonthSummary', @level2type=N'COLUMN',@level2name=N'RaiseDate'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'问题描述' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunMonthSummary', @level2type=N'COLUMN',@level2name=N'ProblemDescription'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'处理方法' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunMonthSummary', @level2type=N'COLUMN',@level2name=N'HandleMethod'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'体会或建议' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunMonthSummary', @level2type=N'COLUMN',@level2name=N'ExperienceOrSuggestion'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开车月技术总结表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunMonthSummary'
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE TABLE [dbo].[ZHGL_TestRunMonthSummaryReport](
|
||||
[TestRunMonthSummaryReportId] [nvarchar](50) NOT NULL,
|
||||
[Year] [int] NULL,
|
||||
[UserId] [nvarchar](50) NULL,
|
||||
[CompileMan] [nvarchar](50) NULL,
|
||||
[CompileDate] [datetime] NULL,
|
||||
CONSTRAINT [PK_ZHGL_TestRunMonthSummaryReport] PRIMARY KEY CLUSTERED
|
||||
(
|
||||
[TestRunMonthSummaryReportId] ASC
|
||||
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
||||
) ON [PRIMARY]
|
||||
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_TestRunMonthSummaryReport', @level2type=N'COLUMN',@level2name=N'TestRunMonthSummaryReportId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_TestRunMonthSummaryReport', @level2type=N'COLUMN',@level2name=N'Year'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'用户Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_TestRunMonthSummaryReport', @level2type=N'COLUMN',@level2name=N'UserId'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_TestRunMonthSummaryReport', @level2type=N'COLUMN',@level2name=N'CompileMan'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'编制日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_TestRunMonthSummaryReport', @level2type=N'COLUMN',@level2name=N'CompileDate'
|
||||
GO
|
||||
|
||||
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开车月技术总结表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_TestRunMonthSummaryReport'
|
||||
GO
|
||||
|
||||
|
|
@ -68,4 +68,17 @@ GO
|
|||
VALUES('08C5FB21-7B0B-4A6B-B7B6-EB9DA928ECE3','16229932-671B-4E04-BB61-A5C7DE4CE47F','保存',3)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('64D20EC1-23E3-4163-9FD5-BD75DA0BB270','16229932-671B-4E04-BB61-A5C7DE4CE47F','删除',4)
|
||||
GO
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('F0792B77-AEE4-4834-82C2-E5B75D0B0AB7','开车月技术总结','Personal/TestRunMonthSummary.aspx',90,'0','Menu_Personal',0,1,1)
|
||||
GO
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('ACEEE043-26ED-4C5E-B0AC-BDF511D67919','F0792B77-AEE4-4834-82C2-E5B75D0B0AB7','增加',1)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('EDC39144-E757-4DA7-99B4-06E67A4829C4','F0792B77-AEE4-4834-82C2-E5B75D0B0AB7','修改',2)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('9043447A-07F3-497D-810E-03A24A2FAC38','F0792B77-AEE4-4834-82C2-E5B75D0B0AB7','保存',3)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('88F477AB-BA4B-4157-9728-F8B6B593296E','F0792B77-AEE4-4834-82C2-E5B75D0B0AB7','删除',4)
|
||||
GO
|
|
@ -541,4 +541,16 @@ GO
|
|||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('EF60AF57-C14D-47C7-87E9-F9182B1C2D6A','C1240FCB-4C72-445E-82B5-EBFAA87D0AC6','保存',4)
|
||||
GO
|
||||
|
||||
|
||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||
VALUES('0C6BB051-6BD1-4E35-90CE-9376F3C2D454','开车人员月技术总结','ZHGL/TestRunPerformance/TestRunMonthSummaryReport.aspx',30,'53D8CED2-9AA7-43EA-B27D-EA10A06DF713','Menu_ZHGL',0,1,1)
|
||||
GO
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('2560BCB3-F7E5-4D11-97A3-14D70849FC0D','0C6BB051-6BD1-4E35-90CE-9376F3C2D454','增加',1)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('F5E5667D-B48D-44E7-8C5D-9ACADD5BFF50','0C6BB051-6BD1-4E35-90CE-9376F3C2D454','修改',2)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('6C9CF7C9-54FC-41E7-A2E2-71BE01675B13','0C6BB051-6BD1-4E35-90CE-9376F3C2D454','删除',3)
|
||||
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||
VALUES('76A70721-DA8D-45BB-91B4-4DE3FC22CE2E','0C6BB051-6BD1-4E35-90CE-9376F3C2D454','保存',4)
|
||||
GO
|
||||
|
|
|
@ -655,6 +655,7 @@
|
|||
<Compile Include="Person\Person_ShuntApproveService.cs" />
|
||||
<Compile Include="Person\Person_ShuntDetailService.cs" />
|
||||
<Compile Include="Person\Person_ShuntService.cs" />
|
||||
<Compile Include="Person\Person_TestRunMonthSummaryService.cs" />
|
||||
<Compile Include="Person\Person_TestRunPerformanceService.cs" />
|
||||
<Compile Include="Person\Person_TrainingPlanService.cs" />
|
||||
<Compile Include="ProjectData\MainItemService.cs" />
|
||||
|
@ -874,6 +875,7 @@
|
|||
<Compile Include="ZHGL\Supervise\SuperviseCheckRectifyService.cs" />
|
||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportItemService.cs" />
|
||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportService.cs" />
|
||||
<Compile Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReportService.cs" />
|
||||
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReportService.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
|
|
@ -809,6 +809,11 @@ namespace BLL
|
|||
/// </summary>
|
||||
public const string TestRunPerformanceMenuId = "16229932-671B-4E04-BB61-A5C7DE4CE47F";
|
||||
|
||||
/// <summary>
|
||||
/// 开车月技术总结
|
||||
/// </summary>
|
||||
public const string TestRunMonthSummaryMenuId = "F0792B77-AEE4-4834-82C2-E5B75D0B0AB7";
|
||||
|
||||
/// <summary>
|
||||
/// HSSE公司管理规定发布
|
||||
/// </summary>
|
||||
|
@ -4910,6 +4915,11 @@ namespace BLL
|
|||
/// 开车人员月绩效报告
|
||||
/// </summary>
|
||||
public const string TestRunPerformanceMonthReportMenuId = "C1240FCB-4C72-445E-82B5-EBFAA87D0AC6";
|
||||
|
||||
/// <summary>
|
||||
/// 开车月技术总结
|
||||
/// </summary>
|
||||
public const string TestRunMonthSummaryReportMenuId = "0C6BB051-6BD1-4E35-90CE-9376F3C2D454";
|
||||
#endregion
|
||||
|
||||
#region 施工综合流程定义
|
||||
|
|
|
@ -0,0 +1,77 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class Person_TestRunMonthSummaryService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取人员信息
|
||||
/// </summary>
|
||||
/// <param name="TestRunMonthSummaryId">人员Id</param>
|
||||
/// <returns>人员信息</returns>
|
||||
public static Model.Person_TestRunMonthSummary GetPersonTestRunMonthSummaryById(string TestRunMonthSummaryId)
|
||||
{
|
||||
return Funs.DB.Person_TestRunMonthSummary.FirstOrDefault(e => e.TestRunMonthSummaryId == TestRunMonthSummaryId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加人员总结信息
|
||||
/// </summary>
|
||||
/// <param name="user">人员实体</param>
|
||||
public static void AddPersonTestRunMonthSummary(Model.Person_TestRunMonthSummary TestRunMonthSummary)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Person_TestRunMonthSummary newTestRunMonthSummary = new Model.Person_TestRunMonthSummary
|
||||
{
|
||||
TestRunMonthSummaryId = TestRunMonthSummary.TestRunMonthSummaryId,
|
||||
ProjectId = TestRunMonthSummary.ProjectId,
|
||||
UserId = TestRunMonthSummary.UserId,
|
||||
ProcessName = TestRunMonthSummary.ProcessName,
|
||||
RaiseDate = TestRunMonthSummary.RaiseDate,
|
||||
ProblemDescription = TestRunMonthSummary.ProblemDescription,
|
||||
HandleMethod = TestRunMonthSummary.HandleMethod,
|
||||
ExperienceOrSuggestion = TestRunMonthSummary.ExperienceOrSuggestion,
|
||||
};
|
||||
db.Person_TestRunMonthSummary.InsertOnSubmit(newTestRunMonthSummary);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改人员总结信息
|
||||
/// </summary>
|
||||
/// <param name="user">实体</param>
|
||||
public static void UpdatePersonTestRunMonthSummary(Model.Person_TestRunMonthSummary TestRunMonthSummary)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Person_TestRunMonthSummary newTestRunMonthSummary = db.Person_TestRunMonthSummary.FirstOrDefault(e => e.TestRunMonthSummaryId == TestRunMonthSummary.TestRunMonthSummaryId);
|
||||
if (newTestRunMonthSummary != null)
|
||||
{
|
||||
newTestRunMonthSummary.ProcessName = TestRunMonthSummary.ProcessName;
|
||||
newTestRunMonthSummary.RaiseDate = TestRunMonthSummary.RaiseDate;
|
||||
newTestRunMonthSummary.ProblemDescription = TestRunMonthSummary.ProblemDescription;
|
||||
newTestRunMonthSummary.HandleMethod = TestRunMonthSummary.HandleMethod;
|
||||
newTestRunMonthSummary.ExperienceOrSuggestion = TestRunMonthSummary.ExperienceOrSuggestion;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据人员Id删除一个人员信息
|
||||
/// </summary>
|
||||
/// <param name="Person_TestRunMonthSummaryId"></param>
|
||||
public static void DeletePersonTestRunMonthSummary(string TestRunMonthSummaryId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Person_TestRunMonthSummary user = db.Person_TestRunMonthSummary.FirstOrDefault(e => e.TestRunMonthSummaryId == TestRunMonthSummaryId);
|
||||
if (user != null)
|
||||
{
|
||||
db.Person_TestRunMonthSummary.DeleteOnSubmit(user);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -34,6 +34,7 @@ namespace BLL
|
|||
JobContent = TestRunPerformance.JobContent,
|
||||
TestRunPerformanceStandardId = TestRunPerformance.TestRunPerformanceStandardId,
|
||||
Days = TestRunPerformance.Days,
|
||||
Num = TestRunPerformance.Num,
|
||||
};
|
||||
db.Person_TestRunPerformance.InsertOnSubmit(newTestRunPerformance);
|
||||
db.SubmitChanges();
|
||||
|
@ -53,6 +54,7 @@ namespace BLL
|
|||
newTestRunPerformance.JobContent = TestRunPerformance.JobContent;
|
||||
newTestRunPerformance.TestRunPerformanceStandardId = TestRunPerformance.TestRunPerformanceStandardId;
|
||||
newTestRunPerformance.Days = TestRunPerformance.Days;
|
||||
newTestRunPerformance.Num = TestRunPerformance.Num;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,73 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class TestRunMonthSummaryReportService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取开车月技术总结
|
||||
/// </summary>
|
||||
/// <param name="TestRunMonthSummaryReportId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.ZHGL_TestRunMonthSummaryReport GetTestRunMonthSummaryReportById(string TestRunMonthSummaryReportId)
|
||||
{
|
||||
return Funs.DB.ZHGL_TestRunMonthSummaryReport.FirstOrDefault(e => e.TestRunMonthSummaryReportId == TestRunMonthSummaryReportId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加开车月技术总结
|
||||
/// </summary>
|
||||
/// <param name="TestRunMonthSummaryReport"></param>
|
||||
public static void AddTestRunMonthSummaryReport(Model.ZHGL_TestRunMonthSummaryReport TestRunMonthSummaryReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.ZHGL_TestRunMonthSummaryReport newTestRunMonthSummaryReport = new Model.ZHGL_TestRunMonthSummaryReport
|
||||
{
|
||||
TestRunMonthSummaryReportId = TestRunMonthSummaryReport.TestRunMonthSummaryReportId,
|
||||
Year = TestRunMonthSummaryReport.Year,
|
||||
UserId = TestRunMonthSummaryReport.UserId,
|
||||
CompileMan = TestRunMonthSummaryReport.CompileMan,
|
||||
CompileDate = TestRunMonthSummaryReport.CompileDate
|
||||
};
|
||||
db.ZHGL_TestRunMonthSummaryReport.InsertOnSubmit(newTestRunMonthSummaryReport);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改开车月技术总结
|
||||
/// </summary>
|
||||
/// <param name="TestRunMonthSummaryReport"></param>
|
||||
public static void UpdateTestRunMonthSummaryReport(Model.ZHGL_TestRunMonthSummaryReport TestRunMonthSummaryReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.ZHGL_TestRunMonthSummaryReport newTestRunMonthSummaryReport = db.ZHGL_TestRunMonthSummaryReport.FirstOrDefault(e => e.TestRunMonthSummaryReportId == TestRunMonthSummaryReport.TestRunMonthSummaryReportId);
|
||||
if (newTestRunMonthSummaryReport != null)
|
||||
{
|
||||
newTestRunMonthSummaryReport.Year = TestRunMonthSummaryReport.Year;
|
||||
newTestRunMonthSummaryReport.UserId = TestRunMonthSummaryReport.UserId;
|
||||
newTestRunMonthSummaryReport.CompileMan = TestRunMonthSummaryReport.CompileMan;
|
||||
newTestRunMonthSummaryReport.CompileDate = TestRunMonthSummaryReport.CompileDate;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除开车月技术总结
|
||||
/// </summary>
|
||||
/// <param name="TestRunMonthSummaryReportId"></param>
|
||||
public static void DeleteTestRunMonthSummaryReportById(string TestRunMonthSummaryReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.ZHGL_TestRunMonthSummaryReport TestRunMonthSummaryReport = db.ZHGL_TestRunMonthSummaryReport.FirstOrDefault(e => e.TestRunMonthSummaryReportId == TestRunMonthSummaryReportId);
|
||||
if (TestRunMonthSummaryReport != null)
|
||||
{
|
||||
db.ZHGL_TestRunMonthSummaryReport.DeleteOnSubmit(TestRunMonthSummaryReport);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3175,3 +3175,154 @@ IP地址:::1
|
|||
|
||||
出错时间:03/19/2024 10:40:05
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:IndexOutOfRangeException
|
||||
错误信息:无法找到列 Months。
|
||||
错误堆栈:
|
||||
在 System.Data.DataTable.ParseSortString(String sortString)
|
||||
在 System.Data.DataView.CheckSort(String sort)
|
||||
在 System.Data.DataView.set_Sort(String value)
|
||||
在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\PageBase.cs:行号 590
|
||||
在 FineUIPro.Web.Personal.TestRunMonthSummary.BindGrid() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Personal\TestRunMonthSummary.aspx.cs:行号 58
|
||||
在 FineUIPro.Web.Personal.TestRunMonthSummary.Window1_Close(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Personal\TestRunMonthSummary.aspx.cs:行号 201
|
||||
在 FineUIPro.Window.OnClose(WindowCloseEventArgs e)
|
||||
在 (Window , WindowCloseEventArgs )
|
||||
在 FineUIPro.Window.RaisePostBackEvent(String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
|
||||
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:03/21/2024 16:29:19
|
||||
出错文件:http://localhost:8579/Personal/TestRunMonthSummary.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:03/21/2024 16:29:19
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:IndexOutOfRangeException
|
||||
错误信息:无法找到列 Months。
|
||||
错误堆栈:
|
||||
在 System.Data.DataTable.ParseSortString(String sortString)
|
||||
在 System.Data.DataView.CheckSort(String sort)
|
||||
在 System.Data.DataView.set_Sort(String value)
|
||||
在 FineUIPro.Web.PageBase.GetPagedDataTable(Grid Grid1, DataTable tb) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\PageBase.cs:行号 590
|
||||
在 FineUIPro.Web.Personal.TestRunMonthSummary.BindGrid() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Personal\TestRunMonthSummary.aspx.cs:行号 58
|
||||
在 FineUIPro.Web.Personal.TestRunMonthSummary.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Personal\TestRunMonthSummary.aspx.cs:行号 28
|
||||
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
|
||||
在 System.EventHandler.Invoke(Object sender, EventArgs e)
|
||||
在 System.Web.UI.Control.OnLoad(EventArgs e)
|
||||
在 System.Web.UI.Control.LoadRecursive()
|
||||
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||
出错时间:03/21/2024 16:29:20
|
||||
出错文件:http://localhost:8579/Personal/TestRunMonthSummary.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:03/21/2024 16:29:20
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:ArgumentException
|
||||
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
||||
参数名: via
|
||||
错误堆栈:
|
||||
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
||||
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
||||
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
||||
在 System.ServiceModel.ClientBase`1.get_Channel()
|
||||
在 BLL.CNCECHSSEService.HSSEServiceClient.GetSupervise_SubUnitReportListToSUB() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14204
|
||||
在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2181
|
||||
出错时间:03/22/2024 13:09:07
|
||||
出错时间:03/22/2024 13:09:08
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:ArgumentException
|
||||
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
||||
参数名: via
|
||||
错误堆栈:
|
||||
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
||||
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
||||
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
||||
在 System.ServiceModel.ClientBase`1.get_Channel()
|
||||
在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckInfo_Table8ItemListToSUB(String unitId) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14228
|
||||
在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2046
|
||||
出错时间:03/22/2024 13:09:08
|
||||
出错时间:03/22/2024 13:09:08
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:ArgumentException
|
||||
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
||||
参数名: via
|
||||
错误堆栈:
|
||||
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
||||
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
||||
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
||||
在 System.ServiceModel.ClientBase`1.get_Channel()
|
||||
在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckRectifyListToSUB(String unitId) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14220
|
||||
在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1942
|
||||
出错时间:03/22/2024 13:09:08
|
||||
出错时间:03/22/2024 13:09:08
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:ArgumentException
|
||||
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
||||
参数名: via
|
||||
错误堆栈:
|
||||
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
||||
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
||||
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
||||
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
||||
在 System.ServiceModel.ClientBase`1.get_Channel()
|
||||
在 BLL.CNCECHSSEService.HSSEServiceClient.GetInformation_UrgeReportToSUB(String unitId) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14020
|
||||
在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1884
|
||||
出错时间:03/22/2024 13:09:08
|
||||
出错时间:03/22/2024 13:09:08
|
||||
|
||||
|
|
|
@ -1467,6 +1467,9 @@
|
|||
<Content Include="Personal\FileSearch.aspx" />
|
||||
<Content Include="Personal\PersonCheckInfo.aspx" />
|
||||
<Content Include="Personal\PersonDuty.aspx" />
|
||||
<Content Include="Personal\ShowTestRunPerformanceStandard.aspx" />
|
||||
<Content Include="Personal\TestRunMonthSummary.aspx" />
|
||||
<Content Include="Personal\TestRunMonthSummaryEdit.aspx" />
|
||||
<Content Include="Personal\TestRunPerformance.aspx" />
|
||||
<Content Include="Personal\TestRunPerformanceEdit.aspx" />
|
||||
<Content Include="Person\PersonCheck.aspx" />
|
||||
|
@ -2066,6 +2069,7 @@
|
|||
<Content Include="ZHGL\Supervise\SuperviseCheckReport.aspx" />
|
||||
<Content Include="ZHGL\Supervise\SuperviseCheckReportEdit.aspx" />
|
||||
<Content Include="common\font\DIN-Medium.otf" />
|
||||
<Content Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReport.aspx" />
|
||||
<Content Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReport.aspx" />
|
||||
<Content Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReportEdit.aspx" />
|
||||
<Content Include="ZHGL\TestRunPerformance\TestRunPerformanceStandard.aspx" />
|
||||
|
@ -14293,6 +14297,27 @@
|
|||
<Compile Include="Personal\PersonDuty.aspx.designer.cs">
|
||||
<DependentUpon>PersonDuty.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Personal\ShowTestRunPerformanceStandard.aspx.cs">
|
||||
<DependentUpon>ShowTestRunPerformanceStandard.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Personal\ShowTestRunPerformanceStandard.aspx.designer.cs">
|
||||
<DependentUpon>ShowTestRunPerformanceStandard.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Personal\TestRunMonthSummary.aspx.cs">
|
||||
<DependentUpon>TestRunMonthSummary.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Personal\TestRunMonthSummary.aspx.designer.cs">
|
||||
<DependentUpon>TestRunMonthSummary.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Personal\TestRunMonthSummaryEdit.aspx.cs">
|
||||
<DependentUpon>TestRunMonthSummaryEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Personal\TestRunMonthSummaryEdit.aspx.designer.cs">
|
||||
<DependentUpon>TestRunMonthSummaryEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Personal\TestRunPerformance.aspx.cs">
|
||||
<DependentUpon>TestRunPerformance.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
@ -18045,6 +18070,13 @@
|
|||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportEdit.aspx.designer.cs">
|
||||
<DependentUpon>SuperviseCheckReportEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReport.aspx.cs">
|
||||
<DependentUpon>TestRunMonthSummaryReport.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ZHGL\TestRunPerformance\TestRunMonthSummaryReport.aspx.designer.cs">
|
||||
<DependentUpon>TestRunMonthSummaryReport.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReport.aspx.cs">
|
||||
<DependentUpon>TestRunPerformanceMonthReport.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
runat="server" BoxFlex="1" DataKeyNames="BusinessTripId" EnableColumnLines="true" DataIDField="BusinessTripId"
|
||||
AllowSorting="true" SortField="ArriveDate" SortDirection="DESC" OnSort="Grid1_Sort"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True" EnableSummary="true" SummaryPosition="Flow">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||
<Items>
|
||||
|
@ -53,7 +53,10 @@
|
|||
<f:RenderField Width="120px" ColumnID="LeaveDate" DataField="LeaveDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="离开日期"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Days" DataField="Days"
|
||||
FieldType="String" HeaderText="出差天数" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
|
@ -72,7 +75,7 @@
|
|||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="员工出差记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Self" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||
Width="550px" Height="300px">
|
||||
Width="550px" Height="320px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
|
@ -36,13 +37,13 @@ namespace FineUIPro.Web.Personal
|
|||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT trip.BusinessTripId,trip.ProjectId,trip.UserId,trip.ArriveDate,trip.LeaveDate,Users.UserName,Project.ProjectName,case trip.Type when '1' then '项目出差' when '2' then '其他出差' else '' end AS TypeStr "
|
||||
string strSql = @"SELECT trip.BusinessTripId,trip.ProjectId,trip.UserId,trip.ArriveDate,trip.LeaveDate,Users.UserName,Project.ProjectName,case trip.Type when '1' then '项目出差' when '2' then '其他出差' else '' end AS TypeStr,case when trip.ArriveDate is not null and trip.LeaveDate is not null then cast(DATEDIFF(day,trip.ArriveDate,trip.LeaveDate)+1 as nvarchar(10)) else '' end AS Days "
|
||||
+ @" From dbo.Person_BusinessTrip AS trip"
|
||||
+ @" LEFT JOIN Sys_User AS Users ON Users.UserId=trip.UserId"
|
||||
+ @" LEFT JOIN Base_Project AS Project ON Project.ProjectId=trip.ProjectId"
|
||||
+ @" WHERE 1=1";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (this.rblType.SelectedValue!="0")
|
||||
if (this.rblType.SelectedValue != "0")
|
||||
{
|
||||
strSql += " AND trip.Type = @Type";
|
||||
listStr.Add(new SqlParameter("@Type", this.rblType.SelectedValue));
|
||||
|
@ -71,6 +72,16 @@ namespace FineUIPro.Web.Personal
|
|||
{
|
||||
this.Grid1.Columns[3].Hidden = true;
|
||||
}
|
||||
int days = 0;
|
||||
foreach (DataRow row in table.Rows)
|
||||
{
|
||||
days += Funs.GetNewIntOrZero(row["Days"].ToString());
|
||||
}
|
||||
|
||||
JObject summary = new JObject();
|
||||
summary.Add("LeaveDate", "合计:");
|
||||
summary.Add("Days", days);
|
||||
Grid1.SummaryData = summary;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -35,8 +35,13 @@
|
|||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DatePicker runat="server" Label="到达日期" ID="txtArriveDate" LabelWidth="100px" LabelAlign="Right"></f:DatePicker>
|
||||
<f:DatePicker runat="server" Label="离开日期" ID="txtLeaveDate" LabelWidth="100px" LabelAlign="Right"></f:DatePicker>
|
||||
<f:DatePicker runat="server" Label="到达日期" ID="txtArriveDate" LabelWidth="100px" LabelAlign="Right" AutoPostBack="true" OnTextChanged="txtArriveDate_TextChanged"></f:DatePicker>
|
||||
<f:DatePicker runat="server" Label="离开日期" ID="txtLeaveDate" LabelWidth="100px" LabelAlign="Right" AutoPostBack="true" OnTextChanged="txtArriveDate_TextChanged"></f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbDays" Label="出差天数" LabelWidth="100px" LabelAlign="Right"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
|
|
|
@ -68,6 +68,7 @@ namespace FineUIPro.Web.Personal
|
|||
{
|
||||
this.txtLeaveDate.Text = string.Format("{0:yyyy-MM-dd}", trip.LeaveDate);
|
||||
}
|
||||
txtArriveDate_TextChanged(null, null);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -125,5 +126,17 @@ namespace FineUIPro.Web.Personal
|
|||
this.drpProject.Hidden = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected void txtArriveDate_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtArriveDate.Text.Trim()) && !string.IsNullOrEmpty(this.txtLeaveDate.Text.Trim()))
|
||||
{
|
||||
this.lbDays.Text = ((Convert.ToDateTime(this.txtLeaveDate.Text.Trim()) - Convert.ToDateTime(this.txtArriveDate.Text.Trim())).Days + 1).ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.lbDays.Text = string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -84,6 +84,15 @@ namespace FineUIPro.Web.Personal {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtLeaveDate;
|
||||
|
||||
/// <summary>
|
||||
/// lbDays 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbDays;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -0,0 +1,78 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShowTestRunPerformanceStandard.aspx.cs" Inherits="FineUIPro.Web.Personal.ShowTestRunPerformanceStandard" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="考核标准" EnableCollapse="false" runat="server" PageSize="1000"
|
||||
BoxFlex="1" DataKeyNames="TestRunPerformanceStandardId" AllowCellEditing="true" EnableColumnLines="true" SortField="Code1,Code2,Code3" SortDirection="ASC"
|
||||
ClicksToEdit="1" DataIDField="TestRunPerformanceStandardId" AllowSorting="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
|
||||
EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar4" ToolbarAlign="Left" runat="server">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lb" Text="双击或右键选择记录行,可自动填充工作类型、工作项、计量单位等内容"></f:Label>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RenderField HeaderText="编号" ColumnID="Code" DataField="Code" Width="80px"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="工作类别" ColumnID="Type" DataField="Type" Width="100px"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="工作项" ColumnID="Item" DataField="Item" Width="220px"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="计量单位" ColumnID="Unit" DataField="Unit" Width="140px"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="标准工作日" ColumnID="Days" DataField="Days" Width="100px" Hidden="true"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
<f:Listener Event="dataload" Handler="onGridDataLoad" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<Items>
|
||||
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Text="选择" Icon="Pencil" OnClick="btnMenuModify_Click">
|
||||
</f:MenuButton>
|
||||
</Items>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
|
||||
function onGridDataLoad(event) {
|
||||
this.mergeColumns(['Type','Item'], {
|
||||
depends: true
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,81 @@
|
|||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NPOI.SS.Util;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.Personal
|
||||
{
|
||||
public partial class ShowTestRunPerformanceStandard : PageBase
|
||||
{
|
||||
#region 加载
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
//加载列表
|
||||
public void BindGrid()
|
||||
{
|
||||
string strSql = @"select * from Base_TestRunPerformanceStandard";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 编辑
|
||||
protected void btnMenuModify_Click(object sender, EventArgs e)
|
||||
{
|
||||
EditData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
EditData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
private void EditData()
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string ids = string.Empty;
|
||||
foreach (string id in Grid1.SelectedRowIDArray)
|
||||
{
|
||||
ids += id + ",";
|
||||
}
|
||||
if (!string.IsNullOrEmpty(ids))
|
||||
{
|
||||
ids = ids.Substring(0, ids.LastIndexOf(","));
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetWriteBackValueReference(ids)
|
||||
+ ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
87
SGGL/FineUIPro.Web/Personal/ShowTestRunPerformanceStandard.aspx.designer.cs
generated
Normal file
87
SGGL/FineUIPro.Web/Personal/ShowTestRunPerformanceStandard.aspx.designer.cs
generated
Normal file
|
@ -0,0 +1,87 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.Personal {
|
||||
|
||||
|
||||
public partial class ShowTestRunPerformanceStandard {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar4;
|
||||
|
||||
/// <summary>
|
||||
/// lb 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lb;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuModify 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuModify;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,107 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestRunMonthSummary.aspx.cs" Inherits="FineUIPro.Web.Personal.TestRunMonthSummary" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>开车月技术总结</title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
<style type="text/css">
|
||||
.f-grid-row.noEdit {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.f-grid-colheader-text {
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="开车月技术总结" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="TestRunMonthSummaryId" EnableColumnLines="true" DataIDField="TestRunMonthSummaryId"
|
||||
AllowSorting="true" SortField="RaiseDate" SortDirection="DESC" OnSort="Grid1_Sort" ForceFit="true"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:TextBox runat="server" Label="姓名" ID="txtUserName" EmptyText="输入查询条件"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="250px" LabelWidth="50px"></f:TextBox>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="true" OnClick="btnNew_Click" runat="server"
|
||||
Hidden="true">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center" TextAlign="Center"/>
|
||||
<f:RenderField Width="200px" ColumnID="ProjectName" DataField="ProjectName"
|
||||
FieldType="String" HeaderText="项目名称/项目号或本部" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="130px" ColumnID="ProcessName" DataField="ProcessName"
|
||||
FieldType="String" HeaderText="工序名称" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="130px" ColumnID="RaiseDate" DataField="RaiseDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="提出时间"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="400px" ColumnID="ProblemDescription" DataField="ProblemDescription"
|
||||
FieldType="String" HeaderText="问题描述" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="400px" ColumnID="HandleMethod" DataField="HandleMethod"
|
||||
FieldType="String" HeaderText="处理方法" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="400px" ColumnID="ExperienceOrSuggestion" DataField="ExperienceOrSuggestion"
|
||||
FieldType="String" HeaderText="体会或建议" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="开车月技术总结" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Self" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||
Width="1300px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="编辑" Icon="Pencil">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
Hidden="true" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server" Text="删除"
|
||||
Icon="Delete">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/jscript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,204 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.Personal
|
||||
{
|
||||
public partial class TestRunMonthSummary : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
|
||||
{
|
||||
Grid1.PageSize = this.CurrUser.PageSize.Value;
|
||||
}
|
||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = @"SELECT summary.TestRunMonthSummaryId,summary.ProjectId,summary.UserId,summary.RaiseDate,summary.ProcessName,summary.ProblemDescription,summary.HandleMethod,summary.ExperienceOrSuggestion,Users.UserName,case when summary.ProjectId='0' then '本部' else Project.ProjectName end as ProjectName "
|
||||
+ @" From dbo.Person_TestRunMonthSummary AS summary"
|
||||
+ @" LEFT JOIN Sys_User AS Users ON Users.UserId=summary.UserId"
|
||||
+ @" LEFT JOIN Base_Project AS Project ON Project.ProjectId=summary.ProjectId"
|
||||
+ @" WHERE 1=1";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (this.CurrUser.UserId != BLL.Const.sysglyId && this.CurrUser.UserId != BLL.Const.hfnbdId)
|
||||
{
|
||||
strSql += " AND summary.UserId = @UserId";
|
||||
listStr.Add(new SqlParameter("@UserId", this.CurrUser.UserId));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtUserName.Text.Trim()))
|
||||
{
|
||||
strSql += " AND UserName LIKE @UserName";
|
||||
listStr.Add(new SqlParameter("@UserName", "%" + this.txtUserName.Text.Trim() + "%"));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
|
||||
#region 分页
|
||||
/// <summary>
|
||||
/// 分页
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页显示条数下拉框
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 删除数据
|
||||
/// <summary>
|
||||
/// 批量删除数据
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
var summary = Person_TestRunMonthSummaryService.GetPersonTestRunMonthSummaryById(rowID);
|
||||
if (summary != null)
|
||||
{
|
||||
BLL.Person_TestRunMonthSummaryService.DeletePersonTestRunMonthSummary(rowID);
|
||||
}
|
||||
}
|
||||
BindGrid();
|
||||
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请至少选中一行!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("TestRunMonthSummaryEdit.aspx", "编辑 - ")));
|
||||
}
|
||||
|
||||
#region 编辑
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInParent("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string Id = Grid1.SelectedRowID;
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("TestRunMonthSummaryEdit.aspx?TestRunMonthSummaryId={0}", Id, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
btnMenuEdit_Click(null, null);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查询
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 获取按钮权限
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.TestRunMonthSummaryMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
this.btnNew.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
{
|
||||
this.btnMenuEdit.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
this.btnMenuDelete.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void Window1_Close(object sender, EventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,150 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.Personal {
|
||||
|
||||
|
||||
public partial class TestRunMonthSummary {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// txtUserName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUserName;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestRunMonthSummaryEdit.aspx.cs" Inherits="FineUIPro.Web.Personal.TestRunMonthSummaryEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true" LabelWidth="140px"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DatePicker runat="server" Label="提出时间" ID="txtRaiseDate" LabelWidth="170px" LabelAlign="Right" DateFormatString="yyyy-MM-dd"></f:DatePicker>
|
||||
<f:Label ID="lbUserName" runat="server" Label="姓名" LabelWidth="100px" LabelAlign="Right"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpProject" runat="server" Label="项目名称/项目号或本部" Width="300px" LabelWidth="170px" LabelAlign="Right"
|
||||
EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea runat="server" ID="txtProcessName" Label="工序名称" LabelWidth="170px" LabelAlign="Right"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea runat="server" ID="txtProblemDescription" Label="问题描述" LabelWidth="170px" LabelAlign="Right"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea runat="server" ID="txtHandleMethod" Label="处理方法" LabelWidth="170px" LabelAlign="Right"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea runat="server" ID="txtExperienceOrSuggestion" Label="体会或建议" LabelWidth="170px" LabelAlign="Right"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,112 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using Model;
|
||||
|
||||
namespace FineUIPro.Web.Personal
|
||||
{
|
||||
public partial class TestRunMonthSummaryEdit : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 定义项
|
||||
/// </summary>
|
||||
public string TestRunMonthSummaryId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["TestRunMonthSummaryId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["TestRunMonthSummaryId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
ProjectService.InitAllProjectDropDownList2(this.drpProject, true);
|
||||
this.TestRunMonthSummaryId = Request.QueryString["TestRunMonthSummaryId"];
|
||||
if (!String.IsNullOrEmpty(this.TestRunMonthSummaryId))
|
||||
{
|
||||
var MonthSummary = BLL.Person_TestRunMonthSummaryService.GetPersonTestRunMonthSummaryById(this.TestRunMonthSummaryId);
|
||||
if (MonthSummary != null)
|
||||
{
|
||||
if (MonthSummary.RaiseDate != null)
|
||||
{
|
||||
this.txtRaiseDate.Text = string.Format("{0:yyyy-MM-dd}", MonthSummary.RaiseDate);
|
||||
}
|
||||
this.lbUserName.Text = BLL.UserService.GetUserNameByUserId(MonthSummary.UserId);
|
||||
if (!string.IsNullOrEmpty(MonthSummary.ProjectId))
|
||||
{
|
||||
this.drpProject.SelectedValue = MonthSummary.ProjectId;
|
||||
}
|
||||
this.txtProcessName.Text = MonthSummary.ProcessName;
|
||||
this.txtProblemDescription.Text = MonthSummary.ProblemDescription;
|
||||
this.txtHandleMethod.Text = MonthSummary.HandleMethod;
|
||||
this.txtExperienceOrSuggestion.Text = MonthSummary.ExperienceOrSuggestion;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.lbUserName.Text = this.CurrUser.UserName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存数据
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.txtRaiseDate.Text.Trim()))
|
||||
{
|
||||
Alert.ShowInParent("请选择提出时间!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpProject.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择项目名称/项目号或本部!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.Person_TestRunMonthSummary newMonthSummary = new Model.Person_TestRunMonthSummary()
|
||||
{
|
||||
RaiseDate = Funs.GetNewDateTimeOrNow(this.txtRaiseDate.Text.Trim()),
|
||||
UserId = this.CurrUser.UserId,
|
||||
ProjectId = this.drpProject.SelectedValue,
|
||||
ProcessName = this.txtProcessName.Text.Trim(),
|
||||
ProblemDescription = this.txtProblemDescription.Text.Trim(),
|
||||
HandleMethod = this.txtHandleMethod.Text.Trim(),
|
||||
ExperienceOrSuggestion = this.txtExperienceOrSuggestion.Text.Trim(),
|
||||
};
|
||||
if (!string.IsNullOrEmpty(this.TestRunMonthSummaryId))
|
||||
{
|
||||
newMonthSummary.TestRunMonthSummaryId = this.TestRunMonthSummaryId;
|
||||
BLL.Person_TestRunMonthSummaryService.UpdatePersonTestRunMonthSummary(newMonthSummary);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, null, newMonthSummary.TestRunMonthSummaryId, BLL.Const.TestRunMonthSummaryMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
else
|
||||
{
|
||||
newMonthSummary.TestRunMonthSummaryId = SQLHelper.GetNewID();
|
||||
BLL.Person_TestRunMonthSummaryService.AddPersonTestRunMonthSummary(newMonthSummary);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, null, newMonthSummary.TestRunMonthSummaryId, BLL.Const.TestRunMonthSummaryMenuId, BLL.Const.BtnModify);
|
||||
}
|
||||
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,132 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.Personal {
|
||||
|
||||
|
||||
public partial class TestRunMonthSummaryEdit {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtRaiseDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtRaiseDate;
|
||||
|
||||
/// <summary>
|
||||
/// lbUserName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbUserName;
|
||||
|
||||
/// <summary>
|
||||
/// drpProject 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProject;
|
||||
|
||||
/// <summary>
|
||||
/// txtProcessName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtProcessName;
|
||||
|
||||
/// <summary>
|
||||
/// txtProblemDescription 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtProblemDescription;
|
||||
|
||||
/// <summary>
|
||||
/// txtHandleMethod 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtHandleMethod;
|
||||
|
||||
/// <summary>
|
||||
/// txtExperienceOrSuggestion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtExperienceOrSuggestion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
}
|
||||
}
|
|
@ -17,6 +17,7 @@
|
|||
<Items>
|
||||
<f:DatePicker runat="server" Label="月份" ID="txtMonths" LabelWidth="100px" LabelAlign="Right" DisplayType="Month" DateFormatString="yyyy-MM"></f:DatePicker>
|
||||
<f:Label ID="lbUserName" runat="server" Label="姓名" LabelWidth="100px" LabelAlign="Right"></f:Label>
|
||||
<f:Button runat="server" ID="btnSelect" Text="工作项目一览表" OnClick="btnSelect_Click"></f:Button>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
|
@ -42,6 +43,7 @@
|
|||
<f:DropDownList ID="drpUnit" runat="server" Label="计量单位" Width="300px" LabelWidth="100px" LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="drpUnit_SelectedIndexChanged"
|
||||
EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:NumberBox ID="txtNum" runat="server" Label="数量" NoNegative="true" NoDecimal="true" LabelWidth="100px" LabelAlign="Right" Hidden="true" AutoPostBack="true" OnTextChanged="drpUnit_SelectedIndexChanged"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
|
@ -53,6 +55,7 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:TextBox ID="hdItemsString" runat="server" Hidden="true"></f:TextBox>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
|
@ -62,6 +65,10 @@
|
|||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="Window1" Title="弹出窗体" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Top" EnableResize="false" runat="server"
|
||||
IsModal="true" Width="1200px" Height="620px" OnClose="Window1_Close">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -62,6 +62,14 @@ namespace FineUIPro.Web.Personal
|
|||
this.drpType.SelectedValue = standard.Type;
|
||||
TestRunPerformanceStandardService.InitItemDropDownList(drpItem, this.drpType.SelectedValue, true);
|
||||
this.drpItem.SelectedValue = standard.Item;
|
||||
if (drpItem.SelectedItem.Text.Contains("_回路") || drpItem.SelectedItem.Text.Contains("_台"))
|
||||
{
|
||||
this.txtNum.Hidden = false;
|
||||
if (performance.Num != null)
|
||||
{
|
||||
this.txtNum.Text = performance.Num.ToString();
|
||||
}
|
||||
}
|
||||
TestRunPerformanceStandardService.InitUnitDropDownList(drpUnit, this.drpType.SelectedValue, this.drpItem.SelectedValue, true);
|
||||
this.drpUnit.SelectedValue = standard.TestRunPerformanceStandardId;
|
||||
}
|
||||
|
@ -123,6 +131,7 @@ namespace FineUIPro.Web.Personal
|
|||
JobContent = this.txtJobContent.Text.Trim(),
|
||||
TestRunPerformanceStandardId = this.drpUnit.SelectedValue,
|
||||
Days = Funs.GetNewInt(this.txtDays.Text.Trim()),
|
||||
Num = Funs.GetNewInt(this.txtNum.Text.Trim()),
|
||||
};
|
||||
if (!string.IsNullOrEmpty(this.TestRunPerformanceId))
|
||||
{
|
||||
|
@ -160,21 +169,34 @@ namespace FineUIPro.Web.Personal
|
|||
Funs.FineUIPleaseSelect(this.drpUnit);
|
||||
this.drpUnit.SelectedIndex = 0;
|
||||
}
|
||||
this.txtDays.Text = string.Empty;
|
||||
this.txtNum.Hidden = true;
|
||||
}
|
||||
|
||||
protected void drpItem_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.drpItem.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
TestRunPerformanceStandardService.InitUnitDropDownList(drpUnit, this.drpType.SelectedValue,this.drpItem.SelectedValue, true);
|
||||
TestRunPerformanceStandardService.InitUnitDropDownList(drpUnit, this.drpType.SelectedValue, this.drpItem.SelectedValue, true);
|
||||
this.drpUnit.SelectedIndex = 0;
|
||||
if (drpItem.SelectedItem.Text.Contains("_回路") || drpItem.SelectedItem.Text.Contains("_台"))
|
||||
{
|
||||
this.txtNum.Hidden = false;
|
||||
this.txtNum.Text = "1";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtNum.Hidden = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
this.txtNum.Hidden = true;
|
||||
this.drpUnit.Items.Clear();
|
||||
Funs.FineUIPleaseSelect(this.drpUnit);
|
||||
this.drpUnit.SelectedIndex = 0;
|
||||
}
|
||||
this.txtDays.Text = string.Empty;
|
||||
}
|
||||
|
||||
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
|
||||
|
@ -186,7 +208,14 @@ namespace FineUIPro.Web.Personal
|
|||
{
|
||||
if (standard.Days != null)
|
||||
{
|
||||
this.txtDays.Text = standard.Days.ToString();
|
||||
if (this.txtNum.Hidden == true)
|
||||
{
|
||||
this.txtDays.Text = standard.Days.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtDays.Text = (standard.Days * Funs.GetNewIntOrZero(this.txtNum.Text.Trim())).ToString();
|
||||
}
|
||||
if (standard.Days > 0)
|
||||
{
|
||||
this.txtDays.Readonly = true;
|
||||
|
@ -204,5 +233,52 @@ namespace FineUIPro.Web.Personal
|
|||
this.txtDays.Readonly = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnSelect_Click(object sender, EventArgs e)
|
||||
{
|
||||
string window = String.Format("ShowTestRunPerformanceStandard.aspx", "查找 - ");
|
||||
PageContext.RegisterStartupScript(Window1.GetSaveStateReference(hdItemsString.ClientID) + Window1.GetShowReference(window));
|
||||
}
|
||||
|
||||
#region 关闭弹出窗口
|
||||
/// <summary>
|
||||
/// 关闭弹出窗口
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(hdItemsString.Text))
|
||||
{
|
||||
Model.Base_TestRunPerformanceStandard standard = BLL.TestRunPerformanceStandardService.GetPerformanceStandardById(hdItemsString.Text);
|
||||
if (standard != null)
|
||||
{
|
||||
this.drpType.SelectedValue = standard.Type;
|
||||
TestRunPerformanceStandardService.InitItemDropDownList(drpItem, this.drpType.SelectedValue, true);
|
||||
this.drpItem.SelectedValue = standard.Item;
|
||||
if (drpItem.SelectedItem.Text.Contains("_回路") || drpItem.SelectedItem.Text.Contains("_台"))
|
||||
{
|
||||
this.txtNum.Hidden = false;
|
||||
this.txtNum.Text = "1";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtNum.Hidden = true;
|
||||
}
|
||||
TestRunPerformanceStandardService.InitUnitDropDownList(drpUnit, this.drpType.SelectedValue, this.drpItem.SelectedValue, true);
|
||||
this.drpUnit.SelectedValue = standard.TestRunPerformanceStandardId;
|
||||
this.txtDays.Text = standard.Days.ToString();
|
||||
if (standard.Days > 0)
|
||||
{
|
||||
this.txtDays.Readonly = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtDays.Readonly = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -57,6 +57,15 @@ namespace FineUIPro.Web.Personal {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbUserName;
|
||||
|
||||
/// <summary>
|
||||
/// btnSelect 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSelect;
|
||||
|
||||
/// <summary>
|
||||
/// drpProject 控件。
|
||||
/// </summary>
|
||||
|
@ -102,6 +111,15 @@ namespace FineUIPro.Web.Personal {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtNum;
|
||||
|
||||
/// <summary>
|
||||
/// txtDays 控件。
|
||||
/// </summary>
|
||||
|
@ -120,6 +138,15 @@ namespace FineUIPro.Web.Personal {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// hdItemsString 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox hdItemsString;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
|
@ -137,5 +164,14 @@ namespace FineUIPro.Web.Personal {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,87 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestRunMonthSummaryReport.aspx.cs" Inherits="FineUIPro.Web.ZHGL.TestRunPerformance.TestRunMonthSummaryReport" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>开车人员月绩效报告</title>
|
||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="开车绩效记录" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="TestRunPerformanceMonthReportId" EnableColumnLines="true" DataIDField="TestRunPerformanceMonthReportId"
|
||||
AllowSorting="true" SortField="Year" SortDirection="DESC" OnSort="Grid1_Sort" ForceFit="true"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:TextBox runat="server" Label="姓名" ID="txtUserName" EmptyText="输入查询条件"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="250px" LabelWidth="50px"></f:TextBox>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="true" OnClick="btnNew_Click" runat="server"
|
||||
Hidden="true">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center" TextAlign="Center"/>
|
||||
<f:RenderField Width="100px" ColumnID="UserName" DataField="UserName"
|
||||
FieldType="String" HeaderText="姓名" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Year" DataField="Year"
|
||||
FieldType="String" HeaderText="年份" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="CompileDate" DataField="CompileDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="编制日期" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="开车人员月绩效报告" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Self" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||
Width="1500px" Height="700px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="编辑" Icon="Pencil">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
Hidden="true" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server" Text="删除"
|
||||
Icon="Delete">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/jscript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,17 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.TestRunPerformance
|
||||
{
|
||||
public partial class TestRunMonthSummaryReport : PageBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
150
SGGL/FineUIPro.Web/ZHGL/TestRunPerformance/TestRunMonthSummaryReport.aspx.designer.cs
generated
Normal file
150
SGGL/FineUIPro.Web/ZHGL/TestRunPerformance/TestRunMonthSummaryReport.aspx.designer.cs
generated
Normal file
|
@ -0,0 +1,150 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.ZHGL.TestRunPerformance {
|
||||
|
||||
|
||||
public partial class TestRunMonthSummaryReport {
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// txtUserName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUserName;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete;
|
||||
}
|
||||
}
|
|
@ -145,11 +145,20 @@
|
|||
</form>
|
||||
<script>
|
||||
function onGridDataLoad(event) {
|
||||
this.mergeCells([{
|
||||
rowId: 'AAA',
|
||||
columnId: 'ProjectName',
|
||||
colspan: 2
|
||||
}]);
|
||||
this.mergeCells([{ rowId: 'AAA', columnId: 'ProjectName', colspan: 2 }, { rowId: 'AAA', columnId: 'Item1', colspan: 3 }, { rowId: 'AAA', columnId: 'Item2', colspan: 2 }, { rowId: 'AAA', columnId: 'Item3', colspan: 2 }, { rowId: 'AAA', columnId: 'Item4', colspan: 2 }, { rowId: 'AAA', columnId: 'Item5', colspan: 3 }, { rowId: 'AAA', columnId: 'Item6', colspan: 2 }, { rowId: 'AAA', columnId: 'Item7', colspan: 3 }, { rowId: 'AAA', columnId: 'Item8', colspan: 2 }, { rowId: 'AAA', columnId: 'Item9', colspan: 3 }, { rowId: 'AAA', columnId: 'Item10', colspan: 3 }, { rowId: 'AAA', columnId: 'Item11', colspan: 2 }, { rowId: 'AAA', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '0', columnId: 'ProjectName', colspan: 2 }, { rowId: '0', columnId: 'Item1', colspan: 3 }, { rowId: '0', columnId: 'Item2', colspan: 2 }, { rowId: '0', columnId: 'Item3', colspan: 2 }, { rowId: '0', columnId: 'Item4', colspan: 2 }, { rowId: '0', columnId: 'Item5', colspan: 3 }, { rowId: '0', columnId: 'Item6', colspan: 2 }, { rowId: '0', columnId: 'Item7', colspan: 3 }, { rowId: '0', columnId: 'Item8', colspan: 2 }, { rowId: '0', columnId: 'Item9', colspan: 3 }, { rowId: '0', columnId: 'Item10', colspan: 3 }, { rowId: '0', columnId: 'Item11', colspan: 2 }, { rowId: '0', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '1', columnId: 'ProjectName', colspan: 2 }, { rowId: '1', columnId: 'Item1', colspan: 3 }, { rowId: '1', columnId: 'Item2', colspan: 2 }, { rowId: '1', columnId: 'Item3', colspan: 2 }, { rowId: '1', columnId: 'Item4', colspan: 2 }, { rowId: '1', columnId: 'Item5', colspan: 3 }, { rowId: '1', columnId: 'Item6', colspan: 2 }, { rowId: '1', columnId: 'Item7', colspan: 3 }, { rowId: '1', columnId: 'Item8', colspan: 2 }, { rowId: '1', columnId: 'Item9', colspan: 3 }, { rowId: '1', columnId: 'Item10', colspan: 3 }, { rowId: '1', columnId: 'Item11', colspan: 2 }, { rowId: '1', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '2', columnId: 'ProjectName', colspan: 2 }, { rowId: '2', columnId: 'Item1', colspan: 3 }, { rowId: '2', columnId: 'Item2', colspan: 2 }, { rowId: '2', columnId: 'Item3', colspan: 2 }, { rowId: '2', columnId: 'Item4', colspan: 2 }, { rowId: '2', columnId: 'Item5', colspan: 3 }, { rowId: '2', columnId: 'Item6', colspan: 2 }, { rowId: '2', columnId: 'Item7', colspan: 3 }, { rowId: '2', columnId: 'Item8', colspan: 2 }, { rowId: '2', columnId: 'Item9', colspan: 3 }, { rowId: '2', columnId: 'Item10', colspan: 3 }, { rowId: '2', columnId: 'Item11', colspan: 2 }, { rowId: '2', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '3', columnId: 'ProjectName', colspan: 2 }, { rowId: '3', columnId: 'Item1', colspan: 3 }, { rowId: '3', columnId: 'Item2', colspan: 2 }, { rowId: '3', columnId: 'Item3', colspan: 2 }, { rowId: '3', columnId: 'Item4', colspan: 2 }, { rowId: '3', columnId: 'Item5', colspan: 3 }, { rowId: '3', columnId: 'Item6', colspan: 2 }, { rowId: '3', columnId: 'Item7', colspan: 3 }, { rowId: '3', columnId: 'Item8', colspan: 2 }, { rowId: '3', columnId: 'Item9', colspan: 3 }, { rowId: '3', columnId: 'Item10', colspan: 3 }, { rowId: '3', columnId: 'Item11', colspan: 2 }, { rowId: '3', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '4', columnId: 'ProjectName', colspan: 2 }, { rowId: '4', columnId: 'Item1', colspan: 3 }, { rowId: '4', columnId: 'Item2', colspan: 2 }, { rowId: '4', columnId: 'Item3', colspan: 2 }, { rowId: '4', columnId: 'Item4', colspan: 2 }, { rowId: '4', columnId: 'Item5', colspan: 3 }, { rowId: '4', columnId: 'Item6', colspan: 2 }, { rowId: '4', columnId: 'Item7', colspan: 3 }, { rowId: '4', columnId: 'Item8', colspan: 2 }, { rowId: '4', columnId: 'Item9', colspan: 3 }, { rowId: '4', columnId: 'Item10', colspan: 3 }, { rowId: '4', columnId: 'Item11', colspan: 2 }, { rowId: '4', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '5', columnId: 'ProjectName', colspan: 2 }, { rowId: '5', columnId: 'Item1', colspan: 3 }, { rowId: '5', columnId: 'Item2', colspan: 2 }, { rowId: '5', columnId: 'Item3', colspan: 2 }, { rowId: '5', columnId: 'Item4', colspan: 2 }, { rowId: '5', columnId: 'Item5', colspan: 3 }, { rowId: '5', columnId: 'Item6', colspan: 2 }, { rowId: '5', columnId: 'Item7', colspan: 3 }, { rowId: '5', columnId: 'Item8', colspan: 2 }, { rowId: '5', columnId: 'Item9', colspan: 3 }, { rowId: '5', columnId: 'Item10', colspan: 3 }, { rowId: '5', columnId: 'Item11', colspan: 2 }, { rowId: '5', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '6', columnId: 'ProjectName', colspan: 2 }, { rowId: '6', columnId: 'Item1', colspan: 3 }, { rowId: '6', columnId: 'Item2', colspan: 2 }, { rowId: '6', columnId: 'Item3', colspan: 2 }, { rowId: '6', columnId: 'Item4', colspan: 2 }, { rowId: '6', columnId: 'Item5', colspan: 3 }, { rowId: '6', columnId: 'Item6', colspan: 2 }, { rowId: '6', columnId: 'Item7', colspan: 3 }, { rowId: '6', columnId: 'Item8', colspan: 2 }, { rowId: '6', columnId: 'Item9', colspan: 3 }, { rowId: '6', columnId: 'Item10', colspan: 3 }, { rowId: '6', columnId: 'Item11', colspan: 2 }, { rowId: '6', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '7', columnId: 'ProjectName', colspan: 2 }, { rowId: '7', columnId: 'Item1', colspan: 3 }, { rowId: '7', columnId: 'Item2', colspan: 2 }, { rowId: '7', columnId: 'Item3', colspan: 2 }, { rowId: '7', columnId: 'Item4', colspan: 2 }, { rowId: '7', columnId: 'Item5', colspan: 3 }, { rowId: '7', columnId: 'Item6', colspan: 2 }, { rowId: '7', columnId: 'Item7', colspan: 3 }, { rowId: '7', columnId: 'Item8', colspan: 2 }, { rowId: '7', columnId: 'Item9', colspan: 3 }, { rowId: '7', columnId: 'Item10', colspan: 3 }, { rowId: '7', columnId: 'Item11', colspan: 2 }, { rowId: '7', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '8', columnId: 'ProjectName', colspan: 2 }, { rowId: '8', columnId: 'Item1', colspan: 3 }, { rowId: '8', columnId: 'Item2', colspan: 2 }, { rowId: '8', columnId: 'Item3', colspan: 2 }, { rowId: '8', columnId: 'Item4', colspan: 2 }, { rowId: '8', columnId: 'Item5', colspan: 3 }, { rowId: '8', columnId: 'Item6', colspan: 2 }, { rowId: '8', columnId: 'Item7', colspan: 3 }, { rowId: '8', columnId: 'Item8', colspan: 2 }, { rowId: '8', columnId: 'Item9', colspan: 3 }, { rowId: '8', columnId: 'Item10', colspan: 3 }, { rowId: '8', columnId: 'Item11', colspan: 2 }, { rowId: '8', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '9', columnId: 'ProjectName', colspan: 2 }, { rowId: '9', columnId: 'Item1', colspan: 3 }, { rowId: '9', columnId: 'Item2', colspan: 2 }, { rowId: '9', columnId: 'Item3', colspan: 2 }, { rowId: '9', columnId: 'Item4', colspan: 2 }, { rowId: '9', columnId: 'Item5', colspan: 3 }, { rowId: '9', columnId: 'Item6', colspan: 2 }, { rowId: '9', columnId: 'Item7', colspan: 3 }, { rowId: '9', columnId: 'Item8', colspan: 2 }, { rowId: '9', columnId: 'Item9', colspan: 3 }, { rowId: '9', columnId: 'Item10', colspan: 3 }, { rowId: '9', columnId: 'Item11', colspan: 2 }, { rowId: '9', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '10', columnId: 'ProjectName', colspan: 2 }, { rowId: '10', columnId: 'Item1', colspan: 3 }, { rowId: '10', columnId: 'Item2', colspan: 2 }, { rowId: '10', columnId: 'Item3', colspan: 2 }, { rowId: '10', columnId: 'Item4', colspan: 2 }, { rowId: '10', columnId: 'Item5', colspan: 3 }, { rowId: '10', columnId: 'Item6', colspan: 2 }, { rowId: '10', columnId: 'Item7', colspan: 3 }, { rowId: '10', columnId: 'Item8', colspan: 2 }, { rowId: '10', columnId: 'Item9', colspan: 3 }, { rowId: '10', columnId: 'Item10', colspan: 3 }, { rowId: '10', columnId: 'Item11', colspan: 2 }, { rowId: '10', columnId: 'Item12', colspan: 3 },
|
||||
{ rowId: '11', columnId: 'ProjectName', colspan: 2 }, { rowId: '11', columnId: 'Item1', colspan: 3 }, { rowId: '11', columnId: 'Item2', colspan: 2 }, { rowId: '11', columnId: 'Item3', colspan: 2 }, { rowId: '11', columnId: 'Item4', colspan: 2 }, { rowId: '11', columnId: 'Item5', colspan: 3 }, { rowId: '11', columnId: 'Item6', colspan: 2 }, { rowId: '11', columnId: 'Item7', colspan: 3 }, { rowId: '11', columnId: 'Item8', colspan: 2 }, { rowId: '11', columnId: 'Item9', colspan: 3 }, { rowId: '11', columnId: 'Item10', colspan: 3 }, { rowId: '11', columnId: 'Item11', colspan: 2 }, { rowId: '11', columnId: 'Item12', colspan: 3 }
|
||||
]);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -10,6 +10,7 @@ namespace FineUIPro.Web.ZHGL.TestRunPerformance
|
|||
{
|
||||
public partial class TestRunPerformanceMonthReportEdit : PageBase
|
||||
{
|
||||
public string rows;
|
||||
|
||||
#region 加载
|
||||
/// <summary>
|
||||
|
@ -129,7 +130,6 @@ namespace FineUIPro.Web.ZHGL.TestRunPerformance
|
|||
table.Columns.Add(new DataColumn("SumDays3", typeof(String)));
|
||||
DataRow row;
|
||||
row = table.NewRow();
|
||||
//row["Id"] = SQLHelper.GetNewID();
|
||||
row["Id"] = "AAA";
|
||||
row["ProjectName"] = "年度累计数据";
|
||||
row["Item1"] = getTestRunPerformances.Where(x => x.Type == "部门基础工作").Sum(x => x.Days ?? 0);
|
||||
|
@ -253,7 +253,7 @@ namespace FineUIPro.Web.ZHGL.TestRunPerformance
|
|||
for (int i = 0; i < months.Count; i++)
|
||||
{
|
||||
row = table.NewRow();
|
||||
row["Id"] = SQLHelper.GetNewID();
|
||||
row["Id"] = i;
|
||||
row["Code"] = GetNum(i + 1);
|
||||
row["ProjectName"] = months[i].Year + "年" + months[i].Month + "月开车绩效";
|
||||
row["Item1"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "部门基础工作").Sum(x => x.Days ?? 0);
|
||||
|
@ -450,6 +450,7 @@ namespace FineUIPro.Web.ZHGL.TestRunPerformance
|
|||
a++;
|
||||
}
|
||||
}
|
||||
//rows = rows.Substring(0, rows.Length - 1);
|
||||
this.Grid1.DataSource = table;
|
||||
this.Grid1.DataBind();
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="考核标准" EnableCollapse="false" runat="server" PageSize="1000"
|
||||
BoxFlex="1" DataKeyNames="TestRunPerformanceStandardId" AllowCellEditing="true" EnableColumnLines="true" SortField="Code1,Code2,Code3" SortDirection="ASC"
|
||||
ClicksToEdit="1" DataIDField="TestRunPerformanceStandardId" AllowSorting="true" EnableRowDoubleClickEvent="false " OnRowDoubleClick="Grid1_RowDoubleClick"
|
||||
ClicksToEdit="1" DataIDField="TestRunPerformanceStandardId" AllowSorting="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
|
||||
EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar4" ToolbarAlign="Right" runat="server">
|
||||
|
|
|
@ -7,4 +7,7 @@
|
|||
<TreeNode id="AAF841AA-2EE8-4FEC-B1FB-B978736C6E1F" Text="员工责任书" NavigateUrl="Personal/PersonDuty.aspx"></TreeNode>
|
||||
<TreeNode id="CB373458-30B0-4850-ABFF-B38D40A04D43" Text="员工绩效考核结果" NavigateUrl="Personal/PersonCheckInfo.aspx"></TreeNode>
|
||||
<TreeNode id="6549EF60-1DED-4912-8D2D-7B32A80A2DEC" Text="视频会议" NavigateUrl="Personal/PersonMeeting.aspx"></TreeNode>
|
||||
<TreeNode id="522EAECC-3D40-4804-A066-A43BA8F6BFC1" Text="员工出差记录" NavigateUrl="Personal/BusinessTrip.aspx"></TreeNode>
|
||||
<TreeNode id="16229932-671B-4E04-BB61-A5C7DE4CE47F" Text="员工开车绩效记录" NavigateUrl="Personal/TestRunPerformance.aspx"></TreeNode>
|
||||
<TreeNode id="F0792B77-AEE4-4834-82C2-E5B75D0B0AB7" Text="开车月技术总结" NavigateUrl="Personal/TestRunMonthSummary.aspx"></TreeNode>
|
||||
</Tree>
|
|
@ -84,5 +84,6 @@
|
|||
<TreeNode id="EA413D2A-8D29-4DE2-932D-8511BB7F6CB2" Text="各项目巡查汇总" NavigateUrl="ZHGL/InspectionSummary/InspectionSummary.aspx"></TreeNode>
|
||||
<TreeNode id="F2133BD6-C786-407A-AD6F-3EEF613229A8" Text="施工管理绩效数据" NavigateUrl="ZHGL/Performance/PerformanceAllData.aspx"></TreeNode>
|
||||
<TreeNode id="53D8CED2-9AA7-43EA-B27D-EA10A06DF713" Text="开车人员绩效管理" NavigateUrl=""><TreeNode id="383290E0-60AE-4D16-8B5E-3899B85EC2ED" Text="开车绩效评分标准" NavigateUrl="ZHGL/TestRunPerformance/TestRunPerformanceStandard.aspx"></TreeNode>
|
||||
<TreeNode id="C1240FCB-4C72-445E-82B5-EBFAA87D0AC6" Text="开车人员月绩效报告" NavigateUrl="ZHGL/TestRunPerformance/TestRunPerformanceMonthReport.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
</Tree>
|
|
@ -22,7 +22,7 @@ namespace Model
|
|||
using System;
|
||||
|
||||
|
||||
public partial class SGGLDB_WH : System.Data.Linq.DataContext
|
||||
public partial class SGGLDB : System.Data.Linq.DataContext
|
||||
{
|
||||
|
||||
private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
|
||||
|
@ -1673,6 +1673,9 @@ namespace Model
|
|||
partial void InsertPerson_ShuntDetail(Person_ShuntDetail instance);
|
||||
partial void UpdatePerson_ShuntDetail(Person_ShuntDetail instance);
|
||||
partial void DeletePerson_ShuntDetail(Person_ShuntDetail instance);
|
||||
partial void InsertPerson_TestRunMonthSummary(Person_TestRunMonthSummary instance);
|
||||
partial void UpdatePerson_TestRunMonthSummary(Person_TestRunMonthSummary instance);
|
||||
partial void DeletePerson_TestRunMonthSummary(Person_TestRunMonthSummary instance);
|
||||
partial void InsertPerson_TestRunPerformance(Person_TestRunPerformance instance);
|
||||
partial void UpdatePerson_TestRunPerformance(Person_TestRunPerformance instance);
|
||||
partial void DeletePerson_TestRunPerformance(Person_TestRunPerformance instance);
|
||||
|
@ -2582,6 +2585,9 @@ namespace Model
|
|||
partial void InsertZHGL_ConstructionReportApprove(ZHGL_ConstructionReportApprove instance);
|
||||
partial void UpdateZHGL_ConstructionReportApprove(ZHGL_ConstructionReportApprove instance);
|
||||
partial void DeleteZHGL_ConstructionReportApprove(ZHGL_ConstructionReportApprove instance);
|
||||
partial void InsertZHGL_TestRunMonthSummaryReport(ZHGL_TestRunMonthSummaryReport instance);
|
||||
partial void UpdateZHGL_TestRunMonthSummaryReport(ZHGL_TestRunMonthSummaryReport instance);
|
||||
partial void DeleteZHGL_TestRunMonthSummaryReport(ZHGL_TestRunMonthSummaryReport instance);
|
||||
partial void InsertZHGL_TestRunPerformanceMonthReport(ZHGL_TestRunPerformanceMonthReport instance);
|
||||
partial void UpdateZHGL_TestRunPerformanceMonthReport(ZHGL_TestRunPerformanceMonthReport instance);
|
||||
partial void DeleteZHGL_TestRunPerformanceMonthReport(ZHGL_TestRunPerformanceMonthReport instance);
|
||||
|
@ -2596,25 +2602,25 @@ namespace Model
|
|||
partial void DeleteZHGL_WorkHandoverDetail(ZHGL_WorkHandoverDetail instance);
|
||||
#endregion
|
||||
|
||||
public SGGLDB_WH(string connection) :
|
||||
public SGGLDB(string connection) :
|
||||
base(connection, mappingSource)
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
public SGGLDB_WH(System.Data.IDbConnection connection) :
|
||||
public SGGLDB(System.Data.IDbConnection connection) :
|
||||
base(connection, mappingSource)
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
public SGGLDB_WH(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
||||
public SGGLDB(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
||||
base(connection, mappingSource)
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
public SGGLDB_WH(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
||||
public SGGLDB(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
|
||||
base(connection, mappingSource)
|
||||
{
|
||||
OnCreated();
|
||||
|
@ -7012,6 +7018,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Person_TestRunMonthSummary> Person_TestRunMonthSummary
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<Person_TestRunMonthSummary>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<Person_TestRunPerformance> Person_TestRunPerformance
|
||||
{
|
||||
get
|
||||
|
@ -10452,6 +10466,14 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<ZHGL_TestRunMonthSummaryReport> ZHGL_TestRunMonthSummaryReport
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.GetTable<ZHGL_TestRunMonthSummaryReport>();
|
||||
}
|
||||
}
|
||||
|
||||
public System.Data.Linq.Table<ZHGL_TestRunPerformanceMonthReport> ZHGL_TestRunPerformanceMonthReport
|
||||
{
|
||||
get
|
||||
|
@ -98339,10 +98361,10 @@ namespace Model
|
|||
|
||||
private string _ProjectId;
|
||||
|
||||
private string _CNProfessionalId;
|
||||
|
||||
private string _DraCode;
|
||||
|
||||
private string _CNProfessionalId;
|
||||
|
||||
private System.Nullable<System.DateTime> _ReviewDate;
|
||||
|
||||
private string _UnitWorkId;
|
||||
|
@ -98365,10 +98387,10 @@ namespace Model
|
|||
partial void OnIdChanged();
|
||||
partial void OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnCNProfessionalIdChanging(string value);
|
||||
partial void OnCNProfessionalIdChanged();
|
||||
partial void OnDraCodeChanging(string value);
|
||||
partial void OnDraCodeChanged();
|
||||
partial void OnCNProfessionalIdChanging(string value);
|
||||
partial void OnCNProfessionalIdChanged();
|
||||
partial void OnReviewDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnReviewDateChanged();
|
||||
partial void OnUnitWorkIdChanging(string value);
|
||||
|
@ -98410,7 +98432,7 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
|
@ -98430,6 +98452,26 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DraCode", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
|
||||
public string DraCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DraCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DraCode != value))
|
||||
{
|
||||
this.OnDraCodeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._DraCode = value;
|
||||
this.SendPropertyChanged("DraCode");
|
||||
this.OnDraCodeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CNProfessionalId", DbType="NVarChar(50)")]
|
||||
public string CNProfessionalId
|
||||
{
|
||||
|
@ -98450,26 +98492,6 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DraCode", DbType="NVarChar(50)")]
|
||||
public string DraCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._DraCode;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._DraCode != value))
|
||||
{
|
||||
this.OnDraCodeChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._DraCode = value;
|
||||
this.SendPropertyChanged("DraCode");
|
||||
this.OnDraCodeChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> ReviewDate
|
||||
{
|
||||
|
@ -264615,6 +264637,277 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Person_TestRunMonthSummary")]
|
||||
public partial class Person_TestRunMonthSummary : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _TestRunMonthSummaryId;
|
||||
|
||||
private string _ProjectId;
|
||||
|
||||
private string _UserId;
|
||||
|
||||
private string _ProcessName;
|
||||
|
||||
private System.Nullable<System.DateTime> _RaiseDate;
|
||||
|
||||
private string _ProblemDescription;
|
||||
|
||||
private string _HandleMethod;
|
||||
|
||||
private string _ExperienceOrSuggestion;
|
||||
|
||||
private EntityRef<Sys_User> _Sys_User;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnTestRunMonthSummaryIdChanging(string value);
|
||||
partial void OnTestRunMonthSummaryIdChanged();
|
||||
partial void OnProjectIdChanging(string value);
|
||||
partial void OnProjectIdChanged();
|
||||
partial void OnUserIdChanging(string value);
|
||||
partial void OnUserIdChanged();
|
||||
partial void OnProcessNameChanging(string value);
|
||||
partial void OnProcessNameChanged();
|
||||
partial void OnRaiseDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnRaiseDateChanged();
|
||||
partial void OnProblemDescriptionChanging(string value);
|
||||
partial void OnProblemDescriptionChanged();
|
||||
partial void OnHandleMethodChanging(string value);
|
||||
partial void OnHandleMethodChanged();
|
||||
partial void OnExperienceOrSuggestionChanging(string value);
|
||||
partial void OnExperienceOrSuggestionChanged();
|
||||
#endregion
|
||||
|
||||
public Person_TestRunMonthSummary()
|
||||
{
|
||||
this._Sys_User = default(EntityRef<Sys_User>);
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestRunMonthSummaryId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string TestRunMonthSummaryId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TestRunMonthSummaryId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TestRunMonthSummaryId != value))
|
||||
{
|
||||
this.OnTestRunMonthSummaryIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TestRunMonthSummaryId = value;
|
||||
this.SendPropertyChanged("TestRunMonthSummaryId");
|
||||
this.OnTestRunMonthSummaryIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProjectId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProjectId != value))
|
||||
{
|
||||
this.OnProjectIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ProjectId = value;
|
||||
this.SendPropertyChanged("ProjectId");
|
||||
this.OnProjectIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)")]
|
||||
public string UserId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UserId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UserId != value))
|
||||
{
|
||||
if (this._Sys_User.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnUserIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UserId = value;
|
||||
this.SendPropertyChanged("UserId");
|
||||
this.OnUserIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProcessName", DbType="NVarChar(50)")]
|
||||
public string ProcessName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProcessName;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProcessName != value))
|
||||
{
|
||||
this.OnProcessNameChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ProcessName = value;
|
||||
this.SendPropertyChanged("ProcessName");
|
||||
this.OnProcessNameChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RaiseDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> RaiseDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._RaiseDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._RaiseDate != value))
|
||||
{
|
||||
this.OnRaiseDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._RaiseDate = value;
|
||||
this.SendPropertyChanged("RaiseDate");
|
||||
this.OnRaiseDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProblemDescription", DbType="NVarChar(4000)")]
|
||||
public string ProblemDescription
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ProblemDescription;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ProblemDescription != value))
|
||||
{
|
||||
this.OnProblemDescriptionChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ProblemDescription = value;
|
||||
this.SendPropertyChanged("ProblemDescription");
|
||||
this.OnProblemDescriptionChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HandleMethod", DbType="NVarChar(4000)")]
|
||||
public string HandleMethod
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._HandleMethod;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._HandleMethod != value))
|
||||
{
|
||||
this.OnHandleMethodChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._HandleMethod = value;
|
||||
this.SendPropertyChanged("HandleMethod");
|
||||
this.OnHandleMethodChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ExperienceOrSuggestion", DbType="NVarChar(4000)")]
|
||||
public string ExperienceOrSuggestion
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._ExperienceOrSuggestion;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._ExperienceOrSuggestion != value))
|
||||
{
|
||||
this.OnExperienceOrSuggestionChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._ExperienceOrSuggestion = value;
|
||||
this.SendPropertyChanged("ExperienceOrSuggestion");
|
||||
this.OnExperienceOrSuggestionChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_TestRunMonthSummary_Sys_User", Storage="_Sys_User", ThisKey="UserId", OtherKey="UserId", IsForeignKey=true)]
|
||||
public Sys_User Sys_User
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Sys_User.Entity;
|
||||
}
|
||||
set
|
||||
{
|
||||
Sys_User previousValue = this._Sys_User.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Sys_User.HasLoadedOrAssignedValue == false)))
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Sys_User.Entity = null;
|
||||
previousValue.Person_TestRunMonthSummary.Remove(this);
|
||||
}
|
||||
this._Sys_User.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.Person_TestRunMonthSummary.Add(this);
|
||||
this._UserId = value.UserId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._UserId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Sys_User");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected virtual void SendPropertyChanging()
|
||||
{
|
||||
if ((this.PropertyChanging != null))
|
||||
{
|
||||
this.PropertyChanging(this, emptyChangingEventArgs);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void SendPropertyChanged(String propertyName)
|
||||
{
|
||||
if ((this.PropertyChanged != null))
|
||||
{
|
||||
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Person_TestRunPerformance")]
|
||||
public partial class Person_TestRunPerformance : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
@ -264635,6 +264928,8 @@ namespace Model
|
|||
|
||||
private System.Nullable<int> _Days;
|
||||
|
||||
private System.Nullable<int> _Num;
|
||||
|
||||
private EntityRef<Base_TestRunPerformanceStandard> _Base_TestRunPerformanceStandard;
|
||||
|
||||
private EntityRef<Sys_User> _Sys_User;
|
||||
|
@ -264657,6 +264952,8 @@ namespace Model
|
|||
partial void OnTestRunPerformanceStandardIdChanged();
|
||||
partial void OnDaysChanging(System.Nullable<int> value);
|
||||
partial void OnDaysChanged();
|
||||
partial void OnNumChanging(System.Nullable<int> value);
|
||||
partial void OnNumChanged();
|
||||
#endregion
|
||||
|
||||
public Person_TestRunPerformance()
|
||||
|
@ -264814,6 +265111,26 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Num", DbType="Int")]
|
||||
public System.Nullable<int> Num
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Num;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Num != value))
|
||||
{
|
||||
this.OnNumChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Num = value;
|
||||
this.SendPropertyChanged("Num");
|
||||
this.OnNumChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_TestRunPerformance_Base_TestRunPerformanceStandard", Storage="_Base_TestRunPerformanceStandard", ThisKey="TestRunPerformanceStandardId", OtherKey="TestRunPerformanceStandardId", IsForeignKey=true)]
|
||||
public Base_TestRunPerformanceStandard Base_TestRunPerformanceStandard
|
||||
{
|
||||
|
@ -340855,6 +341172,8 @@ namespace Model
|
|||
|
||||
private EntitySet<Person_ShuntDetail> _Person_ShuntDetail;
|
||||
|
||||
private EntitySet<Person_TestRunMonthSummary> _Person_TestRunMonthSummary;
|
||||
|
||||
private EntitySet<Person_TestRunPerformance> _Person_TestRunPerformance;
|
||||
|
||||
private EntitySet<Person_TrainingPerson> _Person_TrainingPerson;
|
||||
|
@ -341400,6 +341719,7 @@ namespace Model
|
|||
this._Person_Shunt = new EntitySet<Person_Shunt>(new Action<Person_Shunt>(this.attach_Person_Shunt), new Action<Person_Shunt>(this.detach_Person_Shunt));
|
||||
this._Person_ShuntApprove = new EntitySet<Person_ShuntApprove>(new Action<Person_ShuntApprove>(this.attach_Person_ShuntApprove), new Action<Person_ShuntApprove>(this.detach_Person_ShuntApprove));
|
||||
this._Person_ShuntDetail = new EntitySet<Person_ShuntDetail>(new Action<Person_ShuntDetail>(this.attach_Person_ShuntDetail), new Action<Person_ShuntDetail>(this.detach_Person_ShuntDetail));
|
||||
this._Person_TestRunMonthSummary = new EntitySet<Person_TestRunMonthSummary>(new Action<Person_TestRunMonthSummary>(this.attach_Person_TestRunMonthSummary), new Action<Person_TestRunMonthSummary>(this.detach_Person_TestRunMonthSummary));
|
||||
this._Person_TestRunPerformance = new EntitySet<Person_TestRunPerformance>(new Action<Person_TestRunPerformance>(this.attach_Person_TestRunPerformance), new Action<Person_TestRunPerformance>(this.detach_Person_TestRunPerformance));
|
||||
this._Person_TrainingPerson = new EntitySet<Person_TrainingPerson>(new Action<Person_TrainingPerson>(this.attach_Person_TrainingPerson), new Action<Person_TrainingPerson>(this.detach_Person_TrainingPerson));
|
||||
this._Person_TrainingPlan = new EntitySet<Person_TrainingPlan>(new Action<Person_TrainingPlan>(this.attach_Person_TrainingPlan), new Action<Person_TrainingPlan>(this.detach_Person_TrainingPlan));
|
||||
|
@ -345769,6 +346089,19 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_TestRunMonthSummary_Sys_User", Storage="_Person_TestRunMonthSummary", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Person_TestRunMonthSummary> Person_TestRunMonthSummary
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Person_TestRunMonthSummary;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._Person_TestRunMonthSummary.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_TestRunPerformance_Sys_User", Storage="_Person_TestRunPerformance", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<Person_TestRunPerformance> Person_TestRunPerformance
|
||||
{
|
||||
|
@ -350070,6 +350403,18 @@ namespace Model
|
|||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_Person_TestRunMonthSummary(Person_TestRunMonthSummary entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = this;
|
||||
}
|
||||
|
||||
private void detach_Person_TestRunMonthSummary(Person_TestRunMonthSummary entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Sys_User = null;
|
||||
}
|
||||
|
||||
private void attach_Person_TestRunPerformance(Person_TestRunPerformance entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
|
@ -443492,6 +443837,164 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ZHGL_TestRunMonthSummaryReport")]
|
||||
public partial class ZHGL_TestRunMonthSummaryReport : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
||||
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||
|
||||
private string _TestRunMonthSummaryReportId;
|
||||
|
||||
private System.Nullable<int> _Year;
|
||||
|
||||
private string _UserId;
|
||||
|
||||
private string _CompileMan;
|
||||
|
||||
private System.Nullable<System.DateTime> _CompileDate;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
partial void OnCreated();
|
||||
partial void OnTestRunMonthSummaryReportIdChanging(string value);
|
||||
partial void OnTestRunMonthSummaryReportIdChanged();
|
||||
partial void OnYearChanging(System.Nullable<int> value);
|
||||
partial void OnYearChanged();
|
||||
partial void OnUserIdChanging(string value);
|
||||
partial void OnUserIdChanged();
|
||||
partial void OnCompileManChanging(string value);
|
||||
partial void OnCompileManChanged();
|
||||
partial void OnCompileDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnCompileDateChanged();
|
||||
#endregion
|
||||
|
||||
public ZHGL_TestRunMonthSummaryReport()
|
||||
{
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestRunMonthSummaryReportId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||
public string TestRunMonthSummaryReportId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TestRunMonthSummaryReportId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TestRunMonthSummaryReportId != value))
|
||||
{
|
||||
this.OnTestRunMonthSummaryReportIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TestRunMonthSummaryReportId = value;
|
||||
this.SendPropertyChanged("TestRunMonthSummaryReportId");
|
||||
this.OnTestRunMonthSummaryReportIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Year", DbType="Int")]
|
||||
public System.Nullable<int> Year
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Year;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._Year != value))
|
||||
{
|
||||
this.OnYearChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._Year = value;
|
||||
this.SendPropertyChanged("Year");
|
||||
this.OnYearChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="NVarChar(50)")]
|
||||
public string UserId
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._UserId;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._UserId != value))
|
||||
{
|
||||
this.OnUserIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._UserId = value;
|
||||
this.SendPropertyChanged("UserId");
|
||||
this.OnUserIdChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileMan", DbType="NVarChar(50)")]
|
||||
public string CompileMan
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CompileMan;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CompileMan != value))
|
||||
{
|
||||
this.OnCompileManChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CompileMan = value;
|
||||
this.SendPropertyChanged("CompileMan");
|
||||
this.OnCompileManChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompileDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> CompileDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._CompileDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._CompileDate != value))
|
||||
{
|
||||
this.OnCompileDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._CompileDate = value;
|
||||
this.SendPropertyChanged("CompileDate");
|
||||
this.OnCompileDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
protected virtual void SendPropertyChanging()
|
||||
{
|
||||
if ((this.PropertyChanging != null))
|
||||
{
|
||||
this.PropertyChanging(this, emptyChangingEventArgs);
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void SendPropertyChanged(String propertyName)
|
||||
{
|
||||
if ((this.PropertyChanged != null))
|
||||
{
|
||||
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ZHGL_TestRunPerformanceMonthReport")]
|
||||
public partial class ZHGL_TestRunPerformanceMonthReport : INotifyPropertyChanging, INotifyPropertyChanged
|
||||
{
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
</system.Web>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation debug="false" targetFramework="4.6.1"/>
|
||||
<compilation debug="true" targetFramework="4.6.1"/>
|
||||
<httpRuntime/>
|
||||
<pages controlRenderingCompatibilityVersion="4.0"/>
|
||||
</system.web>
|
||||
|
|
Loading…
Reference in New Issue