Merge branch 'master' of http://47.104.102.122:3000/panhf/CNCEC_SUBQHSE_WUHUAN
This commit is contained in:
commit
c3f952cc79
|
@ -0,0 +1,168 @@
|
||||||
|
alter table DriverGoods_GoodsBuyItem add Num nvarchar(50) null
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
ALTER VIEW [dbo].[View_DriverGoods_GoodsBuyItem]
|
||||||
|
/*试车请购单明细表查询列表*/
|
||||||
|
AS
|
||||||
|
SELECT Item.GoodsBuyItemId,
|
||||||
|
Item.GoodsBuyId,
|
||||||
|
Item.GoodsModelId,
|
||||||
|
Item.Num,
|
||||||
|
Model.Quantity,
|
||||||
|
Item.RequiredTime,
|
||||||
|
Model.Code,
|
||||||
|
Model.ProjectId,
|
||||||
|
Model.Description,
|
||||||
|
Model.Purpose,
|
||||||
|
Model.Attachment,
|
||||||
|
Model.Remark
|
||||||
|
FROM dbo.DriverGoods_GoodsBuyItem AS Item
|
||||||
|
LEFT JOIN dbo.DriverGoods_GoodsModel AS Model ON Model.GoodsModelId=Item.GoodsModelId
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE [dbo].[Person_BusinessTrip](
|
||||||
|
[BusinessTripId] [nvarchar](50) NOT NULL,
|
||||||
|
[Type] [char](1) NULL,
|
||||||
|
[ProjectId] [nvarchar](50) NULL,
|
||||||
|
[UserId] [nvarchar](50) NULL,
|
||||||
|
[ArriveDate] [datetime] NULL,
|
||||||
|
[LeaveDate] [datetime] NULL,
|
||||||
|
CONSTRAINT [PK_Person_BusinessTrip] PRIMARY KEY CLUSTERED
|
||||||
|
(
|
||||||
|
[BusinessTripId] 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
|
||||||
|
|
||||||
|
SET ANSI_PADDING OFF
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[Person_BusinessTrip] WITH CHECK ADD CONSTRAINT [FK_Person_BusinessTrip_Sys_User] FOREIGN KEY([UserId])
|
||||||
|
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[Person_BusinessTrip] CHECK CONSTRAINT [FK_Person_BusinessTrip_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_BusinessTrip', @level2type=N'COLUMN',@level2name=N'BusinessTripId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'类型(1-项目出差,2-其他出差)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_BusinessTrip', @level2type=N'COLUMN',@level2name=N'Type'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_BusinessTrip', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'用户Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_BusinessTrip', @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_BusinessTrip', @level2type=N'COLUMN',@level2name=N'ArriveDate'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'离开日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_BusinessTrip', @level2type=N'COLUMN',@level2name=N'LeaveDate'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'员工出差记录表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_BusinessTrip'
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE [dbo].[Person_TestRunPerformance](
|
||||||
|
[TestRunPerformanceId] [nvarchar](50) NOT NULL,
|
||||||
|
[ProjectId] [nvarchar](50) NULL,
|
||||||
|
[UserId] [nvarchar](50) NULL,
|
||||||
|
[Months] [datetime] NULL,
|
||||||
|
[JobContent] [nvarchar](300) NULL,
|
||||||
|
[TestRunPerformanceStandardId] [nvarchar](50) NULL,
|
||||||
|
[Days] [int] NULL,
|
||||||
|
CONSTRAINT [PK_Person_TestRunPerformance] PRIMARY KEY CLUSTERED
|
||||||
|
(
|
||||||
|
[TestRunPerformanceId] 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_TestRunPerformance] WITH CHECK ADD CONSTRAINT [FK_Person_TestRunPerformance_Base_TestRunPerformanceStandard] FOREIGN KEY([TestRunPerformanceStandardId])
|
||||||
|
REFERENCES [dbo].[Base_TestRunPerformanceStandard] ([TestRunPerformanceStandardId])
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[Person_TestRunPerformance] CHECK CONSTRAINT [FK_Person_TestRunPerformance_Base_TestRunPerformanceStandard]
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[Person_TestRunPerformance] WITH CHECK ADD CONSTRAINT [FK_Person_TestRunPerformance_Sys_User] FOREIGN KEY([UserId])
|
||||||
|
REFERENCES [dbo].[Sys_User] ([UserId])
|
||||||
|
GO
|
||||||
|
|
||||||
|
ALTER TABLE [dbo].[Person_TestRunPerformance] CHECK CONSTRAINT [FK_Person_TestRunPerformance_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_TestRunPerformance', @level2type=N'COLUMN',@level2name=N'TestRunPerformanceId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunPerformance', @level2type=N'COLUMN',@level2name=N'ProjectId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'用户Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunPerformance', @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_TestRunPerformance', @level2type=N'COLUMN',@level2name=N'Months'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'考核标准Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunPerformance', @level2type=N'COLUMN',@level2name=N'TestRunPerformanceStandardId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'标准工作日' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunPerformance', @level2type=N'COLUMN',@level2name=N'Days'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'个人开车绩效记录表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Person_TestRunPerformance'
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
CREATE TABLE [dbo].[ZHGL_TestRunPerformanceMonthReport](
|
||||||
|
[TestRunPerformanceMonthReportId] [nvarchar](50) NOT NULL,
|
||||||
|
[Year] [int] NULL,
|
||||||
|
[UserId] [nvarchar](50) NULL,
|
||||||
|
[CompileMan] [nvarchar](50) NULL,
|
||||||
|
[CompileDate] [datetime] NULL,
|
||||||
|
CONSTRAINT [PK_ZHGL_TestRunPerformanceMonthReport] PRIMARY KEY CLUSTERED
|
||||||
|
(
|
||||||
|
[TestRunPerformanceMonthReportId] 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_TestRunPerformanceMonthReport', @level2type=N'COLUMN',@level2name=N'TestRunPerformanceMonthReportId'
|
||||||
|
GO
|
||||||
|
|
||||||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'年份' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_TestRunPerformanceMonthReport', @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_TestRunPerformanceMonthReport', @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_TestRunPerformanceMonthReport', @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_TestRunPerformanceMonthReport', @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_TestRunPerformanceMonthReport'
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
|
@ -43,3 +43,29 @@ GO
|
||||||
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
VALUES('6549EF60-1DED-4912-8D2D-7B32A80A2DEC','视频会议','Personal/PersonMeeting.aspx',60,'0','Menu_Personal',0,1,1)
|
VALUES('6549EF60-1DED-4912-8D2D-7B32A80A2DEC','视频会议','Personal/PersonMeeting.aspx',60,'0','Menu_Personal',0,1,1)
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('522EAECC-3D40-4804-A066-A43BA8F6BFC1','员工出差记录','Personal/BusinessTrip.aspx',70,'0','Menu_Personal',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('8B969A75-E5CC-424F-A3FA-4AABAFD83776','522EAECC-3D40-4804-A066-A43BA8F6BFC1','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('577F9981-3EA0-4EFA-A37F-D34313FA75A0','522EAECC-3D40-4804-A066-A43BA8F6BFC1','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('F6CCDCAF-D922-4463-A446-21F5202F88E3','522EAECC-3D40-4804-A066-A43BA8F6BFC1','保存',3)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('CA9037CE-F174-4664-9566-86313C4B8B70','522EAECC-3D40-4804-A066-A43BA8F6BFC1','删除',4)
|
||||||
|
GO
|
||||||
|
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('16229932-671B-4E04-BB61-A5C7DE4CE47F','员工开车绩效记录','Personal/TestRunPerformance.aspx',80,'0','Menu_Personal',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('85D7D848-2848-4DA8-817B-45854F823ACF','16229932-671B-4E04-BB61-A5C7DE4CE47F','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('5C7EED44-CA88-48DC-8F45-816CCFDD27BB','16229932-671B-4E04-BB61-A5C7DE4CE47F','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
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
|
|
@ -529,4 +529,16 @@ GO
|
||||||
VALUES('A14DE61A-2E1B-4F4D-84E8-D87DBB2C5F4D','383290E0-60AE-4D16-8B5E-3899B85EC2ED','保存',4)
|
VALUES('A14DE61A-2E1B-4F4D-84E8-D87DBB2C5F4D','383290E0-60AE-4D16-8B5E-3899B85EC2ED','保存',4)
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
|
VALUES('C1240FCB-4C72-445E-82B5-EBFAA87D0AC6','开车人员月绩效报告','ZHGL/TestRunPerformance/TestRunPerformanceMonthReport.aspx',20,'53D8CED2-9AA7-43EA-B27D-EA10A06DF713','Menu_ZHGL',0,1,1)
|
||||||
|
GO
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('05767250-EF45-4C24-8E19-E887E9267F48','C1240FCB-4C72-445E-82B5-EBFAA87D0AC6','增加',1)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('5A13E8B5-7932-4922-8DD8-0F85B3A30F13','C1240FCB-4C72-445E-82B5-EBFAA87D0AC6','修改',2)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('3C844A2A-0C2D-482C-90B7-1C94B5C76F92','C1240FCB-4C72-445E-82B5-EBFAA87D0AC6','删除',3)
|
||||||
|
INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
|
||||||
|
VALUES('EF60AF57-C14D-47C7-87E9-F9182B1C2D6A','C1240FCB-4C72-445E-82B5-EBFAA87D0AC6','保存',4)
|
||||||
|
GO
|
||||||
|
|
|
@ -639,6 +639,7 @@
|
||||||
<Compile Include="Party\ThemePartyDayService.cs" />
|
<Compile Include="Party\ThemePartyDayService.cs" />
|
||||||
<Compile Include="Party\TwoOneGoodSelectionService.cs" />
|
<Compile Include="Party\TwoOneGoodSelectionService.cs" />
|
||||||
<Compile Include="Party\WorkPlanService.cs" />
|
<Compile Include="Party\WorkPlanService.cs" />
|
||||||
|
<Compile Include="Person\Person_BusinessTripService.cs" />
|
||||||
<Compile Include="Person\Person_MeetingService.cs" />
|
<Compile Include="Person\Person_MeetingService.cs" />
|
||||||
<Compile Include="Person\PersonTotalService.cs" />
|
<Compile Include="Person\PersonTotalService.cs" />
|
||||||
<Compile Include="Person\Person_DutyService.cs" />
|
<Compile Include="Person\Person_DutyService.cs" />
|
||||||
|
@ -650,6 +651,7 @@
|
||||||
<Compile Include="Person\Person_ShuntApproveService.cs" />
|
<Compile Include="Person\Person_ShuntApproveService.cs" />
|
||||||
<Compile Include="Person\Person_ShuntDetailService.cs" />
|
<Compile Include="Person\Person_ShuntDetailService.cs" />
|
||||||
<Compile Include="Person\Person_ShuntService.cs" />
|
<Compile Include="Person\Person_ShuntService.cs" />
|
||||||
|
<Compile Include="Person\Person_TestRunPerformanceService.cs" />
|
||||||
<Compile Include="Person\Person_TrainingPlanService.cs" />
|
<Compile Include="Person\Person_TrainingPlanService.cs" />
|
||||||
<Compile Include="ProjectData\MainItemService.cs" />
|
<Compile Include="ProjectData\MainItemService.cs" />
|
||||||
<Compile Include="ProjectData\ProjectData_CodeTemplateRuleService.cs" />
|
<Compile Include="ProjectData\ProjectData_CodeTemplateRuleService.cs" />
|
||||||
|
@ -865,6 +867,7 @@
|
||||||
<Compile Include="ZHGL\Supervise\SuperviseCheckRectifyService.cs" />
|
<Compile Include="ZHGL\Supervise\SuperviseCheckRectifyService.cs" />
|
||||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportItemService.cs" />
|
<Compile Include="ZHGL\Supervise\SuperviseCheckReportItemService.cs" />
|
||||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportService.cs" />
|
<Compile Include="ZHGL\Supervise\SuperviseCheckReportService.cs" />
|
||||||
|
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReportService.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Model\Model.csproj">
|
<ProjectReference Include="..\Model\Model.csproj">
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
namespace BLL
|
namespace BLL
|
||||||
{
|
{
|
||||||
|
@ -102,5 +103,104 @@ namespace BLL
|
||||||
Funs.FineUIPleaseSelect(dropName);
|
Funs.FineUIPleaseSelect(dropName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static ListItem[] GetTypes()
|
||||||
|
{
|
||||||
|
var q = (from x in Funs.DB.Base_TestRunPerformanceStandard orderby x.Code select new { Value = x.Type, Code1 = x.Code1 }).Distinct().ToList();
|
||||||
|
q = q.OrderBy(x => x.Code1).ToList();
|
||||||
|
ListItem[] list = new ListItem[q.Count()];
|
||||||
|
for (int i = 0; i < q.Count(); i++)
|
||||||
|
{
|
||||||
|
list[i] = new ListItem(q[i].Value ?? "", q[i].Value);
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目表下拉框
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="dropName">下拉框名字</param>
|
||||||
|
/// <param name="isShowPlease">是否显示请选择</param>
|
||||||
|
public static void InitTypeDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||||
|
{
|
||||||
|
dropName.DataValueField = "Text";
|
||||||
|
dropName.DataTextField = "Text";
|
||||||
|
dropName.DataSource = GetTypes();
|
||||||
|
dropName.DataBind();
|
||||||
|
if (isShowPlease)
|
||||||
|
{
|
||||||
|
Funs.FineUIPleaseSelect(dropName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static ListItem[] GetItems(string type)
|
||||||
|
{
|
||||||
|
var q = (from x in Funs.DB.Base_TestRunPerformanceStandard where x.Type == type orderby x.Code select new { Value = x.Item, Code1 = x.Code2 }).Distinct().ToList();
|
||||||
|
q = q.OrderBy(x => x.Code1).ToList();
|
||||||
|
ListItem[] list = new ListItem[q.Count()];
|
||||||
|
for (int i = 0; i < q.Count(); i++)
|
||||||
|
{
|
||||||
|
list[i] = new ListItem(q[i].Value ?? "", q[i].Value);
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目表下拉框
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="dropName">下拉框名字</param>
|
||||||
|
/// <param name="isShowPlease">是否显示请选择</param>
|
||||||
|
public static void InitItemDropDownList(FineUIPro.DropDownList dropName, string type, bool isShowPlease)
|
||||||
|
{
|
||||||
|
dropName.DataValueField = "Text";
|
||||||
|
dropName.DataTextField = "Text";
|
||||||
|
dropName.DataSource = GetItems(type);
|
||||||
|
dropName.DataBind();
|
||||||
|
if (isShowPlease)
|
||||||
|
{
|
||||||
|
Funs.FineUIPleaseSelect(dropName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static ListItem[] GetUnits(string type, string item)
|
||||||
|
{
|
||||||
|
var q = (from x in Funs.DB.Base_TestRunPerformanceStandard where x.Type == type && x.Item == item orderby x.Code select new { Value = x.Unit, Code1 = x.Code3, x.TestRunPerformanceStandardId }).ToList();
|
||||||
|
q = q.OrderBy(x => x.Code1).ToList();
|
||||||
|
ListItem[] list = new ListItem[q.Count()];
|
||||||
|
for (int i = 0; i < q.Count(); i++)
|
||||||
|
{
|
||||||
|
list[i] = new ListItem(q[i].Value ?? "", q[i].TestRunPerformanceStandardId);
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目表下拉框
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="dropName">下拉框名字</param>
|
||||||
|
/// <param name="isShowPlease">是否显示请选择</param>
|
||||||
|
public static void InitUnitDropDownList(FineUIPro.DropDownList dropName, string type, string item, bool isShowPlease)
|
||||||
|
{
|
||||||
|
dropName.DataValueField = "Value";
|
||||||
|
dropName.DataTextField = "Text";
|
||||||
|
dropName.DataSource = GetUnits(type, item);
|
||||||
|
dropName.DataBind();
|
||||||
|
if (isShowPlease)
|
||||||
|
{
|
||||||
|
Funs.FineUIPleaseSelect(dropName);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -799,6 +799,16 @@ namespace BLL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string PersonDutyMenuId = "A913653D-1EBB-4F55-97C9-81CC5B5913C4";
|
public const string PersonDutyMenuId = "A913653D-1EBB-4F55-97C9-81CC5B5913C4";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 员工出差记录
|
||||||
|
/// </summary>
|
||||||
|
public const string BusinessTripMenuId = "522EAECC-3D40-4804-A066-A43BA8F6BFC1";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 员工开车绩效记录
|
||||||
|
/// </summary>
|
||||||
|
public const string TestRunPerformanceMenuId = "16229932-671B-4E04-BB61-A5C7DE4CE47F";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// HSSE公司管理规定发布
|
/// HSSE公司管理规定发布
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -4881,6 +4891,11 @@ namespace BLL
|
||||||
/// 开车绩效评分标准
|
/// 开车绩效评分标准
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string TestRunPerformanceStandardMenuId = "383290E0-60AE-4D16-8B5E-3899B85EC2ED";
|
public const string TestRunPerformanceStandardMenuId = "383290E0-60AE-4D16-8B5E-3899B85EC2ED";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 开车人员月绩效报告
|
||||||
|
/// </summary>
|
||||||
|
public const string TestRunPerformanceMonthReportMenuId = "C1240FCB-4C72-445E-82B5-EBFAA87D0AC6";
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 施工综合流程定义
|
#region 施工综合流程定义
|
||||||
|
|
|
@ -0,0 +1,74 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
public class Person_BusinessTripService
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取人员信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="BusinessTripId">人员Id</param>
|
||||||
|
/// <returns>人员信息</returns>
|
||||||
|
public static Model.Person_BusinessTrip GetPersonBusinessTripById(string BusinessTripId)
|
||||||
|
{
|
||||||
|
return Funs.DB.Person_BusinessTrip.FirstOrDefault(e => e.BusinessTripId == BusinessTripId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 增加人员总结信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="user">人员实体</param>
|
||||||
|
public static void AddPersonBusinessTrip(Model.Person_BusinessTrip BusinessTrip)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.Person_BusinessTrip newBusinessTrip = new Model.Person_BusinessTrip
|
||||||
|
{
|
||||||
|
BusinessTripId = BusinessTrip.BusinessTripId,
|
||||||
|
Type = BusinessTrip.Type,
|
||||||
|
ProjectId = BusinessTrip.ProjectId,
|
||||||
|
UserId = BusinessTrip.UserId,
|
||||||
|
ArriveDate = BusinessTrip.ArriveDate,
|
||||||
|
LeaveDate = BusinessTrip.LeaveDate,
|
||||||
|
};
|
||||||
|
db.Person_BusinessTrip.InsertOnSubmit(newBusinessTrip);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 修改人员总结信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="user">实体</param>
|
||||||
|
public static void UpdatePersonBusinessTrip(Model.Person_BusinessTrip BusinessTrip)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.Person_BusinessTrip newBusinessTrip = db.Person_BusinessTrip.FirstOrDefault(e => e.BusinessTripId == BusinessTrip.BusinessTripId);
|
||||||
|
if (newBusinessTrip != null)
|
||||||
|
{
|
||||||
|
newBusinessTrip.Type = BusinessTrip.Type;
|
||||||
|
newBusinessTrip.ProjectId = BusinessTrip.ProjectId;
|
||||||
|
newBusinessTrip.ArriveDate = BusinessTrip.ArriveDate;
|
||||||
|
newBusinessTrip.LeaveDate = BusinessTrip.LeaveDate;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据人员Id删除一个人员信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Person_BusinessTripId"></param>
|
||||||
|
public static void DeletePersonBusinessTrip(string BusinessTripId)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.Person_BusinessTrip user = db.Person_BusinessTrip.FirstOrDefault(e => e.BusinessTripId == BusinessTripId);
|
||||||
|
if (user != null)
|
||||||
|
{
|
||||||
|
db.Person_BusinessTrip.DeleteOnSubmit(user);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,75 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
public class Person_TestRunPerformanceService
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取人员信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="TestRunPerformanceId">人员Id</param>
|
||||||
|
/// <returns>人员信息</returns>
|
||||||
|
public static Model.Person_TestRunPerformance GetPersonTestRunPerformanceById(string TestRunPerformanceId)
|
||||||
|
{
|
||||||
|
return Funs.DB.Person_TestRunPerformance.FirstOrDefault(e => e.TestRunPerformanceId == TestRunPerformanceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 增加人员总结信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="user">人员实体</param>
|
||||||
|
public static void AddPersonTestRunPerformance(Model.Person_TestRunPerformance TestRunPerformance)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.Person_TestRunPerformance newTestRunPerformance = new Model.Person_TestRunPerformance
|
||||||
|
{
|
||||||
|
TestRunPerformanceId = TestRunPerformance.TestRunPerformanceId,
|
||||||
|
ProjectId = TestRunPerformance.ProjectId,
|
||||||
|
UserId = TestRunPerformance.UserId,
|
||||||
|
Months = TestRunPerformance.Months,
|
||||||
|
JobContent = TestRunPerformance.JobContent,
|
||||||
|
TestRunPerformanceStandardId = TestRunPerformance.TestRunPerformanceStandardId,
|
||||||
|
Days = TestRunPerformance.Days,
|
||||||
|
};
|
||||||
|
db.Person_TestRunPerformance.InsertOnSubmit(newTestRunPerformance);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 修改人员总结信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="user">实体</param>
|
||||||
|
public static void UpdatePersonTestRunPerformance(Model.Person_TestRunPerformance TestRunPerformance)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.Person_TestRunPerformance newTestRunPerformance = db.Person_TestRunPerformance.FirstOrDefault(e => e.TestRunPerformanceId == TestRunPerformance.TestRunPerformanceId);
|
||||||
|
if (newTestRunPerformance != null)
|
||||||
|
{
|
||||||
|
newTestRunPerformance.Months = TestRunPerformance.Months;
|
||||||
|
newTestRunPerformance.JobContent = TestRunPerformance.JobContent;
|
||||||
|
newTestRunPerformance.TestRunPerformanceStandardId = TestRunPerformance.TestRunPerformanceStandardId;
|
||||||
|
newTestRunPerformance.Days = TestRunPerformance.Days;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据人员Id删除一个人员信息
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="Person_TestRunPerformanceId"></param>
|
||||||
|
public static void DeletePersonTestRunPerformance(string TestRunPerformanceId)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.Person_TestRunPerformance user = db.Person_TestRunPerformance.FirstOrDefault(e => e.TestRunPerformanceId == TestRunPerformanceId);
|
||||||
|
if (user != null)
|
||||||
|
{
|
||||||
|
db.Person_TestRunPerformance.DeleteOnSubmit(user);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -391,6 +391,34 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 项目表下拉框
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="dropName">下拉框名字</param>
|
||||||
|
/// <param name="isShowPlease">是否显示请选择</param>
|
||||||
|
public static void InitAllProjectDropDownList2(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||||
|
{
|
||||||
|
dropName.DataValueField = "ProjectId";
|
||||||
|
dropName.DataTextField = "ProjectName";
|
||||||
|
var projectlist = BLL.ProjectService.GetAllProjectDropDownList();
|
||||||
|
Model.Base_Project project = new Base_Project();
|
||||||
|
project.ProjectId = "0";
|
||||||
|
project.ProjectName = "本部";
|
||||||
|
List<Model.Base_Project> list = new List<Base_Project>();
|
||||||
|
list.Add(project);
|
||||||
|
list.AddRange(projectlist);
|
||||||
|
dropName.DataSource = list;
|
||||||
|
dropName.DataBind();
|
||||||
|
if (projectlist.Count() == 0)
|
||||||
|
{
|
||||||
|
isShowPlease = true;
|
||||||
|
}
|
||||||
|
if (isShowPlease)
|
||||||
|
{
|
||||||
|
Funs.FineUIPleaseSelect(dropName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -44,6 +44,7 @@ namespace BLL
|
||||||
newGoodsBuyItem.GoodsBuyId = GoodsBuyItem.GoodsBuyId;
|
newGoodsBuyItem.GoodsBuyId = GoodsBuyItem.GoodsBuyId;
|
||||||
newGoodsBuyItem.GoodsModelId = GoodsBuyItem.GoodsModelId;
|
newGoodsBuyItem.GoodsModelId = GoodsBuyItem.GoodsModelId;
|
||||||
newGoodsBuyItem.Quantity = GoodsBuyItem.Quantity;
|
newGoodsBuyItem.Quantity = GoodsBuyItem.Quantity;
|
||||||
|
newGoodsBuyItem.Num = GoodsBuyItem.Num;
|
||||||
newGoodsBuyItem.RequiredTime = GoodsBuyItem.RequiredTime;
|
newGoodsBuyItem.RequiredTime = GoodsBuyItem.RequiredTime;
|
||||||
db.DriverGoods_GoodsBuyItem.InsertOnSubmit(newGoodsBuyItem);
|
db.DriverGoods_GoodsBuyItem.InsertOnSubmit(newGoodsBuyItem);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
|
|
@ -0,0 +1,72 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace BLL
|
||||||
|
{
|
||||||
|
public class TestRunPerformanceMonthReportService
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键获取开车人员月绩效报告
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="TestRunPerformanceMonthReportId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Model.ZHGL_TestRunPerformanceMonthReport GetTestRunPerformanceMonthReportById(string TestRunPerformanceMonthReportId)
|
||||||
|
{
|
||||||
|
return Funs.DB.ZHGL_TestRunPerformanceMonthReport.FirstOrDefault(e => e.TestRunPerformanceMonthReportId == TestRunPerformanceMonthReportId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 添加开车人员月绩效报告
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="TestRunPerformanceMonthReport"></param>
|
||||||
|
public static void AddTestRunPerformanceMonthReport(Model.ZHGL_TestRunPerformanceMonthReport TestRunPerformanceMonthReport)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.ZHGL_TestRunPerformanceMonthReport newTestRunPerformanceMonthReport = new Model.ZHGL_TestRunPerformanceMonthReport
|
||||||
|
{
|
||||||
|
TestRunPerformanceMonthReportId = TestRunPerformanceMonthReport.TestRunPerformanceMonthReportId,
|
||||||
|
Year = TestRunPerformanceMonthReport.Year,
|
||||||
|
UserId = TestRunPerformanceMonthReport.UserId,
|
||||||
|
CompileMan = TestRunPerformanceMonthReport.CompileMan,
|
||||||
|
CompileDate = TestRunPerformanceMonthReport.CompileDate
|
||||||
|
};
|
||||||
|
db.ZHGL_TestRunPerformanceMonthReport.InsertOnSubmit(newTestRunPerformanceMonthReport);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 修改开车人员月绩效报告
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="TestRunPerformanceMonthReport"></param>
|
||||||
|
public static void UpdateTestRunPerformanceMonthReport(Model.ZHGL_TestRunPerformanceMonthReport TestRunPerformanceMonthReport)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.ZHGL_TestRunPerformanceMonthReport newTestRunPerformanceMonthReport = db.ZHGL_TestRunPerformanceMonthReport.FirstOrDefault(e => e.TestRunPerformanceMonthReportId == TestRunPerformanceMonthReport.TestRunPerformanceMonthReportId);
|
||||||
|
if (newTestRunPerformanceMonthReport != null)
|
||||||
|
{
|
||||||
|
newTestRunPerformanceMonthReport.Year = TestRunPerformanceMonthReport.Year;
|
||||||
|
newTestRunPerformanceMonthReport.UserId = TestRunPerformanceMonthReport.UserId;
|
||||||
|
newTestRunPerformanceMonthReport.CompileMan = TestRunPerformanceMonthReport.CompileMan;
|
||||||
|
newTestRunPerformanceMonthReport.CompileDate = TestRunPerformanceMonthReport.CompileDate;
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 根据主键删除开车人员月绩效报告
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="TestRunPerformanceMonthReportId"></param>
|
||||||
|
public static void DeleteTestRunPerformanceMonthReportById(string TestRunPerformanceMonthReportId)
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
Model.ZHGL_TestRunPerformanceMonthReport TestRunPerformanceMonthReport = db.ZHGL_TestRunPerformanceMonthReport.FirstOrDefault(e => e.TestRunPerformanceMonthReportId == TestRunPerformanceMonthReportId);
|
||||||
|
if (TestRunPerformanceMonthReport != null)
|
||||||
|
{
|
||||||
|
db.ZHGL_TestRunPerformanceMonthReport.DeleteOnSubmit(TestRunPerformanceMonthReport);
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
|
@ -1454,11 +1454,15 @@
|
||||||
<Content Include="Party\TwoOneGoodSelectionEdit.aspx" />
|
<Content Include="Party\TwoOneGoodSelectionEdit.aspx" />
|
||||||
<Content Include="Party\WorkPlan.aspx" />
|
<Content Include="Party\WorkPlan.aspx" />
|
||||||
<Content Include="Party\WorkPlanEdit.aspx" />
|
<Content Include="Party\WorkPlanEdit.aspx" />
|
||||||
|
<Content Include="Personal\BusinessTrip.aspx" />
|
||||||
|
<Content Include="Personal\BusinessTripEdit.aspx" />
|
||||||
<Content Include="Personal\PersonMeeting.aspx" />
|
<Content Include="Personal\PersonMeeting.aspx" />
|
||||||
<Content Include="Personal\PersonMeetingEdit.aspx" />
|
<Content Include="Personal\PersonMeetingEdit.aspx" />
|
||||||
<Content Include="Personal\FileSearch.aspx" />
|
<Content Include="Personal\FileSearch.aspx" />
|
||||||
<Content Include="Personal\PersonCheckInfo.aspx" />
|
<Content Include="Personal\PersonCheckInfo.aspx" />
|
||||||
<Content Include="Personal\PersonDuty.aspx" />
|
<Content Include="Personal\PersonDuty.aspx" />
|
||||||
|
<Content Include="Personal\TestRunPerformance.aspx" />
|
||||||
|
<Content Include="Personal\TestRunPerformanceEdit.aspx" />
|
||||||
<Content Include="Person\PersonCheck.aspx" />
|
<Content Include="Person\PersonCheck.aspx" />
|
||||||
<Content Include="Person\PersonChecking.aspx" />
|
<Content Include="Person\PersonChecking.aspx" />
|
||||||
<Content Include="Person\PersonCheckingView.aspx" />
|
<Content Include="Person\PersonCheckingView.aspx" />
|
||||||
|
@ -2053,6 +2057,8 @@
|
||||||
<Content Include="ZHGL\Supervise\SuperviseCheckReport.aspx" />
|
<Content Include="ZHGL\Supervise\SuperviseCheckReport.aspx" />
|
||||||
<Content Include="ZHGL\Supervise\SuperviseCheckReportEdit.aspx" />
|
<Content Include="ZHGL\Supervise\SuperviseCheckReportEdit.aspx" />
|
||||||
<Content Include="common\font\DIN-Medium.otf" />
|
<Content Include="common\font\DIN-Medium.otf" />
|
||||||
|
<Content Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReport.aspx" />
|
||||||
|
<Content Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReportEdit.aspx" />
|
||||||
<Content Include="ZHGL\TestRunPerformance\TestRunPerformanceStandard.aspx" />
|
<Content Include="ZHGL\TestRunPerformance\TestRunPerformanceStandard.aspx" />
|
||||||
<Content Include="ZHGL\TestRunPerformance\TestRunPerformanceStandardEdit.aspx" />
|
<Content Include="ZHGL\TestRunPerformance\TestRunPerformanceStandardEdit.aspx" />
|
||||||
<None Include="Doc\help1.doc" />
|
<None Include="Doc\help1.doc" />
|
||||||
|
@ -14187,6 +14193,20 @@
|
||||||
<Compile Include="Party\WorkPlanEdit.aspx.designer.cs">
|
<Compile Include="Party\WorkPlanEdit.aspx.designer.cs">
|
||||||
<DependentUpon>WorkPlanEdit.aspx</DependentUpon>
|
<DependentUpon>WorkPlanEdit.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Personal\BusinessTrip.aspx.cs">
|
||||||
|
<DependentUpon>BusinessTrip.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Personal\BusinessTrip.aspx.designer.cs">
|
||||||
|
<DependentUpon>BusinessTrip.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Personal\BusinessTripEdit.aspx.cs">
|
||||||
|
<DependentUpon>BusinessTripEdit.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Personal\BusinessTripEdit.aspx.designer.cs">
|
||||||
|
<DependentUpon>BusinessTripEdit.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Personal\PersonMeeting.aspx.cs">
|
<Compile Include="Personal\PersonMeeting.aspx.cs">
|
||||||
<DependentUpon>PersonMeeting.aspx</DependentUpon>
|
<DependentUpon>PersonMeeting.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
@ -14222,6 +14242,20 @@
|
||||||
<Compile Include="Personal\PersonDuty.aspx.designer.cs">
|
<Compile Include="Personal\PersonDuty.aspx.designer.cs">
|
||||||
<DependentUpon>PersonDuty.aspx</DependentUpon>
|
<DependentUpon>PersonDuty.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Personal\TestRunPerformance.aspx.cs">
|
||||||
|
<DependentUpon>TestRunPerformance.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Personal\TestRunPerformance.aspx.designer.cs">
|
||||||
|
<DependentUpon>TestRunPerformance.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Personal\TestRunPerformanceEdit.aspx.cs">
|
||||||
|
<DependentUpon>TestRunPerformanceEdit.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Personal\TestRunPerformanceEdit.aspx.designer.cs">
|
||||||
|
<DependentUpon>TestRunPerformanceEdit.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Person\PersonCheck.aspx.cs">
|
<Compile Include="Person\PersonCheck.aspx.cs">
|
||||||
<DependentUpon>PersonCheck.aspx</DependentUpon>
|
<DependentUpon>PersonCheck.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
@ -17939,6 +17973,20 @@
|
||||||
<Compile Include="ZHGL\Supervise\SuperviseCheckReportEdit.aspx.designer.cs">
|
<Compile Include="ZHGL\Supervise\SuperviseCheckReportEdit.aspx.designer.cs">
|
||||||
<DependentUpon>SuperviseCheckReportEdit.aspx</DependentUpon>
|
<DependentUpon>SuperviseCheckReportEdit.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReport.aspx.cs">
|
||||||
|
<DependentUpon>TestRunPerformanceMonthReport.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReport.aspx.designer.cs">
|
||||||
|
<DependentUpon>TestRunPerformanceMonthReport.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReportEdit.aspx.cs">
|
||||||
|
<DependentUpon>TestRunPerformanceMonthReportEdit.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceMonthReportEdit.aspx.designer.cs">
|
||||||
|
<DependentUpon>TestRunPerformanceMonthReportEdit.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceStandard.aspx.cs">
|
<Compile Include="ZHGL\TestRunPerformance\TestRunPerformanceStandard.aspx.cs">
|
||||||
<DependentUpon>TestRunPerformanceStandard.aspx</DependentUpon>
|
<DependentUpon>TestRunPerformanceStandard.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|
|
@ -0,0 +1,100 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BusinessTrip.aspx.cs" Inherits="FineUIPro.Web.Personal.BusinessTrip" %>
|
||||||
|
|
||||||
|
<!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="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">
|
||||||
|
<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:RadioButtonList runat="server" ID="rblType" Label="出差类型" LabelWidth="100px" LabelAlign="Right" Width="350px" AutoPostBack="true" OnSelectedIndexChanged="rblType_SelectedIndexChanged">
|
||||||
|
<f:RadioItem Text="全部" Value="0" Selected="true" />
|
||||||
|
<f:RadioItem Text="项目出差" Value="1" />
|
||||||
|
<f:RadioItem Text="其他出差" Value="2" />
|
||||||
|
</f:RadioButtonList>
|
||||||
|
<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="180px" ColumnID="TypeStr" DataField="TypeStr"
|
||||||
|
FieldType="String" HeaderText="出差类型" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="100px" ColumnID="UserName" DataField="UserName"
|
||||||
|
FieldType="String" HeaderText="姓名" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="200px" ColumnID="ProjectName" DataField="ProjectName" ExpandUnusedSpace="true"
|
||||||
|
FieldType="String" HeaderText="项目名称" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="120px" ColumnID="ArriveDate" DataField="ArriveDate"
|
||||||
|
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="到达日期"
|
||||||
|
HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="120px" ColumnID="LeaveDate" DataField="LeaveDate"
|
||||||
|
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" 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="550px" Height="300px">
|
||||||
|
</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,228 @@
|
||||||
|
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 BusinessTrip : 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 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 "
|
||||||
|
+ @" 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")
|
||||||
|
{
|
||||||
|
strSql += " AND trip.Type = @Type";
|
||||||
|
listStr.Add(new SqlParameter("@Type", this.rblType.SelectedValue));
|
||||||
|
}
|
||||||
|
if (this.CurrUser.UserId != BLL.Const.sysglyId && this.CurrUser.UserId != BLL.Const.hfnbdId)
|
||||||
|
{
|
||||||
|
strSql += " AND trip.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();
|
||||||
|
if (this.rblType.SelectedValue == "0" || this.rblType.SelectedValue == "1")
|
||||||
|
{
|
||||||
|
this.Grid1.Columns[3].Hidden = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.Grid1.Columns[3].Hidden = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#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 trip = Person_BusinessTripService.GetPersonBusinessTripById(rowID);
|
||||||
|
if (trip != null)
|
||||||
|
{
|
||||||
|
BLL.Person_BusinessTripService.DeletePersonBusinessTrip(rowID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
BindGrid();
|
||||||
|
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ShowNotify("请至少选中一行!", MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
protected void btnNew_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
var noEndTrip = (from x in Funs.DB.Person_BusinessTrip where x.UserId == this.CurrUser.UserId && (x.ArriveDate == null || x.LeaveDate == null) select x).FirstOrDefault();
|
||||||
|
if (noEndTrip != null)
|
||||||
|
{
|
||||||
|
ShowNotify("尚有一条记录到达/离开日期为空,请先完善信息后再新增出差记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BusinessTripEdit.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("BusinessTripEdit.aspx?BusinessTripId={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.BusinessTripMenuId);
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void rblType_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,159 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.Personal {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class BusinessTrip {
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// rblType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.RadioButtonList rblType;
|
||||||
|
|
||||||
|
/// <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,57 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BusinessTripEdit.aspx.cs" Inherits="FineUIPro.Web.Personal.BusinessTripEdit" %>
|
||||||
|
|
||||||
|
<!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:RadioButtonList runat="server" ID="rblType" Label="出差类型" LabelWidth="100px" LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="rblType_SelectedIndexChanged">
|
||||||
|
<f:RadioItem Text="项目出差" Value="1" Selected="true" />
|
||||||
|
<f:RadioItem Text="其他出差" Value="2" />
|
||||||
|
</f:RadioButtonList>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<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="100px" LabelAlign="Right"
|
||||||
|
EnableEdit="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
</Items>
|
||||||
|
</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>
|
||||||
|
</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,129 @@
|
||||||
|
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 BusinessTripEdit : PageBase
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 定义项
|
||||||
|
/// </summary>
|
||||||
|
public string BusinessTripId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["BusinessTripId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["BusinessTripId"] = 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.InitAllProjectDropDownList(this.drpProject, true);
|
||||||
|
this.BusinessTripId = Request.QueryString["BusinessTripId"];
|
||||||
|
if (!String.IsNullOrEmpty(this.BusinessTripId))
|
||||||
|
{
|
||||||
|
var trip = BLL.Person_BusinessTripService.GetPersonBusinessTripById(this.BusinessTripId);
|
||||||
|
if (trip != null)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(trip.Type))
|
||||||
|
{
|
||||||
|
this.rblType.SelectedValue = trip.Type;
|
||||||
|
}
|
||||||
|
if (this.rblType.SelectedValue == "1")
|
||||||
|
{
|
||||||
|
this.drpProject.Hidden = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.drpProject.Hidden = true;
|
||||||
|
}
|
||||||
|
this.lbUserName.Text = BLL.UserService.GetUserNameByUserId(trip.UserId);
|
||||||
|
if (!string.IsNullOrEmpty(trip.ProjectId))
|
||||||
|
{
|
||||||
|
this.drpProject.SelectedValue = trip.ProjectId;
|
||||||
|
}
|
||||||
|
if (trip.ArriveDate != null)
|
||||||
|
{
|
||||||
|
this.txtArriveDate.Text = string.Format("{0:yyyy-MM-dd}", trip.ArriveDate);
|
||||||
|
}
|
||||||
|
if (trip.LeaveDate != null)
|
||||||
|
{
|
||||||
|
this.txtLeaveDate.Text = string.Format("{0:yyyy-MM-dd}", trip.LeaveDate);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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 (this.drpProject.SelectedValue == BLL.Const._Null && this.rblType.SelectedValue == "1")
|
||||||
|
{
|
||||||
|
Alert.ShowInParent("请选择项目!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Model.Person_BusinessTrip newTrip = new Model.Person_BusinessTrip()
|
||||||
|
{
|
||||||
|
Type = this.rblType.SelectedValue,
|
||||||
|
UserId = this.CurrUser.UserId,
|
||||||
|
ProjectId = this.drpProject.SelectedValue,
|
||||||
|
ArriveDate = Funs.GetNewDateTime(this.txtArriveDate.Text),
|
||||||
|
LeaveDate = Funs.GetNewDateTime(this.txtLeaveDate.Text),
|
||||||
|
};
|
||||||
|
if (!string.IsNullOrEmpty(this.BusinessTripId))
|
||||||
|
{
|
||||||
|
newTrip.BusinessTripId = this.BusinessTripId;
|
||||||
|
BLL.Person_BusinessTripService.UpdatePersonBusinessTrip(newTrip);
|
||||||
|
BLL.LogService.AddSys_Log(this.CurrUser, null, newTrip.BusinessTripId, BLL.Const.BusinessTripMenuId, BLL.Const.BtnAdd);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newTrip.BusinessTripId = SQLHelper.GetNewID();
|
||||||
|
BLL.Person_BusinessTripService.AddPersonBusinessTrip(newTrip);
|
||||||
|
BLL.LogService.AddSys_Log(this.CurrUser, null, newTrip.BusinessTripId, BLL.Const.BusinessTripMenuId, BLL.Const.BtnModify);
|
||||||
|
}
|
||||||
|
|
||||||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void rblType_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (this.rblType.SelectedValue == "1")
|
||||||
|
{
|
||||||
|
this.drpProject.Hidden = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.drpProject.Hidden = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,114 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.Personal {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class BusinessTripEdit {
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// rblType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.RadioButtonList rblType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbUserName 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label lbUserName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpProject 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpProject;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtArriveDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtArriveDate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtLeaveDate 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtLeaveDate;
|
||||||
|
|
||||||
|
/// <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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,103 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestRunPerformance.aspx.cs" Inherits="FineUIPro.Web.Personal.TestRunPerformance" %>
|
||||||
|
|
||||||
|
<!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="TestRunPerformanceId" EnableColumnLines="true" DataIDField="TestRunPerformanceId"
|
||||||
|
AllowSorting="true" SortField="Months" 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="Months" DataField="Months"
|
||||||
|
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM" HeaderText="月份"
|
||||||
|
HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="400px" ColumnID="ProjectName" DataField="ProjectName"
|
||||||
|
FieldType="String" HeaderText="工作地点" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="400px" ColumnID="JobContent" DataField="JobContent"
|
||||||
|
FieldType="String" HeaderText="工作内容" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="100px" ColumnID="Type" DataField="Type"
|
||||||
|
FieldType="String" HeaderText="工作类别" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="150px" ColumnID="Item" DataField="Item"
|
||||||
|
FieldType="String" HeaderText="工作项" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="100px" ColumnID="Unit" DataField="Unit"
|
||||||
|
FieldType="String" HeaderText="计量单位" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</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" />
|
||||||
|
</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="500px">
|
||||||
|
</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,205 @@
|
||||||
|
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 TestRunPerformance : 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 performance.TestRunPerformanceId,performance.ProjectId,performance.UserId,performance.Months,performance.JobContent,performance.TestRunPerformanceStandardId,Users.UserName,case when performance.ProjectId='0' then '本部' else Project.ProjectName end as ProjectName,Standard.Type,Standard.Item,Standard.Unit,Standard.Days "
|
||||||
|
+ @" From dbo.Person_TestRunPerformance AS performance"
|
||||||
|
+ @" LEFT JOIN Sys_User AS Users ON Users.UserId=performance.UserId"
|
||||||
|
+ @" LEFT JOIN Base_Project AS Project ON Project.ProjectId=performance.ProjectId"
|
||||||
|
+ @" LEFT JOIN Base_TestRunPerformanceStandard AS Standard ON Standard.TestRunPerformanceStandardId=performance.TestRunPerformanceStandardId"
|
||||||
|
+ @" WHERE 1=1";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
if (this.CurrUser.UserId != BLL.Const.sysglyId && this.CurrUser.UserId != BLL.Const.hfnbdId)
|
||||||
|
{
|
||||||
|
strSql += " AND performance.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 performance = Person_TestRunPerformanceService.GetPersonTestRunPerformanceById(rowID);
|
||||||
|
if (performance != null)
|
||||||
|
{
|
||||||
|
BLL.Person_TestRunPerformanceService.DeletePersonTestRunPerformance(rowID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
BindGrid();
|
||||||
|
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ShowNotify("请至少选中一行!", MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
protected void btnNew_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("TestRunPerformanceEdit.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("TestRunPerformanceEdit.aspx?TestRunPerformanceId={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.TestRunPerformanceMenuId);
|
||||||
|
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 TestRunPerformance {
|
||||||
|
|
||||||
|
/// <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,67 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestRunPerformanceEdit.aspx.cs" Inherits="FineUIPro.Web.Personal.TestRunPerformanceEdit" %>
|
||||||
|
|
||||||
|
<!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="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>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="drpProject" runat="server" Label="工作地点" Width="300px" LabelWidth="100px" LabelAlign="Right"
|
||||||
|
EnableEdit="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextArea runat="server" ID="txtJobContent" Label="工作内容" LabelWidth="100px" LabelAlign="Right"></f:TextArea>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="drpType" runat="server" Label="工作类别" Width="300px" LabelWidth="100px" LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="drpType_SelectedIndexChanged"
|
||||||
|
EnableEdit="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
<f:DropDownList ID="drpItem" runat="server" Label="工作项" Width="300px" LabelWidth="100px" LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="drpItem_SelectedIndexChanged"
|
||||||
|
EnableEdit="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
<f:DropDownList ID="drpUnit" runat="server" Label="计量单位" Width="300px" LabelWidth="100px" LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="drpUnit_SelectedIndexChanged"
|
||||||
|
EnableEdit="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:NumberBox ID="txtDays" runat="server" Label="标准工作日" NoNegative="true" NoDecimal="true" LabelWidth="100px" LabelAlign="Right" Readonly="true"></f:NumberBox>
|
||||||
|
</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,208 @@
|
||||||
|
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 TestRunPerformanceEdit : PageBase
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 定义项
|
||||||
|
/// </summary>
|
||||||
|
public string TestRunPerformanceId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return (string)ViewState["TestRunPerformanceId"];
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
ViewState["TestRunPerformanceId"] = 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.TestRunPerformanceId = Request.QueryString["TestRunPerformanceId"];
|
||||||
|
TestRunPerformanceStandardService.InitTypeDropDownList(drpType, true);
|
||||||
|
Funs.FineUIPleaseSelect(this.drpItem);
|
||||||
|
Funs.FineUIPleaseSelect(this.drpUnit);
|
||||||
|
if (!String.IsNullOrEmpty(this.TestRunPerformanceId))
|
||||||
|
{
|
||||||
|
var performance = BLL.Person_TestRunPerformanceService.GetPersonTestRunPerformanceById(this.TestRunPerformanceId);
|
||||||
|
if (performance != null)
|
||||||
|
{
|
||||||
|
if (performance.Months != null)
|
||||||
|
{
|
||||||
|
this.txtMonths.Text = string.Format("{0:yyyy-MM-dd}", performance.Months);
|
||||||
|
}
|
||||||
|
this.lbUserName.Text = BLL.UserService.GetUserNameByUserId(performance.UserId);
|
||||||
|
if (!string.IsNullOrEmpty(performance.ProjectId))
|
||||||
|
{
|
||||||
|
this.drpProject.SelectedValue = performance.ProjectId;
|
||||||
|
}
|
||||||
|
this.txtJobContent.Text = performance.JobContent;
|
||||||
|
Model.Base_TestRunPerformanceStandard standard = BLL.TestRunPerformanceStandardService.GetPerformanceStandardById(performance.TestRunPerformanceStandardId);
|
||||||
|
if (standard != null)
|
||||||
|
{
|
||||||
|
this.drpType.SelectedValue = standard.Type;
|
||||||
|
TestRunPerformanceStandardService.InitItemDropDownList(drpItem, this.drpType.SelectedValue, true);
|
||||||
|
this.drpItem.SelectedValue = standard.Item;
|
||||||
|
TestRunPerformanceStandardService.InitUnitDropDownList(drpUnit, this.drpType.SelectedValue, this.drpItem.SelectedValue, true);
|
||||||
|
this.drpUnit.SelectedValue = standard.TestRunPerformanceStandardId;
|
||||||
|
}
|
||||||
|
if (performance.Days != null)
|
||||||
|
{
|
||||||
|
this.txtDays.Text = performance.Days.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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.txtMonths.Text.Trim()))
|
||||||
|
{
|
||||||
|
Alert.ShowInParent("请选择月份!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.drpProject.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInParent("请选择工作地点!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.drpType.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInParent("请选择工作类别!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.drpItem.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInParent("请选择工作项!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.drpUnit.SelectedValue == BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Alert.ShowInParent("请选择计量单位!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.txtDays.Text.Trim() == "0" || string.IsNullOrEmpty(this.txtDays.Text.Trim()))
|
||||||
|
{
|
||||||
|
Alert.ShowInParent("请输入标准工作日!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Model.Person_TestRunPerformance newperformance = new Model.Person_TestRunPerformance()
|
||||||
|
{
|
||||||
|
Months = Funs.GetNewDateTimeOrNow(this.txtMonths.Text.Trim()),
|
||||||
|
UserId = this.CurrUser.UserId,
|
||||||
|
ProjectId = this.drpProject.SelectedValue,
|
||||||
|
JobContent = this.txtJobContent.Text.Trim(),
|
||||||
|
TestRunPerformanceStandardId = this.drpUnit.SelectedValue,
|
||||||
|
Days = Funs.GetNewInt(this.txtDays.Text.Trim()),
|
||||||
|
};
|
||||||
|
if (!string.IsNullOrEmpty(this.TestRunPerformanceId))
|
||||||
|
{
|
||||||
|
newperformance.TestRunPerformanceId = this.TestRunPerformanceId;
|
||||||
|
BLL.Person_TestRunPerformanceService.UpdatePersonTestRunPerformance(newperformance);
|
||||||
|
BLL.LogService.AddSys_Log(this.CurrUser, null, newperformance.TestRunPerformanceId, BLL.Const.TestRunPerformanceMenuId, BLL.Const.BtnAdd);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
newperformance.TestRunPerformanceId = SQLHelper.GetNewID();
|
||||||
|
BLL.Person_TestRunPerformanceService.AddPersonTestRunPerformance(newperformance);
|
||||||
|
BLL.LogService.AddSys_Log(this.CurrUser, null, newperformance.TestRunPerformanceId, BLL.Const.TestRunPerformanceMenuId, BLL.Const.BtnModify);
|
||||||
|
}
|
||||||
|
|
||||||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void drpType_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (this.drpType.SelectedValue != BLL.Const._Null)
|
||||||
|
{
|
||||||
|
TestRunPerformanceStandardService.InitItemDropDownList(drpItem, this.drpType.SelectedValue, true);
|
||||||
|
this.drpItem.SelectedIndex = 0;
|
||||||
|
this.drpUnit.Items.Clear();
|
||||||
|
Funs.FineUIPleaseSelect(this.drpUnit);
|
||||||
|
this.drpUnit.SelectedIndex = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.drpItem.Items.Clear();
|
||||||
|
Funs.FineUIPleaseSelect(this.drpItem);
|
||||||
|
this.drpItem.SelectedIndex = 0;
|
||||||
|
this.drpUnit.Items.Clear();
|
||||||
|
Funs.FineUIPleaseSelect(this.drpUnit);
|
||||||
|
this.drpUnit.SelectedIndex = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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);
|
||||||
|
this.drpUnit.SelectedIndex = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.drpUnit.Items.Clear();
|
||||||
|
Funs.FineUIPleaseSelect(this.drpUnit);
|
||||||
|
this.drpUnit.SelectedIndex = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (this.drpUnit.SelectedValue != BLL.Const._Null)
|
||||||
|
{
|
||||||
|
Model.Base_TestRunPerformanceStandard standard = BLL.TestRunPerformanceStandardService.GetPerformanceStandardById(this.drpUnit.SelectedValue);
|
||||||
|
if (standard != null)
|
||||||
|
{
|
||||||
|
if (standard.Days != null)
|
||||||
|
{
|
||||||
|
this.txtDays.Text = standard.Days.ToString();
|
||||||
|
if (standard.Days > 0)
|
||||||
|
{
|
||||||
|
this.txtDays.Readonly = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtDays.Readonly = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.txtDays.Text = string.Empty;
|
||||||
|
this.txtDays.Readonly = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,141 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.Personal {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class TestRunPerformanceEdit {
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// txtMonths 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtMonths;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbUserName 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label lbUserName;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpProject 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpProject;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtJobContent 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextArea txtJobContent;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpItem 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpItem;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpUnit;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtDays 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.NumberBox txtDays;
|
||||||
|
|
||||||
|
/// <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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -22,6 +22,15 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||||
set { ViewState["DecisionId"] = value; }
|
set { ViewState["DecisionId"] = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 子系统主键
|
||||||
|
/// </summary>
|
||||||
|
public string SubSystemId
|
||||||
|
{
|
||||||
|
get { return (string)ViewState["SubSystemId"]; }
|
||||||
|
set { ViewState["SubSystemId"] = value; }
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否查看
|
/// 是否查看
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -45,6 +54,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
this.DecisionId = Request["DecisionId"];
|
this.DecisionId = Request["DecisionId"];
|
||||||
|
this.SubSystemId = Request["SubSystemId"];
|
||||||
//是否查看
|
//是否查看
|
||||||
this.IsView = string.IsNullOrWhiteSpace(Request["IsView"]) ? false : bool.Parse(Request["IsView"]);
|
this.IsView = string.IsNullOrWhiteSpace(Request["IsView"]) ? false : bool.Parse(Request["IsView"]);
|
||||||
//数据绑定
|
//数据绑定
|
||||||
|
@ -242,6 +252,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||||
model = new PreRun_SubThreeChecksFourDecision();
|
model = new PreRun_SubThreeChecksFourDecision();
|
||||||
model.DecisionId = this.DecisionId = Guid.NewGuid().ToString();
|
model.DecisionId = this.DecisionId = Guid.NewGuid().ToString();
|
||||||
model.ProjectId = this.CurrUser.LoginProjectId;
|
model.ProjectId = this.CurrUser.LoginProjectId;
|
||||||
|
model.SubSystemId = this.SubSystemId;
|
||||||
}
|
}
|
||||||
model.ResponsibilityUser = ddlResponsibilityUser.SelectedValue;
|
model.ResponsibilityUser = ddlResponsibilityUser.SelectedValue;
|
||||||
model.ProposeUser = ddlProposeUser.SelectedValue;
|
model.ProposeUser = ddlProposeUser.SelectedValue;
|
||||||
|
@ -257,6 +268,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||||
model.AddUser = this.CurrUser.LoginProjectId;
|
model.AddUser = this.CurrUser.LoginProjectId;
|
||||||
model.AddTime = DateTime.Now;
|
model.AddTime = DateTime.Now;
|
||||||
model.ResponsibilityProposeSatate = 0;
|
model.ResponsibilityProposeSatate = 0;
|
||||||
|
model.DecisionIsClose = 0;
|
||||||
if (isAdd)
|
if (isAdd)
|
||||||
{
|
{
|
||||||
Funs.DB.PreRun_SubThreeChecksFourDecision.InsertOnSubmit(model);
|
Funs.DB.PreRun_SubThreeChecksFourDecision.InsertOnSubmit(model);
|
||||||
|
|
|
@ -221,7 +221,12 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected void btnAdd_Click(object sender, EventArgs e)
|
protected void btnAdd_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SubThreeChecksFourDecisionEdit.aspx?DecisionId=", "新增 - ")));
|
if (string.IsNullOrWhiteSpace(tvControlItem.SelectedNodeID))
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请选择子系统!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SubThreeChecksFourDecisionEdit.aspx?DecisionId=&SubSystemId=" + this.SsubSystemId, "新增 - ")));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -244,7 +249,7 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SubThreeChecksFourDecisionEdit.aspx?DecisionId={0}", Grid1.SelectedRowID, "编辑 - ")));
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("SubThreeChecksFourDecisionEdit.aspx?DecisionId={0}&SubSystemId={1}", Grid1.SelectedRowID, this.SsubSystemId, "编辑 - ")));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -800,8 +805,17 @@ namespace FineUIPro.Web.TestRun.BeforeTestRun
|
||||||
var result = string.Empty;
|
var result = string.Empty;
|
||||||
var diffDay = 0;
|
var diffDay = 0;
|
||||||
var itemState = 0;
|
var itemState = 0;
|
||||||
if (diffDayVal != null) diffDay = int.Parse(diffDayVal.ToString());
|
if (diffDayVal != null)
|
||||||
if (stateVal != null) itemState = int.Parse(stateVal.ToString());
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(diffDayVal.ToString()))
|
||||||
|
{
|
||||||
|
diffDay = int.Parse(diffDayVal.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (stateVal != null)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(stateVal.ToString())) itemState = int.Parse(stateVal.ToString());
|
||||||
|
}
|
||||||
if (itemState != 1)
|
if (itemState != 1)
|
||||||
{
|
{
|
||||||
if (diffDay > 0)
|
if (diffDay > 0)
|
||||||
|
|
|
@ -81,12 +81,15 @@
|
||||||
<f:RenderField HeaderText="设备(材料)名称及规格" ColumnID="Description" DataField="Description" Width="320px"
|
<f:RenderField HeaderText="设备(材料)名称及规格" ColumnID="Description" DataField="Description" Width="320px"
|
||||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" ExpandUnusedSpace="true">
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" ExpandUnusedSpace="true">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField Width="100px" ColumnID="Quantity" DataField="Quantity"
|
<f:RenderField Width="100px" ColumnID="Num" DataField="Num"
|
||||||
FieldType="String" HeaderText="数量" TextAlign="Center" HeaderTextAlign="Center">
|
FieldType="String" HeaderText="数量" TextAlign="Center" HeaderTextAlign="Center">
|
||||||
<Editor>
|
<Editor>
|
||||||
<f:TextBox runat="server" ID="txtQuantity"></f:TextBox>
|
<f:TextBox runat="server" ID="txtNum"></f:TextBox>
|
||||||
</Editor>
|
</Editor>
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
|
<f:RenderField HeaderText="单位" ColumnID="Quantity" DataField="Quantity" Width="80px"
|
||||||
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
<f:RenderField HeaderText="附件(详细清单/图纸等)" ColumnID="Attachment" DataField="Attachment" Width="180px"
|
<f:RenderField HeaderText="附件(详细清单/图纸等)" ColumnID="Attachment" DataField="Attachment" Width="180px"
|
||||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
|
FieldType="String" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
|
|
|
@ -110,7 +110,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item.GoodsBuyItemId = SQLHelper.GetNewID();
|
item.GoodsBuyItemId = SQLHelper.GetNewID();
|
||||||
item.GoodsBuyId = newData.GoodsBuyId;
|
item.GoodsBuyId = newData.GoodsBuyId;
|
||||||
item.GoodsModelId = detail.GoodsModelId;
|
item.GoodsModelId = detail.GoodsModelId;
|
||||||
item.Quantity = detail.Quantity;
|
item.Num = detail.Num;
|
||||||
item.RequiredTime = detail.RequiredTime;
|
item.RequiredTime = detail.RequiredTime;
|
||||||
BLL.GoodsBuyItemService.AddGoodsBuyItem(item);
|
BLL.GoodsBuyItemService.AddGoodsBuyItem(item);
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
detail.Description = model.Description;
|
detail.Description = model.Description;
|
||||||
detail.Attachment = model.Attachment;
|
detail.Attachment = model.Attachment;
|
||||||
detail.Remark = model.Remark;
|
detail.Remark = model.Remark;
|
||||||
detail.Quantity = values.Value<string>("Quantity");
|
detail.Num = values.Value<string>("Num");
|
||||||
string requiredTime = values.Value<string>("RequiredTime");
|
string requiredTime = values.Value<string>("RequiredTime");
|
||||||
if (!string.IsNullOrEmpty(requiredTime))
|
if (!string.IsNullOrEmpty(requiredTime))
|
||||||
{
|
{
|
||||||
|
@ -189,6 +189,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
detail.GoodsModelId = model.GoodsModelId;
|
detail.GoodsModelId = model.GoodsModelId;
|
||||||
detail.Purpose = model.Purpose;
|
detail.Purpose = model.Purpose;
|
||||||
detail.Description = model.Description;
|
detail.Description = model.Description;
|
||||||
|
detail.Quantity = model.Quantity;
|
||||||
detail.Attachment = model.Attachment;
|
detail.Attachment = model.Attachment;
|
||||||
detail.Remark = model.Remark;
|
detail.Remark = model.Remark;
|
||||||
details.Add(detail);
|
details.Add(detail);
|
||||||
|
|
|
@ -202,13 +202,13 @@ namespace FineUIPro.Web.TestRun.DriverGoods {
|
||||||
protected global::FineUIPro.Button btnNew;
|
protected global::FineUIPro.Button btnNew;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtQuantity 控件。
|
/// txtNum 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.TextBox txtQuantity;
|
protected global::FineUIPro.TextBox txtNum;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtRequiredTime 控件。
|
/// txtRequiredTime 控件。
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
<f:RenderField ColumnID="Description" DataField="Description" FieldType="String" HeaderText="设备(材料)名称及规格" TextAlign="Center"
|
<f:RenderField ColumnID="Description" DataField="Description" FieldType="String" HeaderText="设备(材料)名称及规格" TextAlign="Center"
|
||||||
HeaderTextAlign="Center" Width="300px" ExpandUnusedSpace="true">
|
HeaderTextAlign="Center" Width="300px" ExpandUnusedSpace="true">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField ColumnID="Quantity" DataField="Quantity" FieldType="String" HeaderText="数量" TextAlign="Center"
|
<f:RenderField ColumnID="Quantity" DataField="Quantity" FieldType="String" HeaderText="单位" TextAlign="Center"
|
||||||
HeaderTextAlign="Center" Width="100px">
|
HeaderTextAlign="Center" Width="100px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField ColumnID="Attachment" DataField="Attachment" FieldType="String" HeaderText="附件(详细清单/图纸等)" TextAlign="Center"
|
<f:RenderField ColumnID="Attachment" DataField="Attachment" FieldType="String" HeaderText="附件(详细清单/图纸等)" TextAlign="Center"
|
||||||
|
|
|
@ -35,7 +35,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item1.Code = 1;
|
item1.Code = 1;
|
||||||
item1.Purpose = "DN200管线打靶用纯铝靶板";
|
item1.Purpose = "DN200管线打靶用纯铝靶板";
|
||||||
item1.Description = "纯铝板,长度160mm,宽度20mm,厚度5~6mm,带螺栓固定孔,双面抛光。";
|
item1.Description = "纯铝板,长度160mm,宽度20mm,厚度5~6mm,带螺栓固定孔,双面抛光。";
|
||||||
item1.Quantity = "40片";
|
item1.Quantity = "片";
|
||||||
item1.Attachment = "《蒸汽吹扫打靶验收用铝制靶板尺寸图》";
|
item1.Attachment = "《蒸汽吹扫打靶验收用铝制靶板尺寸图》";
|
||||||
item1.Remark = "用于蒸汽吹扫打靶";
|
item1.Remark = "用于蒸汽吹扫打靶";
|
||||||
list.Add(item1);
|
list.Add(item1);
|
||||||
|
@ -45,7 +45,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item2.Code = 2;
|
item2.Code = 2;
|
||||||
item2.Purpose = "DN250管线打靶用纯铝靶板";
|
item2.Purpose = "DN250管线打靶用纯铝靶板";
|
||||||
item2.Description = "纯铝板,长度200mm,宽度25mm,厚度5~6mm,带螺栓固定孔,双面抛光。";
|
item2.Description = "纯铝板,长度200mm,宽度25mm,厚度5~6mm,带螺栓固定孔,双面抛光。";
|
||||||
item2.Quantity = "25片";
|
item2.Quantity = "片";
|
||||||
item2.Attachment = "《蒸汽吹扫打靶验收用铝制靶板尺寸图》";
|
item2.Attachment = "《蒸汽吹扫打靶验收用铝制靶板尺寸图》";
|
||||||
item2.Remark = "用于蒸汽吹扫打靶";
|
item2.Remark = "用于蒸汽吹扫打靶";
|
||||||
list.Add(item2);
|
list.Add(item2);
|
||||||
|
@ -55,7 +55,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item3.Code = 3;
|
item3.Code = 3;
|
||||||
item3.Purpose = "DN350管线打靶用纯铝靶板";
|
item3.Purpose = "DN350管线打靶用纯铝靶板";
|
||||||
item3.Description = "纯铝板,长度300mm,宽度30mm,厚度5~6mm,带螺栓固定孔,双面抛光。";
|
item3.Description = "纯铝板,长度300mm,宽度30mm,厚度5~6mm,带螺栓固定孔,双面抛光。";
|
||||||
item3.Quantity = "10片";
|
item3.Quantity = "片";
|
||||||
item3.Attachment = "《蒸汽吹扫打靶验收用铝制靶板尺寸图》";
|
item3.Attachment = "《蒸汽吹扫打靶验收用铝制靶板尺寸图》";
|
||||||
item3.Remark = "用于蒸汽吹扫打靶";
|
item3.Remark = "用于蒸汽吹扫打靶";
|
||||||
list.Add(item3);
|
list.Add(item3);
|
||||||
|
@ -65,7 +65,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item4.Code = 4;
|
item4.Code = 4;
|
||||||
item4.Purpose = "焊接H型钢(100型)";
|
item4.Purpose = "焊接H型钢(100型)";
|
||||||
item4.Description = "H型钢,WH100*50*5*7Q235B,GBT 33814";
|
item4.Description = "H型钢,WH100*50*5*7Q235B,GBT 33814";
|
||||||
item4.Quantity = "130米";
|
item4.Quantity = "米";
|
||||||
item4.Attachment = "";
|
item4.Attachment = "";
|
||||||
item4.Remark = "用于制作蒸汽吹扫、空气吹扫临时支架";
|
item4.Remark = "用于制作蒸汽吹扫、空气吹扫临时支架";
|
||||||
list.Add(item4);
|
list.Add(item4);
|
||||||
|
@ -75,7 +75,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item5.Code = 5;
|
item5.Code = 5;
|
||||||
item5.Purpose = "热轧槽钢(10号)";
|
item5.Purpose = "热轧槽钢(10号)";
|
||||||
item5.Description = "槽钢,10号(h 100,b 48,d 5.3),材质Q235B,GBT 706";
|
item5.Description = "槽钢,10号(h 100,b 48,d 5.3),材质Q235B,GBT 706";
|
||||||
item5.Quantity = "200米";
|
item5.Quantity = "米";
|
||||||
item5.Attachment = "";
|
item5.Attachment = "";
|
||||||
item5.Remark = "用于制作蒸汽吹扫、空气吹扫临时支架";
|
item5.Remark = "用于制作蒸汽吹扫、空气吹扫临时支架";
|
||||||
list.Add(item5);
|
list.Add(item5);
|
||||||
|
@ -85,7 +85,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item6.Code = 6;
|
item6.Code = 6;
|
||||||
item6.Purpose = "碳钢板(厚10mm)";
|
item6.Purpose = "碳钢板(厚10mm)";
|
||||||
item6.Description = "碳钢板:厚度10mm , Q235B, GB/T 709-2006";
|
item6.Description = "碳钢板:厚度10mm , Q235B, GB/T 709-2006";
|
||||||
item6.Quantity = "20㎡";
|
item6.Quantity = "㎡";
|
||||||
item6.Attachment = "";
|
item6.Attachment = "";
|
||||||
item6.Remark = "用于空气/蒸汽吹扫";
|
item6.Remark = "用于空气/蒸汽吹扫";
|
||||||
list.Add(item6);
|
list.Add(item6);
|
||||||
|
@ -95,7 +95,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item7.Code = 7;
|
item7.Code = 7;
|
||||||
item7.Purpose = "碳钢板(厚20mm)";
|
item7.Purpose = "碳钢板(厚20mm)";
|
||||||
item7.Description = "碳钢板:厚度20mm ,Q235B, GB/T 709-2006";
|
item7.Description = "碳钢板:厚度20mm ,Q235B, GB/T 709-2006";
|
||||||
item7.Quantity = "60㎡";
|
item7.Quantity = "㎡";
|
||||||
item7.Attachment = "";
|
item7.Attachment = "";
|
||||||
item7.Remark = "用于空气/蒸汽吹扫";
|
item7.Remark = "用于空气/蒸汽吹扫";
|
||||||
list.Add(item7);
|
list.Add(item7);
|
||||||
|
@ -105,7 +105,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item8.Code = 8;
|
item8.Code = 8;
|
||||||
item8.Purpose = "碳钢板(厚40mm)";
|
item8.Purpose = "碳钢板(厚40mm)";
|
||||||
item8.Description = "碳钢板:厚度40mm,Q235B, GB/T 709-2006";
|
item8.Description = "碳钢板:厚度40mm,Q235B, GB/T 709-2006";
|
||||||
item8.Quantity = "25㎡";
|
item8.Quantity = "㎡";
|
||||||
item8.Attachment = "";
|
item8.Attachment = "";
|
||||||
item8.Remark = "用于空气/蒸汽吹扫";
|
item8.Remark = "用于空气/蒸汽吹扫";
|
||||||
list.Add(item8);
|
list.Add(item8);
|
||||||
|
@ -115,7 +115,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item9.Code = 9;
|
item9.Code = 9;
|
||||||
item9.Purpose = "蒸汽压力表";
|
item9.Purpose = "蒸汽压力表";
|
||||||
item9.Description = "压力表:量程0~1.5MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
item9.Description = "压力表:量程0~1.5MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
||||||
item9.Quantity = "15块";
|
item9.Quantity = "块";
|
||||||
item9.Attachment = "";
|
item9.Attachment = "";
|
||||||
item9.Remark = "用于蒸汽吹扫";
|
item9.Remark = "用于蒸汽吹扫";
|
||||||
list.Add(item9);
|
list.Add(item9);
|
||||||
|
@ -125,7 +125,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item10.Code = 10;
|
item10.Code = 10;
|
||||||
item10.Purpose = "蒸汽压力表";
|
item10.Purpose = "蒸汽压力表";
|
||||||
item10.Description = "压力表:量程0~4MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
item10.Description = "压力表:量程0~4MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
||||||
item10.Quantity = "4块";
|
item10.Quantity = "块";
|
||||||
item10.Attachment = "";
|
item10.Attachment = "";
|
||||||
item10.Remark = "";
|
item10.Remark = "";
|
||||||
list.Add(item10);
|
list.Add(item10);
|
||||||
|
@ -135,7 +135,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item11.Code = 11;
|
item11.Code = 11;
|
||||||
item11.Purpose = "蒸汽压力表";
|
item11.Purpose = "蒸汽压力表";
|
||||||
item11.Description = "压力表:量程0~15MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
item11.Description = "压力表:量程0~15MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
||||||
item11.Quantity = "4块";
|
item11.Quantity = "块";
|
||||||
item11.Attachment = "";
|
item11.Attachment = "";
|
||||||
item11.Remark = "";
|
item11.Remark = "";
|
||||||
list.Add(item11);
|
list.Add(item11);
|
||||||
|
@ -145,7 +145,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item12.Code = 12;
|
item12.Code = 12;
|
||||||
item12.Purpose = "普通压力表";
|
item12.Purpose = "普通压力表";
|
||||||
item12.Description = "压力表:量程0~1MPa,弹簧管压力表(压缩空气或水系统使用)";
|
item12.Description = "压力表:量程0~1MPa,弹簧管压力表(压缩空气或水系统使用)";
|
||||||
item12.Quantity = "6块";
|
item12.Quantity = "块";
|
||||||
item12.Attachment = "";
|
item12.Attachment = "";
|
||||||
item12.Remark = "";
|
item12.Remark = "";
|
||||||
list.Add(item12);
|
list.Add(item12);
|
||||||
|
@ -155,7 +155,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item13.Code = 13;
|
item13.Code = 13;
|
||||||
item13.Purpose = "非石棉纤维板";
|
item13.Purpose = "非石棉纤维板";
|
||||||
item13.Description = "耐压非石棉纤维板(耐油性):δ3.0mm";
|
item13.Description = "耐压非石棉纤维板(耐油性):δ3.0mm";
|
||||||
item13.Quantity = "200kg";
|
item13.Quantity = "kg";
|
||||||
item13.Attachment = "";
|
item13.Attachment = "";
|
||||||
item13.Remark = "";
|
item13.Remark = "";
|
||||||
list.Add(item13);
|
list.Add(item13);
|
||||||
|
@ -165,7 +165,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item14.Code = 14;
|
item14.Code = 14;
|
||||||
item14.Purpose = "聚四氟乙烯板";
|
item14.Purpose = "聚四氟乙烯板";
|
||||||
item14.Description = "聚四氟乙烯板:δ2.0mm";
|
item14.Description = "聚四氟乙烯板:δ2.0mm";
|
||||||
item14.Quantity = "15m2";
|
item14.Quantity = "m2";
|
||||||
item14.Attachment = "";
|
item14.Attachment = "";
|
||||||
item14.Remark = "";
|
item14.Remark = "";
|
||||||
list.Add(item14);
|
list.Add(item14);
|
||||||
|
@ -175,7 +175,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item15.Code = 15;
|
item15.Code = 15;
|
||||||
item15.Purpose = "黑色耐压橡胶板";
|
item15.Purpose = "黑色耐压橡胶板";
|
||||||
item15.Description = "黑色耐压橡胶板:δ3.0mm";
|
item15.Description = "黑色耐压橡胶板:δ3.0mm";
|
||||||
item15.Quantity = "200kg";
|
item15.Quantity = "kg";
|
||||||
item15.Attachment = "";
|
item15.Attachment = "";
|
||||||
item15.Remark = "";
|
item15.Remark = "";
|
||||||
list.Add(item15);
|
list.Add(item15);
|
||||||
|
@ -185,7 +185,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item16.Code = 16;
|
item16.Code = 16;
|
||||||
item16.Purpose = "内衬纤维耐压黑色橡胶软管";
|
item16.Purpose = "内衬纤维耐压黑色橡胶软管";
|
||||||
item16.Description = "内衬纤维耐压黑色橡胶软管:DN32,承压1.5MPa(工作介质:压缩空气)";
|
item16.Description = "内衬纤维耐压黑色橡胶软管:DN32,承压1.5MPa(工作介质:压缩空气)";
|
||||||
item16.Quantity = "200m";
|
item16.Quantity = "m";
|
||||||
item16.Attachment = "";
|
item16.Attachment = "";
|
||||||
item16.Remark = "";
|
item16.Remark = "";
|
||||||
list.Add(item16);
|
list.Add(item16);
|
||||||
|
@ -195,7 +195,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item17.Code = 17;
|
item17.Code = 17;
|
||||||
item17.Purpose = "不锈钢丝网";
|
item17.Purpose = "不锈钢丝网";
|
||||||
item17.Description = "304不锈钢丝网,6目,SS";
|
item17.Description = "304不锈钢丝网,6目,SS";
|
||||||
item17.Quantity = "10m2";
|
item17.Quantity = "m2";
|
||||||
item17.Attachment = "";
|
item17.Attachment = "";
|
||||||
item17.Remark = "用于水冲洗和泵单试";
|
item17.Remark = "用于水冲洗和泵单试";
|
||||||
list.Add(item17);
|
list.Add(item17);
|
||||||
|
@ -205,7 +205,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item18.Code = 18;
|
item18.Code = 18;
|
||||||
item18.Purpose = "不锈钢丝网";
|
item18.Purpose = "不锈钢丝网";
|
||||||
item18.Description = "304不锈钢丝网,16目,SS";
|
item18.Description = "304不锈钢丝网,16目,SS";
|
||||||
item18.Quantity = "10m2";
|
item18.Quantity = "m2";
|
||||||
item18.Attachment = "";
|
item18.Attachment = "";
|
||||||
item18.Remark = "";
|
item18.Remark = "";
|
||||||
list.Add(item18);
|
list.Add(item18);
|
||||||
|
@ -215,7 +215,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item19.Code = 19;
|
item19.Code = 19;
|
||||||
item19.Purpose = "不锈钢丝网";
|
item19.Purpose = "不锈钢丝网";
|
||||||
item19.Description = "304不锈钢丝网,30目,SS";
|
item19.Description = "304不锈钢丝网,30目,SS";
|
||||||
item19.Quantity = "15m2";
|
item19.Quantity = "m2";
|
||||||
item19.Attachment = "";
|
item19.Attachment = "";
|
||||||
item19.Remark = "";
|
item19.Remark = "";
|
||||||
list.Add(item19);
|
list.Add(item19);
|
||||||
|
@ -225,7 +225,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item20.Code = 20;
|
item20.Code = 20;
|
||||||
item20.Purpose = "不锈钢丝网";
|
item20.Purpose = "不锈钢丝网";
|
||||||
item20.Description = "304不锈钢丝网,120目,SS";
|
item20.Description = "304不锈钢丝网,120目,SS";
|
||||||
item20.Quantity = "20m2";
|
item20.Quantity = "m2";
|
||||||
item20.Attachment = "";
|
item20.Attachment = "";
|
||||||
item20.Remark = "";
|
item20.Remark = "";
|
||||||
list.Add(item20);
|
list.Add(item20);
|
||||||
|
@ -235,7 +235,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item21.Code = 21;
|
item21.Code = 21;
|
||||||
item21.Purpose = "不锈钢丝网";
|
item21.Purpose = "不锈钢丝网";
|
||||||
item21.Description = "304不锈钢丝网,180目,SS";
|
item21.Description = "304不锈钢丝网,180目,SS";
|
||||||
item21.Quantity = "20m2";
|
item21.Quantity = "m2";
|
||||||
item21.Attachment = "";
|
item21.Attachment = "";
|
||||||
item21.Remark = "";
|
item21.Remark = "";
|
||||||
list.Add(item21);
|
list.Add(item21);
|
||||||
|
@ -245,7 +245,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item22.Code = 22;
|
item22.Code = 22;
|
||||||
item22.Purpose = "消防带";
|
item22.Purpose = "消防带";
|
||||||
item22.Description = "DN150(带连接卡扣),耐压0.8MPa";
|
item22.Description = "DN150(带连接卡扣),耐压0.8MPa";
|
||||||
item22.Quantity = "200米";
|
item22.Quantity = "米";
|
||||||
item22.Attachment = "";
|
item22.Attachment = "";
|
||||||
item22.Remark = "";
|
item22.Remark = "";
|
||||||
list.Add(item22);
|
list.Add(item22);
|
||||||
|
@ -255,7 +255,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item23.Code = 23;
|
item23.Code = 23;
|
||||||
item23.Purpose = "消防带";
|
item23.Purpose = "消防带";
|
||||||
item23.Description = "DN100 (带连接卡扣),耐压0.8MPa";
|
item23.Description = "DN100 (带连接卡扣),耐压0.8MPa";
|
||||||
item23.Quantity = "200米";
|
item23.Quantity = "米";
|
||||||
item23.Attachment = "";
|
item23.Attachment = "";
|
||||||
item23.Remark = "";
|
item23.Remark = "";
|
||||||
list.Add(item23);
|
list.Add(item23);
|
||||||
|
@ -265,7 +265,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item24.Code = 24;
|
item24.Code = 24;
|
||||||
item24.Purpose = "便携式普通对讲机";
|
item24.Purpose = "便携式普通对讲机";
|
||||||
item24.Description = "便携式对讲机,非防爆,通信距离≥3km (优先推荐小米对讲机1S)";
|
item24.Description = "便携式对讲机,非防爆,通信距离≥3km (优先推荐小米对讲机1S)";
|
||||||
item24.Quantity = "10部";
|
item24.Quantity = "部";
|
||||||
item24.Attachment = "";
|
item24.Attachment = "";
|
||||||
item24.Remark = "用于冲洗吹扫联系";
|
item24.Remark = "用于冲洗吹扫联系";
|
||||||
list.Add(item24);
|
list.Add(item24);
|
||||||
|
@ -275,7 +275,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item25.Code = 25;
|
item25.Code = 25;
|
||||||
item25.Purpose = "手持红外测温仪";
|
item25.Purpose = "手持红外测温仪";
|
||||||
item25.Description = "手持红外线测温仪:测温范围 -50℃~500℃ , 精度:0.1℃,误差:±0.5℃";
|
item25.Description = "手持红外线测温仪:测温范围 -50℃~500℃ , 精度:0.1℃,误差:±0.5℃";
|
||||||
item25.Quantity = "3部";
|
item25.Quantity = "部";
|
||||||
item25.Attachment = "";
|
item25.Attachment = "";
|
||||||
item25.Remark = "";
|
item25.Remark = "";
|
||||||
list.Add(item25);
|
list.Add(item25);
|
||||||
|
@ -285,7 +285,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item26.Code = 26;
|
item26.Code = 26;
|
||||||
item26.Purpose = "手电筒";
|
item26.Purpose = "手电筒";
|
||||||
item26.Description = "充电式强光手电筒";
|
item26.Description = "充电式强光手电筒";
|
||||||
item26.Quantity = "5个";
|
item26.Quantity = "个";
|
||||||
item26.Attachment = "";
|
item26.Attachment = "";
|
||||||
item26.Remark = "";
|
item26.Remark = "";
|
||||||
list.Add(item26);
|
list.Add(item26);
|
||||||
|
@ -295,7 +295,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item27.Code = 27;
|
item27.Code = 27;
|
||||||
item27.Purpose = "便携斜挎背包";
|
item27.Purpose = "便携斜挎背包";
|
||||||
item27.Description = "便携背包,斜挎,浅色,帆布等耐脏耐磨材质,方便现场携带资料图纸";
|
item27.Description = "便携背包,斜挎,浅色,帆布等耐脏耐磨材质,方便现场携带资料图纸";
|
||||||
item27.Quantity = "5个";
|
item27.Quantity = "个";
|
||||||
item27.Attachment = "";
|
item27.Attachment = "";
|
||||||
item27.Remark = "";
|
item27.Remark = "";
|
||||||
list.Add(item27);
|
list.Add(item27);
|
||||||
|
@ -305,7 +305,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item28.Code = 28;
|
item28.Code = 28;
|
||||||
item28.Purpose = "便携式四合一气体分析仪";
|
item28.Purpose = "便携式四合一气体分析仪";
|
||||||
item28.Description = "四合一气体分析仪(测量气体EX+O2+CO+H2,带声、光、振动报警,防爆)";
|
item28.Description = "四合一气体分析仪(测量气体EX+O2+CO+H2,带声、光、振动报警,防爆)";
|
||||||
item28.Quantity = "5台";
|
item28.Quantity = "台";
|
||||||
item28.Attachment = "";
|
item28.Attachment = "";
|
||||||
item28.Remark = "";
|
item28.Remark = "";
|
||||||
list.Add(item28);
|
list.Add(item28);
|
||||||
|
@ -315,7 +315,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item29.Code = 29;
|
item29.Code = 29;
|
||||||
item29.Purpose = "开车临时材料";
|
item29.Purpose = "开车临时材料";
|
||||||
item29.Description = "碳钢管:DN900, 20#,CL150, δ12.7mm";
|
item29.Description = "碳钢管:DN900, 20#,CL150, δ12.7mm";
|
||||||
item29.Quantity = "7m";
|
item29.Quantity = "m";
|
||||||
item29.Attachment = "";
|
item29.Attachment = "";
|
||||||
item29.Remark = "";
|
item29.Remark = "";
|
||||||
list.Add(item29);
|
list.Add(item29);
|
||||||
|
@ -325,7 +325,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item30.Code = 30;
|
item30.Code = 30;
|
||||||
item30.Purpose = "开车临时材料";
|
item30.Purpose = "开车临时材料";
|
||||||
item30.Description = "碳钢管:DN700, 20#,CL150, δ12.7mm";
|
item30.Description = "碳钢管:DN700, 20#,CL150, δ12.7mm";
|
||||||
item30.Quantity = "9m";
|
item30.Quantity = "m";
|
||||||
item30.Attachment = "";
|
item30.Attachment = "";
|
||||||
item30.Remark = "";
|
item30.Remark = "";
|
||||||
list.Add(item30);
|
list.Add(item30);
|
||||||
|
@ -335,7 +335,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item31.Code = 31;
|
item31.Code = 31;
|
||||||
item31.Purpose = "开车临时材料";
|
item31.Purpose = "开车临时材料";
|
||||||
item31.Description = "碳钢管:DN600, 20#,CL150, δ9.53mm";
|
item31.Description = "碳钢管:DN600, 20#,CL150, δ9.53mm";
|
||||||
item31.Quantity = "14m";
|
item31.Quantity = "m";
|
||||||
item31.Attachment = "";
|
item31.Attachment = "";
|
||||||
item31.Remark = "";
|
item31.Remark = "";
|
||||||
list.Add(item31);
|
list.Add(item31);
|
||||||
|
@ -345,7 +345,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item32.Code = 32;
|
item32.Code = 32;
|
||||||
item32.Purpose = "开车临时材料";
|
item32.Purpose = "开车临时材料";
|
||||||
item32.Description = "碳钢管:DN500, 20#,CL150, δ9.53mm";
|
item32.Description = "碳钢管:DN500, 20#,CL150, δ9.53mm";
|
||||||
item32.Quantity = "41m";
|
item32.Quantity = "m";
|
||||||
item32.Attachment = "";
|
item32.Attachment = "";
|
||||||
item32.Remark = "";
|
item32.Remark = "";
|
||||||
list.Add(item32);
|
list.Add(item32);
|
||||||
|
@ -355,7 +355,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item33.Code = 33;
|
item33.Code = 33;
|
||||||
item33.Purpose = "开车临时材料";
|
item33.Purpose = "开车临时材料";
|
||||||
item33.Description = "碳钢管:DN450,20#,CL150, δ7.92mm";
|
item33.Description = "碳钢管:DN450,20#,CL150, δ7.92mm";
|
||||||
item33.Quantity = "46m";
|
item33.Quantity = "m";
|
||||||
item33.Attachment = "";
|
item33.Attachment = "";
|
||||||
item33.Remark = "";
|
item33.Remark = "";
|
||||||
list.Add(item33);
|
list.Add(item33);
|
||||||
|
@ -365,7 +365,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item34.Code = 34;
|
item34.Code = 34;
|
||||||
item34.Purpose = "开车临时材料";
|
item34.Purpose = "开车临时材料";
|
||||||
item34.Description = "碳钢管:DN400,20#,CL150, δ7.92mm";
|
item34.Description = "碳钢管:DN400,20#,CL150, δ7.92mm";
|
||||||
item34.Quantity = "57m";
|
item34.Quantity = "m";
|
||||||
item34.Attachment = "";
|
item34.Attachment = "";
|
||||||
item34.Remark = "";
|
item34.Remark = "";
|
||||||
list.Add(item34);
|
list.Add(item34);
|
||||||
|
@ -375,7 +375,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item35.Code = 35;
|
item35.Code = 35;
|
||||||
item35.Purpose = "开车临时材料";
|
item35.Purpose = "开车临时材料";
|
||||||
item35.Description = "无缝碳钢管:DN350,20#,CL150, δ7.92mm";
|
item35.Description = "无缝碳钢管:DN350,20#,CL150, δ7.92mm";
|
||||||
item35.Quantity = "65m";
|
item35.Quantity = "m";
|
||||||
item35.Attachment = "";
|
item35.Attachment = "";
|
||||||
item35.Remark = "";
|
item35.Remark = "";
|
||||||
list.Add(item35);
|
list.Add(item35);
|
||||||
|
@ -385,7 +385,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item36.Code = 36;
|
item36.Code = 36;
|
||||||
item36.Purpose = "开车临时材料";
|
item36.Purpose = "开车临时材料";
|
||||||
item36.Description = "无缝碳钢管:DN250,20#,CL150, δ6.35mm";
|
item36.Description = "无缝碳钢管:DN250,20#,CL150, δ6.35mm";
|
||||||
item36.Quantity = "350m";
|
item36.Quantity = "m";
|
||||||
item36.Attachment = "";
|
item36.Attachment = "";
|
||||||
item36.Remark = "";
|
item36.Remark = "";
|
||||||
list.Add(item36);
|
list.Add(item36);
|
||||||
|
@ -395,7 +395,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item37.Code = 37;
|
item37.Code = 37;
|
||||||
item37.Purpose = "开车临时材料";
|
item37.Purpose = "开车临时材料";
|
||||||
item37.Description = "无缝碳钢管:DN200,20#,CL150, δ6.35mm";
|
item37.Description = "无缝碳钢管:DN200,20#,CL150, δ6.35mm";
|
||||||
item37.Quantity = "350m";
|
item37.Quantity = "m";
|
||||||
item37.Attachment = "";
|
item37.Attachment = "";
|
||||||
item37.Remark = "";
|
item37.Remark = "";
|
||||||
list.Add(item37);
|
list.Add(item37);
|
||||||
|
@ -405,7 +405,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item38.Code = 38;
|
item38.Code = 38;
|
||||||
item38.Purpose = "开车临时材料";
|
item38.Purpose = "开车临时材料";
|
||||||
item38.Description = "无缝碳钢管:DN150,20#,CL150, δ7.11mm";
|
item38.Description = "无缝碳钢管:DN150,20#,CL150, δ7.11mm";
|
||||||
item38.Quantity = "150m";
|
item38.Quantity = "m";
|
||||||
item38.Attachment = "";
|
item38.Attachment = "";
|
||||||
item38.Remark = "";
|
item38.Remark = "";
|
||||||
list.Add(item38);
|
list.Add(item38);
|
||||||
|
@ -415,7 +415,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item39.Code = 39;
|
item39.Code = 39;
|
||||||
item39.Purpose = "开车临时材料";
|
item39.Purpose = "开车临时材料";
|
||||||
item39.Description = "无缝碳钢管:DN100,20#,CL150, δ6.02mm";
|
item39.Description = "无缝碳钢管:DN100,20#,CL150, δ6.02mm";
|
||||||
item39.Quantity = "100m ";
|
item39.Quantity = "m";
|
||||||
item39.Attachment = "";
|
item39.Attachment = "";
|
||||||
item39.Remark = "";
|
item39.Remark = "";
|
||||||
list.Add(item39);
|
list.Add(item39);
|
||||||
|
@ -425,7 +425,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item40.Code = 40;
|
item40.Code = 40;
|
||||||
item40.Purpose = "开车临时材料";
|
item40.Purpose = "开车临时材料";
|
||||||
item40.Description = "无缝碳钢管:DN80,20#, CL150, δ5.49mm";
|
item40.Description = "无缝碳钢管:DN80,20#, CL150, δ5.49mm";
|
||||||
item40.Quantity = "60m";
|
item40.Quantity = "m";
|
||||||
item40.Attachment = "";
|
item40.Attachment = "";
|
||||||
item40.Remark = "";
|
item40.Remark = "";
|
||||||
list.Add(item40);
|
list.Add(item40);
|
||||||
|
@ -435,7 +435,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item41.Code = 41;
|
item41.Code = 41;
|
||||||
item41.Purpose = "开车临时材料";
|
item41.Purpose = "开车临时材料";
|
||||||
item41.Description = "无缝碳钢管:DN50,20#,CL150, δ5.54mm";
|
item41.Description = "无缝碳钢管:DN50,20#,CL150, δ5.54mm";
|
||||||
item41.Quantity = "60m";
|
item41.Quantity = "m";
|
||||||
item41.Attachment = "";
|
item41.Attachment = "";
|
||||||
item41.Remark = "";
|
item41.Remark = "";
|
||||||
list.Add(item41);
|
list.Add(item41);
|
||||||
|
@ -445,7 +445,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item42.Code = 42;
|
item42.Code = 42;
|
||||||
item42.Purpose = "开车临时材料";
|
item42.Purpose = "开车临时材料";
|
||||||
item42.Description = "无缝碳钢管:DN32,20#,CL150, δ5.08mm";
|
item42.Description = "无缝碳钢管:DN32,20#,CL150, δ5.08mm";
|
||||||
item42.Quantity = "30m";
|
item42.Quantity = "m";
|
||||||
item42.Attachment = "";
|
item42.Attachment = "";
|
||||||
item42.Remark = "";
|
item42.Remark = "";
|
||||||
list.Add(item42);
|
list.Add(item42);
|
||||||
|
@ -455,7 +455,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item43.Code = 43;
|
item43.Code = 43;
|
||||||
item43.Purpose = "开车临时材料";
|
item43.Purpose = "开车临时材料";
|
||||||
item43.Description = "无缝碳钢管:DN25,20#,CL150,δ4.55mm";
|
item43.Description = "无缝碳钢管:DN25,20#,CL150,δ4.55mm";
|
||||||
item43.Quantity = "100m";
|
item43.Quantity = "m";
|
||||||
item43.Attachment = "";
|
item43.Attachment = "";
|
||||||
item43.Remark = "";
|
item43.Remark = "";
|
||||||
list.Add(item43);
|
list.Add(item43);
|
||||||
|
@ -465,7 +465,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item44.Code = 44;
|
item44.Code = 44;
|
||||||
item44.Purpose = "开车临时材料";
|
item44.Purpose = "开车临时材料";
|
||||||
item44.Description = "90°弯头,DN300,CL150:A234-WPB-S/W,外径323.8*厚6.35";
|
item44.Description = "90°弯头,DN300,CL150:A234-WPB-S/W,外径323.8*厚6.35";
|
||||||
item44.Quantity = "20个";
|
item44.Quantity = "个";
|
||||||
item44.Attachment = "";
|
item44.Attachment = "";
|
||||||
item44.Remark = "";
|
item44.Remark = "";
|
||||||
list.Add(item44);
|
list.Add(item44);
|
||||||
|
@ -475,7 +475,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item45.Code = 45;
|
item45.Code = 45;
|
||||||
item45.Purpose = "开车临时材料";
|
item45.Purpose = "开车临时材料";
|
||||||
item45.Description = "90°弯头,DN250,CL150:A234-WPB-S/W,外径273*厚6.35";
|
item45.Description = "90°弯头,DN250,CL150:A234-WPB-S/W,外径273*厚6.35";
|
||||||
item45.Quantity = "25个";
|
item45.Quantity = "个";
|
||||||
item45.Attachment = "";
|
item45.Attachment = "";
|
||||||
item45.Remark = "";
|
item45.Remark = "";
|
||||||
list.Add(item45);
|
list.Add(item45);
|
||||||
|
@ -485,7 +485,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item46.Code = 46;
|
item46.Code = 46;
|
||||||
item46.Purpose = "开车临时材料";
|
item46.Purpose = "开车临时材料";
|
||||||
item46.Description = "90°弯头,DN200,CL150: A234-WPB-S/W,外径219.1*厚6.35";
|
item46.Description = "90°弯头,DN200,CL150: A234-WPB-S/W,外径219.1*厚6.35";
|
||||||
item46.Quantity = "25个";
|
item46.Quantity = "个";
|
||||||
item46.Attachment = "";
|
item46.Attachment = "";
|
||||||
item46.Remark = "";
|
item46.Remark = "";
|
||||||
list.Add(item46);
|
list.Add(item46);
|
||||||
|
@ -495,7 +495,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item47.Code = 47;
|
item47.Code = 47;
|
||||||
item47.Purpose = "开车临时材料";
|
item47.Purpose = "开车临时材料";
|
||||||
item47.Description = "90°弯头,DN150,CL150:A234-WPB-S/W,外径168.3*厚7.11";
|
item47.Description = "90°弯头,DN150,CL150:A234-WPB-S/W,外径168.3*厚7.11";
|
||||||
item47.Quantity = "25个";
|
item47.Quantity = "个";
|
||||||
item47.Attachment = "";
|
item47.Attachment = "";
|
||||||
item47.Remark = "";
|
item47.Remark = "";
|
||||||
list.Add(item47);
|
list.Add(item47);
|
||||||
|
@ -505,7 +505,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item48.Code = 48;
|
item48.Code = 48;
|
||||||
item48.Purpose = "开车临时材料";
|
item48.Purpose = "开车临时材料";
|
||||||
item48.Description = "90°弯头,DN100,CL150:A234-WPB-S/W,外径114.3*厚6.02";
|
item48.Description = "90°弯头,DN100,CL150:A234-WPB-S/W,外径114.3*厚6.02";
|
||||||
item48.Quantity = "10个";
|
item48.Quantity = "个";
|
||||||
item48.Attachment = "";
|
item48.Attachment = "";
|
||||||
item48.Remark = "";
|
item48.Remark = "";
|
||||||
list.Add(item48);
|
list.Add(item48);
|
||||||
|
@ -515,7 +515,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item49.Code = 49;
|
item49.Code = 49;
|
||||||
item49.Purpose = "开车临时材料";
|
item49.Purpose = "开车临时材料";
|
||||||
item49.Description = "90°弯头,DN50,CL150:A234-WPB-S/W,外径60.3*厚3.91";
|
item49.Description = "90°弯头,DN50,CL150:A234-WPB-S/W,外径60.3*厚3.91";
|
||||||
item49.Quantity = "10个";
|
item49.Quantity = "个";
|
||||||
item49.Attachment = "";
|
item49.Attachment = "";
|
||||||
item49.Remark = "";
|
item49.Remark = "";
|
||||||
list.Add(item49);
|
list.Add(item49);
|
||||||
|
@ -525,7 +525,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item50.Code = 50;
|
item50.Code = 50;
|
||||||
item50.Purpose = "开车临时材料";
|
item50.Purpose = "开车临时材料";
|
||||||
item50.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.1/2 长度:80mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
item50.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.1/2 长度:80mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
||||||
item50.Quantity = "144 set";
|
item50.Quantity = "set";
|
||||||
item50.Attachment = "";
|
item50.Attachment = "";
|
||||||
item50.Remark = "";
|
item50.Remark = "";
|
||||||
list.Add(item50);
|
list.Add(item50);
|
||||||
|
@ -535,7 +535,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item51.Code = 51;
|
item51.Code = 51;
|
||||||
item51.Purpose = "开车临时材料";
|
item51.Purpose = "开车临时材料";
|
||||||
item51.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.5/8 长度:100mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
item51.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.5/8 长度:100mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
||||||
item51.Quantity = "256 set";
|
item51.Quantity = "set";
|
||||||
item51.Attachment = "";
|
item51.Attachment = "";
|
||||||
item51.Remark = "";
|
item51.Remark = "";
|
||||||
list.Add(item51);
|
list.Add(item51);
|
||||||
|
@ -545,7 +545,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item52.Code = 52;
|
item52.Code = 52;
|
||||||
item52.Purpose = "开车临时材料";
|
item52.Purpose = "开车临时材料";
|
||||||
item52.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.5/8 长度:110mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
item52.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.5/8 长度:110mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
||||||
item52.Quantity = "256 set";
|
item52.Quantity = "set";
|
||||||
item52.Attachment = "";
|
item52.Attachment = "";
|
||||||
item52.Remark = "";
|
item52.Remark = "";
|
||||||
list.Add(item52);
|
list.Add(item52);
|
||||||
|
@ -555,7 +555,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item53.Code = 53;
|
item53.Code = 53;
|
||||||
item53.Purpose = "开车临时材料";
|
item53.Purpose = "开车临时材料";
|
||||||
item53.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.3/4 长度:120mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
item53.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.3/4 长度:120mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
||||||
item53.Quantity = "288 set";
|
item53.Quantity = "set";
|
||||||
item53.Attachment = "";
|
item53.Attachment = "";
|
||||||
item53.Remark = "";
|
item53.Remark = "";
|
||||||
list.Add(item53);
|
list.Add(item53);
|
||||||
|
@ -565,7 +565,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item54.Code = 54;
|
item54.Code = 54;
|
||||||
item54.Purpose = "开车临时材料";
|
item54.Purpose = "开车临时材料";
|
||||||
item54.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.3/4 长度:130mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
item54.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.3/4 长度:130mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
||||||
item54.Quantity = "288 set";
|
item54.Quantity = "set";
|
||||||
item54.Attachment = "";
|
item54.Attachment = "";
|
||||||
item54.Remark = "";
|
item54.Remark = "";
|
||||||
list.Add(item54);
|
list.Add(item54);
|
||||||
|
@ -575,7 +575,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item55.Code = 55;
|
item55.Code = 55;
|
||||||
item55.Purpose = "开车临时材料";
|
item55.Purpose = "开车临时材料";
|
||||||
item55.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.7/8 长度:140mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
item55.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.7/8 长度:140mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
||||||
item55.Quantity = "288 set";
|
item55.Quantity = "set";
|
||||||
item55.Attachment = "";
|
item55.Attachment = "";
|
||||||
item55.Remark = "";
|
item55.Remark = "";
|
||||||
list.Add(item55);
|
list.Add(item55);
|
||||||
|
@ -585,7 +585,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item56.Code = 56;
|
item56.Code = 56;
|
||||||
item56.Purpose = "开车临时材料";
|
item56.Purpose = "开车临时材料";
|
||||||
item56.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.7/8 长度:140mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
item56.Description = "螺栓螺母:FULLTHREAD.STUD.BOLT/NUTS M.7/8 长度:140mm ASME.B16.5/ASME.B18.2.2 A193.GR.B7/A194.GR.2H";
|
||||||
item56.Quantity = "256 set";
|
item56.Quantity = "set";
|
||||||
item56.Attachment = "";
|
item56.Attachment = "";
|
||||||
item56.Remark = "";
|
item56.Remark = "";
|
||||||
list.Add(item56);
|
list.Add(item56);
|
||||||
|
@ -595,7 +595,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item57.Code = 57;
|
item57.Code = 57;
|
||||||
item57.Purpose = "开车临时材料";
|
item57.Purpose = "开车临时材料";
|
||||||
item57.Description = "碳钢闸阀:DN300,CL150,型号:Z2A1A02-P2G3";
|
item57.Description = "碳钢闸阀:DN300,CL150,型号:Z2A1A02-P2G3";
|
||||||
item57.Quantity = "2个";
|
item57.Quantity = "个";
|
||||||
item57.Attachment = "";
|
item57.Attachment = "";
|
||||||
item57.Remark = "";
|
item57.Remark = "";
|
||||||
list.Add(item57);
|
list.Add(item57);
|
||||||
|
@ -605,7 +605,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item58.Code = 58;
|
item58.Code = 58;
|
||||||
item58.Purpose = "开车临时材料";
|
item58.Purpose = "开车临时材料";
|
||||||
item58.Description = "碳钢闸阀:DN200,CL150,型号:Z2A1A02-P2G3";
|
item58.Description = "碳钢闸阀:DN200,CL150,型号:Z2A1A02-P2G3";
|
||||||
item58.Quantity = "3个";
|
item58.Quantity = "个";
|
||||||
item58.Attachment = "";
|
item58.Attachment = "";
|
||||||
item58.Remark = "";
|
item58.Remark = "";
|
||||||
list.Add(item58);
|
list.Add(item58);
|
||||||
|
@ -615,7 +615,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item59.Code = 59;
|
item59.Code = 59;
|
||||||
item59.Purpose = "开车临时材料";
|
item59.Purpose = "开车临时材料";
|
||||||
item59.Description = "碳钢闸阀:DN150,CL150,型号:Z2A1A02-P2G3";
|
item59.Description = "碳钢闸阀:DN150,CL150,型号:Z2A1A02-P2G3";
|
||||||
item59.Quantity = "3个";
|
item59.Quantity = "个";
|
||||||
item59.Attachment = "";
|
item59.Attachment = "";
|
||||||
item59.Remark = "";
|
item59.Remark = "";
|
||||||
list.Add(item59);
|
list.Add(item59);
|
||||||
|
@ -625,7 +625,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item60.Code = 60;
|
item60.Code = 60;
|
||||||
item60.Purpose = "开车临时材料";
|
item60.Purpose = "开车临时材料";
|
||||||
item60.Description = "碳钢闸阀:DN100,CL150,型号:Z2A1A02-P2G3";
|
item60.Description = "碳钢闸阀:DN100,CL150,型号:Z2A1A02-P2G3";
|
||||||
item60.Quantity = "3个";
|
item60.Quantity = "个";
|
||||||
item60.Attachment = "";
|
item60.Attachment = "";
|
||||||
item60.Remark = "";
|
item60.Remark = "";
|
||||||
list.Add(item60);
|
list.Add(item60);
|
||||||
|
@ -635,7 +635,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item61.Code = 61;
|
item61.Code = 61;
|
||||||
item61.Purpose = "开车临时材料";
|
item61.Purpose = "开车临时材料";
|
||||||
item61.Description = "碳钢闸阀:DN50,CL150,型号:Z2A1A02-P2G3";
|
item61.Description = "碳钢闸阀:DN50,CL150,型号:Z2A1A02-P2G3";
|
||||||
item61.Quantity = "3个";
|
item61.Quantity = "个";
|
||||||
item61.Attachment = "";
|
item61.Attachment = "";
|
||||||
item61.Remark = "";
|
item61.Remark = "";
|
||||||
list.Add(item61);
|
list.Add(item61);
|
||||||
|
@ -645,7 +645,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item62.Code = 62;
|
item62.Code = 62;
|
||||||
item62.Purpose = "开车临时材料";
|
item62.Purpose = "开车临时材料";
|
||||||
item62.Description = "碳钢闸阀:DN25,CL150,型号:Z2A1A02-P2G3";
|
item62.Description = "碳钢闸阀:DN25,CL150,型号:Z2A1A02-P2G3";
|
||||||
item62.Quantity = "3个";
|
item62.Quantity = "个";
|
||||||
item62.Attachment = "";
|
item62.Attachment = "";
|
||||||
item62.Remark = "";
|
item62.Remark = "";
|
||||||
list.Add(item62);
|
list.Add(item62);
|
||||||
|
@ -655,7 +655,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item63.Code = 63;
|
item63.Code = 63;
|
||||||
item63.Purpose = "开车临时材料";
|
item63.Purpose = "开车临时材料";
|
||||||
item63.Description = "铝皮:δ=0.6mm, GB/T3880-2012";
|
item63.Description = "铝皮:δ=0.6mm, GB/T3880-2012";
|
||||||
item63.Quantity = "10㎡";
|
item63.Quantity = "㎡";
|
||||||
item63.Attachment = "";
|
item63.Attachment = "";
|
||||||
item63.Remark = "";
|
item63.Remark = "";
|
||||||
list.Add(item63);
|
list.Add(item63);
|
||||||
|
@ -665,7 +665,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item64.Code = 64;
|
item64.Code = 64;
|
||||||
item64.Purpose = "开车临时材料";
|
item64.Purpose = "开车临时材料";
|
||||||
item64.Description = "304不锈钢板:δ10mm , GB/T 4237-2015 06Cr19Ni10";
|
item64.Description = "304不锈钢板:δ10mm , GB/T 4237-2015 06Cr19Ni10";
|
||||||
item64.Quantity = "30㎡";
|
item64.Quantity = "㎡";
|
||||||
item64.Attachment = "";
|
item64.Attachment = "";
|
||||||
item64.Remark = "";
|
item64.Remark = "";
|
||||||
list.Add(item64);
|
list.Add(item64);
|
||||||
|
@ -675,7 +675,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item65.Code = 65;
|
item65.Code = 65;
|
||||||
item65.Purpose = "开车临时材料";
|
item65.Purpose = "开车临时材料";
|
||||||
item65.Description = "碳钢板:δ10mm , Q235B, GB/T 709-2006";
|
item65.Description = "碳钢板:δ10mm , Q235B, GB/T 709-2006";
|
||||||
item65.Quantity = "20㎡";
|
item65.Quantity = "㎡";
|
||||||
item65.Attachment = "";
|
item65.Attachment = "";
|
||||||
item65.Remark = "";
|
item65.Remark = "";
|
||||||
list.Add(item65);
|
list.Add(item65);
|
||||||
|
@ -685,7 +685,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item66.Code = 66;
|
item66.Code = 66;
|
||||||
item66.Purpose = "开车临时材料";
|
item66.Purpose = "开车临时材料";
|
||||||
item66.Description = "碳钢板:δ20mm ,Q235B, GB/T 709-2006";
|
item66.Description = "碳钢板:δ20mm ,Q235B, GB/T 709-2006";
|
||||||
item66.Quantity = "60㎡";
|
item66.Quantity = "㎡";
|
||||||
item66.Attachment = "";
|
item66.Attachment = "";
|
||||||
item66.Remark = "";
|
item66.Remark = "";
|
||||||
list.Add(item66);
|
list.Add(item66);
|
||||||
|
@ -695,7 +695,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item67.Code = 67;
|
item67.Code = 67;
|
||||||
item67.Purpose = "开车临时材料";
|
item67.Purpose = "开车临时材料";
|
||||||
item67.Description = "碳钢板:δ40mm,Q235B, GB/T 709-2006";
|
item67.Description = "碳钢板:δ40mm,Q235B, GB/T 709-2006";
|
||||||
item67.Quantity = "25㎡";
|
item67.Quantity = "㎡";
|
||||||
item67.Attachment = "";
|
item67.Attachment = "";
|
||||||
item67.Remark = "";
|
item67.Remark = "";
|
||||||
list.Add(item67);
|
list.Add(item67);
|
||||||
|
@ -705,7 +705,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item68.Code = 68;
|
item68.Code = 68;
|
||||||
item68.Purpose = "开车临时材料";
|
item68.Purpose = "开车临时材料";
|
||||||
item68.Description = "不锈钢丝滤网6目:304不锈钢,SS";
|
item68.Description = "不锈钢丝滤网6目:304不锈钢,SS";
|
||||||
item68.Quantity = "10㎡";
|
item68.Quantity = "㎡";
|
||||||
item68.Attachment = "";
|
item68.Attachment = "";
|
||||||
item68.Remark = "";
|
item68.Remark = "";
|
||||||
list.Add(item68);
|
list.Add(item68);
|
||||||
|
@ -715,7 +715,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item69.Code = 69;
|
item69.Code = 69;
|
||||||
item69.Purpose = "开车临时材料";
|
item69.Purpose = "开车临时材料";
|
||||||
item69.Description = "不锈钢丝滤网16目:304不锈钢,SS";
|
item69.Description = "不锈钢丝滤网16目:304不锈钢,SS";
|
||||||
item69.Quantity = "10m2";
|
item69.Quantity = "m2";
|
||||||
item69.Attachment = "";
|
item69.Attachment = "";
|
||||||
item69.Remark = "";
|
item69.Remark = "";
|
||||||
list.Add(item69);
|
list.Add(item69);
|
||||||
|
@ -725,7 +725,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item70.Code = 70;
|
item70.Code = 70;
|
||||||
item70.Purpose = "开车临时材料";
|
item70.Purpose = "开车临时材料";
|
||||||
item70.Description = "不锈钢丝滤网30目:304不锈钢,SS";
|
item70.Description = "不锈钢丝滤网30目:304不锈钢,SS";
|
||||||
item70.Quantity = "15㎡";
|
item70.Quantity = "㎡";
|
||||||
item70.Attachment = "";
|
item70.Attachment = "";
|
||||||
item70.Remark = "";
|
item70.Remark = "";
|
||||||
list.Add(item70);
|
list.Add(item70);
|
||||||
|
@ -735,7 +735,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item71.Code = 71;
|
item71.Code = 71;
|
||||||
item71.Purpose = "开车临时材料";
|
item71.Purpose = "开车临时材料";
|
||||||
item71.Description = "不锈钢丝滤网120目:304不锈钢,SS";
|
item71.Description = "不锈钢丝滤网120目:304不锈钢,SS";
|
||||||
item71.Quantity = "20㎡";
|
item71.Quantity = "㎡";
|
||||||
item71.Attachment = "";
|
item71.Attachment = "";
|
||||||
item71.Remark = "";
|
item71.Remark = "";
|
||||||
list.Add(item71);
|
list.Add(item71);
|
||||||
|
@ -745,7 +745,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item72.Code = 72;
|
item72.Code = 72;
|
||||||
item72.Purpose = "开车临时材料";
|
item72.Purpose = "开车临时材料";
|
||||||
item72.Description = "不锈钢丝滤网180目:304不锈钢,SS";
|
item72.Description = "不锈钢丝滤网180目:304不锈钢,SS";
|
||||||
item72.Quantity = "20㎡";
|
item72.Quantity = "㎡";
|
||||||
item72.Attachment = "";
|
item72.Attachment = "";
|
||||||
item72.Remark = "";
|
item72.Remark = "";
|
||||||
list.Add(item72);
|
list.Add(item72);
|
||||||
|
@ -755,7 +755,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item73.Code = 73;
|
item73.Code = 73;
|
||||||
item73.Purpose = "开车临时材料";
|
item73.Purpose = "开车临时材料";
|
||||||
item73.Description = "耐压石棉板(耐油性):δ3.0mm";
|
item73.Description = "耐压石棉板(耐油性):δ3.0mm";
|
||||||
item73.Quantity = "200kg";
|
item73.Quantity = "kg";
|
||||||
item73.Attachment = "";
|
item73.Attachment = "";
|
||||||
item73.Remark = "";
|
item73.Remark = "";
|
||||||
list.Add(item73);
|
list.Add(item73);
|
||||||
|
@ -765,7 +765,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item74.Code = 74;
|
item74.Code = 74;
|
||||||
item74.Purpose = "开车临时材料";
|
item74.Purpose = "开车临时材料";
|
||||||
item74.Description = "耐压石棉板(耐油性):δ2.0mm";
|
item74.Description = "耐压石棉板(耐油性):δ2.0mm";
|
||||||
item74.Quantity = "200kg";
|
item74.Quantity = "kg";
|
||||||
item74.Attachment = "";
|
item74.Attachment = "";
|
||||||
item74.Remark = "";
|
item74.Remark = "";
|
||||||
list.Add(item74);
|
list.Add(item74);
|
||||||
|
@ -775,7 +775,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item75.Code = 75;
|
item75.Code = 75;
|
||||||
item75.Purpose = "开车临时材料";
|
item75.Purpose = "开车临时材料";
|
||||||
item75.Description = "黑色耐压橡胶板:δ3.0mm";
|
item75.Description = "黑色耐压橡胶板:δ3.0mm";
|
||||||
item75.Quantity = "150kg";
|
item75.Quantity = "kg";
|
||||||
item75.Attachment = "";
|
item75.Attachment = "";
|
||||||
item75.Remark = "";
|
item75.Remark = "";
|
||||||
list.Add(item75);
|
list.Add(item75);
|
||||||
|
@ -785,7 +785,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item76.Code = 76;
|
item76.Code = 76;
|
||||||
item76.Purpose = "开车临时材料";
|
item76.Purpose = "开车临时材料";
|
||||||
item76.Description = "聚四氟乙稀版:δ1.0mm";
|
item76.Description = "聚四氟乙稀版:δ1.0mm";
|
||||||
item76.Quantity = "15㎡";
|
item76.Quantity = "㎡";
|
||||||
item76.Attachment = "";
|
item76.Attachment = "";
|
||||||
item76.Remark = "";
|
item76.Remark = "";
|
||||||
list.Add(item76);
|
list.Add(item76);
|
||||||
|
@ -795,7 +795,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item77.Code = 77;
|
item77.Code = 77;
|
||||||
item77.Purpose = "开车临时材料";
|
item77.Purpose = "开车临时材料";
|
||||||
item77.Description = "聚四氟乙稀版:δ2.0mm";
|
item77.Description = "聚四氟乙稀版:δ2.0mm";
|
||||||
item77.Quantity = "15㎡";
|
item77.Quantity = "㎡";
|
||||||
item77.Attachment = "";
|
item77.Attachment = "";
|
||||||
item77.Remark = "";
|
item77.Remark = "";
|
||||||
list.Add(item77);
|
list.Add(item77);
|
||||||
|
@ -805,7 +805,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item78.Code = 78;
|
item78.Code = 78;
|
||||||
item78.Purpose = "开车临时材料";
|
item78.Purpose = "开车临时材料";
|
||||||
item78.Description = "内衬金属弹簧塑料软管DN100, 承压0.6MPa(工作介质:水)";
|
item78.Description = "内衬金属弹簧塑料软管DN100, 承压0.6MPa(工作介质:水)";
|
||||||
item78.Quantity = "150m";
|
item78.Quantity = "m";
|
||||||
item78.Attachment = "";
|
item78.Attachment = "";
|
||||||
item78.Remark = "";
|
item78.Remark = "";
|
||||||
list.Add(item78);
|
list.Add(item78);
|
||||||
|
@ -815,7 +815,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item79.Code = 79;
|
item79.Code = 79;
|
||||||
item79.Purpose = "开车临时材料";
|
item79.Purpose = "开车临时材料";
|
||||||
item79.Description = "内衬金属弹簧塑料软管DN80, 承压0.6MPa(工作介质:水)";
|
item79.Description = "内衬金属弹簧塑料软管DN80, 承压0.6MPa(工作介质:水)";
|
||||||
item79.Quantity = "125m";
|
item79.Quantity = "m";
|
||||||
item79.Attachment = "";
|
item79.Attachment = "";
|
||||||
item79.Remark = "";
|
item79.Remark = "";
|
||||||
list.Add(item79);
|
list.Add(item79);
|
||||||
|
@ -825,7 +825,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item80.Code = 80;
|
item80.Code = 80;
|
||||||
item80.Purpose = "开车临时材料";
|
item80.Purpose = "开车临时材料";
|
||||||
item80.Description = "内衬金属弹簧塑料软管DN50, 承压0.6MPa(工作介质:水)";
|
item80.Description = "内衬金属弹簧塑料软管DN50, 承压0.6MPa(工作介质:水)";
|
||||||
item80.Quantity = "200m";
|
item80.Quantity = "m";
|
||||||
item80.Attachment = "";
|
item80.Attachment = "";
|
||||||
item80.Remark = "";
|
item80.Remark = "";
|
||||||
list.Add(item80);
|
list.Add(item80);
|
||||||
|
@ -835,7 +835,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item81.Code = 81;
|
item81.Code = 81;
|
||||||
item81.Purpose = "开车临时材料";
|
item81.Purpose = "开车临时材料";
|
||||||
item81.Description = "内衬金属弹簧塑料软管DN32, 承压0.6MPa(工作介质:水)";
|
item81.Description = "内衬金属弹簧塑料软管DN32, 承压0.6MPa(工作介质:水)";
|
||||||
item81.Quantity = "125m";
|
item81.Quantity = "m";
|
||||||
item81.Attachment = "";
|
item81.Attachment = "";
|
||||||
item81.Remark = "";
|
item81.Remark = "";
|
||||||
list.Add(item81);
|
list.Add(item81);
|
||||||
|
@ -845,7 +845,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item82.Code = 82;
|
item82.Code = 82;
|
||||||
item82.Purpose = "开车临时材料";
|
item82.Purpose = "开车临时材料";
|
||||||
item82.Description = "内衬金属弹簧塑料软管DN25, 承压0.6MPa(工作介质:水)";
|
item82.Description = "内衬金属弹簧塑料软管DN25, 承压0.6MPa(工作介质:水)";
|
||||||
item82.Quantity = "75m";
|
item82.Quantity = "m";
|
||||||
item82.Attachment = "";
|
item82.Attachment = "";
|
||||||
item82.Remark = "";
|
item82.Remark = "";
|
||||||
list.Add(item82);
|
list.Add(item82);
|
||||||
|
@ -855,7 +855,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item83.Code = 83;
|
item83.Code = 83;
|
||||||
item83.Purpose = "开车临时材料";
|
item83.Purpose = "开车临时材料";
|
||||||
item83.Description = "消防带:DN150(带连接卡扣),耐压0.8MPa";
|
item83.Description = "消防带:DN150(带连接卡扣),耐压0.8MPa";
|
||||||
item83.Quantity = "200m";
|
item83.Quantity = "m";
|
||||||
item83.Attachment = "";
|
item83.Attachment = "";
|
||||||
item83.Remark = "";
|
item83.Remark = "";
|
||||||
list.Add(item83);
|
list.Add(item83);
|
||||||
|
@ -865,7 +865,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item84.Code = 84;
|
item84.Code = 84;
|
||||||
item84.Purpose = "开车临时材料";
|
item84.Purpose = "开车临时材料";
|
||||||
item84.Description = "消防带:DN100 (带连接卡扣),耐压0.8MPa";
|
item84.Description = "消防带:DN100 (带连接卡扣),耐压0.8MPa";
|
||||||
item84.Quantity = "200m";
|
item84.Quantity = "m";
|
||||||
item84.Attachment = "";
|
item84.Attachment = "";
|
||||||
item84.Remark = "";
|
item84.Remark = "";
|
||||||
list.Add(item84);
|
list.Add(item84);
|
||||||
|
@ -875,7 +875,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item85.Code = 85;
|
item85.Code = 85;
|
||||||
item85.Purpose = "开车临时材料";
|
item85.Purpose = "开车临时材料";
|
||||||
item85.Description = "内衬纤维耐压黑色橡胶软管:DN32,承压1.5MPa(工作介质:压缩空气)";
|
item85.Description = "内衬纤维耐压黑色橡胶软管:DN32,承压1.5MPa(工作介质:压缩空气)";
|
||||||
item85.Quantity = "200m";
|
item85.Quantity = "m";
|
||||||
item85.Attachment = "";
|
item85.Attachment = "";
|
||||||
item85.Remark = "";
|
item85.Remark = "";
|
||||||
list.Add(item85);
|
list.Add(item85);
|
||||||
|
@ -885,7 +885,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item86.Code = 86;
|
item86.Code = 86;
|
||||||
item86.Purpose = "开车临时材料";
|
item86.Purpose = "开车临时材料";
|
||||||
item86.Description = "内衬纤维耐压黑色橡胶软管:DN25,承压1.5MPa(工作介质:压缩空气)";
|
item86.Description = "内衬纤维耐压黑色橡胶软管:DN25,承压1.5MPa(工作介质:压缩空气)";
|
||||||
item86.Quantity = "100m";
|
item86.Quantity = "m";
|
||||||
item86.Attachment = "";
|
item86.Attachment = "";
|
||||||
item86.Remark = "";
|
item86.Remark = "";
|
||||||
list.Add(item86);
|
list.Add(item86);
|
||||||
|
@ -895,7 +895,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item87.Code = 87;
|
item87.Code = 87;
|
||||||
item87.Purpose = "开车临时材料";
|
item87.Purpose = "开车临时材料";
|
||||||
item87.Description = "聚四氟乙烯生料带:δ0.1mm、宽18mm";
|
item87.Description = "聚四氟乙烯生料带:δ0.1mm、宽18mm";
|
||||||
item87.Quantity = "6卷";
|
item87.Quantity = "卷";
|
||||||
item87.Attachment = "";
|
item87.Attachment = "";
|
||||||
item87.Remark = "";
|
item87.Remark = "";
|
||||||
list.Add(item87);
|
list.Add(item87);
|
||||||
|
@ -905,7 +905,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item88.Code = 88;
|
item88.Code = 88;
|
||||||
item88.Purpose = "开车临时材料";
|
item88.Purpose = "开车临时材料";
|
||||||
item88.Description = "红外线测温仪:测温范围 -50℃~350℃ , 精度:0.1℃,误差:±0.5℃";
|
item88.Description = "红外线测温仪:测温范围 -50℃~350℃ , 精度:0.1℃,误差:±0.5℃";
|
||||||
item88.Quantity = "1个";
|
item88.Quantity = "个";
|
||||||
item88.Attachment = "";
|
item88.Attachment = "";
|
||||||
item88.Remark = "";
|
item88.Remark = "";
|
||||||
list.Add(item88);
|
list.Add(item88);
|
||||||
|
@ -915,7 +915,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item89.Code = 89;
|
item89.Code = 89;
|
||||||
item89.Purpose = "开车临时材料";
|
item89.Purpose = "开车临时材料";
|
||||||
item89.Description = "普通防爆对讲机(通信距离大于3km)";
|
item89.Description = "普通防爆对讲机(通信距离大于3km)";
|
||||||
item89.Quantity = "15个";
|
item89.Quantity = "个";
|
||||||
item89.Attachment = "";
|
item89.Attachment = "";
|
||||||
item89.Remark = "";
|
item89.Remark = "";
|
||||||
list.Add(item89);
|
list.Add(item89);
|
||||||
|
@ -925,7 +925,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item90.Code = 90;
|
item90.Code = 90;
|
||||||
item90.Purpose = "开车临时材料";
|
item90.Purpose = "开车临时材料";
|
||||||
item90.Description = "手摇油泵(油抽子)";
|
item90.Description = "手摇油泵(油抽子)";
|
||||||
item90.Quantity = "4个";
|
item90.Quantity = "个";
|
||||||
item90.Attachment = "";
|
item90.Attachment = "";
|
||||||
item90.Remark = "";
|
item90.Remark = "";
|
||||||
list.Add(item90);
|
list.Add(item90);
|
||||||
|
@ -935,7 +935,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item91.Code = 91;
|
item91.Code = 91;
|
||||||
item91.Purpose = "开车临时材料";
|
item91.Purpose = "开车临时材料";
|
||||||
item91.Description = "压力表:量程0~6.0MPa, 弹簧管压力表 (压缩空气或水系统使用)";
|
item91.Description = "压力表:量程0~6.0MPa, 弹簧管压力表 (压缩空气或水系统使用)";
|
||||||
item91.Quantity = "2块";
|
item91.Quantity = "块";
|
||||||
item91.Attachment = "";
|
item91.Attachment = "";
|
||||||
item91.Remark = "";
|
item91.Remark = "";
|
||||||
list.Add(item91);
|
list.Add(item91);
|
||||||
|
@ -945,7 +945,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item92.Code = 92;
|
item92.Code = 92;
|
||||||
item92.Purpose = "开车临时材料";
|
item92.Purpose = "开车临时材料";
|
||||||
item92.Description = "压力表:量程0~1.5MPa,弹簧管压力表(压缩空气或水系统使用)";
|
item92.Description = "压力表:量程0~1.5MPa,弹簧管压力表(压缩空气或水系统使用)";
|
||||||
item92.Quantity = "4块";
|
item92.Quantity = "块";
|
||||||
item92.Attachment = "";
|
item92.Attachment = "";
|
||||||
item92.Remark = "";
|
item92.Remark = "";
|
||||||
list.Add(item92);
|
list.Add(item92);
|
||||||
|
@ -955,7 +955,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item93.Code = 93;
|
item93.Code = 93;
|
||||||
item93.Purpose = "开车临时材料";
|
item93.Purpose = "开车临时材料";
|
||||||
item93.Description = "压力表:量程0~1.5MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
item93.Description = "压力表:量程0~1.5MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
||||||
item93.Quantity = "4块";
|
item93.Quantity = "块";
|
||||||
item93.Attachment = "";
|
item93.Attachment = "";
|
||||||
item93.Remark = "";
|
item93.Remark = "";
|
||||||
list.Add(item93);
|
list.Add(item93);
|
||||||
|
@ -965,7 +965,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item94.Code = 94;
|
item94.Code = 94;
|
||||||
item94.Purpose = "开车临时材料";
|
item94.Purpose = "开车临时材料";
|
||||||
item94.Description = "压力表:量程0~4MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
item94.Description = "压力表:量程0~4MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
||||||
item94.Quantity = "4块";
|
item94.Quantity = "块";
|
||||||
item94.Attachment = "";
|
item94.Attachment = "";
|
||||||
item94.Remark = "";
|
item94.Remark = "";
|
||||||
list.Add(item94);
|
list.Add(item94);
|
||||||
|
@ -975,7 +975,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item95.Code = 95;
|
item95.Code = 95;
|
||||||
item95.Purpose = "开车临时材料";
|
item95.Purpose = "开车临时材料";
|
||||||
item95.Description = "压力表:量程0~15MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
item95.Description = "压力表:量程0~15MPa,不锈钢压力表,带冷凝弯(蒸汽系统使用)";
|
||||||
item95.Quantity = "2块";
|
item95.Quantity = "块";
|
||||||
item95.Attachment = "";
|
item95.Attachment = "";
|
||||||
item95.Remark = "";
|
item95.Remark = "";
|
||||||
list.Add(item95);
|
list.Add(item95);
|
||||||
|
@ -985,7 +985,7 @@ namespace FineUIPro.Web.TestRun.DriverGoods
|
||||||
item96.Code = 96;
|
item96.Code = 96;
|
||||||
item96.Purpose = "开车临时材料";
|
item96.Purpose = "开车临时材料";
|
||||||
item96.Description = "潜污泵: 流量≥50m3/h,扬程≥15m,吸程≥5m (全浸入式的泥沙水环境中使用)";
|
item96.Description = "潜污泵: 流量≥50m3/h,扬程≥15m,吸程≥5m (全浸入式的泥沙水环境中使用)";
|
||||||
item96.Quantity = "3台";
|
item96.Quantity = "台";
|
||||||
item96.Attachment = "";
|
item96.Attachment = "";
|
||||||
item96.Remark = "";
|
item96.Remark = "";
|
||||||
list.Add(item96);
|
list.Add(item96);
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox ID="txtQuantity" runat="server" Label="数量" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true">
|
<f:TextBox ID="txtQuantity" runat="server" Label="单位" LabelAlign="Right" LabelWidth="130px" Required="true" ShowRedStar="true">
|
||||||
</f:TextBox>
|
</f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<f:RenderField ColumnID="Description" DataField="Description" FieldType="String" HeaderText="设备(材料)名称及规格" TextAlign="Center"
|
<f:RenderField ColumnID="Description" DataField="Description" FieldType="String" HeaderText="设备(材料)名称及规格" TextAlign="Center"
|
||||||
HeaderTextAlign="Center" Width="300px" ExpandUnusedSpace="true">
|
HeaderTextAlign="Center" Width="300px" ExpandUnusedSpace="true">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField ColumnID="Quantity" DataField="Quantity" FieldType="String" HeaderText="数量" TextAlign="Center"
|
<f:RenderField ColumnID="Quantity" DataField="Quantity" FieldType="String" HeaderText="单位" TextAlign="Center"
|
||||||
HeaderTextAlign="Center" Width="100px">
|
HeaderTextAlign="Center" Width="100px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField ColumnID="Attachment" DataField="Attachment" FieldType="String" HeaderText="附件(详细清单/图纸等)" TextAlign="Center"
|
<f:RenderField ColumnID="Attachment" DataField="Attachment" FieldType="String" HeaderText="附件(详细清单/图纸等)" TextAlign="Center"
|
||||||
|
|
|
@ -0,0 +1,87 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestRunPerformanceMonthReport.aspx.cs" Inherits="FineUIPro.Web.ZHGL.TestRunPerformance.TestRunPerformanceMonthReport" %>
|
||||||
|
|
||||||
|
<!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,203 @@
|
||||||
|
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 TestRunPerformanceMonthReport : 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 performance.TestRunPerformanceMonthReportId,performance.Year,performance.UserId,performance.CompileDate,Users.UserName "
|
||||||
|
+ @" From dbo.ZHGL_TestRunPerformanceMonthReport AS performance"
|
||||||
|
+ @" LEFT JOIN Sys_User AS Users ON Users.UserId=performance.UserId"
|
||||||
|
+ @" WHERE 1=1";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
if (this.CurrUser.UserId != BLL.Const.sysglyId && this.CurrUser.UserId != BLL.Const.hfnbdId)
|
||||||
|
{
|
||||||
|
strSql += " AND performance.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 performance = TestRunPerformanceMonthReportService.GetTestRunPerformanceMonthReportById(rowID);
|
||||||
|
if (performance != null)
|
||||||
|
{
|
||||||
|
BLL.TestRunPerformanceMonthReportService.DeleteTestRunPerformanceMonthReportById(rowID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
BindGrid();
|
||||||
|
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ShowNotify("请至少选中一行!", MessageBoxIcon.Warning);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
protected void btnNew_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("TestRunPerformanceMonthReportEdit.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("TestRunPerformanceMonthReportEdit.aspx?TestRunPerformanceMonthReportId={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.TestRunPerformanceMonthReportMenuId);
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
150
SGGL/FineUIPro.Web/ZHGL/TestRunPerformance/TestRunPerformanceMonthReport.aspx.designer.cs
generated
Normal file
150
SGGL/FineUIPro.Web/ZHGL/TestRunPerformance/TestRunPerformanceMonthReport.aspx.designer.cs
generated
Normal file
|
@ -0,0 +1,150 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ZHGL.TestRunPerformance {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class TestRunPerformanceMonthReport {
|
||||||
|
|
||||||
|
/// <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,144 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestRunPerformanceMonthReportEdit.aspx.cs" Inherits="FineUIPro.Web.ZHGL.TestRunPerformance.TestRunPerformanceMonthReportEdit" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<title></title>
|
||||||
|
<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="" BoxFlex="1" AllowColumnLocking="true"
|
||||||
|
runat="server" EnableCollapse="true" DataKeyNames="Id" EnableTree="true" EnableColumnLines="true"
|
||||||
|
DataIDField="Id">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList runat="server" ID="drpUser" Label="开车人员" LabelWidth="100px" LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="drpUser_SelectedIndexChanged"></f:DropDownList>
|
||||||
|
<f:DatePicker runat="server" Label="年份" ID="txtYear" LabelWidth="100px" LabelAlign="Right" DisplayType="Year" DateFormatString="yyyy" AutoPostBack="true" OnTextChanged="drpUser_SelectedIndexChanged"></f:DatePicker>
|
||||||
|
<f:TextBox runat="server" ID="hdId" Hidden="true"></f:TextBox>
|
||||||
|
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||||
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存"
|
||||||
|
OnClick="btnSave_Click">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="60px" ColumnID="Code" DataField="Code" HeaderTextAlign="Center" EnableLock="true" Locked="true"
|
||||||
|
HeaderText="序号" />
|
||||||
|
<f:GroupField HeaderText="开车工作事项<br/>WBS" TextAlign="Center" EnableLock="true" Locked="true">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="ProjectName" DataField="ProjectName" HeaderText="工作地点" TextAlign="Center" EnableLock="true" Locked="true" />
|
||||||
|
<f:BoundField Width="200px" ColumnID="JobContent" DataField="JobContent" HeaderText="工作内容" TextAlign="Center" EnableLock="true" Locked="true" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:BoundField Width="100px" ColumnID="IsForeign" DataField="IsForeign" HeaderText="是否境外项目" TextAlign="Center" />
|
||||||
|
<f:GroupField HeaderText="标准工日(不含系数)" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:GroupField HeaderText="部门基础工作" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item1" DataField="Item1" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit1" DataField="Unit1" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Days1" DataField="Days1" HeaderText="手动输入" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:GroupField HeaderText="公司培训" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item2" DataField="Item2" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit2" DataField="Unit2" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:GroupField HeaderText="项目报价" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item3" DataField="Item3" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit3" DataField="Unit3" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:GroupField HeaderText="开车策划" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item4" DataField="Item4" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit4" DataField="Unit4" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:GroupField HeaderText="开车培训" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item5" DataField="Item5" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit5" DataField="Unit5" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Days5" DataField="Days5" HeaderText="手动输入" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:GroupField HeaderText="合同管理" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item6" DataField="Item6" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit6" DataField="Unit6" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:GroupField HeaderText="预试车" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item7" DataField="Item7" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit7" DataField="Unit7" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Days7" DataField="Days7" HeaderText="手动输入" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:GroupField HeaderText="试车" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item8" DataField="Item8" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit8" DataField="Unit8" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:GroupField HeaderText="试运行及考核" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item9" DataField="Item9" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit9" DataField="Unit9" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Days9" DataField="Days9" HeaderText="手动输入" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:GroupField HeaderText="开车收尾" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item10" DataField="Item10" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit10" DataField="Unit10" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Days10" DataField="Days10" HeaderText="手动输入" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:GroupField HeaderText="项目协调" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item11" DataField="Item11" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit11" DataField="Unit11" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:GroupField HeaderText="其他工作" TextAlign="Center">
|
||||||
|
<Columns>
|
||||||
|
<f:BoundField Width="100px" ColumnID="Item12" DataField="Item12" HeaderText="工作类别" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Unit12" DataField="Unit12" HeaderText="计量单位" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="Days12" DataField="Days12" HeaderText="手动输入" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
</Columns>
|
||||||
|
</f:GroupField>
|
||||||
|
<f:BoundField Width="100px" ColumnID="SumDays" DataField="SumDays" HeaderText="合计标准工日" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="ProjectTripDays" DataField="ProjectTripDays" HeaderText="项目出差天数" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="OtherTripDays" DataField="OtherTripDays" HeaderText="其他出差天数" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="SumDays1" DataField="SumDays1" HeaderText="基础工作折算工日" TextAlign="Center" />
|
||||||
|
<f:BoundField Width="100px" ColumnID="SumDays3" DataField="SumDays3" HeaderText="投标折算工日" TextAlign="Center" />
|
||||||
|
</Columns>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,386 @@
|
||||||
|
using BLL;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ZHGL.TestRunPerformance
|
||||||
|
{
|
||||||
|
public partial class TestRunPerformanceMonthReportEdit : PageBase
|
||||||
|
{
|
||||||
|
|
||||||
|
#region 加载
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
string Id = Request.Params["TestRunPerformanceMonthReportId"];
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
var userIds = (from x in db.Person_TestRunPerformance select x.UserId).Distinct().ToList();
|
||||||
|
var users = from x in db.Sys_User where userIds.Contains(x.UserId) select x;
|
||||||
|
this.drpUser.DataTextField = "UserName";
|
||||||
|
this.drpUser.DataValueField = "UserId";
|
||||||
|
this.drpUser.DataSource = users;
|
||||||
|
this.drpUser.DataBind();
|
||||||
|
Funs.FineUIPleaseSelect(this.drpUser);
|
||||||
|
this.drpUser.SelectedValue = this.CurrUser.UserId;
|
||||||
|
Model.ZHGL_TestRunPerformanceMonthReport report = BLL.TestRunPerformanceMonthReportService.GetTestRunPerformanceMonthReportById(Id);
|
||||||
|
if (report != null)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(report.UserId))
|
||||||
|
{
|
||||||
|
this.drpUser.SelectedValue = report.UserId;
|
||||||
|
}
|
||||||
|
if (report.Year != null)
|
||||||
|
{
|
||||||
|
this.txtYear.Text = report.Year.ToString();
|
||||||
|
}
|
||||||
|
if (this.drpUser.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.txtYear.Text.Trim()))
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
Model.SGGLDB db = Funs.DB;
|
||||||
|
DateTime startDate = Convert.ToDateTime(this.txtYear.Text + "-01" + "-01");
|
||||||
|
DateTime endDate = startDate.AddYears(1);
|
||||||
|
var projects = from x in db.Base_Project select x;
|
||||||
|
var getTestRunPerformances = (from x in db.Person_TestRunPerformance
|
||||||
|
join y in db.Base_TestRunPerformanceStandard on x.TestRunPerformanceStandardId equals y.TestRunPerformanceStandardId
|
||||||
|
where x.UserId == this.drpUser.SelectedValue && x.Months >= startDate && x.Months < endDate
|
||||||
|
select new { x.Months, x.ProjectId, x.JobContent, y.Type, y.Item, y.Unit, y.Days }).ToList();
|
||||||
|
IQueryable<Model.Person_BusinessTrip> getTrips = from x in db.Person_BusinessTrip
|
||||||
|
where x.UserId == this.drpUser.SelectedValue && x.LeaveDate >= startDate && x.ArriveDate < endDate
|
||||||
|
select x;
|
||||||
|
IQueryable<Model.View_WBS_CostControlParentDetail> getParentDetails = from x in db.View_WBS_CostControlParentDetail select x;
|
||||||
|
IQueryable<Model.Wbs_WbsSet> getWbsSets = from x in db.Wbs_WbsSet select x;
|
||||||
|
IQueryable<Model.WBS_WbsSetInit> getWbsSetInits = from x in db.WBS_WbsSetInit select x;
|
||||||
|
IQueryable<Model.Wbs_UnitProject> getUnitProjects = from x in db.Wbs_UnitProject select x;
|
||||||
|
IQueryable<Model.Wbs_UnitProjectInit> getUnitProjectInits = from x in db.Wbs_UnitProjectInit select x;
|
||||||
|
IQueryable<Model.WBS_CnProfession> getCnProfessions = from x in db.WBS_CnProfession select x;
|
||||||
|
IQueryable<Model.WBS_CnProfessionInit> getCnProfessionInits = from x in db.WBS_CnProfessionInit select x;
|
||||||
|
IQueryable<Model.Project_Installation> getInstallations = from x in db.Project_Installation select x;
|
||||||
|
IQueryable<Model.View_WBS_CostControlDetailStatistics> getCostControlDetailStatisticss = from x in db.View_WBS_CostControlDetailStatistics select x;
|
||||||
|
List<Model.View_WBS_CostControlDetailStatistics> CostControlDetailStatisticsList = new List<Model.View_WBS_CostControlDetailStatistics>();
|
||||||
|
if (getTestRunPerformances.Count() > 0)
|
||||||
|
{
|
||||||
|
DataTable table = new DataTable();
|
||||||
|
DateTime startMonth;
|
||||||
|
List<DateTime> months = new List<DateTime>();
|
||||||
|
startMonth = startDate;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
months.Add(startMonth);
|
||||||
|
startMonth = startMonth.AddMonths(1);
|
||||||
|
} while (startMonth < endDate);
|
||||||
|
|
||||||
|
table.Columns.Add(new DataColumn("Id", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Code", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("ProjectName", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("JobContent", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("IsForeign", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item1", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit1", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Days1", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item2", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit2", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item3", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit3", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item4", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit4", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item5", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit5", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Days5", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item6", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit6", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item7", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit7", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Days7", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item8", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit8", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item9", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit9", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Days9", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item10", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit10", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Days10", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item11", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit11", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Item12", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Unit12", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("Days12", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("SumDays", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("ProjectTripDays", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("OtherTripDays", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("SumDays1", typeof(String)));
|
||||||
|
table.Columns.Add(new DataColumn("SumDays3", typeof(String)));
|
||||||
|
int a = 1;
|
||||||
|
for (int i = 0; i < months.Count; i++)
|
||||||
|
{
|
||||||
|
DataRow row;
|
||||||
|
row = table.NewRow();
|
||||||
|
row["Id"] = SQLHelper.GetNewID();
|
||||||
|
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);
|
||||||
|
row["Item2"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "公司培训").Sum(x => x.Days ?? 0);
|
||||||
|
row["Item3"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "项目投标").Sum(x => x.Days ?? 0);
|
||||||
|
row["Item4"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "开车策划").Sum(x => x.Days ?? 0);
|
||||||
|
row["Item5"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "开车培训").Sum(x => x.Days ?? 0);
|
||||||
|
row["Item6"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "合同管理").Sum(x => x.Days ?? 0);
|
||||||
|
row["Item7"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "预试车").Sum(x => x.Days ?? 0);
|
||||||
|
row["Item8"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "试车").Sum(x => x.Days ?? 0);
|
||||||
|
row["Item9"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "试运行及考核").Sum(x => x.Days ?? 0);
|
||||||
|
row["Item10"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "开车收尾").Sum(x => x.Days ?? 0);
|
||||||
|
row["Item11"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "项目协调").Sum(x => x.Days ?? 0);
|
||||||
|
row["Item12"] = getTestRunPerformances.Where(x => x.Months == months[i] && x.Type == "其他").Sum(x => x.Days ?? 0);
|
||||||
|
table.Rows.Add(row);
|
||||||
|
var monthList = getTestRunPerformances.Where(x => x.Months == months[i]);
|
||||||
|
a = 1;
|
||||||
|
foreach (var item in monthList)
|
||||||
|
{
|
||||||
|
row = table.NewRow();
|
||||||
|
row["Id"] = SQLHelper.GetNewID();
|
||||||
|
row["Code"] = a;
|
||||||
|
var project = projects.FirstOrDefault(x => x.ProjectId == item.ProjectId);
|
||||||
|
if (project != null)
|
||||||
|
{
|
||||||
|
row["ProjectName"] = project.ProjectName;
|
||||||
|
if (project.IsForeign == true)
|
||||||
|
{
|
||||||
|
row["IsForeign"] = "是";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
row["IsForeign"] = "否";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
row["ProjectName"] = "本部";
|
||||||
|
row["IsForeign"] = "否";
|
||||||
|
}
|
||||||
|
row["JobContent"] = item.JobContent;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
table.Rows.Add(row);
|
||||||
|
a++;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
//table.Columns.Add(new DataColumn("ShowId", typeof(String)));
|
||||||
|
|
||||||
|
//var costControls = getCostControls.Where(x => x.ProjectId == projectId);
|
||||||
|
//var details = getDetails.Where(x => x.ProjectId == projectId);
|
||||||
|
//var parentDetails = getParentDetails;
|
||||||
|
//var wbsSets = getWbsSets.Where(x => x.ProjectId == projectId);
|
||||||
|
//var wbsSetInits = getWbsSetInits;
|
||||||
|
|
||||||
|
//var unitProjects = getUnitProjects.Where(x => x.ProjectId == projectId);
|
||||||
|
//var unitProjectInits = getUnitProjectInits;
|
||||||
|
//var cnProfessions = getCnProfessions.Where(x => x.ProjectId == projectId);
|
||||||
|
//var cnProfessionInits = getCnProfessionInits;
|
||||||
|
//var installations = getInstallations.Where(x => x.ProjectId == projectId);
|
||||||
|
|
||||||
|
//CostControlDetailStatisticsList = getCostControlDetailStatisticss.Where(x => x.ProjectId == projectId).Distinct().ToList();
|
||||||
|
//List<Model.View_WBS_CostControlDetailStatistics> newList = new List<Model.View_WBS_CostControlDetailStatistics>();
|
||||||
|
//if (string.IsNullOrEmpty(Id)) //加载全项目记录
|
||||||
|
//{
|
||||||
|
// var installationList = CostControlDetailStatisticsList.Where(x => x.WBSType == "Installation" && x.SupId == "0");
|
||||||
|
// foreach (var item in installationList)
|
||||||
|
// {
|
||||||
|
// newList.Add(item);
|
||||||
|
// if (string.IsNullOrEmpty(IsOut))
|
||||||
|
// {
|
||||||
|
// AddDetail(newList, CostControlDetailStatisticsList, item.Id);
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// AddDetailOut(newList, CostControlDetailStatisticsList, item.Id, string.Empty);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//else //加载选择节点及其子级
|
||||||
|
//{
|
||||||
|
// var node = CostControlDetailStatisticsList.FirstOrDefault(x => x.Id == Id);
|
||||||
|
// if (node != null)
|
||||||
|
// {
|
||||||
|
// newList.Add(node);
|
||||||
|
// if (string.IsNullOrEmpty(IsOut))
|
||||||
|
// {
|
||||||
|
// AddDetail(newList, CostControlDetailStatisticsList, node.Id);
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// AddDetailOut(newList, CostControlDetailStatisticsList, node.Id, string.Empty);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//DataRow row;
|
||||||
|
//foreach (Model.View_WBS_CostControlDetailStatistics item in newList)
|
||||||
|
//{
|
||||||
|
// row = table.NewRow();
|
||||||
|
// row[0] = item.Id;
|
||||||
|
// row[1] = item.SupId;
|
||||||
|
// row[2] = item.Name;
|
||||||
|
// row[3] = item.ProjectId;
|
||||||
|
// Model.WBS_CostControl costControl = costControls.FirstOrDefault(x => x.CostControlId == item.Id);
|
||||||
|
// if (costControl != null)
|
||||||
|
// {
|
||||||
|
// row[4] = costControl.Unit;//单位
|
||||||
|
// if (costControl.TotalNum != null)
|
||||||
|
// {
|
||||||
|
// row[5] = decimal.Round(Convert.ToDecimal(costControl.TotalNum), 2);//合同工作量
|
||||||
|
// }
|
||||||
|
// if (costControl.RealPrice != null)
|
||||||
|
// {
|
||||||
|
// row[6] = decimal.Round(Convert.ToDecimal(costControl.RealPrice), 2);//成本单价
|
||||||
|
// }
|
||||||
|
// if (costControl.PlanPrice != null)
|
||||||
|
// {
|
||||||
|
// row[7] = decimal.Round(Convert.ToDecimal(costControl.PlanPrice), 2);//控制预算单价
|
||||||
|
// }
|
||||||
|
// if (costControl.PlanStartDate != null)
|
||||||
|
// {
|
||||||
|
// row[8] = costControl.PlanStartDate;//计划开始时间
|
||||||
|
// }
|
||||||
|
// if (costControl.PlanEndDate != null)
|
||||||
|
// {
|
||||||
|
// row[9] = costControl.PlanEndDate;//计划完成时间
|
||||||
|
// }
|
||||||
|
// if (costControl.RealStartDate != null)
|
||||||
|
// {
|
||||||
|
// row[10] = costControl.RealStartDate;//实际开始时间
|
||||||
|
// }
|
||||||
|
// if (costControl.RealEndDate != null)
|
||||||
|
// {
|
||||||
|
// row[11] = costControl.RealEndDate;//实际完成时间
|
||||||
|
// }
|
||||||
|
// var detail = details.Where(x => x.CostControlId == item.Id).ToList();
|
||||||
|
// foreach (var item1 in detail)
|
||||||
|
// {
|
||||||
|
// var index = months.FindIndex(x => x.Equals(item1.Months));
|
||||||
|
// if (item1.PlanNum != 0)
|
||||||
|
// {
|
||||||
|
// row[12 + index * 2] = decimal.Round(Convert.ToDecimal(item1.PlanNum), 2);
|
||||||
|
// }
|
||||||
|
// if (item1.ThisNum != 0)
|
||||||
|
// {
|
||||||
|
// row[13 + index * 2] = decimal.Round(Convert.ToDecimal(item1.ThisNum), 2);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
// row[14 + (months.Count - 1) * 2] = item.Id;
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
|
||||||
|
// }
|
||||||
|
// table.Rows.Add(row);
|
||||||
|
//}
|
||||||
|
this.Grid1.DataSource = table;
|
||||||
|
this.Grid1.DataBind();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GetNum(int i)
|
||||||
|
{
|
||||||
|
string num = string.Empty;
|
||||||
|
if (i == 1)
|
||||||
|
{
|
||||||
|
num = "一";
|
||||||
|
}
|
||||||
|
else if (i == 2)
|
||||||
|
{
|
||||||
|
num = "二";
|
||||||
|
}
|
||||||
|
else if (i == 3)
|
||||||
|
{
|
||||||
|
num = "三";
|
||||||
|
}
|
||||||
|
else if (i == 4)
|
||||||
|
{
|
||||||
|
num = "四";
|
||||||
|
}
|
||||||
|
else if (i == 5)
|
||||||
|
{
|
||||||
|
num = "五";
|
||||||
|
}
|
||||||
|
else if (i == 6)
|
||||||
|
{
|
||||||
|
num = "六";
|
||||||
|
}
|
||||||
|
else if (i == 7)
|
||||||
|
{
|
||||||
|
num = "七";
|
||||||
|
}
|
||||||
|
else if (i == 8)
|
||||||
|
{
|
||||||
|
num = "八";
|
||||||
|
}
|
||||||
|
else if (i == 9)
|
||||||
|
{
|
||||||
|
num = "九";
|
||||||
|
}
|
||||||
|
else if (i == 10)
|
||||||
|
{
|
||||||
|
num = "十";
|
||||||
|
}
|
||||||
|
else if (i == 11)
|
||||||
|
{
|
||||||
|
num = "十一";
|
||||||
|
}
|
||||||
|
else if (i == 12)
|
||||||
|
{
|
||||||
|
num = "十二";
|
||||||
|
}
|
||||||
|
return num;
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 保存
|
||||||
|
/// <summary>
|
||||||
|
/// 保存按钮
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Save();
|
||||||
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
|
PageContext.RegisterStartupScript(ActiveWindow.GetHideReference());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Save()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
protected void drpUser_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (this.drpUser.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.txtYear.Text.Trim()))
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.Grid1.DataSource = null;
|
||||||
|
this.Grid1.DataBind();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
96
SGGL/FineUIPro.Web/ZHGL/TestRunPerformance/TestRunPerformanceMonthReportEdit.aspx.designer.cs
generated
Normal file
96
SGGL/FineUIPro.Web/ZHGL/TestRunPerformance/TestRunPerformanceMonthReportEdit.aspx.designer.cs
generated
Normal file
|
@ -0,0 +1,96 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.ZHGL.TestRunPerformance {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class TestRunPerformanceMonthReportEdit {
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// drpUser 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpUser;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtYear 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtYear;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// hdId 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox hdId;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnSave 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnSave;
|
||||||
|
}
|
||||||
|
}
|
|
@ -47,7 +47,7 @@ namespace FineUIPro.Web.ZHGL.TestRunPerformance
|
||||||
string TestRunPerformanceStandardId = Request.Params["TestRunPerformanceStandardId"];
|
string TestRunPerformanceStandardId = Request.Params["TestRunPerformanceStandardId"];
|
||||||
Model.Base_TestRunPerformanceStandard newItem = new Model.Base_TestRunPerformanceStandard();
|
Model.Base_TestRunPerformanceStandard newItem = new Model.Base_TestRunPerformanceStandard();
|
||||||
newItem.Code = this.txtCode.Text.Trim();
|
newItem.Code = this.txtCode.Text.Trim();
|
||||||
var strs = this.txtCode.Text.Trim().Split(',');
|
var strs = this.txtCode.Text.Trim().Split('.');
|
||||||
if (strs.Length == 2)
|
if (strs.Length == 2)
|
||||||
{
|
{
|
||||||
newItem.Code1 = Funs.GetNewInt(strs[0]);
|
newItem.Code1 = Funs.GetNewInt(strs[0]);
|
||||||
|
|
|
@ -7,4 +7,6 @@
|
||||||
<TreeNode id="AAF841AA-2EE8-4FEC-B1FB-B978736C6E1F" Text="员工责任书" NavigateUrl="Personal/PersonDuty.aspx"></TreeNode>
|
<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="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="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>
|
||||||
</Tree>
|
</Tree>
|
|
@ -84,5 +84,6 @@
|
||||||
<TreeNode id="EA413D2A-8D29-4DE2-932D-8511BB7F6CB2" Text="各项目巡查汇总" NavigateUrl="ZHGL/InspectionSummary/InspectionSummary.aspx"></TreeNode>
|
<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="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="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>
|
</TreeNode>
|
||||||
</Tree>
|
</Tree>
|
|
@ -1631,6 +1631,9 @@ namespace Model
|
||||||
partial void InsertPerfomance_PersonPerfomance(Perfomance_PersonPerfomance instance);
|
partial void InsertPerfomance_PersonPerfomance(Perfomance_PersonPerfomance instance);
|
||||||
partial void UpdatePerfomance_PersonPerfomance(Perfomance_PersonPerfomance instance);
|
partial void UpdatePerfomance_PersonPerfomance(Perfomance_PersonPerfomance instance);
|
||||||
partial void DeletePerfomance_PersonPerfomance(Perfomance_PersonPerfomance instance);
|
partial void DeletePerfomance_PersonPerfomance(Perfomance_PersonPerfomance instance);
|
||||||
|
partial void InsertPerson_BusinessTrip(Person_BusinessTrip instance);
|
||||||
|
partial void UpdatePerson_BusinessTrip(Person_BusinessTrip instance);
|
||||||
|
partial void DeletePerson_BusinessTrip(Person_BusinessTrip instance);
|
||||||
partial void InsertPerson_CompanyBranchPerson(Person_CompanyBranchPerson instance);
|
partial void InsertPerson_CompanyBranchPerson(Person_CompanyBranchPerson instance);
|
||||||
partial void UpdatePerson_CompanyBranchPerson(Person_CompanyBranchPerson instance);
|
partial void UpdatePerson_CompanyBranchPerson(Person_CompanyBranchPerson instance);
|
||||||
partial void DeletePerson_CompanyBranchPerson(Person_CompanyBranchPerson instance);
|
partial void DeletePerson_CompanyBranchPerson(Person_CompanyBranchPerson instance);
|
||||||
|
@ -1664,6 +1667,9 @@ namespace Model
|
||||||
partial void InsertPerson_ShuntDetail(Person_ShuntDetail instance);
|
partial void InsertPerson_ShuntDetail(Person_ShuntDetail instance);
|
||||||
partial void UpdatePerson_ShuntDetail(Person_ShuntDetail instance);
|
partial void UpdatePerson_ShuntDetail(Person_ShuntDetail instance);
|
||||||
partial void DeletePerson_ShuntDetail(Person_ShuntDetail instance);
|
partial void DeletePerson_ShuntDetail(Person_ShuntDetail instance);
|
||||||
|
partial void InsertPerson_TestRunPerformance(Person_TestRunPerformance instance);
|
||||||
|
partial void UpdatePerson_TestRunPerformance(Person_TestRunPerformance instance);
|
||||||
|
partial void DeletePerson_TestRunPerformance(Person_TestRunPerformance instance);
|
||||||
partial void InsertPerson_TrainingCompany(Person_TrainingCompany instance);
|
partial void InsertPerson_TrainingCompany(Person_TrainingCompany instance);
|
||||||
partial void UpdatePerson_TrainingCompany(Person_TrainingCompany instance);
|
partial void UpdatePerson_TrainingCompany(Person_TrainingCompany instance);
|
||||||
partial void DeletePerson_TrainingCompany(Person_TrainingCompany instance);
|
partial void DeletePerson_TrainingCompany(Person_TrainingCompany instance);
|
||||||
|
@ -2555,6 +2561,9 @@ namespace Model
|
||||||
partial void InsertZHGL_ConstructionReportApprove(ZHGL_ConstructionReportApprove instance);
|
partial void InsertZHGL_ConstructionReportApprove(ZHGL_ConstructionReportApprove instance);
|
||||||
partial void UpdateZHGL_ConstructionReportApprove(ZHGL_ConstructionReportApprove instance);
|
partial void UpdateZHGL_ConstructionReportApprove(ZHGL_ConstructionReportApprove instance);
|
||||||
partial void DeleteZHGL_ConstructionReportApprove(ZHGL_ConstructionReportApprove instance);
|
partial void DeleteZHGL_ConstructionReportApprove(ZHGL_ConstructionReportApprove instance);
|
||||||
|
partial void InsertZHGL_TestRunPerformanceMonthReport(ZHGL_TestRunPerformanceMonthReport instance);
|
||||||
|
partial void UpdateZHGL_TestRunPerformanceMonthReport(ZHGL_TestRunPerformanceMonthReport instance);
|
||||||
|
partial void DeleteZHGL_TestRunPerformanceMonthReport(ZHGL_TestRunPerformanceMonthReport instance);
|
||||||
partial void InsertZHGL_WorkHandover(ZHGL_WorkHandover instance);
|
partial void InsertZHGL_WorkHandover(ZHGL_WorkHandover instance);
|
||||||
partial void UpdateZHGL_WorkHandover(ZHGL_WorkHandover instance);
|
partial void UpdateZHGL_WorkHandover(ZHGL_WorkHandover instance);
|
||||||
partial void DeleteZHGL_WorkHandover(ZHGL_WorkHandover instance);
|
partial void DeleteZHGL_WorkHandover(ZHGL_WorkHandover instance);
|
||||||
|
@ -6870,6 +6879,14 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public System.Data.Linq.Table<Person_BusinessTrip> Person_BusinessTrip
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.GetTable<Person_BusinessTrip>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public System.Data.Linq.Table<Person_CompanyBranchPerson> Person_CompanyBranchPerson
|
public System.Data.Linq.Table<Person_CompanyBranchPerson> Person_CompanyBranchPerson
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -6958,6 +6975,14 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public System.Data.Linq.Table<Person_TestRunPerformance> Person_TestRunPerformance
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.GetTable<Person_TestRunPerformance>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public System.Data.Linq.Table<Person_TrainingCompany> Person_TrainingCompany
|
public System.Data.Linq.Table<Person_TrainingCompany> Person_TrainingCompany
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -10350,6 +10375,14 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public System.Data.Linq.Table<ZHGL_TestRunPerformanceMonthReport> ZHGL_TestRunPerformanceMonthReport
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this.GetTable<ZHGL_TestRunPerformanceMonthReport>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public System.Data.Linq.Table<ZHGL_WorkHandover> ZHGL_WorkHandover
|
public System.Data.Linq.Table<ZHGL_WorkHandover> ZHGL_WorkHandover
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -37536,6 +37569,8 @@ namespace Model
|
||||||
|
|
||||||
private System.Nullable<int> _Days;
|
private System.Nullable<int> _Days;
|
||||||
|
|
||||||
|
private EntitySet<Person_TestRunPerformance> _Person_TestRunPerformance;
|
||||||
|
|
||||||
#region 可扩展性方法定义
|
#region 可扩展性方法定义
|
||||||
partial void OnLoaded();
|
partial void OnLoaded();
|
||||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||||
|
@ -37562,6 +37597,7 @@ namespace Model
|
||||||
|
|
||||||
public Base_TestRunPerformanceStandard()
|
public Base_TestRunPerformanceStandard()
|
||||||
{
|
{
|
||||||
|
this._Person_TestRunPerformance = new EntitySet<Person_TestRunPerformance>(new Action<Person_TestRunPerformance>(this.attach_Person_TestRunPerformance), new Action<Person_TestRunPerformance>(this.detach_Person_TestRunPerformance));
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37745,6 +37781,19 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_TestRunPerformance_Base_TestRunPerformanceStandard", Storage="_Person_TestRunPerformance", ThisKey="TestRunPerformanceStandardId", OtherKey="TestRunPerformanceStandardId", DeleteRule="NO ACTION")]
|
||||||
|
public EntitySet<Person_TestRunPerformance> Person_TestRunPerformance
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Person_TestRunPerformance;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this._Person_TestRunPerformance.Assign(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public event PropertyChangingEventHandler PropertyChanging;
|
public event PropertyChangingEventHandler PropertyChanging;
|
||||||
|
|
||||||
public event PropertyChangedEventHandler PropertyChanged;
|
public event PropertyChangedEventHandler PropertyChanged;
|
||||||
|
@ -37764,6 +37813,18 @@ namespace Model
|
||||||
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void attach_Person_TestRunPerformance(Person_TestRunPerformance entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Base_TestRunPerformanceStandard = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void detach_Person_TestRunPerformance(Person_TestRunPerformance entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Base_TestRunPerformanceStandard = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_TrainLevel")]
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_TrainLevel")]
|
||||||
|
@ -123005,6 +123066,8 @@ namespace Model
|
||||||
|
|
||||||
private System.Nullable<System.DateTime> _RequiredTime;
|
private System.Nullable<System.DateTime> _RequiredTime;
|
||||||
|
|
||||||
|
private string _Num;
|
||||||
|
|
||||||
private EntityRef<DriverGoods_GoodsModel> _DriverGoods_GoodsModel;
|
private EntityRef<DriverGoods_GoodsModel> _DriverGoods_GoodsModel;
|
||||||
|
|
||||||
#region 可扩展性方法定义
|
#region 可扩展性方法定义
|
||||||
|
@ -123021,6 +123084,8 @@ namespace Model
|
||||||
partial void OnQuantityChanged();
|
partial void OnQuantityChanged();
|
||||||
partial void OnRequiredTimeChanging(System.Nullable<System.DateTime> value);
|
partial void OnRequiredTimeChanging(System.Nullable<System.DateTime> value);
|
||||||
partial void OnRequiredTimeChanged();
|
partial void OnRequiredTimeChanged();
|
||||||
|
partial void OnNumChanging(string value);
|
||||||
|
partial void OnNumChanged();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public DriverGoods_GoodsBuyItem()
|
public DriverGoods_GoodsBuyItem()
|
||||||
|
@ -123133,6 +123198,26 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Num", DbType="NVarChar(50)")]
|
||||||
|
public string 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_DriverGoods_GoodsBuyItem_DriverGoods_GoodsModel", Storage="_DriverGoods_GoodsModel", ThisKey="GoodsModelId", OtherKey="GoodsModelId", IsForeignKey=true)]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_DriverGoods_GoodsBuyItem_DriverGoods_GoodsModel", Storage="_DriverGoods_GoodsModel", ThisKey="GoodsModelId", OtherKey="GoodsModelId", IsForeignKey=true)]
|
||||||
public DriverGoods_GoodsModel DriverGoods_GoodsModel
|
public DriverGoods_GoodsModel DriverGoods_GoodsModel
|
||||||
{
|
{
|
||||||
|
@ -259893,6 +259978,229 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Person_BusinessTrip")]
|
||||||
|
public partial class Person_BusinessTrip : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
|
{
|
||||||
|
|
||||||
|
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||||
|
|
||||||
|
private string _BusinessTripId;
|
||||||
|
|
||||||
|
private string _Type;
|
||||||
|
|
||||||
|
private string _ProjectId;
|
||||||
|
|
||||||
|
private string _UserId;
|
||||||
|
|
||||||
|
private System.Nullable<System.DateTime> _ArriveDate;
|
||||||
|
|
||||||
|
private System.Nullable<System.DateTime> _LeaveDate;
|
||||||
|
|
||||||
|
private EntityRef<Sys_User> _Sys_User;
|
||||||
|
|
||||||
|
#region 可扩展性方法定义
|
||||||
|
partial void OnLoaded();
|
||||||
|
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||||
|
partial void OnCreated();
|
||||||
|
partial void OnBusinessTripIdChanging(string value);
|
||||||
|
partial void OnBusinessTripIdChanged();
|
||||||
|
partial void OnTypeChanging(string value);
|
||||||
|
partial void OnTypeChanged();
|
||||||
|
partial void OnProjectIdChanging(string value);
|
||||||
|
partial void OnProjectIdChanged();
|
||||||
|
partial void OnUserIdChanging(string value);
|
||||||
|
partial void OnUserIdChanged();
|
||||||
|
partial void OnArriveDateChanging(System.Nullable<System.DateTime> value);
|
||||||
|
partial void OnArriveDateChanged();
|
||||||
|
partial void OnLeaveDateChanging(System.Nullable<System.DateTime> value);
|
||||||
|
partial void OnLeaveDateChanged();
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Person_BusinessTrip()
|
||||||
|
{
|
||||||
|
this._Sys_User = default(EntityRef<Sys_User>);
|
||||||
|
OnCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BusinessTripId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||||
|
public string BusinessTripId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._BusinessTripId;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._BusinessTripId != value))
|
||||||
|
{
|
||||||
|
this.OnBusinessTripIdChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._BusinessTripId = value;
|
||||||
|
this.SendPropertyChanged("BusinessTripId");
|
||||||
|
this.OnBusinessTripIdChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="Char(1)")]
|
||||||
|
public string Type
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Type;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._Type != value))
|
||||||
|
{
|
||||||
|
this.OnTypeChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._Type = value;
|
||||||
|
this.SendPropertyChanged("Type");
|
||||||
|
this.OnTypeChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[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="_ArriveDate", DbType="DateTime")]
|
||||||
|
public System.Nullable<System.DateTime> ArriveDate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._ArriveDate;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._ArriveDate != value))
|
||||||
|
{
|
||||||
|
this.OnArriveDateChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._ArriveDate = value;
|
||||||
|
this.SendPropertyChanged("ArriveDate");
|
||||||
|
this.OnArriveDateChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeaveDate", DbType="DateTime")]
|
||||||
|
public System.Nullable<System.DateTime> LeaveDate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._LeaveDate;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._LeaveDate != value))
|
||||||
|
{
|
||||||
|
this.OnLeaveDateChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._LeaveDate = value;
|
||||||
|
this.SendPropertyChanged("LeaveDate");
|
||||||
|
this.OnLeaveDateChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_BusinessTrip_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_BusinessTrip.Remove(this);
|
||||||
|
}
|
||||||
|
this._Sys_User.Entity = value;
|
||||||
|
if ((value != null))
|
||||||
|
{
|
||||||
|
value.Person_BusinessTrip.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_CompanyBranchPerson")]
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Person_CompanyBranchPerson")]
|
||||||
public partial class Person_CompanyBranchPerson : INotifyPropertyChanging, INotifyPropertyChanged
|
public partial class Person_CompanyBranchPerson : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
|
@ -263550,6 +263858,294 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Person_TestRunPerformance")]
|
||||||
|
public partial class Person_TestRunPerformance : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
|
{
|
||||||
|
|
||||||
|
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||||
|
|
||||||
|
private string _TestRunPerformanceId;
|
||||||
|
|
||||||
|
private string _ProjectId;
|
||||||
|
|
||||||
|
private string _UserId;
|
||||||
|
|
||||||
|
private System.Nullable<System.DateTime> _Months;
|
||||||
|
|
||||||
|
private string _JobContent;
|
||||||
|
|
||||||
|
private string _TestRunPerformanceStandardId;
|
||||||
|
|
||||||
|
private System.Nullable<int> _Days;
|
||||||
|
|
||||||
|
private EntityRef<Base_TestRunPerformanceStandard> _Base_TestRunPerformanceStandard;
|
||||||
|
|
||||||
|
private EntityRef<Sys_User> _Sys_User;
|
||||||
|
|
||||||
|
#region 可扩展性方法定义
|
||||||
|
partial void OnLoaded();
|
||||||
|
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||||
|
partial void OnCreated();
|
||||||
|
partial void OnTestRunPerformanceIdChanging(string value);
|
||||||
|
partial void OnTestRunPerformanceIdChanged();
|
||||||
|
partial void OnProjectIdChanging(string value);
|
||||||
|
partial void OnProjectIdChanged();
|
||||||
|
partial void OnUserIdChanging(string value);
|
||||||
|
partial void OnUserIdChanged();
|
||||||
|
partial void OnMonthsChanging(System.Nullable<System.DateTime> value);
|
||||||
|
partial void OnMonthsChanged();
|
||||||
|
partial void OnJobContentChanging(string value);
|
||||||
|
partial void OnJobContentChanged();
|
||||||
|
partial void OnTestRunPerformanceStandardIdChanging(string value);
|
||||||
|
partial void OnTestRunPerformanceStandardIdChanged();
|
||||||
|
partial void OnDaysChanging(System.Nullable<int> value);
|
||||||
|
partial void OnDaysChanged();
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
public Person_TestRunPerformance()
|
||||||
|
{
|
||||||
|
this._Base_TestRunPerformanceStandard = default(EntityRef<Base_TestRunPerformanceStandard>);
|
||||||
|
this._Sys_User = default(EntityRef<Sys_User>);
|
||||||
|
OnCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestRunPerformanceId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||||
|
public string TestRunPerformanceId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._TestRunPerformanceId;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._TestRunPerformanceId != value))
|
||||||
|
{
|
||||||
|
this.OnTestRunPerformanceIdChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._TestRunPerformanceId = value;
|
||||||
|
this.SendPropertyChanged("TestRunPerformanceId");
|
||||||
|
this.OnTestRunPerformanceIdChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[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="_Months", DbType="DateTime")]
|
||||||
|
public System.Nullable<System.DateTime> Months
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Months;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._Months != value))
|
||||||
|
{
|
||||||
|
this.OnMonthsChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._Months = value;
|
||||||
|
this.SendPropertyChanged("Months");
|
||||||
|
this.OnMonthsChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JobContent", DbType="NVarChar(300)")]
|
||||||
|
public string JobContent
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._JobContent;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._JobContent != value))
|
||||||
|
{
|
||||||
|
this.OnJobContentChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._JobContent = value;
|
||||||
|
this.SendPropertyChanged("JobContent");
|
||||||
|
this.OnJobContentChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestRunPerformanceStandardId", DbType="NVarChar(50)")]
|
||||||
|
public string TestRunPerformanceStandardId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._TestRunPerformanceStandardId;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._TestRunPerformanceStandardId != value))
|
||||||
|
{
|
||||||
|
if (this._Base_TestRunPerformanceStandard.HasLoadedOrAssignedValue)
|
||||||
|
{
|
||||||
|
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||||
|
}
|
||||||
|
this.OnTestRunPerformanceStandardIdChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._TestRunPerformanceStandardId = value;
|
||||||
|
this.SendPropertyChanged("TestRunPerformanceStandardId");
|
||||||
|
this.OnTestRunPerformanceStandardIdChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Days", DbType="Int")]
|
||||||
|
public System.Nullable<int> Days
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Days;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._Days != value))
|
||||||
|
{
|
||||||
|
this.OnDaysChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._Days = value;
|
||||||
|
this.SendPropertyChanged("Days");
|
||||||
|
this.OnDaysChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[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
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Base_TestRunPerformanceStandard.Entity;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
Base_TestRunPerformanceStandard previousValue = this._Base_TestRunPerformanceStandard.Entity;
|
||||||
|
if (((previousValue != value)
|
||||||
|
|| (this._Base_TestRunPerformanceStandard.HasLoadedOrAssignedValue == false)))
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
if ((previousValue != null))
|
||||||
|
{
|
||||||
|
this._Base_TestRunPerformanceStandard.Entity = null;
|
||||||
|
previousValue.Person_TestRunPerformance.Remove(this);
|
||||||
|
}
|
||||||
|
this._Base_TestRunPerformanceStandard.Entity = value;
|
||||||
|
if ((value != null))
|
||||||
|
{
|
||||||
|
value.Person_TestRunPerformance.Add(this);
|
||||||
|
this._TestRunPerformanceStandardId = value.TestRunPerformanceStandardId;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this._TestRunPerformanceStandardId = default(string);
|
||||||
|
}
|
||||||
|
this.SendPropertyChanged("Base_TestRunPerformanceStandard");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_TestRunPerformance_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_TestRunPerformance.Remove(this);
|
||||||
|
}
|
||||||
|
this._Sys_User.Entity = value;
|
||||||
|
if ((value != null))
|
||||||
|
{
|
||||||
|
value.Person_TestRunPerformance.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_TrainingCompany")]
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Person_TrainingCompany")]
|
||||||
public partial class Person_TrainingCompany : INotifyPropertyChanging, INotifyPropertyChanged
|
public partial class Person_TrainingCompany : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
|
@ -338946,6 +339542,8 @@ namespace Model
|
||||||
|
|
||||||
private EntitySet<Perfomance_PersonPerfomance> _Perfomance_PersonPerfomance;
|
private EntitySet<Perfomance_PersonPerfomance> _Perfomance_PersonPerfomance;
|
||||||
|
|
||||||
|
private EntitySet<Person_BusinessTrip> _Person_BusinessTrip;
|
||||||
|
|
||||||
private EntitySet<Person_Duty> _Person_Duty;
|
private EntitySet<Person_Duty> _Person_Duty;
|
||||||
|
|
||||||
private EntitySet<Person_Duty> _Person_Duty_Sys_User1;
|
private EntitySet<Person_Duty> _Person_Duty_Sys_User1;
|
||||||
|
@ -338968,6 +339566,8 @@ namespace Model
|
||||||
|
|
||||||
private EntitySet<Person_ShuntDetail> _Person_ShuntDetail;
|
private EntitySet<Person_ShuntDetail> _Person_ShuntDetail;
|
||||||
|
|
||||||
|
private EntitySet<Person_TestRunPerformance> _Person_TestRunPerformance;
|
||||||
|
|
||||||
private EntitySet<Person_TrainingPerson> _Person_TrainingPerson;
|
private EntitySet<Person_TrainingPerson> _Person_TrainingPerson;
|
||||||
|
|
||||||
private EntitySet<Person_TrainingPlan> _Person_TrainingPlan;
|
private EntitySet<Person_TrainingPlan> _Person_TrainingPlan;
|
||||||
|
@ -339499,6 +340099,7 @@ namespace Model
|
||||||
this._Party_WorkPlan = new EntitySet<Party_WorkPlan>(new Action<Party_WorkPlan>(this.attach_Party_WorkPlan), new Action<Party_WorkPlan>(this.detach_Party_WorkPlan));
|
this._Party_WorkPlan = new EntitySet<Party_WorkPlan>(new Action<Party_WorkPlan>(this.attach_Party_WorkPlan), new Action<Party_WorkPlan>(this.detach_Party_WorkPlan));
|
||||||
this._Perfomance_PerfomanceRecord = new EntitySet<Perfomance_PerfomanceRecord>(new Action<Perfomance_PerfomanceRecord>(this.attach_Perfomance_PerfomanceRecord), new Action<Perfomance_PerfomanceRecord>(this.detach_Perfomance_PerfomanceRecord));
|
this._Perfomance_PerfomanceRecord = new EntitySet<Perfomance_PerfomanceRecord>(new Action<Perfomance_PerfomanceRecord>(this.attach_Perfomance_PerfomanceRecord), new Action<Perfomance_PerfomanceRecord>(this.detach_Perfomance_PerfomanceRecord));
|
||||||
this._Perfomance_PersonPerfomance = new EntitySet<Perfomance_PersonPerfomance>(new Action<Perfomance_PersonPerfomance>(this.attach_Perfomance_PersonPerfomance), new Action<Perfomance_PersonPerfomance>(this.detach_Perfomance_PersonPerfomance));
|
this._Perfomance_PersonPerfomance = new EntitySet<Perfomance_PersonPerfomance>(new Action<Perfomance_PersonPerfomance>(this.attach_Perfomance_PersonPerfomance), new Action<Perfomance_PersonPerfomance>(this.detach_Perfomance_PersonPerfomance));
|
||||||
|
this._Person_BusinessTrip = new EntitySet<Person_BusinessTrip>(new Action<Person_BusinessTrip>(this.attach_Person_BusinessTrip), new Action<Person_BusinessTrip>(this.detach_Person_BusinessTrip));
|
||||||
this._Person_Duty = new EntitySet<Person_Duty>(new Action<Person_Duty>(this.attach_Person_Duty), new Action<Person_Duty>(this.detach_Person_Duty));
|
this._Person_Duty = new EntitySet<Person_Duty>(new Action<Person_Duty>(this.attach_Person_Duty), new Action<Person_Duty>(this.detach_Person_Duty));
|
||||||
this._Person_Duty_Sys_User1 = new EntitySet<Person_Duty>(new Action<Person_Duty>(this.attach_Person_Duty_Sys_User1), new Action<Person_Duty>(this.detach_Person_Duty_Sys_User1));
|
this._Person_Duty_Sys_User1 = new EntitySet<Person_Duty>(new Action<Person_Duty>(this.attach_Person_Duty_Sys_User1), new Action<Person_Duty>(this.detach_Person_Duty_Sys_User1));
|
||||||
this._Person_Duty_Sys_User2 = new EntitySet<Person_Duty>(new Action<Person_Duty>(this.attach_Person_Duty_Sys_User2), new Action<Person_Duty>(this.detach_Person_Duty_Sys_User2));
|
this._Person_Duty_Sys_User2 = new EntitySet<Person_Duty>(new Action<Person_Duty>(this.attach_Person_Duty_Sys_User2), new Action<Person_Duty>(this.detach_Person_Duty_Sys_User2));
|
||||||
|
@ -339510,6 +340111,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_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_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_ShuntDetail = new EntitySet<Person_ShuntDetail>(new Action<Person_ShuntDetail>(this.attach_Person_ShuntDetail), new Action<Person_ShuntDetail>(this.detach_Person_ShuntDetail));
|
||||||
|
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_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));
|
this._Person_TrainingPlan = new EntitySet<Person_TrainingPlan>(new Action<Person_TrainingPlan>(this.attach_Person_TrainingPlan), new Action<Person_TrainingPlan>(this.detach_Person_TrainingPlan));
|
||||||
this._Person_TrainingPlan_Sys_User1 = new EntitySet<Person_TrainingPlan>(new Action<Person_TrainingPlan>(this.attach_Person_TrainingPlan_Sys_User1), new Action<Person_TrainingPlan>(this.detach_Person_TrainingPlan_Sys_User1));
|
this._Person_TrainingPlan_Sys_User1 = new EntitySet<Person_TrainingPlan>(new Action<Person_TrainingPlan>(this.attach_Person_TrainingPlan_Sys_User1), new Action<Person_TrainingPlan>(this.detach_Person_TrainingPlan_Sys_User1));
|
||||||
|
@ -343722,6 +344324,19 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_BusinessTrip_Sys_User", Storage="_Person_BusinessTrip", ThisKey="UserId", OtherKey="UserId", DeleteRule="NO ACTION")]
|
||||||
|
public EntitySet<Person_BusinessTrip> Person_BusinessTrip
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Person_BusinessTrip;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this._Person_BusinessTrip.Assign(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_Duty_Sys_User", Storage="_Person_Duty", ThisKey="UserId", OtherKey="DutyPersonId", DeleteRule="NO ACTION")]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_Duty_Sys_User", Storage="_Person_Duty", ThisKey="UserId", OtherKey="DutyPersonId", DeleteRule="NO ACTION")]
|
||||||
public EntitySet<Person_Duty> Person_Duty
|
public EntitySet<Person_Duty> Person_Duty
|
||||||
{
|
{
|
||||||
|
@ -343865,6 +344480,19 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[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
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Person_TestRunPerformance;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
this._Person_TestRunPerformance.Assign(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_TrainingPerson_Sys_User", Storage="_Person_TrainingPerson", ThisKey="UserId", OtherKey="TrainingUserId", DeleteRule="NO ACTION")]
|
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_TrainingPerson_Sys_User", Storage="_Person_TrainingPerson", ThisKey="UserId", OtherKey="TrainingUserId", DeleteRule="NO ACTION")]
|
||||||
public EntitySet<Person_TrainingPerson> Person_TrainingPerson
|
public EntitySet<Person_TrainingPerson> Person_TrainingPerson
|
||||||
{
|
{
|
||||||
|
@ -348009,6 +348637,18 @@ namespace Model
|
||||||
entity.Sys_User = null;
|
entity.Sys_User = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void attach_Person_BusinessTrip(Person_BusinessTrip entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Sys_User = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void detach_Person_BusinessTrip(Person_BusinessTrip entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Sys_User = null;
|
||||||
|
}
|
||||||
|
|
||||||
private void attach_Person_Duty(Person_Duty entity)
|
private void attach_Person_Duty(Person_Duty entity)
|
||||||
{
|
{
|
||||||
this.SendPropertyChanging();
|
this.SendPropertyChanging();
|
||||||
|
@ -348141,6 +348781,18 @@ namespace Model
|
||||||
entity.Sys_User = null;
|
entity.Sys_User = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void attach_Person_TestRunPerformance(Person_TestRunPerformance entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Sys_User = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void detach_Person_TestRunPerformance(Person_TestRunPerformance entity)
|
||||||
|
{
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
entity.Sys_User = null;
|
||||||
|
}
|
||||||
|
|
||||||
private void attach_Person_TrainingPerson(Person_TrainingPerson entity)
|
private void attach_Person_TrainingPerson(Person_TrainingPerson entity)
|
||||||
{
|
{
|
||||||
this.SendPropertyChanging();
|
this.SendPropertyChanging();
|
||||||
|
@ -387660,6 +388312,8 @@ namespace Model
|
||||||
|
|
||||||
private string _GoodsModelId;
|
private string _GoodsModelId;
|
||||||
|
|
||||||
|
private string _Num;
|
||||||
|
|
||||||
private string _Quantity;
|
private string _Quantity;
|
||||||
|
|
||||||
private System.Nullable<System.DateTime> _RequiredTime;
|
private System.Nullable<System.DateTime> _RequiredTime;
|
||||||
|
@ -387728,6 +388382,22 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Num", DbType="NVarChar(50)")]
|
||||||
|
public string Num
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._Num;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._Num != value))
|
||||||
|
{
|
||||||
|
this._Num = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity", DbType="NVarChar(50)")]
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Quantity", DbType="NVarChar(50)")]
|
||||||
public string Quantity
|
public string Quantity
|
||||||
{
|
{
|
||||||
|
@ -440088,6 +440758,164 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ZHGL_TestRunPerformanceMonthReport")]
|
||||||
|
public partial class ZHGL_TestRunPerformanceMonthReport : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
|
{
|
||||||
|
|
||||||
|
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
|
||||||
|
|
||||||
|
private string _TestRunPerformanceMonthReportId;
|
||||||
|
|
||||||
|
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 OnTestRunPerformanceMonthReportIdChanging(string value);
|
||||||
|
partial void OnTestRunPerformanceMonthReportIdChanged();
|
||||||
|
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_TestRunPerformanceMonthReport()
|
||||||
|
{
|
||||||
|
OnCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestRunPerformanceMonthReportId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
|
||||||
|
public string TestRunPerformanceMonthReportId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._TestRunPerformanceMonthReportId;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._TestRunPerformanceMonthReportId != value))
|
||||||
|
{
|
||||||
|
this.OnTestRunPerformanceMonthReportIdChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._TestRunPerformanceMonthReportId = value;
|
||||||
|
this.SendPropertyChanged("TestRunPerformanceMonthReportId");
|
||||||
|
this.OnTestRunPerformanceMonthReportIdChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[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_WorkHandover")]
|
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.ZHGL_WorkHandover")]
|
||||||
public partial class ZHGL_WorkHandover : INotifyPropertyChanging, INotifyPropertyChanged
|
public partial class ZHGL_WorkHandover : INotifyPropertyChanging, INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue