diff --git a/DataBase/版本日志/SGGLDB_V2023-09-22.sql b/DataBase/版本日志/SGGLDB_V2023-09-22.sql
new file mode 100644
index 00000000..56389702
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2023-09-22.sql
@@ -0,0 +1,134 @@
+alter table [dbo].[ZHGL_ConstructionLog] add FileCode nvarchar(50) null
+GO
+
+update Sys_Menu set MenuName='ʩ־',IsEnd=0 where MenuId='4CB03F8B-C967-4082-ADF1-08776FE40E21'
+GO
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('0383A4A1-1565-4F11-BAF3-2B84CB621796','ʩ־','PZHGL/InformationProject/ConstructionLog.aspx',10,'4CB03F8B-C967-4082-ADF1-08776FE40E21','Menu_PZHGL',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D853D4D4-4D31-45D2-ADF4-F8799EC68B02','0383A4A1-1565-4F11-BAF3-2B84CB621796','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('3A559270-B5F8-4FD3-B6DA-37D5D5C7CAFB','0383A4A1-1565-4F11-BAF3-2B84CB621796','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('86812B35-34D8-42DE-B989-BC1DDA6B7CD3','0383A4A1-1565-4F11-BAF3-2B84CB621796','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('C179D43F-10C7-48F1-A06D-D09A9C0433D2','0383A4A1-1565-4F11-BAF3-2B84CB621796','',4)
+ GO
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('D3F67A7B-2FC4-468A-98BB-5F3DF2F193C4','Ŀʩ־','PZHGL/InformationProject/ProjectConstructionLog.aspx',20,'4CB03F8B-C967-4082-ADF1-08776FE40E21','Menu_PZHGL',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D7CE42E6-2641-453B-9AE5-11F0570E00F8','D3F67A7B-2FC4-468A-98BB-5F3DF2F193C4','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('2B47E22C-6A37-4E16-A6A1-70386DDC5F81','D3F67A7B-2FC4-468A-98BB-5F3DF2F193C4','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('817A0F17-C2F9-4EF7-9889-844064933757','D3F67A7B-2FC4-468A-98BB-5F3DF2F193C4','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('7CA03E95-00EA-4118-A8EA-F27CE48ACBA7','D3F67A7B-2FC4-468A-98BB-5F3DF2F193C4','',4)
+ GO
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('1C190A15-CC04-441C-AEF3-C945A53A81A6','־ļ','PZHGL/InformationProject/ConstructionLogFileCabinet.aspx',30,'4CB03F8B-C967-4082-ADF1-08776FE40E21','Menu_PZHGL',0,1,1)
+ GO
+
+alter table [dbo].[WBS_UnitWork] add ContractId nvarchar(50) null
+GO
+alter table [dbo].[WBS_UnitWork] add MainItemCode nvarchar(50) null
+GO
+alter table [dbo].[ZHGL_ConstructionLog] alter column ContractNo nvarchar(500) null
+GO
+alter table [dbo].[ZHGL_ConstructionLog] add WorkPostId nvarchar(1000) null
+GO
+alter table [dbo].[ZHGL_ConstructionLog] add MachineId nvarchar(1000) null
+GO
+alter table [dbo].[Person_Persons] add LogWorkPostId nvarchar(1000) null
+GO
+alter table [dbo].[Person_Persons] add LogMachineId nvarchar(1000) null
+GO
+drop table [dbo].[ZHGL_ConstructionLogPerson]
+GO
+
+CREATE TABLE [dbo].[ZHGL_ConstructionLogPerson](
+ [ConstructionLogPersonId] [nvarchar](50) NOT NULL,
+ [ConstructionLogId] [nvarchar](50) NULL,
+ [UnitWorkId] [nvarchar](50) NULL,
+ [WorkPostId] [nvarchar](50) NULL,
+ [Num] [int] NULL,
+ CONSTRAINT [PK_ZHGL_ConstructionLogPerson] PRIMARY KEY CLUSTERED
+(
+ [ConstructionLogPersonId] 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].[ZHGL_ConstructionLogPerson] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionLogPerson_ZHGL_ConstructionLog] FOREIGN KEY([ConstructionLogId])
+REFERENCES [dbo].[ZHGL_ConstructionLog] ([ConstructionLogId])
+GO
+
+ALTER TABLE [dbo].[ZHGL_ConstructionLogPerson] CHECK CONSTRAINT [FK_ZHGL_ConstructionLogPerson_ZHGL_ConstructionLog]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'ConstructionLogPersonId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'ConstructionLogId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'UnitWorkId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'WorkPostId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'߹' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson', @level2type=N'COLUMN',@level2name=N'Num'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩ־ҵԱϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogPerson'
+GO
+
+
+drop table [dbo].[ZHGL_ConstructionLogMachine]
+GO
+
+
+CREATE TABLE [dbo].[ZHGL_ConstructionLogMachine](
+ [ConstructionLogMachineId] [nvarchar](50) NOT NULL,
+ [ConstructionLogId] [nvarchar](50) NULL,
+ [UnitWorkId] [nvarchar](50) NULL,
+ [MachineId] [nvarchar](50) NULL,
+ [Num] [int] NULL,
+ CONSTRAINT [PK_ZHGL_ConstructionLogMachine] PRIMARY KEY CLUSTERED
+(
+ [ConstructionLogMachineId] 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].[ZHGL_ConstructionLogMachine] WITH CHECK ADD CONSTRAINT [FK_ZHGL_ConstructionLogMachine_ZHGL_ConstructionLog] FOREIGN KEY([ConstructionLogId])
+REFERENCES [dbo].[ZHGL_ConstructionLog] ([ConstructionLogId])
+GO
+
+ALTER TABLE [dbo].[ZHGL_ConstructionLogMachine] CHECK CONSTRAINT [FK_ZHGL_ConstructionLogMachine_ZHGL_ConstructionLog]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'ConstructionLogMachineId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'ConstructionLogId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'UnitWorkId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ڻ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine', @level2type=N'COLUMN',@level2name=N'Num'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ʩ־еϸ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZHGL_ConstructionLogMachine'
+GO
+
+
diff --git a/DataBase/菜单初始化脚本/1-8综合管理(Menu_PZHGL).sql b/DataBase/菜单初始化脚本/1-8综合管理(Menu_PZHGL).sql
index 6f39a0ab..8b1c3466 100644
--- a/DataBase/菜单初始化脚本/1-8综合管理(Menu_PZHGL).sql
+++ b/DataBase/菜单初始化脚本/1-8综合管理(Menu_PZHGL).sql
@@ -12,8 +12,37 @@ VALUES('0DAFF358-EA16-44B2-8E4B-E15E40EFAAD0','总承包商施工报告','',20,'
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
-VALUES('4CB03F8B-C967-4082-ADF1-08776FE40E21','项目级施工日志','',30,'0','Menu_PZHGL',0,1,1)
+VALUES('4CB03F8B-C967-4082-ADF1-08776FE40E21','施工日志','',30,'0','Menu_PZHGL',0,0,1)
GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('0383A4A1-1565-4F11-BAF3-2B84CB621796','个人施工日志','PZHGL/InformationProject/ConstructionLog.aspx',10,'4CB03F8B-C967-4082-ADF1-08776FE40E21','Menu_PZHGL',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D853D4D4-4D31-45D2-ADF4-F8799EC68B02','0383A4A1-1565-4F11-BAF3-2B84CB621796','增加',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('3A559270-B5F8-4FD3-B6DA-37D5D5C7CAFB','0383A4A1-1565-4F11-BAF3-2B84CB621796','修改',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('86812B35-34D8-42DE-B989-BC1DDA6B7CD3','0383A4A1-1565-4F11-BAF3-2B84CB621796','删除',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('C179D43F-10C7-48F1-A06D-D09A9C0433D2','0383A4A1-1565-4F11-BAF3-2B84CB621796','保存',4)
+ GO
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('D3F67A7B-2FC4-468A-98BB-5F3DF2F193C4','项目施工日志','PZHGL/InformationProject/ProjectConstructionLog.aspx',20,'4CB03F8B-C967-4082-ADF1-08776FE40E21','Menu_PZHGL',0,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D7CE42E6-2641-453B-9AE5-11F0570E00F8','D3F67A7B-2FC4-468A-98BB-5F3DF2F193C4','增加',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('2B47E22C-6A37-4E16-A6A1-70386DDC5F81','D3F67A7B-2FC4-468A-98BB-5F3DF2F193C4','修改',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('817A0F17-C2F9-4EF7-9889-844064933757','D3F67A7B-2FC4-468A-98BB-5F3DF2F193C4','删除',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('7CA03E95-00EA-4118-A8EA-F27CE48ACBA7','D3F67A7B-2FC4-468A-98BB-5F3DF2F193C4','保存',4)
+ GO
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('1C190A15-CC04-441C-AEF3-C945A53A81A6','日志文件柜','PZHGL/InformationProject/ConstructionLogFileCabinet.aspx',30,'4CB03F8B-C967-4082-ADF1-08776FE40E21','Menu_PZHGL',0,1,1)
+ GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('CD88CE2A-A8E2-4F07-9A90-9161BD1C345C','工作交接','',40,'0','Menu_PZHGL',0,1,1)
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index b1cfa731..174ad6ee 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -646,6 +646,7 @@
+
diff --git a/SGGL/BLL/BaseInfo/SpecialEquipmentService.cs b/SGGL/BLL/BaseInfo/SpecialEquipmentService.cs
index 33210ab0..533e0313 100644
--- a/SGGL/BLL/BaseInfo/SpecialEquipmentService.cs
+++ b/SGGL/BLL/BaseInfo/SpecialEquipmentService.cs
@@ -21,6 +21,22 @@ namespace BLL
return Funs.DB.Base_SpecialEquipment.FirstOrDefault(e => e.SpecialEquipmentId == specialEquipmentId);
}
+ ///
+ /// 根据主键获取机具设备名称
+ ///
+ ///
+ ///
+ public static string GetSpecialEquipmentNameById(string specialEquipmentId)
+ {
+ string name = string.Empty;
+ var q= Funs.DB.Base_SpecialEquipment.FirstOrDefault(e => e.SpecialEquipmentId == specialEquipmentId);
+ if (q != null)
+ {
+ name = q.SpecialEquipmentName;
+ }
+ return name;
+ }
+
///
/// 添加机具设备
///
@@ -87,6 +103,17 @@ namespace BLL
select x).ToList();
}
+ ///
+ /// 获取机具设备列表
+ ///
+ ///
+ public static List GetAllSpecialEquipmentList()
+ {
+ return (from x in Funs.DB.Base_SpecialEquipment
+ orderby x.SpecialEquipmentCode
+ select x).ToList();
+ }
+
///
/// 设备下拉框
///
@@ -105,6 +132,24 @@ namespace BLL
}
}
+ ///
+ /// 设备下拉框
+ ///
+ /// 下拉框名字
+ /// 项目id
+ /// 是否显示请选择
+ public static void InitAllSpecialEquipmentDropDownList(DropDownList dropName, bool isShowPlease)
+ {
+ dropName.DataValueField = "SpecialEquipmentId";
+ dropName.DataTextField = "SpecialEquipmentName";
+ dropName.DataSource = GetAllSpecialEquipmentList();
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+
///
/// 获取机具设备列表
///
diff --git a/SGGL/BLL/CQMS/Check/SpotCheckApproveService.cs b/SGGL/BLL/CQMS/Check/SpotCheckApproveService.cs
index 95784829..fb667464 100644
--- a/SGGL/BLL/CQMS/Check/SpotCheckApproveService.cs
+++ b/SGGL/BLL/CQMS/Check/SpotCheckApproveService.cs
@@ -146,21 +146,23 @@ namespace BLL
/// 实体验收审批实体
public static void AddSpotCheckApprove(Model.Check_SpotCheckApprove approve)
{
- Model.SGGLDB db = Funs.DB;
- string newKeyID = SQLHelper.GetNewID(typeof(Model.Check_SpotCheckApprove));
- Model.Check_SpotCheckApprove newApprove = new Model.Check_SpotCheckApprove();
- newApprove.SpotCheckApproveId = newKeyID;
- newApprove.SpotCheckCode = approve.SpotCheckCode;
- newApprove.ApproveMan = approve.ApproveMan;
- newApprove.ApproveDate = approve.ApproveDate;
- newApprove.ApproveIdea = approve.ApproveIdea;
- newApprove.IsAgree = approve.IsAgree;
- newApprove.ApproveType = approve.ApproveType;
- newApprove.SpotCheckDetailId = approve.SpotCheckDetailId;
- newApprove.Sign = approve.Sign;
+ using (var db = new Model.SGGLDB(Funs.ConnString))
+ {
+ string newKeyID = SQLHelper.GetNewID(typeof(Model.Check_SpotCheckApprove));
+ Model.Check_SpotCheckApprove newApprove = new Model.Check_SpotCheckApprove();
+ newApprove.SpotCheckApproveId = newKeyID;
+ newApprove.SpotCheckCode = approve.SpotCheckCode;
+ newApprove.ApproveMan = approve.ApproveMan;
+ newApprove.ApproveDate = approve.ApproveDate;
+ newApprove.ApproveIdea = approve.ApproveIdea;
+ newApprove.IsAgree = approve.IsAgree;
+ newApprove.ApproveType = approve.ApproveType;
+ newApprove.SpotCheckDetailId = approve.SpotCheckDetailId;
+ newApprove.Sign = approve.Sign;
- db.Check_SpotCheckApprove.InsertOnSubmit(newApprove);
- db.SubmitChanges();
+ db.Check_SpotCheckApprove.InsertOnSubmit(newApprove);
+ db.SubmitChanges();
+ }
}
public static string AddSpotCheckApproveForApi(Model.Check_SpotCheckApprove approve)
{
@@ -193,16 +195,18 @@ namespace BLL
/// 实体验收审批实体
public static void UpdateSpotCheckApprove(Model.Check_SpotCheckApprove approve)
{
- Model.SGGLDB db = Funs.DB;
- Model.Check_SpotCheckApprove newApprove = db.Check_SpotCheckApprove.First(e => e.SpotCheckApproveId == approve.SpotCheckApproveId && e.ApproveDate == null);
- newApprove.SpotCheckCode = approve.SpotCheckCode;
- newApprove.ApproveMan = approve.ApproveMan;
- newApprove.ApproveDate = approve.ApproveDate;
- newApprove.ApproveIdea = approve.ApproveIdea;
- newApprove.IsAgree = approve.IsAgree;
- newApprove.ApproveType = approve.ApproveType;
+ using (var db = new Model.SGGLDB(Funs.ConnString))
+ {
+ Model.Check_SpotCheckApprove newApprove = db.Check_SpotCheckApprove.First(e => e.SpotCheckApproveId == approve.SpotCheckApproveId && e.ApproveDate == null);
+ newApprove.SpotCheckCode = approve.SpotCheckCode;
+ newApprove.ApproveMan = approve.ApproveMan;
+ newApprove.ApproveDate = approve.ApproveDate;
+ newApprove.ApproveIdea = approve.ApproveIdea;
+ newApprove.IsAgree = approve.IsAgree;
+ newApprove.ApproveType = approve.ApproveType;
- db.SubmitChanges();
+ db.SubmitChanges();
+ }
}
///
diff --git a/SGGL/BLL/CQMS/WBS/WorkPackageInitService.cs b/SGGL/BLL/CQMS/WBS/WorkPackageInitService.cs
index 7914b888..b5af2eab 100644
--- a/SGGL/BLL/CQMS/WBS/WorkPackageInitService.cs
+++ b/SGGL/BLL/CQMS/WBS/WorkPackageInitService.cs
@@ -79,6 +79,38 @@ namespace BLL
return Funs.DB.WBS_WorkPackageInit.FirstOrDefault(x => x.WorkPackageCode == workPackageCode);
}
+ ///
+ /// 根据分部分项编号获取分部分项信息
+ ///
+ ///
+ ///
+ public static string GetWorkPackageCodeByPackageContent(string packageContent)
+ {
+ string workPackageCode = string.Empty;
+ var q= Funs.DB.WBS_WorkPackageInit.FirstOrDefault(x => x.PackageContent == packageContent);
+ if (q != null)
+ {
+ workPackageCode = q.WorkPackageCode;
+ }
+ return workPackageCode;
+ }
+
+ ///
+ /// 根据分部分项编号获取分部分项信息
+ ///
+ ///
+ ///
+ public static string GetPackageContentByWorkPackageCode(string workPackageCode)
+ {
+ string packageContent = string.Empty;
+ var q = Funs.DB.WBS_WorkPackageInit.FirstOrDefault(x => x.WorkPackageCode == workPackageCode);
+ if (q != null)
+ {
+ packageContent = q.PackageContent;
+ }
+ return packageContent;
+ }
+
///
/// 根据分部分项编号获取子级分部分项信息集合
///
@@ -88,5 +120,23 @@ namespace BLL
{
return (from x in Funs.DB.WBS_WorkPackageInit where x.SuperWorkPack == workPackageCode select x).ToList();
}
+
+ ///
+ /// 样板类型下拉框
+ ///
+ ///
+ ///
+ ///
+ public static void InitDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
+ {
+ dropName.DataValueField = "PackageContent";
+ dropName.DataTextField = "PackageContent";
+ dropName.DataSource = from x in Funs.DB.WBS_WorkPackageInit where x.SuperWorkPack == null orderby x.ProjectType, x.WorkPackageCode select x;
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
}
}
diff --git a/SGGL/BLL/CQMS/WBS/WorkPackageService.cs b/SGGL/BLL/CQMS/WBS/WorkPackageService.cs
index f5ca9cf6..42cc09eb 100644
--- a/SGGL/BLL/CQMS/WBS/WorkPackageService.cs
+++ b/SGGL/BLL/CQMS/WBS/WorkPackageService.cs
@@ -788,7 +788,21 @@ namespace BLL
IQueryable workPackages = from x in db.WBS_WorkPackage where x.ProjectId == projectId select x;
IQueryable unitWorks = from x in db.WBS_UnitWork where x.ProjectId == projectId select x;
IQueryable getDetails = from x in db.View_WBS_WorkPackageDetail where x.ProjectId == projectId select x;
+ //获取符合时间范围的所有项
List getWBSs = (from x in db.View_WBS where x.ProjectId == projectId select x).ToList();
+ List list = getWBSs.Where(x => x.PlanEndDate > startTime && x.PlanEndDate <= endTime).ToList();
+ List newLists = new List();
+ foreach (var item in list)
+ {
+ var supItem = getWBSs.FirstOrDefault(x => x.Id == item.SupId);
+ if (supItem != null)
+ {
+ newLists.Add(item);
+ newLists.Add(supItem);
+ AddSupItem(supItem, getWBSs, newLists);
+ }
+ }
+ List ids = newLists.Select(x => x.Id).ToList();
List WBSList = new List();
DateTime startDate, endDate, startMonth, endMonth;
List months = new List();
@@ -844,11 +858,11 @@ namespace BLL
newList.Add(item);
if (string.IsNullOrEmpty(IsOut))
{
- AddDetail2(newList, getWBSs.ToList(), item.Id, a.ToString(), startTime, endTime);
+ AddDetail2(newList, getWBSs.ToList(), item.Id, a.ToString(), startTime, endTime, ids);
}
else
{
- AddDetail2(newList, getWBSs.ToList(), item.Id, a.ToString(), string.Empty, startTime, endTime);
+ AddDetail2(newList, getWBSs.ToList(), item.Id, a.ToString(), string.Empty, startTime, endTime, ids);
}
a++;
}
@@ -990,29 +1004,40 @@ namespace BLL
}
}
- private static void AddDetail2(List newList, List oldList, string id, string preCode, DateTime startTime, DateTime endTime)
+ private static void AddSupItem(Model.View_WBS item, List getWBSs, List newLists)
{
- var items = oldList.Where(x => x.SupId == id && x.PlanEndDate > startTime && x.PlanEndDate <= endTime).OrderBy(x => x.Code);
+ var supItem = getWBSs.FirstOrDefault(x => x.Id == item.SupId);
+ if (supItem != null)
+ {
+ newLists.Add(item);
+ newLists.Add(supItem);
+ AddSupItem(supItem, getWBSs, newLists);
+ }
+ }
+
+ private static void AddDetail2(List newList, List oldList, string id, string preCode, DateTime startTime, DateTime endTime,List ids)
+ {
+ var items = oldList.Where(x => x.SupId == id && ((x.PlanEndDate > startTime && x.PlanEndDate <= endTime) || ids.Contains(x.Id))).OrderBy(x => x.Code);
int b = 1;
foreach (var item in items)
{
item.Code = preCode + "." + b.ToString();
newList.Add(item);
- AddDetail2(newList, oldList, item.Id, item.Code, startTime, endTime);
+ AddDetail2(newList, oldList, item.Id, item.Code, startTime, endTime, ids);
b++;
}
}
- private static void AddDetail2(List newList, List oldList, string id, string preCode, string prefix, DateTime startTime, DateTime endTime)
+ private static void AddDetail2(List newList, List oldList, string id, string preCode, string prefix, DateTime startTime, DateTime endTime, List ids)
{
- var items = oldList.Where(x => x.SupId == id && x.PlanEndDate > startTime && x.PlanEndDate <= endTime).OrderBy(x => x.Code);
+ var items = oldList.Where(x => x.SupId == id && ((x.PlanEndDate > startTime && x.PlanEndDate <= endTime) || ids.Contains(x.Id))).OrderBy(x => x.Code);
int b = 1;
foreach (var item in items)
{
item.Code = preCode + "." + b.ToString();
item.Name = prefix + "...." + item.Name;
newList.Add(item);
- AddDetail2(newList, oldList, item.Id, item.Code, prefix + "....", startTime, endTime);
+ AddDetail2(newList, oldList, item.Id, item.Code, prefix + "....", startTime, endTime, ids);
b++;
}
}
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index fe03fd93..ef53e13a 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -367,6 +367,31 @@ namespace BLL
///
public static string WorkPost_Checker = "595999E9-75A8-4064-9BD1-9EE02F236297";
+ ///
+ /// 瓦工岗位Id
+ ///
+ public static string WorkPost_BricklayerId = "668CB91E-F067-42E6-95ED-FFF1BCCE4576";
+
+ ///
+ /// 钢筋工岗位Id
+ ///
+ public static string WorkPost_SteelFixerId = "48280AA2-62D6-4105-AAA7-C38471F44DA9";
+
+ ///
+ /// 木工岗位Id
+ ///
+ public static string WorkPost_CarpentryId = "FA155A27-E5E5-44DF-8CC3-05404F572DB8";
+
+ ///
+ /// 混凝土工岗位Id
+ ///
+ public static string WorkPost_ConcreteWorkerId = "65F02FD8-6C67-402E-9588-4DAB038A697A";
+
+ ///
+ /// 架子工岗位Id
+ ///
+ public static string WorkPost_ScaffolderId = "1331D109-6435-4709-9A35-65AEC7B3F06F";
+
#endregion
#region 系统环境设置常量
@@ -4522,9 +4547,14 @@ namespace BLL
public const string ConstructionReportMenuId = "0DAFF358-EA16-44B2-8E4B-E15E40EFAAD0";
///
- /// 项目级施工日志
+ /// 个人施工日志
///
- public const string ConstructionLogMenuId = "4CB03F8B-C967-4082-ADF1-08776FE40E21";
+ public const string ConstructionLogMenuId = "0383A4A1-1565-4F11-BAF3-2B84CB621796";
+
+ ///
+ /// 项目施工日志
+ ///
+ public const string ProjectConstructionLogMenuId = "D3F67A7B-2FC4-468A-98BB-5F3DF2F193C4";
///
/// 项目级施工日志
diff --git a/SGGL/BLL/Common/Funs.cs b/SGGL/BLL/Common/Funs.cs
index 74b20799..946a8b6d 100644
--- a/SGGL/BLL/Common/Funs.cs
+++ b/SGGL/BLL/Common/Funs.cs
@@ -1418,6 +1418,53 @@ namespace BLL
IRestResponse response = client.Execute(request);
return response.Content;
}
+
+ ///
+ /// ڼֵ
+ ///
+ ///
+ public static string GetWeekDay(string value)
+ {
+ if (!String.IsNullOrEmpty(value))
+ {
+ if (value == "Sunday")
+ {
+ return "";
+ }
+ else if (value == "Monday")
+ {
+ return "һ";
+ }
+ else if (value == "Tuesday")
+ {
+ return "";
+ }
+ else if (value == "Wednesday")
+ {
+ return "";
+ }
+ else if (value == "Thursday")
+ {
+ return "";
+ }
+ else if (value == "Friday")
+ {
+ return "";
+ }
+ else if (value == "Saturday")
+ {
+ return "";
+ }
+ else
+ {
+ return "";
+ }
+ }
+ else
+ {
+ return "";
+ }
+ }
}
}
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs
index 2e4a852c..3c0cf59e 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogMachineService.cs
@@ -31,12 +31,8 @@ namespace BLL
newConstructionLogMachine.ConstructionLogMachineId = constructionLogMachine.ConstructionLogMachineId;
newConstructionLogMachine.ConstructionLogId = constructionLogMachine.ConstructionLogId;
newConstructionLogMachine.UnitWorkId = constructionLogMachine.UnitWorkId;
- newConstructionLogMachine.WJNum = constructionLogMachine.WJNum;
- newConstructionLogMachine.DCNum = constructionLogMachine.DCNum;
- newConstructionLogMachine.DZJNum = constructionLogMachine.DZJNum;
- newConstructionLogMachine.GCNum = constructionLogMachine.GCNum;
- newConstructionLogMachine.BCNum = constructionLogMachine.BCNum;
- newConstructionLogMachine.BengCNum = constructionLogMachine.BengCNum;
+ newConstructionLogMachine.MachineId = constructionLogMachine.MachineId;
+ newConstructionLogMachine.Num = constructionLogMachine.Num;
db.ZHGL_ConstructionLogMachine.InsertOnSubmit(newConstructionLogMachine);
db.SubmitChanges();
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs
index c4f97068..47270a4b 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogManagementService.cs
@@ -61,7 +61,7 @@ namespace BLL
public static List GetConstructionLogManagementsByConstructionLogId(string ConstructionLogId)
{
Model.SGGLDB db = Funs.DB;
- return (from x in db.ZHGL_ConstructionLogManagement where x.ConstructionLogId == ConstructionLogId select x).ToList();
+ return (from x in db.ZHGL_ConstructionLogManagement where x.ConstructionLogId == ConstructionLogId orderby x.UnitWorkId select x).ToList();
}
}
}
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs
index 3fc0990e..bb96c8cf 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogPersonService.cs
@@ -31,12 +31,8 @@ namespace BLL
newConstructionLogPerson.ConstructionLogPersonId = constructionLogPerson.ConstructionLogPersonId;
newConstructionLogPerson.ConstructionLogId = constructionLogPerson.ConstructionLogId;
newConstructionLogPerson.UnitWorkId = constructionLogPerson.UnitWorkId;
- newConstructionLogPerson.WGNum = constructionLogPerson.WGNum;
- newConstructionLogPerson.GJGNum = constructionLogPerson.GJGNum;
- newConstructionLogPerson.MGNum = constructionLogPerson.MGNum;
- newConstructionLogPerson.HNTGNum = constructionLogPerson.HNTGNum;
- newConstructionLogPerson.HGNum = constructionLogPerson.HGNum;
- newConstructionLogPerson.JZGNum = constructionLogPerson.JZGNum;
+ newConstructionLogPerson.WorkPostId = constructionLogPerson.WorkPostId;
+ newConstructionLogPerson.Num = constructionLogPerson.Num;
db.ZHGL_ConstructionLogPerson.InsertOnSubmit(newConstructionLogPerson);
db.SubmitChanges();
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs
index 73c1da33..557f8a90 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogProblemService.cs
@@ -1,13 +1,68 @@
-using System;
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace BLL
{
public class ConstructionLogProblemService
{
+ public static Model.SGGLDB db = Funs.DB;
+ ///
+ /// 获取施工日志需要协调解决的问题明细列表
+ ///
+ ///
+ ///
+ ///
+ public static List getListData(string ConstructionLogId)
+ {
+ return (from x in db.ZHGL_ConstructionLogProblem
+ where x.ConstructionLogId == ConstructionLogId
+ select x).ToList();
+ }
+
+ ///
+ /// 增加施工日志需要协调解决的问题明细
+ ///
+ /// 施工日志需要协调解决的问题明细实体
+ public static void AddConstructionLogProblem(Model.ZHGL_ConstructionLogProblem constructionLogProblem)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.ZHGL_ConstructionLogProblem newConstructionLogProblem = new Model.ZHGL_ConstructionLogProblem();
+ newConstructionLogProblem.ConstructionLogProblemId = constructionLogProblem.ConstructionLogProblemId;
+ newConstructionLogProblem.ConstructionLogId = constructionLogProblem.ConstructionLogId;
+ newConstructionLogProblem.UnitWorkId = constructionLogProblem.UnitWorkId;
+ newConstructionLogProblem.MainProblem = constructionLogProblem.MainProblem;
+ newConstructionLogProblem.HandlingMeasures = constructionLogProblem.HandlingMeasures;
+ newConstructionLogProblem.WorkPackageId = constructionLogProblem.WorkPackageId;
+ newConstructionLogProblem.ImportanceLevel = constructionLogProblem.ImportanceLevel;
+
+ db.ZHGL_ConstructionLogProblem.InsertOnSubmit(newConstructionLogProblem);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 根据月报id删除对应的所有施工日志需要协调解决的问题明细
+ ///
+ /// 施工日志需要协调解决的问题明细编号
+ public static void DeleteConstructionLogProblemsByConstructionLogId(string ConstructionLogId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ var q = (from x in db.ZHGL_ConstructionLogProblem where x.ConstructionLogId == ConstructionLogId select x).ToList();
+ if (q.Count() > 0)
+ {
+ db.ZHGL_ConstructionLogProblem.DeleteAllOnSubmit(q);
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据月报id获取对应的所有施工日志需要协调解决的问题明细
+ ///
+ /// 施工日志需要协调解决的问题明细编号
+ public static List GetConstructionLogProblemsByConstructionLogId(string ConstructionLogId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ return (from x in db.ZHGL_ConstructionLogProblem where x.ConstructionLogId == ConstructionLogId orderby x.UnitWorkId select x).ToList();
+ }
}
}
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogRecordService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogRecordService.cs
new file mode 100644
index 00000000..ced09506
--- /dev/null
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogRecordService.cs
@@ -0,0 +1,65 @@
+using System.Collections.Generic;
+using System.Linq;
+
+namespace BLL
+{
+ public class ConstructionLogRecordService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+ ///
+ /// 获取施工日志施工经理相关记录明细列表
+ ///
+ ///
+ ///
+ ///
+ public static List getListData(string ConstructionLogId)
+ {
+ return (from x in db.ZHGL_ConstructionLogRecord
+ where x.ConstructionLogId == ConstructionLogId
+ select x).ToList();
+ }
+
+ ///
+ /// 增加施工日志作业人员明细
+ ///
+ /// 施工日志作业人员明细实体
+ public static void AddConstructionLogRecord(Model.ZHGL_ConstructionLogRecord constructionLogRecord)
+ {
+ Model.SGGLDB db = Funs.DB;
+ Model.ZHGL_ConstructionLogRecord newConstructionLogRecord = new Model.ZHGL_ConstructionLogRecord();
+ newConstructionLogRecord.ConstructionLogRecordId = constructionLogRecord.ConstructionLogRecordId;
+ newConstructionLogRecord.ConstructionLogId = constructionLogRecord.ConstructionLogId;
+ newConstructionLogRecord.Record = constructionLogRecord.Record;
+ newConstructionLogRecord.Remark = constructionLogRecord.Remark;
+
+ db.ZHGL_ConstructionLogRecord.InsertOnSubmit(newConstructionLogRecord);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 根据月报id删除对应的所有施工日志作业人员明细
+ ///
+ /// 施工日志作业人员明细编号
+ public static void DeleteConstructionLogRecordsByConstructionLogId(string ConstructionLogId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ var q = (from x in db.ZHGL_ConstructionLogRecord where x.ConstructionLogId == ConstructionLogId select x).ToList();
+ if (q.Count() > 0)
+ {
+ db.ZHGL_ConstructionLogRecord.DeleteAllOnSubmit(q);
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据月报id获取对应的所有施工日志作业人员明细
+ ///
+ /// 施工日志作业人员明细编号
+ public static List GetConstructionLogRecordsByConstructionLogId(string ConstructionLogId)
+ {
+ Model.SGGLDB db = Funs.DB;
+ return (from x in db.ZHGL_ConstructionLogRecord where x.ConstructionLogId == ConstructionLogId select x).ToList();
+ }
+ }
+}
diff --git a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs
index 136fa252..99d17bcd 100644
--- a/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs
+++ b/SGGL/BLL/PZHGL/InformationProject/ConstructionLogService.cs
@@ -50,9 +50,9 @@ namespace BLL
Professional = ConstructionLog.Professional,
CompileMan = ConstructionLog.CompileMan,
CompileDate = ConstructionLog.CompileDate,
- State= ConstructionLog.State,
- Remark= ConstructionLog.Remark,
- HSETodaySummary= ConstructionLog.HSETodaySummary,
+ State = ConstructionLog.State,
+ Remark = ConstructionLog.Remark,
+ HSETodaySummary = ConstructionLog.HSETodaySummary,
HSETodaySummaryRemark = ConstructionLog.HSETodaySummaryRemark,
HSETomorrowPlan = ConstructionLog.HSETomorrowPlan,
HSETomorrowPlanRemark = ConstructionLog.HSETomorrowPlanRemark,
@@ -60,6 +60,9 @@ namespace BLL
CQMSTodaySummaryRemark = ConstructionLog.CQMSTodaySummaryRemark,
CQMSTomorrowPlan = ConstructionLog.CQMSTomorrowPlan,
CQMSTomorrowPlanRemark = ConstructionLog.CQMSTomorrowPlanRemark,
+ FileCode = ConstructionLog.FileCode,
+ WorkPostId = ConstructionLog.WorkPostId,
+ MachineId = ConstructionLog.MachineId,
};
db.ZHGL_ConstructionLog.InsertOnSubmit(newConstructionLog);
db.SubmitChanges();
@@ -75,6 +78,7 @@ namespace BLL
Model.ZHGL_ConstructionLog newConstructionLog = db.ZHGL_ConstructionLog.FirstOrDefault(e => e.ConstructionLogId == ConstructionLog.ConstructionLogId);
if (newConstructionLog != null)
{
+ newConstructionLog.FileCode = ConstructionLog.FileCode;
newConstructionLog.Weather = ConstructionLog.Weather;
newConstructionLog.Temperature = ConstructionLog.Temperature;
newConstructionLog.ContractNo = ConstructionLog.ContractNo;
@@ -90,6 +94,8 @@ namespace BLL
newConstructionLog.CQMSTodaySummaryRemark = ConstructionLog.CQMSTodaySummaryRemark;
newConstructionLog.CQMSTomorrowPlan = ConstructionLog.CQMSTomorrowPlan;
newConstructionLog.CQMSTomorrowPlanRemark = ConstructionLog.CQMSTomorrowPlanRemark;
+ newConstructionLog.WorkPostId = ConstructionLog.WorkPostId;
+ newConstructionLog.MachineId = ConstructionLog.MachineId;
db.SubmitChanges();
}
}
diff --git a/SGGL/BLL/Person/Person_PersonsService.cs b/SGGL/BLL/Person/Person_PersonsService.cs
index 487406ed..c9d874d1 100644
--- a/SGGL/BLL/Person/Person_PersonsService.cs
+++ b/SGGL/BLL/Person/Person_PersonsService.cs
@@ -841,6 +841,8 @@ namespace BLL
newPerson.RelativeTel = person.RelativeTel;
newPerson.MultiProject = person.MultiProject;
newPerson.HomePageType = person.HomePageType;
+ newPerson.LogWorkPostId = person.LogWorkPostId;
+ newPerson.LogMachineId = person.LogMachineId;
newPerson.IsCardNoOK = IDCardValid.CheckIDCard(person.IdentityCard);
if (string.IsNullOrEmpty(person.QRCodeAttachUrl))
diff --git a/SGGL/BLL/ProjectData/UnitWorkService.cs b/SGGL/BLL/ProjectData/UnitWorkService.cs
index 5b75b8bd..79fac28f 100644
--- a/SGGL/BLL/ProjectData/UnitWorkService.cs
+++ b/SGGL/BLL/ProjectData/UnitWorkService.cs
@@ -30,6 +30,8 @@ namespace BLL
newUnitWork.NDEUnit = UnitWork.NDEUnit;
newUnitWork.Costs = UnitWork.Costs;
newUnitWork.MainItemAndDesignProfessionalIds = UnitWork.MainItemAndDesignProfessionalIds;
+ newUnitWork.ContractId = UnitWork.ContractId;
+ newUnitWork.MainItemCode = UnitWork.MainItemCode;
db.WBS_UnitWork.InsertOnSubmit(newUnitWork);
db.SubmitChanges();
GetWeights(UnitWork.ProjectId);
@@ -64,6 +66,8 @@ namespace BLL
newUnitWork.RealEndDate = UnitWork.RealEndDate;
newUnitWork.PlanCost = UnitWork.PlanCost;
newUnitWork.JDWeights = UnitWork.JDWeights;
+ newUnitWork.ContractId = UnitWork.ContractId;
+ newUnitWork.MainItemCode = UnitWork.MainItemCode;
db.SubmitChanges();
}
GetWeights(UnitWork.ProjectId);
@@ -273,6 +277,21 @@ namespace BLL
return item;
}
///
+ /// 获取单位工程名称项
+ ///
+ /// 项目Id
+ ///
+ public static ListItem[] GetUnitWorkListByContract(string projectId, List contracts)
+ {
+ List q = (from x in Funs.DB.WBS_UnitWork where x.ProjectId == projectId && x.SuperUnitWork == null && contracts.Contains(x.ContractId) orderby x.UnitWorkCode select x).ToList();
+ ListItem[] item = new ListItem[q.Count()];
+ for (int i = 0; i < q.Count(); i++)
+ {
+ item[i] = new ListItem((q[i].UnitWorkCode + "-" + q[i].UnitWorkName + GetProjectType(q[i].ProjectType)) ?? "", q[i].UnitWorkId.ToString());
+ }
+ return item;
+ }
+ ///
/// 获取安装工程单位工程名称项
///
/// 项目Id
@@ -358,6 +377,22 @@ namespace BLL
}
}
///
+ /// 单位工程表下拉框
+ ///
+ /// 下拉框名字
+ /// 是否显示请选择
+ public static void InitContractUnitWorkDownList(FineUIPro.DropDownList dropName, string projectId, List contracts, bool isShowPlease)
+ {
+ dropName.DataValueField = "Value";
+ dropName.DataTextField = "Text";
+ dropName.DataSource = BLL.UnitWorkService.GetUnitWorkListByContract(projectId, contracts);
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+ ///
/// 安装工程单位工程表下拉框
///
/// 下拉框名字
diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt
index 18eb3fcb..5fc94fd2 100644
--- a/SGGL/FineUIPro.Web/ErrLog.txt
+++ b/SGGL/FineUIPro.Web/ErrLog.txt
@@ -1,171 +1,122 @@
错误信息开始=====>
-错误类型:NullReferenceException
-错误信息:未将对象引用设置到对象的实例。
+错误类型:HttpException
+错误信息:文件“/PZHGL/InformationProject/ProjectConstructionLog.aspx”不存在。
错误堆栈:
- 在 (TreeNode )
- 在 FineUIPro.TreeCommandEventArgs..ctor(TreeNode node, String commandName, String commandArgument)
- 在 (TreeNode , String , String )
- 在 FineUIPro.Tree.RaisePostBackEvent(String eventArgument)
- 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
- 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
- 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
-出错时间:09/07/2023 21:53:15
-出错文件:http://localhost:6422/DigData/WBSAnalysis.aspx
+ 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
+ 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
+ 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
+ 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
+ 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+ 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
+ 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
+出错时间:09/20/2023 21:33:59
+出错文件:http://localhost:6422/PZHGL/InformationProject/ProjectConstructionLog.aspx
IP地址:::1
-操作人员:JT
-出错时间:09/07/2023 21:53:15
+出错时间:09/20/2023 21:33:59
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
- 在 FineUIPro.Web.CQMS.Check.EditCheckMonth.Page_Load(Object sender, EventArgs e) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\CQMS\Check\EditCheckMonth.aspx.cs:行号 39
+ 在 FineUIPro.Web.Personal.PersonalInfo.Tab1LoadData() 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\Personal\PersonalInfo.aspx.cs:行号 83
+ 在 FineUIPro.Web.Personal.PersonalInfo.Page_Load(Object sender, EventArgs e) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\Personal\PersonalInfo.aspx.cs:行号 46
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.EventHandler.Invoke(Object sender, EventArgs e)
在 System.Web.UI.Control.OnLoad(EventArgs e)
在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
-出错时间:09/11/2023 11:02:10
-出错文件:http://localhost:6422/CQMS/Check/EditCheckMonth.aspx?months=2023-09-01
-IP地址:::1
-
-出错时间:09/11/2023 11:02:10
-
-
-错误信息开始=====>
-错误类型:HttpRequestValidationException
-错误信息:从客户端(Panel1$Grid1$ctl04$txtUnit="m³")中检测到有潜在危险的 Request.Form 值。
-错误堆栈:
- 在 System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
- 在 System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
- 在 System.Web.HttpRequest.get_Form()
- 在 System.Web.HttpRequest.get_HasForm()
- 在 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
- 在 System.Web.UI.Page.DeterminePostBackMode()
- 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- 在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- 在 System.Web.UI.Page.ProcessRequest()
- 在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
- 在 System.Web.UI.Page.ProcessRequest(HttpContext context)
- 在 ASP.jdgl_check_planset_aspx.ProcessRequest(HttpContext context)
- 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
- 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
- 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-出错时间:09/12/2023 09:47:37
-出错文件:http://localhost:6422/JDGL/Check/PlanSet.aspx
+出错时间:09/21/2023 15:41:29
+出错文件:http://localhost:6422/Personal/PersonalInfo.aspx
IP地址:::1
操作人员:JT
-出错时间:09/12/2023 09:47:37
+出错时间:09/21/2023 15:41:29
错误信息开始=====>
-错误类型:HttpRequestValidationException
-错误信息:从客户端(Panel1$Grid1$ctl04$txtUnit="m³")中检测到有潜在危险的 Request.Form 值。
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
错误堆栈:
- 在 System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
- 在 System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
- 在 System.Web.HttpRequest.get_Form()
- 在 System.Web.HttpRequest.get_HasForm()
- 在 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
- 在 System.Web.UI.Page.DeterminePostBackMode()
+ 在 FineUIPro.Web.PZHGL.InformationProject.ConstructionLog.Page_Load(Object sender, EventArgs e) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\PZHGL\InformationProject\ConstructionLog.aspx.cs:行号 86
+ 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
+ 在 System.EventHandler.Invoke(Object sender, EventArgs e)
+ 在 System.Web.UI.Control.OnLoad(EventArgs e)
+ 在 System.Web.UI.Control.LoadRecursive()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- 在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- 在 System.Web.UI.Page.ProcessRequest()
- 在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
- 在 System.Web.UI.Page.ProcessRequest(HttpContext context)
- 在 ASP.jdgl_check_planset_aspx.ProcessRequest(HttpContext context)
- 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
- 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
- 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-出错时间:09/12/2023 09:47:40
-出错文件:http://localhost:6422/JDGL/Check/PlanSet.aspx
+出错时间:09/21/2023 16:05:41
+出错文件:http://localhost:6422/PZHGL/InformationProject/ConstructionLog.aspx
IP地址:::1
操作人员:JT
-出错时间:09/12/2023 09:47:40
+出错时间:09/21/2023 16:05:41
错误信息开始=====>
-错误类型:HttpRequestValidationException
-错误信息:从客户端(Panel1$Grid1$ctl04$txtUnit="m³")中检测到有潜在危险的 Request.Form 值。
+错误类型:JsonReaderException
+错误信息:Unexpected character encountered while parsing value: 未. Path '', line 0, position 0.
错误堆栈:
- 在 System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
- 在 System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
- 在 System.Web.HttpRequest.get_Form()
- 在 System.Web.HttpRequest.get_HasForm()
- 在 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
- 在 System.Web.UI.Page.DeterminePostBackMode()
- 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- 在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- 在 System.Web.UI.Page.ProcessRequest()
- 在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
- 在 System.Web.UI.Page.ProcessRequest(HttpContext context)
- 在 ASP.jdgl_check_planset_aspx.ProcessRequest(HttpContext context)
- 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
- 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
- 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-出错时间:09/12/2023 09:47:42
-出错文件:http://localhost:6422/JDGL/Check/PlanSet.aspx
-IP地址:::1
-操作人员:JT
-
-出错时间:09/12/2023 09:47:42
+ 在 Newtonsoft.Json.JsonTextReader.ParseValue()
+ 在 Newtonsoft.Json.JsonTextReader.Read()
+ 在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
+ 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
+ 在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
+ 在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
+ 在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
+ 在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
+ 在 BLL.WeatherService.GetWeather(String projectId) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\BLL\Common\WeatherService.cs:行号 93
+出错时间:09/21/2023 20:05:25
+出错时间:09/21/2023 20:05:25
错误信息开始=====>
-错误类型:HttpRequestValidationException
-错误信息:从客户端(Panel1$Grid1$ctl04$txtUnit="m³")中检测到有潜在危险的 Request.Form 值。
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
错误堆栈:
- 在 System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
- 在 System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
- 在 System.Web.HttpRequest.get_Form()
- 在 System.Web.HttpRequest.get_HasForm()
- 在 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
- 在 System.Web.UI.Page.DeterminePostBackMode()
+ 在 (Object )
+ 在 FineUIPro.GridRow.kxpUEMXYxcbykrOznAFBzkoxlAnb()
+ 在 (GridRow )
+ 在 FineUIPro.GridRow.InitTemplateContainers()
+ 在 (GridRow )
+ 在 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object )
+ 在 (Grid , Int32 , Object )
+ 在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean )
+ 在 (Grid , IEnumerable , Boolean )
+ 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
+ 在 (Grid , Boolean )
+ 在 FineUIPro.Grid.DataBind()
+ 在 FineUIPro.Web.PZHGL.InformationProject.ConstructionLog.drpUnitWork_SelectedIndexChanged(Object sender, EventArgs e) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\PZHGL\InformationProject\ConstructionLog.aspx.cs:行号 968
+ 在 FineUIPro.DropDownList.OnSelectedIndexChanged(EventArgs e)
+ 在 (DropDownList , EventArgs )
+ 在 FineUIPro.DropDownList.RaisePostDataChangedEvent()
+ 在 System.Web.UI.Page.RaiseChangedEvents()
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- 在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- 在 System.Web.UI.Page.ProcessRequest()
- 在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
- 在 System.Web.UI.Page.ProcessRequest(HttpContext context)
- 在 ASP.jdgl_check_planset_aspx.ProcessRequest(HttpContext context)
- 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
- 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
- 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-出错时间:09/12/2023 09:48:38
-出错文件:http://localhost:6422/JDGL/Check/PlanSet.aspx
+出错时间:09/21/2023 20:05:50
+出错文件:http://localhost:6422/PZHGL/InformationProject/ConstructionLog.aspx
IP地址:::1
操作人员:JT
-出错时间:09/12/2023 09:48:38
+出错时间:09/21/2023 20:05:50
错误信息开始=====>
-错误类型:HttpRequestValidationException
-错误信息:从客户端(Panel1$Grid1$ctl04$txtUnit="m³")中检测到有潜在危险的 Request.Form 值。
+错误类型:JsonReaderException
+错误信息:Unexpected character encountered while parsing value: 未. Path '', line 0, position 0.
错误堆栈:
- 在 System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)
- 在 System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection)
- 在 System.Web.HttpRequest.get_Form()
- 在 System.Web.HttpRequest.get_HasForm()
- 在 System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
- 在 System.Web.UI.Page.DeterminePostBackMode()
- 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- 在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
- 在 System.Web.UI.Page.ProcessRequest()
- 在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
- 在 System.Web.UI.Page.ProcessRequest(HttpContext context)
- 在 ASP.jdgl_check_planset_aspx.ProcessRequest(HttpContext context)
- 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
- 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
- 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-出错时间:09/12/2023 09:48:39
-出错文件:http://localhost:6422/JDGL/Check/PlanSet.aspx
-IP地址:::1
-操作人员:JT
-
-出错时间:09/12/2023 09:48:39
+ 在 Newtonsoft.Json.JsonTextReader.ParseValue()
+ 在 Newtonsoft.Json.JsonTextReader.Read()
+ 在 Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
+ 在 Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
+ 在 Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
+ 在 Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
+ 在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
+ 在 Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
+ 在 BLL.WeatherService.GetWeather(String projectId) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\BLL\Common\WeatherService.cs:行号 93
+出错时间:09/21/2023 20:07:01
+出错时间:09/21/2023 20:07:01
diff --git a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx
index 0390026c..ee673c0c 100644
--- a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx
+++ b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx
@@ -4,104 +4,405 @@
-
+
项目级施工日志
diff --git a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.cs b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.cs
index 651a91d3..2c1715da 100644
--- a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.cs
+++ b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.cs
@@ -1,16 +1,17 @@
using BLL;
+using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
-using System.Data;
-using System.Data.SqlClient;
using System.Linq;
+using System.Web.UI.WebControls;
namespace FineUIPro.Web.PZHGL.InformationProject
{
public partial class ConstructionLog : PageBase
{
+ #region 定义项
///
- /// 工程联系单主键
+ /// 主键
///
public string ConstructionLogId
{
@@ -23,163 +24,1055 @@ namespace FineUIPro.Web.PZHGL.InformationProject
ViewState["ConstructionLogId"] = value;
}
}
+ #endregion
+
+ ///
+ /// 加载表头
+ ///
+ protected void Page_Init(object sender, EventArgs e)
+ {
+ InitGrid();
+ }
+
+ #region 表头
+ ///
+ /// 表头
+ ///
+ private void InitGrid()
+ {
+ this.hdWorkPostId.Text = this.CurrUser.LogWorkPostId;
+ this.hdMachineId.Text = this.CurrUser.LogMachineId;
+ List list = Funs.GetStrListByStr(this.hdWorkPostId.Text, ',');
+ for (int i = 0; i < list.Count; i++)
+ {
+ RenderField rdPlan = new RenderField();
+ rdPlan.ColumnID = "Num" + i.ToString();
+ rdPlan.Width = Unit.Pixel(100);
+ rdPlan.DataField = "Num" + i.ToString();
+ rdPlan.FieldType = FieldType.Int;
+ rdPlan.HeaderText = BLL.WorkPostService.getWorkPostNameById(list[i]);
+ rdPlan.HeaderTextAlign = TextAlign.Center;
+ NumberBox numPlan = new NumberBox();
+ numPlan.NoNegative = true;
+ numPlan.NoDecimal = true;
+ rdPlan.Editor.Add(numPlan);
+ Grid1.Columns.Add(rdPlan);
+ }
+ List list2 = Funs.GetStrListByStr(this.hdMachineId.Text, ',');
+ for (int i = 0; i < list2.Count; i++)
+ {
+ RenderField rdPlan = new RenderField();
+ rdPlan.ColumnID = "Num" + i.ToString();
+ rdPlan.Width = Unit.Pixel(100);
+ rdPlan.DataField = "Num" + i.ToString();
+ rdPlan.FieldType = FieldType.Int;
+ rdPlan.HeaderText = BLL.SpecialEquipmentService.GetSpecialEquipmentNameById(list2[i]);
+ rdPlan.HeaderTextAlign = TextAlign.Center;
+ NumberBox numPlan = new NumberBox();
+ numPlan.NoNegative = true;
+ numPlan.NoDecimal = true;
+ rdPlan.Editor.Add(numPlan);
+ Grid2.Columns.Add(rdPlan);
+ }
+ }
+ #endregion
+
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ if (string.IsNullOrEmpty(this.hdWorkPostId.Text.Trim()))
+ {
+ Alert.ShowInTop("请先在个人信息中设置施工日志工种!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (string.IsNullOrEmpty(this.hdMachineId.Text.Trim()))
+ {
+ Alert.ShowInTop("请先在个人信息中设置施工日志机械!", MessageBoxIcon.Warning);
+ return;
+ }
+ UnitWorkService.InitUnitWorkDownList(drpUnitWork, this.CurrUser.LoginProjectId, true);
+ this.drpProfessional.DataTextField = "Value";
+ this.drpProfessional.DataValueField = "Text";
+ this.drpProfessional.DataSource = BLL.PHTGL_QuantityService.GetMajorItems();
+ this.drpProfessional.DataBind();
+ Funs.FineUIPleaseSelect(this.drpProfessional);
+ //合同编号
+ this.drpContractNo.DataTextField = "ContractNum";
+ this.drpContractNo.DataValueField = "ContractId";
+ this.drpContractNo.DataSource = BLL.PHTGL_ContractReviewService.GetContractReview_CompleteData(this.CurrUser.LoginProjectId);
+ this.drpContractNo.DataBind();
+ Funs.FineUIPleaseSelect(this.drpContractNo);
+ //所属WBS
+ BLL.WorkPackageInitService.InitDownList(this.drpWorkPackage, false);
+ this.txtReportDate.Text = string.Format("{0:yyyy-MM}", DateTime.Now);
+ this.InitTreeMenu();
+ }
+ }
+ #endregion
+
+ #region 加载树装置-单位-工作区
+ ///
+ /// 加载树
+ ///
+ private void InitTreeMenu()
+ {
+ if (!string.IsNullOrEmpty(this.txtReportDate.Text.Trim()))
+ {
+ DateTime? startTime = Funs.GetNewDateTime(this.txtReportDate.Text.Trim());
+ DateTime? endTime = startTime.HasValue ? startTime.Value.AddMonths(1) : System.DateTime.Now;
+
+ this.tvControlItem.Nodes.Clear();
+ TreeNode rootNode = new TreeNode();
+ rootNode.Text = this.CurrUser.PersonName;
+ rootNode.NodeID = "0";
+ rootNode.CommandName = "Person";
+ rootNode.EnableClickEvent = true;
+ rootNode.Expanded = true;
+ this.tvControlItem.Nodes.Add(rootNode);
+ var logs = from x in Funs.DB.ZHGL_ConstructionLog
+ where x.ProjectId == this.CurrUser.LoginProjectId && x.CompileMan == this.CurrUser.PersonId && x.CompileDate >= startTime && x.CompileDate < endTime
+ select x;
+ foreach (var item in logs)
+ {
+ TreeNode rootUnitNode = new TreeNode();//定义根节点
+ rootUnitNode.Text = item.FileCode;
+ rootUnitNode.NodeID = item.ConstructionLogId;
+ rootUnitNode.CommandName = "Log";
+ rootUnitNode.Expanded = true;
+ rootUnitNode.EnableClickEvent = true;
+ rootUnitNode.ToolTip = "施工日志";
+ rootNode.Nodes.Add(rootUnitNode);
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("请选择月份!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
+
+ #region 查询Tree
+ protected void Tree_TextChanged(object sender, EventArgs e)
+ {
+ this.InitTreeMenu();
+ }
+ #endregion
+
+ #region 点击树节点
+ ///
+ /// 点击树节点
+ ///
+ ///
+ ///
+ protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
+ {
+ if (this.tvControlItem.SelectedNode.CommandName == "Person")
+ {
+ if (this.GetButtonPower(BLL.Const.BtnAdd))
+ {
+ this.btnMenuAdd.Hidden = false;
+ this.btnMenuEdit.Hidden = true;
+ this.btnMenuDown.Hidden = true;
+ this.btnMenuDelete.Hidden = true;
+ }
+ }
+ else
+ {
+ if (this.GetButtonPower(BLL.Const.BtnModify))
+ {
+ this.btnMenuAdd.Hidden = true;
+ this.btnMenuEdit.Hidden = false;
+ this.btnMenuDown.Hidden = false;
+ this.btnMenuDelete.Hidden = false;
+ }
+ }
+ this.ConstructionLogId = this.tvControlItem.SelectedNodeID;
+ if (!string.IsNullOrEmpty(this.ConstructionLogId))
+ {
+ GetData();
+ }
+ else
+ {
+ this.ConstructionLogId = string.Empty;
+ }
+ }
+ #endregion
+
+ private void GetData()
+ {
+ var log = BLL.ConstructionLogService.GetConstructionLogById(ConstructionLogId);
+ if (log != null)
+ {
+ this.hdWorkPostId.Text = log.WorkPostId;
+ this.hdMachineId.Text = log.MachineId;
+ this.txtFileCode.Text = log.FileCode;
+ if (log.CompileDate != null)
+ {
+ this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", log.CompileDate.Value);
+ this.txtWeek.Text = Funs.GetWeekDay(log.CompileDate.Value.DayOfWeek.ToString());
+ }
+ this.txtWeather.Text = log.Weather;
+ this.txtTemperature.Text = log.Temperature;
+ this.txtCompileMan.Text = BLL.Person_PersonsService.GetPersonsNameById(log.CompileMan);
+ if (!string.IsNullOrEmpty(log.ContractNo))
+ {
+ if (log.ContractNo.Length > 0)
+ {
+ this.drpContractNo.SelectedValueArray = log.ContractNo.Split(',');
+ }
+ }
+ if (!string.IsNullOrEmpty(log.UnitWorks))
+ {
+ if (log.UnitWorks.Length > 0)
+ {
+ this.drpUnitWork.SelectedValueArray = log.UnitWorks.Split(',');
+ }
+ }
+ if (!string.IsNullOrEmpty(log.Professional))
+ {
+ if (log.Professional.Length > 0)
+ {
+ this.drpProfessional.SelectedValueArray = log.Professional.Split(',');
+ }
+ }
+ this.txtRemark.Text = log.Remark;
+ this.txtHSETodaySummary.Text = log.HSETodaySummary;
+ this.txtHSETodaySummaryRemark.Text = log.HSETodaySummaryRemark;
+ this.txtHSETomorrowPlan.Text = log.HSETomorrowPlan;
+ this.txtHSETomorrowPlanRemark.Text = log.HSETomorrowPlanRemark;
+ this.txtCQMSTodaySummary.Text = log.CQMSTodaySummary;
+ this.txtCQMSTodaySummaryRemark.Text = log.CQMSTodaySummaryRemark;
+ this.txtCQMSTomorrowPlan.Text = log.CQMSTomorrowPlan;
+ this.txtCQMSTomorrowPlanRemark.Text = log.CQMSTomorrowPlanRemark;
+ var persons = BLL.ConstructionLogPersonService.GetConstructionLogPersonsByConstructionLogId(ConstructionLogId);
+ List unitWorkList = Funs.GetStrListByStr(log.UnitWorks, ',');
+ List personItems = new List();
+ if (persons.Count > 0)
+ {
+ List workPostList = Funs.GetStrListByStr(this.hdWorkPostId.Text, ',');
+ foreach (var unitWork in unitWorkList)
+ {
+ Model.ConstructionLogPersonItem personItem = new Model.ConstructionLogPersonItem();
+ personItem.ConstructionLogPersonId = SQLHelper.GetNewID();
+ personItem.ConstructionLogId = ConstructionLogId;
+ personItem.UnitWorkId = unitWork;
+ int a = 0;
+ foreach (var workPost in workPostList)
+ {
+ int num = 0;
+ var p = persons.FirstOrDefault(x => x.UnitWorkId == unitWork && x.WorkPostId == workPost);
+ if (p != null)
+ {
+ num = p.Num ?? 0;
+ }
+ if (a == 0)
+ {
+ personItem.Num0 = num;
+ }
+ else if (a == 1)
+ {
+ personItem.Num1 = num;
+ }
+ else if (a == 2)
+ {
+ personItem.Num2 = num;
+ }
+ else if (a == 3)
+ {
+ personItem.Num3 = num;
+ }
+ else if (a == 4)
+ {
+ personItem.Num4 = num;
+ }
+ else if (a == 5)
+ {
+ personItem.Num5 = num;
+ }
+ else if (a == 6)
+ {
+ personItem.Num6 = num;
+ }
+ else if (a == 7)
+ {
+ personItem.Num7 = num;
+ }
+ else if (a == 8)
+ {
+ personItem.Num8 = num;
+ }
+ else if (a == 9)
+ {
+ personItem.Num9 = num;
+ }
+ else if (a == 10)
+ {
+ personItem.Num10 = num;
+ }
+ else if (a == 11)
+ {
+ personItem.Num11 = num;
+ }
+ else if (a == 12)
+ {
+ personItem.Num12 = num;
+ }
+ else if (a == 13)
+ {
+ personItem.Num13 = num;
+ }
+ else if (a == 14)
+ {
+ personItem.Num14 = num;
+ }
+ else if (a == 15)
+ {
+ personItem.Num15 = num;
+ }
+ else if (a == 16)
+ {
+ personItem.Num16 = num;
+ }
+ else if (a == 17)
+ {
+ personItem.Num17 = num;
+ }
+ else if (a == 18)
+ {
+ personItem.Num18 = num;
+ }
+ else if (a == 19)
+ {
+ personItem.Num19 = num;
+ }
+ else if (a == 20)
+ {
+ personItem.Num20 = num;
+ }
+ a++;
+ }
+ personItems.Add(personItem);
+ }
+ this.Grid1.DataSource = personItems;
+ this.Grid1.DataBind();
+ }
+ var machines = BLL.ConstructionLogMachineService.GetConstructionLogMachinesByConstructionLogId(ConstructionLogId);
+ List machineItems = new List();
+ if (machines.Count > 0)
+ {
+ List machineList = Funs.GetStrListByStr(this.hdMachineId.Text, ',');
+ foreach (var unitWork in unitWorkList)
+ {
+ Model.ConstructionLogMachineItem machineItem = new Model.ConstructionLogMachineItem();
+ machineItem.ConstructionLogMachineId = SQLHelper.GetNewID();
+ machineItem.ConstructionLogId = ConstructionLogId;
+ machineItem.UnitWorkId = unitWork;
+ int a = 0;
+ foreach (var machine in machineList)
+ {
+ int num = 0;
+ var p = machines.FirstOrDefault(x => x.UnitWorkId == unitWork && x.MachineId == machine);
+ if (p != null)
+ {
+ num = p.Num ?? 0;
+ }
+ if (a == 0)
+ {
+ machineItem.Num0 = num;
+ }
+ else if (a == 1)
+ {
+ machineItem.Num1 = num;
+ }
+ else if (a == 2)
+ {
+ machineItem.Num2 = num;
+ }
+ else if (a == 3)
+ {
+ machineItem.Num3 = num;
+ }
+ else if (a == 4)
+ {
+ machineItem.Num4 = num;
+ }
+ else if (a == 5)
+ {
+ machineItem.Num5 = num;
+ }
+ else if (a == 6)
+ {
+ machineItem.Num6 = num;
+ }
+ else if (a == 7)
+ {
+ machineItem.Num7 = num;
+ }
+ else if (a == 8)
+ {
+ machineItem.Num8 = num;
+ }
+ else if (a == 9)
+ {
+ machineItem.Num9 = num;
+ }
+ else if (a == 10)
+ {
+ machineItem.Num10 = num;
+ }
+ else if (a == 11)
+ {
+ machineItem.Num11 = num;
+ }
+ else if (a == 12)
+ {
+ machineItem.Num12 = num;
+ }
+ else if (a == 13)
+ {
+ machineItem.Num13 = num;
+ }
+ else if (a == 14)
+ {
+ machineItem.Num14 = num;
+ }
+ else if (a == 15)
+ {
+ machineItem.Num15 = num;
+ }
+ else if (a == 16)
+ {
+ machineItem.Num16 = num;
+ }
+ else if (a == 17)
+ {
+ machineItem.Num17 = num;
+ }
+ else if (a == 18)
+ {
+ machineItem.Num18 = num;
+ }
+ else if (a == 19)
+ {
+ machineItem.Num19 = num;
+ }
+ else if (a == 20)
+ {
+ machineItem.Num20 = num;
+ }
+ a++;
+ }
+ machineItems.Add(machineItem);
+ }
+ this.Grid2.DataSource = machineItems;
+ this.Grid2.DataBind();
+ }
+ var managements = BLL.ConstructionLogManagementService.GetConstructionLogManagementsByConstructionLogId(ConstructionLogId);
+ if (managements.Count > 0)
+ {
+ this.Grid3.DataSource = managements;
+ this.Grid3.DataBind();
+ }
+ var problems = BLL.ConstructionLogProblemService.GetConstructionLogProblemsByConstructionLogId(ConstructionLogId);
+ if (problems.Count > 0)
+ {
+ foreach (var item in problems)
+ {
+ item.WorkPackageId = BLL.WorkPackageInitService.GetPackageContentByWorkPackageCode(item.WorkPackageId);
+ }
+ this.Grid4.DataSource = problems;
+ this.Grid4.DataBind();
+ }
+ var records = BLL.ConstructionLogRecordService.GetConstructionLogRecordsByConstructionLogId(ConstructionLogId);
+ if (records.Count > 0)
+ {
+ this.Grid5.DataSource = records;
+ this.Grid5.DataBind();
+ }
+ }
+ }
+
+ #region 增加
+ ///
+ /// 增加按钮
+ ///
+ ///
+ ///
+ protected void btnMenuAdd_Click(object sender, EventArgs e)
+ {
+ if (this.GetButtonPower(BLL.Const.BtnAdd))
+ {
+ TextNew();
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+
+ private void TextNew()
+ {
+ this.ConstructionLogId = string.Empty;
+ DateTime today = DateTime.Now;
+ string prefix = string.Format("{0:yyyyMMdd}", today) + "-";
+ this.txtFileCode.Text = BLL.SQLHelper.RunProcNewId("SpGetThreeNumber", "ZHGL_ConstructionLog", "FileCode", this.CurrUser.LoginProjectId, prefix);
+ this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", today);
+ this.txtWeek.Text = Funs.GetWeekDay(today.DayOfWeek.ToString());
+ this.txtWeather.Text = string.Empty;
+ this.txtTemperature.Text = string.Empty;
+ this.txtCompileMan.Text = this.CurrUser.PersonName;
+ this.drpContractNo.SelectedIndex = 0;
+ this.drpUnitWork.SelectedIndex = 0;
+ this.drpProfessional.SelectedIndex = 0;
+ this.txtState.Text = string.Empty;
+ this.txtRemark.Text = string.Empty;
+ this.txtHSETodaySummary.Text = string.Empty;
+ this.txtHSETodaySummaryRemark.Text = string.Empty;
+ this.txtHSETomorrowPlan.Text = string.Empty;
+ this.txtHSETomorrowPlanRemark.Text = string.Empty;
+ this.txtCQMSTodaySummary.Text = string.Empty;
+ this.txtCQMSTodaySummaryRemark.Text = string.Empty;
+ this.txtCQMSTomorrowPlan.Text = string.Empty;
+ this.txtCQMSTomorrowPlanRemark.Text = string.Empty;
+ this.Grid1.DataSource = null;
+ this.Grid1.DataBind();
+ this.Grid2.DataSource = null;
+ this.Grid2.DataBind();
+ this.Grid3.DataSource = null;
+ this.Grid3.DataBind();
+ this.Grid4.DataSource = null;
+ this.Grid4.DataBind();
+ this.Grid5.DataSource = null;
+ this.Grid5.DataBind();
+ }
+
+ private void TextEmpty()
+ {
+ this.ConstructionLogId = string.Empty;
+ this.txtFileCode.Text = string.Empty;
+ this.txtCompileDate.Text = string.Empty;
+ this.txtWeek.Text = string.Empty;
+ this.txtWeather.Text = string.Empty;
+ this.txtTemperature.Text = string.Empty;
+ this.txtCompileMan.Text = string.Empty;
+ this.drpContractNo.SelectedIndex = 0;
+ this.drpUnitWork.SelectedIndex = 0;
+ this.drpProfessional.SelectedIndex = 0;
+ this.txtState.Text = string.Empty;
+ this.txtRemark.Text = string.Empty;
+ this.txtHSETodaySummary.Text = string.Empty;
+ this.txtHSETodaySummaryRemark.Text = string.Empty;
+ this.txtHSETomorrowPlan.Text = string.Empty;
+ this.txtHSETomorrowPlanRemark.Text = string.Empty;
+ this.txtCQMSTodaySummary.Text = string.Empty;
+ this.txtCQMSTodaySummaryRemark.Text = string.Empty;
+ this.txtCQMSTomorrowPlan.Text = string.Empty;
+ this.txtCQMSTomorrowPlanRemark.Text = string.Empty;
+ this.Grid1.DataSource = null;
+ this.Grid1.DataBind();
+ this.Grid2.DataSource = null;
+ this.Grid2.DataBind();
+ this.Grid3.DataSource = null;
+ this.Grid3.DataBind();
+ this.Grid4.DataSource = null;
+ this.Grid4.DataBind();
+ this.Grid5.DataSource = null;
+ this.Grid5.DataBind();
+ }
+ #endregion
+
+ #region 编辑
+ ///
+ /// 编辑按钮
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ if (this.GetButtonPower(BLL.Const.BtnModify))
+ {
+ this.ConstructionLogId = this.tvControlItem.SelectedNodeID;
+ GetData();
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+
+ #region 导出
+ ///
+ /// 导出按钮
+ ///
+ ///
+ ///
+ protected void btnMenuDown_Click(object sender, EventArgs e)
+ {
+ }
+ #endregion
+
+ #region 删除明细
+ ///
+ /// 删除明细按钮
+ ///
+ ///
+ ///
+ protected void btnMenuDelete2_Click(object sender, EventArgs e)
+ {
+ }
+ #endregion
+
+ #region 保存
+ ///
+ /// 保存按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (this.GetButtonPower(BLL.Const.BtnSave))
+ {
+ if (this.drpContractNo.SelectedValue == BLL.Const._Null && this.drpContractNo.SelectedItemArray.Length == 1)
+ {
+ Alert.ShowInTop("请选择合同编号!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.drpUnitWork.SelectedValue == BLL.Const._Null && this.drpUnitWork.SelectedItemArray.Length == 1)
+ {
+ Alert.ShowInTop("请选择单位工程!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (this.drpProfessional.SelectedValue == BLL.Const._Null && this.drpProfessional.SelectedItemArray.Length == 1)
+ {
+ Alert.ShowInTop("请选择专业工程!", MessageBoxIcon.Warning);
+ return;
+ }
+ Model.ZHGL_ConstructionLog log = new Model.ZHGL_ConstructionLog();
+ log.ProjectId = this.CurrUser.LoginProjectId;
+ log.FileCode = this.txtFileCode.Text.Trim();
+ log.CompileDate = Funs.GetNewDateTimeOrNow(this.txtCompileDate.Text.Trim());
+ log.Weather = this.txtWeather.Text.Trim();
+ log.Temperature = this.txtTemperature.Text.Trim();
+ log.CompileMan = this.CurrUser.PersonId;
+ string contractNo = string.Empty;
+ foreach (var item in this.drpContractNo.SelectedValueArray)
+ {
+ if (item != BLL.Const._Null)
+ {
+ contractNo += item + ",";
+ }
+ }
+ if (!string.IsNullOrEmpty(contractNo))
+ {
+ contractNo = contractNo.Substring(0, contractNo.Length - 1);
+ }
+ log.ContractNo = contractNo;
+ string unitWork = string.Empty;
+ foreach (var item in this.drpUnitWork.SelectedValueArray)
+ {
+ if (item != BLL.Const._Null)
+ {
+ unitWork += item + ",";
+ }
+ }
+ if (!string.IsNullOrEmpty(unitWork))
+ {
+ unitWork = unitWork.Substring(0, unitWork.Length - 1);
+ }
+ log.UnitWorks = unitWork;
+ string professional = string.Empty;
+ foreach (var item in this.drpProfessional.SelectedValueArray)
+ {
+ if (item != BLL.Const._Null)
+ {
+ professional += item + ",";
+ }
+ }
+ if (!string.IsNullOrEmpty(professional))
+ {
+ professional = professional.Substring(0, professional.Length - 1);
+ }
+ log.Professional = professional;
+ log.State = "1"; //已填报
+ log.Remark = this.txtRemark.Text.Trim();
+ log.HSETodaySummary = this.txtHSETodaySummary.Text.Trim();
+ log.HSETodaySummaryRemark = this.txtHSETodaySummaryRemark.Text.Trim();
+ log.HSETomorrowPlan = this.txtHSETomorrowPlan.Text.Trim();
+ log.HSETomorrowPlanRemark = this.txtHSETomorrowPlanRemark.Text.Trim();
+ log.CQMSTodaySummary = this.txtCQMSTodaySummary.Text.Trim();
+ log.CQMSTodaySummaryRemark = this.txtCQMSTodaySummaryRemark.Text.Trim();
+ log.CQMSTomorrowPlan = this.txtCQMSTomorrowPlan.Text.Trim();
+ log.CQMSTomorrowPlanRemark = this.txtCQMSTomorrowPlanRemark.Text.Trim();
+ log.WorkPostId = this.hdWorkPostId.Text.Trim();
+ log.MachineId = this.hdMachineId.Text.Trim();
+ if (!string.IsNullOrEmpty(this.ConstructionLogId))
+ {
+ var updatelog = BLL.ConstructionLogService.GetConstructionLogById(this.ConstructionLogId);
+ if (updatelog != null)
+ {
+ log.ConstructionLogId = ConstructionLogId;
+ BLL.ConstructionLogService.UpdateConstructionLog(log);
+ }
+ }
+ else
+ {
+ log.ConstructionLogId = SQLHelper.GetNewID(typeof(Model.ZHGL_ConstructionLog));
+ this.ConstructionLogId = log.ConstructionLogId;
+ BLL.ConstructionLogService.AddConstructionLog(log);
+ }
+ BLL.ConstructionLogPersonService.DeleteConstructionLogPersonsByConstructionLogId(this.ConstructionLogId);
+ List list = Funs.GetStrListByStr(this.hdWorkPostId.Text, ',');
+ foreach (JObject mergedRow in Grid1.GetMergedData()) //作业人员人数
+ {
+ JObject values = mergedRow.Value("values");
+ for (int i = 0; i < list.Count; i++)
+ {
+ Model.ZHGL_ConstructionLogPerson newItem = new Model.ZHGL_ConstructionLogPerson();
+ newItem.ConstructionLogPersonId = SQLHelper.GetNewID();
+ newItem.ConstructionLogId = this.ConstructionLogId;
+ newItem.UnitWorkId = values.Value("UnitWorkId");
+ newItem.WorkPostId = list[i];
+ newItem.Num = Funs.GetNewIntOrZero(values.Value("Num" + i.ToString()));
+ ConstructionLogPersonService.AddConstructionLogPerson(newItem);
+ }
+ }
+ BLL.ConstructionLogMachineService.DeleteConstructionLogMachinesByConstructionLogId(this.ConstructionLogId);
+ List list2 = Funs.GetStrListByStr(this.hdMachineId.Text, ',');
+ foreach (JObject mergedRow in Grid2.GetMergedData()) //机械数量
+ {
+ JObject values = mergedRow.Value("values");
+ for (int i = 0; i < list.Count; i++)
+ {
+ Model.ZHGL_ConstructionLogMachine newItem = new Model.ZHGL_ConstructionLogMachine();
+ newItem.ConstructionLogMachineId = SQLHelper.GetNewID();
+ newItem.ConstructionLogId = this.ConstructionLogId;
+ newItem.UnitWorkId = values.Value("UnitWorkId");
+ newItem.MachineId = list2[i];
+ newItem.Num = Funs.GetNewIntOrZero(values.Value("Num" + i.ToString()));
+ ConstructionLogMachineService.AddConstructionLogMachine(newItem);
+ }
+ }
+ BLL.ConstructionLogManagementService.DeleteConstructionLogManagementsByConstructionLogId(this.ConstructionLogId);
+ foreach (JObject mergedRow in Grid3.GetMergedData()) //专业管理
+ {
+ Model.ZHGL_ConstructionLogManagement newItem = new Model.ZHGL_ConstructionLogManagement();
+ int i = mergedRow.Value("index");
+ JObject values = mergedRow.Value("values");
+ newItem.ConstructionLogManagementId = SQLHelper.GetNewID();
+ newItem.ConstructionLogId = this.ConstructionLogId;
+ newItem.UnitWorkId = values.Value("UnitWorkId");
+ newItem.TodayWork = values.Value("TodayWork");
+ newItem.TomorrowWork = values.Value("TomorrowWork");
+ newItem.Remark = values.Value("Remark");
+ ConstructionLogManagementService.AddConstructionLogManagement(newItem);
+ }
+ BLL.ConstructionLogProblemService.DeleteConstructionLogProblemsByConstructionLogId(this.ConstructionLogId);
+ foreach (JObject mergedRow in Grid4.GetMergedData()) //需要协调解决的问题
+ {
+ Model.ZHGL_ConstructionLogProblem newItem = new Model.ZHGL_ConstructionLogProblem();
+ int i = mergedRow.Value("index");
+ JObject values = mergedRow.Value("values");
+ newItem.ConstructionLogProblemId = SQLHelper.GetNewID();
+ newItem.ConstructionLogId = this.ConstructionLogId;
+ newItem.UnitWorkId = values.Value("UnitWorkId");
+ newItem.MainProblem = values.Value("MainProblem");
+ newItem.HandlingMeasures = values.Value("HandlingMeasures");
+ newItem.WorkPackageId = BLL.WorkPackageInitService.GetWorkPackageCodeByPackageContent(values.Value("WorkPackageId"));
+ newItem.ImportanceLevel = values.Value("ImportanceLevel");
+ ConstructionLogProblemService.AddConstructionLogProblem(newItem);
+ }
+ BLL.ConstructionLogRecordService.DeleteConstructionLogRecordsByConstructionLogId(this.ConstructionLogId);
+ foreach (JObject mergedRow in Grid5.GetMergedData()) //需要协调解决的问题
+ {
+ Model.ZHGL_ConstructionLogRecord newItem = new Model.ZHGL_ConstructionLogRecord();
+ int i = mergedRow.Value("index");
+ JObject values = mergedRow.Value("values");
+ newItem.ConstructionLogRecordId = SQLHelper.GetNewID();
+ newItem.ConstructionLogId = this.ConstructionLogId;
+ newItem.Record = values.Value("Record");
+ newItem.Remark = values.Value("Remark");
+ ConstructionLogRecordService.AddConstructionLogRecord(newItem);
+ }
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ InitTreeMenu();
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+
+ #region 关闭弹出窗体
+ ///
+ /// 关闭弹出窗体
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+
+ }
+ #endregion
+
+ #region 右键删除焊口
+ ///
+ /// 右键删除焊口
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (this.GetButtonPower(BLL.Const.BtnDelete))
+ {
+ this.ConstructionLogId = this.tvControlItem.SelectedNodeID;
+ var log = BLL.ConstructionLogService.GetConstructionLogById(ConstructionLogId);
+ if (log != null)
+ {
+ BLL.ConstructionLogPersonService.DeleteConstructionLogPersonsByConstructionLogId(ConstructionLogId);
+ BLL.ConstructionLogMachineService.DeleteConstructionLogMachinesByConstructionLogId(ConstructionLogId);
+ BLL.ConstructionLogManagementService.DeleteConstructionLogManagementsByConstructionLogId(ConstructionLogId);
+ BLL.ConstructionLogProblemService.DeleteConstructionLogProblemsByConstructionLogId(ConstructionLogId);
+ BLL.ConstructionLogRecordService.DeleteConstructionLogRecordsByConstructionLogId(ConstructionLogId);
+ BLL.ConstructionLogService.DeleteConstructionLogById(ConstructionLogId);
+ ShowNotify("删除成功!", MessageBoxIcon.Success);
+ TextEmpty();
+ InitTreeMenu();
+ }
+ else
+ {
+ Alert.ShowInTop("请选择要删除的试压记录!", MessageBoxIcon.Warning);
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+
+ #region 单位工程转换
+ ///
+ /// 单位工程转换
+ ///
+ ///
+ ///
+ protected string ConvertUnitWorkName(object unitWorkId)
+ {
+ if (unitWorkId != null)
+ {
+ return BLL.UnitWorkService.GetUnitWorkName(unitWorkId.ToString());
+ }
+ else
+ {
+ return "";
+ }
+ }
+ #endregion
+
#region 获取按钮权限
///
/// 获取按钮权限
///
///
///
- private void GetButtonPower()
+ private bool GetButtonPower(string button)
{
- if (Request.Params["value"] == "0")
- {
- return;
- }
- var buttonList = CommonService.GetAllButtonList(CurrUser.LoginProjectId, CurrUser.PersonId, Const.ConstructionLogMenuId);
- if (buttonList.Count() > 0)
- {
- if (buttonList.Contains(Const.BtnAdd))
- {
- btnNew.Hidden = false;
- }
- if (buttonList.Contains(Const.BtnModify))
- {
- btnMenuModify.Hidden = false;
- }
- if (buttonList.Contains(Const.BtnDelete))
- {
- btnMenuDel.Hidden = false;
- }
- }
- }
- #endregion
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
- btnNew.OnClientClick = window_tt.GetShowReference("ConstructionLogEdit.aspx", "项目级施工日志") + "return false;";
- GetButtonPower();
- BindGrid();
- }
- }
- protected DataTable ChecklistData()
- {
- string strSql = @"SELECT chec.ConstructionLogId,chec.ProjectId,chec.CompileMan,chec.CompileDate,u.PersonName"
- + @" FROM ZHGL_ConstructionLog chec "
- + @" left join Person_Persons u on u.PersonId = chec.CompileMan"
- + @" where chec.ProjectId=@ProjectId";
-
- List listStr = new List();
- listStr.Add(new SqlParameter("@ProjectId", CurrUser.LoginProjectId));
- if (!string.IsNullOrEmpty(this.txtUserName.Text.Trim()))
- {
- strSql += " AND u.userName like @UserName";
- listStr.Add(new SqlParameter("@UserName", "%" + this.txtUserName.Text.Trim() + "%"));
- }
- if (!string.IsNullOrEmpty(this.txtCompileDate.Text.Trim()))
- {
- strSql += " AND chec.CompileDate = @CompileDate";
- listStr.Add(new SqlParameter("@CompileDate", this.txtCompileDate.Text.Trim()));
- }
- strSql += " order by chec.CompileDate desc ";
- SqlParameter[] parameter = listStr.ToArray();
- DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
- return tb;
- }
- private void BindGrid()
- {
- var list = ChecklistData();
- Grid1.RecordCount = list.Rows.Count;
- list = GetFilteredTable(Grid1.FilteredData, list);
- var table = GetPagedDataTable(Grid1, list);
- Grid1.DataSource = table;
- Grid1.DataBind();
+ return BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.ConstructionLogMenuId, button);
}
- protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
- {
- Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
- BindGrid();
- }
-
- #region 查询
- ///
- /// 查询
- ///
- ///
- ///
- protected void TextBox_TextChanged(object sender, EventArgs e)
- {
- this.BindGrid();
- }
#endregion
- protected void btnMenuModify_Click(object sender, EventArgs e)
+ protected void drpContractNo_SelectedIndexChanged(object sender, EventArgs e)
{
- if (Grid1.SelectedRowIndexArray.Length == 0)
+ List contractNos = new List();
+ foreach (var item in this.drpContractNo.SelectedValueArray)
{
- Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
- return;
+ if (item != BLL.Const._Null)
+ {
+ contractNos.Add(item);
+ }
}
- ConstructionLogId = Grid1.SelectedRowID.Split(',')[0];
- Model.ZHGL_ConstructionLog ConstructionLog = BLL.ConstructionLogService.GetConstructionLogById(ConstructionLogId);
- if (this.CurrUser.PersonId == ConstructionLog.CompileMan || this.CurrUser.PersonId == BLL.Const.sysglyId || this.CurrUser.PersonId == BLL.Const.hfnbdId)
- {
- PageContext.RegisterStartupScript(window_tt.GetShowReference(String.Format("ConstructionLogEdit.aspx?ConstructionLogId={0}", ConstructionLogId, "编辑 - ")));
+ UnitWorkService.InitContractUnitWorkDownList(drpUnitWork, this.CurrUser.LoginProjectId, contractNos, true);
+ }
+ protected void drpUnitWork_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (this.drpUnitWork.SelectedValue == BLL.Const._Null && this.drpUnitWork.SelectedItemArray.Length == 1)
+ {
+ this.Grid1.DataSource = null;
+ this.Grid1.DataBind();
+ this.Grid2.DataSource = null;
+ this.Grid2.DataBind();
+ this.Grid3.DataSource = null;
+ this.Grid3.DataBind();
+ this.Grid4.DataSource = null;
+ this.Grid4.DataBind();
}
else
{
- Alert.ShowInTop("您不是编制人,无法操作!可以点击右键查看", MessageBoxIcon.Warning);
- return;
+ List persons = new List();
+ foreach (var item in this.drpUnitWork.SelectedValueArray)
+ {
+ if (item != BLL.Const._Null)
+ {
+ Model.ZHGL_ConstructionLogPerson person = new Model.ZHGL_ConstructionLogPerson();
+ person.ConstructionLogPersonId = SQLHelper.GetNewID();
+ person.UnitWorkId = item;
+ persons.Add(person);
+ }
+ }
+ this.Grid1.DataSource = persons;
+ this.Grid1.DataBind();
+ List machines = new List();
+ foreach (var item in this.drpUnitWork.SelectedValueArray)
+ {
+ if (item != BLL.Const._Null)
+ {
+ Model.ZHGL_ConstructionLogMachine machine = new Model.ZHGL_ConstructionLogMachine();
+ machine.ConstructionLogMachineId = SQLHelper.GetNewID();
+ machine.UnitWorkId = item;
+ machines.Add(machine);
+ }
+ }
+ this.Grid2.DataSource = machines;
+ this.Grid2.DataBind();
+ List managements = new List();
+ foreach (var item in this.drpUnitWork.SelectedValueArray)
+ {
+ if (item != BLL.Const._Null)
+ {
+ Model.ZHGL_ConstructionLogManagement management = new Model.ZHGL_ConstructionLogManagement();
+ management.ConstructionLogManagementId = SQLHelper.GetNewID();
+ management.UnitWorkId = item;
+ managements.Add(management);
+ }
+ }
+ this.Grid3.DataSource = managements;
+ this.Grid3.DataBind();
+ List problems = new List();
+ foreach (var item in this.drpUnitWork.SelectedValueArray)
+ {
+ if (item != BLL.Const._Null)
+ {
+ Model.ZHGL_ConstructionLogProblem problem = new Model.ZHGL_ConstructionLogProblem();
+ problem.ConstructionLogProblemId = SQLHelper.GetNewID();
+ problem.UnitWorkId = item;
+ problems.Add(problem);
+ }
+ }
+ this.Grid4.DataSource = problems;
+ this.Grid4.DataBind();
}
}
- protected void btnMenuDel_Click(object sender, EventArgs e)
+ #region Grid行点击事件
+ ///
+ /// Grid行点击事件
+ ///
+ ///
+ ///
+ protected void Grid3_RowCommand(object sender, GridCommandEventArgs e)
{
- if (Grid1.SelectedRowIndexArray.Length == 0)
+ string id = this.Grid3.SelectedRow.RowID;
+ string unitWorkId = this.Grid3.SelectedRow.DataKeys[1].ToString();
+ //保存页面数据
+ List items = new List();
+ foreach (JObject mergedRow in Grid3.GetMergedData()) //专业管理
{
- Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
- return;
+ Model.ZHGL_ConstructionLogManagement newItem = new Model.ZHGL_ConstructionLogManagement();
+ int i = mergedRow.Value("index");
+ JObject values = mergedRow.Value("values");
+ newItem.ConstructionLogManagementId = values.Value("ConstructionLogManagementId");
+ newItem.ConstructionLogId = this.ConstructionLogId;
+ newItem.UnitWorkId = values.Value("UnitWorkId");
+ newItem.TodayWork = values.Value("TodayWork");
+ newItem.TomorrowWork = values.Value("TomorrowWork");
+ newItem.Remark = values.Value("Remark");
+ items.Add(newItem);
}
- ConstructionLogId = Grid1.SelectedRowID.Split(',')[0];
- var constructionLog = ConstructionLogService.GetConstructionLogById(ConstructionLogId);
- BLL.ConstructionLogService.DeleteConstructionLogById(ConstructionLogId);
- BLL.LogService.AddSys_Log(this.CurrUser, string.Format("{0:yyyy-MM-dd}", constructionLog.CompileDate), ConstructionLogId, Const.ConstructionLogMenuId, "删除项目级施工日志");
- BindGrid();
- Alert.ShowInTop("删除数据成功!", MessageBoxIcon.Success);
- }
-
- protected void window_tt_Close(object sender, WindowCloseEventArgs e)
- {
- BindGrid();
- }
-
- protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
- {
- btnMenuModify_Click(sender, e);
- }
-
- protected void btnMenuView_Click(object sender, EventArgs e)
- {
- if (Grid1.SelectedRowIndexArray.Length == 0)
+ if (e.CommandName == "add")//增加
{
- Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
- return;
+ Model.ZHGL_ConstructionLogManagement newItem = new Model.ZHGL_ConstructionLogManagement();
+ newItem.ConstructionLogManagementId = SQLHelper.GetNewID();
+ newItem.UnitWorkId = unitWorkId;
+ items.Add(newItem);
+ items = items.OrderBy(x => x.UnitWorkId).ToList();
+ this.Grid3.DataSource = items;
+ this.Grid3.DataBind();
+ }
+ if (e.CommandName == "del")//删除
+ {
+ var w = items.FirstOrDefault(x => x.ConstructionLogManagementId == id);
+ if (w != null)
+ {
+ items.Remove(w);
+ }
+ items = items.OrderBy(x => x.UnitWorkId).ToList();
+ this.Grid3.DataSource = items;
+ this.Grid3.DataBind();
}
- string ConstructionLogId = Grid1.SelectedRowID;
- PageContext.RegisterStartupScript(window_tt.GetShowReference(String.Format("ConstructionLogView.aspx?ConstructionLogId={0}", ConstructionLogId, "查看 - ")));
}
- protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ ///
+ /// Grid行点击事件
+ ///
+ ///
+ ///
+ protected void Grid4_RowCommand(object sender, GridCommandEventArgs e)
{
- BindGrid();
- }
+ string id = this.Grid4.SelectedRow.RowID;
+ string unitWorkId = this.Grid4.SelectedRow.DataKeys[1].ToString();
+ //保存页面数据
+ List items = new List();
+ foreach (JObject mergedRow in Grid4.GetMergedData()) //专业管理
+ {
+ Model.ZHGL_ConstructionLogProblem newItem = new Model.ZHGL_ConstructionLogProblem();
+ int i = mergedRow.Value("index");
+ JObject values = mergedRow.Value("values");
+ newItem.ConstructionLogProblemId = values.Value("ConstructionLogProblemId");
+ newItem.ConstructionLogId = this.ConstructionLogId;
+ newItem.UnitWorkId = values.Value("UnitWorkId");
+ newItem.MainProblem = values.Value("MainProblem");
+ newItem.HandlingMeasures = values.Value("HandlingMeasures");
+ newItem.WorkPackageId = BLL.WorkPackageInitService.GetWorkPackageCodeByPackageContent(values.Value("WorkPackageId"));
+ newItem.ImportanceLevel = values.Value("ImportanceLevel");
+ items.Add(newItem);
+ }
+ if (e.CommandName == "add")//增加
+ {
+ Model.ZHGL_ConstructionLogProblem newItem = new Model.ZHGL_ConstructionLogProblem();
+ newItem.ConstructionLogProblemId = SQLHelper.GetNewID();
+ newItem.UnitWorkId = unitWorkId;
+ items.Add(newItem);
+ items = items.OrderBy(x => x.UnitWorkId).ToList();
- protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
- {
- BindGrid();
+ }
+ if (e.CommandName == "del")//删除
+ {
+ var w = items.FirstOrDefault(x => x.ConstructionLogProblemId == id);
+ if (w != null)
+ {
+ items.Remove(w);
+ }
+ items = items.OrderBy(x => x.UnitWorkId).ToList();
+ }
+ foreach (var item in items)
+ {
+ item.WorkPackageId = BLL.WorkPackageInitService.GetPackageContentByWorkPackageCode(item.WorkPackageId);
+ }
+ this.Grid4.DataSource = items;
+ this.Grid4.DataBind();
}
+ #endregion
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.designer.cs b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.designer.cs
index c1127563..9b0dc730 100644
--- a/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/PZHGL/InformationProject/ConstructionLog.aspx.designer.cs
@@ -40,31 +40,103 @@ namespace FineUIPro.Web.PZHGL.InformationProject {
protected global::FineUIPro.Panel Panel1;
///
- /// Grid1 控件。
+ /// panelLeftRegion 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Grid Grid1;
+ protected global::FineUIPro.Panel panelLeftRegion;
///
- /// Toolbar2 控件。
+ /// Toolbar1 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Toolbar Toolbar2;
+ protected global::FineUIPro.Toolbar Toolbar1;
///
- /// txtUserName 控件。
+ /// txtReportDate 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.TextBox txtUserName;
+ protected global::FineUIPro.DatePicker txtReportDate;
+
+ ///
+ /// tvControlItem 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Tree tvControlItem;
+
+ ///
+ /// panelCenterRegion 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel panelCenterRegion;
+
+ ///
+ /// Toolbar3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar3;
+
+ ///
+ /// hdWorkPostId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdWorkPostId;
+
+ ///
+ /// hdMachineId 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdMachineId;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// txtFileCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtFileCode;
///
/// txtCompileDate 控件。
@@ -76,58 +148,382 @@ namespace FineUIPro.Web.PZHGL.InformationProject {
protected global::FineUIPro.DatePicker txtCompileDate;
///
- /// btnNew 控件。
+ /// txtWeek 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Button btnNew;
+ protected global::FineUIPro.TextBox txtWeek;
///
- /// lblPageIndex 控件。
+ /// txtWeather 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::System.Web.UI.WebControls.Label lblPageIndex;
+ protected global::FineUIPro.TextBox txtWeather;
///
- /// ToolbarSeparator1 控件。
+ /// txtTemperature 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+ protected global::FineUIPro.TextBox txtTemperature;
///
- /// ToolbarText1 控件。
+ /// txtCompileMan 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.ToolbarText ToolbarText1;
+ protected global::FineUIPro.TextBox txtCompileMan;
///
- /// ddlPageSize 控件。
+ /// pan 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.DropDownList ddlPageSize;
+ protected global::FineUIPro.Panel pan;
///
- /// window_tt 控件。
+ /// Form2 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Window window_tt;
+ protected global::FineUIPro.Form Form2;
+
+ ///
+ /// drpContractNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpContractNo;
+
+ ///
+ /// drpUnitWork 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpUnitWork;
+
+ ///
+ /// drpProfessional 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpProfessional;
+
+ ///
+ /// txtState 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtState;
+
+ ///
+ /// txtRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtRemark;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label1;
+
+ ///
+ /// Grid2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid2;
+
+ ///
+ /// Label2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label2;
+
+ ///
+ /// Grid3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid3;
+
+ ///
+ /// Label3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label3;
+
+ ///
+ /// txtTodayWork 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtTodayWork;
+
+ ///
+ /// txtTomorrowWork 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtTomorrowWork;
+
+ ///
+ /// TextArea1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea TextArea1;
+
+ ///
+ /// Panel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel2;
+
+ ///
+ /// Form3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form3;
+
+ ///
+ /// txtHSETodaySummary 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtHSETodaySummary;
+
+ ///
+ /// txtHSETodaySummaryRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtHSETodaySummaryRemark;
+
+ ///
+ /// txtHSETomorrowPlan 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtHSETomorrowPlan;
+
+ ///
+ /// txtHSETomorrowPlanRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtHSETomorrowPlanRemark;
+
+ ///
+ /// Panel3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel3;
+
+ ///
+ /// Form4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form Form4;
+
+ ///
+ /// txtCQMSTodaySummary 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtCQMSTodaySummary;
+
+ ///
+ /// txtCQMSTodaySummaryRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtCQMSTodaySummaryRemark;
+
+ ///
+ /// txtCQMSTomorrowPlan 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtCQMSTomorrowPlan;
+
+ ///
+ /// txtCQMSTomorrowPlanRemark 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtCQMSTomorrowPlanRemark;
+
+ ///
+ /// Grid4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid4;
+
+ ///
+ /// Label4 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label Label4;
+
+ ///
+ /// txtMainProblem 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtMainProblem;
+
+ ///
+ /// txtHandlingMeasures 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtHandlingMeasures;
+
+ ///
+ /// drpWorkPackage 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpWorkPackage;
+
+ ///
+ /// drpImportanceLevel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpImportanceLevel;
+
+ ///
+ /// Grid5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid5;
+
+ ///
+ /// txtRecord 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtRecord;
+
+ ///
+ /// TextArea5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea TextArea5;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
///
/// Menu1 控件。
@@ -139,30 +535,57 @@ namespace FineUIPro.Web.PZHGL.InformationProject {
protected global::FineUIPro.Menu Menu1;
///
- /// btnMenuModify 控件。
+ /// btnMenuAdd 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.MenuButton btnMenuModify;
+ protected global::FineUIPro.MenuButton btnMenuAdd;
///
- /// btnMenuView 控件。
+ /// btnMenuEdit 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.MenuButton btnMenuView;
+ protected global::FineUIPro.MenuButton btnMenuEdit;
///
- /// btnMenuDel 控件。
+ /// btnMenuDown 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.MenuButton btnMenuDel;
+ protected global::FineUIPro.MenuButton btnMenuDown;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+
+ ///
+ /// Menu2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu2;
+
+ ///
+ /// btnMenuDelete2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete2;
}
}
diff --git a/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx b/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx
index e14a9237..3b99c659 100644
--- a/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx
+++ b/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx
@@ -70,6 +70,8 @@
+
+
+
+
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.Personal
-{
-
-
- public partial class PersonalInfo
- {
-
+namespace FineUIPro.Web.Personal {
+
+
+ public partial class PersonalInfo {
+
///
/// form1 控件。
///
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Panel2 控件。
///
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel2;
-
+
///
/// TabStrip1 控件。
///
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TabStrip TabStrip1;
-
+
///
/// Tab1 控件。
///
@@ -58,7 +56,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tab Tab1;
-
+
///
/// Toolbar1 控件。
///
@@ -67,7 +65,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar1;
-
+
///
/// lbSystemVersion 控件。
///
@@ -76,7 +74,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label lbSystemVersion;
-
+
///
/// hdUrl 控件。
///
@@ -85,7 +83,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.HiddenField hdUrl;
-
+
///
/// btnSave 控件。
///
@@ -94,7 +92,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSave;
-
+
///
/// btnALLSave 控件。
///
@@ -103,7 +101,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnALLSave;
-
+
///
/// btnCustomQuery 控件。
///
@@ -112,7 +110,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnCustomQuery;
-
+
///
/// SimpleForm1 控件。
///
@@ -121,7 +119,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm1;
-
+
///
/// Panel3 控件。
///
@@ -130,7 +128,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel3;
-
+
///
/// Panel1 控件。
///
@@ -139,7 +137,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// txtUserName 控件。
///
@@ -148,7 +146,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtUserName;
-
+
///
/// txtJobNum 控件。
///
@@ -157,7 +155,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtJobNum;
-
+
///
/// txtUnit 控件。
///
@@ -166,7 +164,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtUnit;
-
+
///
/// rblSex 控件。
///
@@ -175,7 +173,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.RadioButtonList rblSex;
-
+
///
/// txtBirthday 控件。
///
@@ -184,7 +182,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DatePicker txtBirthday;
-
+
///
/// drpMaritalStatus 控件。
///
@@ -193,7 +191,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpMaritalStatus;
-
+
///
/// drpNation 控件。
///
@@ -202,7 +200,16 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpNation;
-
+
+ ///
+ /// drpLogWorkPost 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpLogWorkPost;
+
///
/// Panel4 控件。
///
@@ -211,7 +218,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel4;
-
+
///
/// txtAccount 控件。
///
@@ -220,7 +227,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtAccount;
-
+
///
/// txtIdentityCard 控件。
///
@@ -229,7 +236,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtIdentityCard;
-
+
///
/// txtTelephone 控件。
///
@@ -238,7 +245,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtTelephone;
-
+
///
/// txtGraduate 控件。
///
@@ -247,7 +254,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtGraduate;
-
+
///
/// drpEduLevel 控件。
///
@@ -256,7 +263,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpEduLevel;
-
+
///
/// drpPosition 控件。
///
@@ -265,7 +272,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpPosition;
-
+
///
/// drpPostTitle 控件。
///
@@ -274,7 +281,16 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpPostTitle;
-
+
+ ///
+ /// drpLogMachine 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpLogMachine;
+
///
/// Panel5 控件。
///
@@ -283,7 +299,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel5;
-
+
///
/// imgPhoto 控件。
///
@@ -292,7 +308,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Image imgPhoto;
-
+
///
/// filePhoto 控件。
///
@@ -301,7 +317,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.FileUpload filePhoto;
-
+
///
/// Form7 控件。
///
@@ -310,7 +326,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form Form7;
-
+
///
/// txtPerformance 控件。
///
@@ -319,7 +335,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextArea txtPerformance;
-
+
///
/// Tab2 控件。
///
@@ -328,7 +344,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tab Tab2;
-
+
///
/// SimpleForm2 控件。
///
@@ -337,7 +353,7 @@ namespace FineUIPro.Web.Personal
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm2;
-
+
///
/// Window1 控件。
///
diff --git a/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx b/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx
index 749f035b..c97a6067 100644
--- a/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx
+++ b/SGGL/FineUIPro.Web/ProjectData/UnitWork.aspx
@@ -114,7 +114,7 @@
+ Width="850px" Height="600px">