diff --git a/.gitignore b/.gitignore index 8ba938c0..d097c705 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,14 @@ /SGGL/FineUIPro.Web/FileUpload/TestRun/TestRunMonthSummary/2024-06 /SGGL/FineUIPro.Web/FileUpload/ProjectAttachUrl/2024-06 /SGGLPackFile_20240730.rar +/SGGL/FineUIPro.Web/FileUpload/Transfer/PunchlistFrom/2024-10 +/SGGL/FineUIPro.Web/ErrLog.txt +/SGGL/FineUIPro.Web/Web.config +/CreateModel2017.bat +/SGGL/FineUIPro.Web/ErrLog.txt +/.gitignore +/.gitignore +/SGGL/FineUIPro.Web/Properties/PublishProfiles/FolderProfile.pubxml +/SGGL/FineUIPro.Web/Properties/PublishProfiles/FolderProfile1.pubxml + +/SGGL/FineUIPro.Web/FileUpload/Transfer/PunchlistFrom/2024-11 diff --git a/.vs/CNCEC_SUBQHSE_WUHUAN/v17/.wsuo b/.vs/CNCEC_SUBQHSE_WUHUAN/v17/.wsuo index a10de9ee..15c953af 100644 Binary files a/.vs/CNCEC_SUBQHSE_WUHUAN/v17/.wsuo and b/.vs/CNCEC_SUBQHSE_WUHUAN/v17/.wsuo differ diff --git a/.vs/CNCEC_SUBQHSE_WUHUAN/v17/DocumentLayout.json b/.vs/CNCEC_SUBQHSE_WUHUAN/v17/DocumentLayout.json index 377abef3..14751ea9 100644 --- a/.vs/CNCEC_SUBQHSE_WUHUAN/v17/DocumentLayout.json +++ b/.vs/CNCEC_SUBQHSE_WUHUAN/v17/DocumentLayout.json @@ -51,10 +51,6 @@ "$type": "Bookmark", "Name": "ST:3:0:{f2bd8fb8-fc94-3dae-a733-fd993c73cc87}" }, - { - "$type": "Bookmark", - "Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}" - }, { "$type": "Bookmark", "Name": "ST:129:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}" diff --git a/.vs/SGGL_CWCEC/v17/.wsuo b/.vs/SGGL_CWCEC/v17/.wsuo deleted file mode 100644 index 9a0da635..00000000 Binary files a/.vs/SGGL_CWCEC/v17/.wsuo and /dev/null differ diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json deleted file mode 100644 index 75b31f26..00000000 --- a/.vs/VSWorkspaceState.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "ExpandedNodes": [ - "" - ], - "SelectedNode": "\\SGGL.sln", - "PreviewInSolutionExplorer": false -} \ No newline at end of file diff --git a/CreateModel2017.bat b/CreateModel2017.bat deleted file mode 100644 index fca280ba..00000000 --- a/CreateModel2017.bat +++ /dev/null @@ -1,33 +0,0 @@ -@echo off -REM --------------- -REM ·¢²¼°üÉú³ɹ¤¾ß -REM ִÐдËÎļþǰÇëÏÈÓÃReleaseÉú³ÉWebOAÏîĿ -REM -------------- - - - -REM -------------- -REM »·¾³±äÁ¿ÉèÖà Project_SrcΪÈçWebOAÕâÑùµķÖ֧ -REM -------------- -set PROJECT_SRC=%CD% -cd.. - -REM Դ´úÂëModelÏîĿÎļþ¼Ð -set Model_ROOT=%PROJECT_SRC%\SGGL\Model - - -REM -------------- -REM ·¢²¼³ÌÐò°üÎļþ¼ÐÏà¹Ø -REM -------------- - - - - -@echo ÉèÖÃ.net¿ØÖÆ̨»·¾³ -@echo. -@call "%VS150%" - -SqlMetal /views /server:. /user:sa /password:1111 /database:SGGLDB_WH /code:%Model_ROOT%\Model.cs /namespace:Model - -@ECHO Íê³É -pause diff --git a/DataBase/版本日志/SGGLDB-WH-2024-09-27-001-gaofei.sql b/DataBase/版本日志/SGGLDB-WH-2024-09-27-001-gaofei.sql new file mode 100644 index 00000000..3ac406b8 --- /dev/null +++ b/DataBase/版本日志/SGGLDB-WH-2024-09-27-001-gaofei.sql @@ -0,0 +1,228 @@ + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES ('CB76394B-BDEB-4F45-9D19-F38612DC6591','°²ȫÉú²úÖα¾¹¥¼áÈýÄêÐж¯¹¤×÷̨ÕË','ZHGL/Information/ActionWorkLedger.aspx',150,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('B269EF45-918E-42B0-9B28-65D1A1017CDF','CB76394B-BDEB-4F45-9D19-F38612DC6591','Ôö¼Ó',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('71B203E2-42C1-44CD-A0A1-8A75A96B79C7','CB76394B-BDEB-4F45-9D19-F38612DC6591','Ð޸Ä',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('DB5C189E-0023-4174-AB83-B7D5028B3148','CB76394B-BDEB-4F45-9D19-F38612DC6591','ɾ³ý',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('BFF69201-1E48-46F4-A8CB-863A0304E6C6','CB76394B-BDEB-4F45-9D19-F38612DC6591','±£´æ',4) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('70376B94-3340-4343-92B5-8543C6750F6B','CB76394B-BDEB-4F45-9D19-F38612DC6591','±£´沢Éϱ¨',5) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('4B0AE23C-A03D-4146-A5CE-3AB563AF683C','CB76394B-BDEB-4F45-9D19-F38612DC6591','Ìύ',6) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('7F968B8C-C31F-4D62-8AFC-D37D017C46BB','CB76394B-BDEB-4F45-9D19-F38612DC6591','µ¼Èë',7) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('B318C22A-DBFF-46FE-919A-24F50BF190DC','CB76394B-BDEB-4F45-9D19-F38612DC6591','´òӡ',8) + GO + + +CREATE TABLE [dbo].[Information_ActionWorkLedger]( + [ActionWorkLedgerId] [nvarchar](50) NOT NULL, + [UnitId] [nvarchar](50) NULL, + [ReportDate] [datetime] NULL, + [Quarter] [int] NULL, + [YearId] [int] NULL, + [CompileMan] [nvarchar](50) NULL, + [UpState] [char](1) NULL, + [HandleState] [char](1) NULL, + [HandleMan] [nvarchar](50) NULL, + CONSTRAINT [PK_Information_ActionWorkLedger] PRIMARY KEY CLUSTERED +( + [ActionWorkLedgerId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +SET ANSI_PADDING OFF +GO + +ALTER TABLE [dbo].[Information_ActionWorkLedger] WITH CHECK ADD CONSTRAINT [FK_Information_ActionWorkLedger_Base_Unit] FOREIGN KEY([UnitId]) +REFERENCES [dbo].[Base_Unit] ([UnitId]) +GO + +ALTER TABLE [dbo].[Information_ActionWorkLedger] CHECK CONSTRAINT [FK_Information_ActionWorkLedger_Base_Unit] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'°²ȫÉú²úÖα¾¹¥¼áÈýÄêÐж¯¹¤×÷̨Õ˱í' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_ActionWorkLedger' +GO + + + + + + +CREATE TABLE [dbo].[Information_ActionWorkLedgerItem]( + [ActionWorkLedgerItemId] [nvarchar](50) NOT NULL, + [ActionWorkLedgerId] [nvarchar](50) NULL, + [SortIndex] [int] NULL, + [Focus] [nvarchar](20) NULL, + [SpecialTask] [nvarchar](100) NULL, + [WorkPoints] [nvarchar](500) NULL, + [FillingRequirements] [nvarchar](max) NULL, + [CompletionDeadline] [nvarchar](50) NULL, + [ImplementationStatus] [nvarchar](max) NULL, + CONSTRAINT [PK_Information_ActionWorkLedgerItem] PRIMARY KEY CLUSTERED +( + [ActionWorkLedgerItemId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[Information_ActionWorkLedgerItem] WITH CHECK ADD CONSTRAINT [FK_Information_ActionWorkLedgerItem_Information_ActionWorkLedger] FOREIGN KEY([ActionWorkLedgerId]) +REFERENCES [dbo].[Information_ActionWorkLedger] ([ActionWorkLedgerId]) +GO + +ALTER TABLE [dbo].[Information_ActionWorkLedgerItem] CHECK CONSTRAINT [FK_Information_ActionWorkLedgerItem_Information_ActionWorkLedger] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'°²ȫÉú²úÖα¾¹¥¼áÈýÄêÐж¯¹¤×÷̨ÕËÃ÷ϸ±í' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_ActionWorkLedgerItem' +GO + + + +CREATE VIEW [dbo].[View_Information_ActionWorkLedger] AS +SELECT + Report.ActionWorkLedgerId, + Report.UnitId, + Report.ReportDate, + Report.YearId, + Report.Quarter, + Report.UpState, + Report.HandleState, + (ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0011.ConstText,'-')) AS Quarters, + u.UnitName, + Report.HandleMan, + US.UserName +FROM dbo.Information_ActionWorkLedger AS Report +LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.YearId +LEFT JOIN Sys_Const AS Group_0011 ON Group_0011.GroupId='0011' AND Group_0011.ConstValue =Report.Quarter +Left join Base_Unit as u on u.UnitId=Report.UnitId +LEFT JOIN Sys_User AS US ON US.UserId=Report.HandleMan + + + + + + +GO + + + + INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) + VALUES ('C48087A8-4C9F-485D-B0A4-C85E112BA705','°²ȫÉú²ú¹ÜÀíÆÀ¼۹¤×÷µ÷¶Ę̀ÕË','ZHGL/Information/SafetyProductionEvaluation.aspx',160,'ERDXV53M-09B1-6UIO-3EFM-5DVZDF329001','Menu_ZHGL',1,1,1) + GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('39A75960-F70A-4B60-ABFF-C72C919807A6','C48087A8-4C9F-485D-B0A4-C85E112BA705','Ôö¼Ó',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('9461B39D-D9FF-45CC-9D4C-38E49BCBCF6C','C48087A8-4C9F-485D-B0A4-C85E112BA705','Ð޸Ä',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('E417A6A8-0666-49EB-A620-2E73D19C08CB','C48087A8-4C9F-485D-B0A4-C85E112BA705','ɾ³ý',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('07F975F0-D634-4554-A3B7-667E99278265','C48087A8-4C9F-485D-B0A4-C85E112BA705','±£´æ',4) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('23B71591-E933-4C3A-BCBF-E398D94A6C88','C48087A8-4C9F-485D-B0A4-C85E112BA705','±£´沢Éϱ¨',5) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('E97C8630-3DD7-4A4B-A3FD-7DE592B489BC','C48087A8-4C9F-485D-B0A4-C85E112BA705','Ìύ',6) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('5F910FC4-183E-4037-9EE1-1400B96C4584','C48087A8-4C9F-485D-B0A4-C85E112BA705','µ¼Èë',7) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('D08BCEF7-843F-4BB6-BE87-182EC476E455','C48087A8-4C9F-485D-B0A4-C85E112BA705','´òӡ',8) + GO + + + + +CREATE TABLE [dbo].[Information_SafetyProductionEvaluation]( + [SafetyProductionEvaluationId] [nvarchar](50) NOT NULL, + [UnitId] [nvarchar](50) NULL, + [ReportDate] [datetime] NULL, + [Quarter] [int] NULL, + [YearId] [int] NULL, + [CompileMan] [nvarchar](50) NULL, + [UpState] [char](1) NULL, + [HandleState] [char](1) NULL, + [HandleMan] [nvarchar](50) NULL, + CONSTRAINT [PK_Information_SafetyProductionEvaluation] PRIMARY KEY CLUSTERED +( + [SafetyProductionEvaluationId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] + +GO + +SET ANSI_PADDING OFF +GO + +ALTER TABLE [dbo].[Information_SafetyProductionEvaluation] WITH CHECK ADD CONSTRAINT [FK_Information_SafetyProductionEvaluation_Base_Unit] FOREIGN KEY([UnitId]) +REFERENCES [dbo].[Base_Unit] ([UnitId]) +GO + +ALTER TABLE [dbo].[Information_SafetyProductionEvaluation] CHECK CONSTRAINT [FK_Information_SafetyProductionEvaluation_Base_Unit] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'°²ȫÉú²ú¹ÜÀíÆÀ¼۹¤×÷µ÷¶Ę̀Õ˱í' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyProductionEvaluation' +GO + + + + +CREATE TABLE [dbo].[Information_SafetyProductionEvaluationItem]( + [SafetyProductionEvaluationItemId] [nvarchar](50) NOT NULL, + [SafetyProductionEvaluationId] [nvarchar](50) NULL, + [SortIndex] [int] NULL, + [Type] [nvarchar](50) NULL, + [EvaluateWork] [nvarchar](1000) NULL, + [EvaluationContent] [nvarchar](1000) NULL, + [FillingRequirements] [nvarchar](max) NULL, + [CompletionDeadline] [nvarchar](50) NULL, + [ImplementationStatus] [nvarchar](max) NULL, + CONSTRAINT [PK_Information_SafetyProductionEvaluationItem] PRIMARY KEY CLUSTERED +( + [SafetyProductionEvaluationItemId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] + +GO + +ALTER TABLE [dbo].[Information_SafetyProductionEvaluationItem] WITH CHECK ADD CONSTRAINT [FK_Information_SafetyProductionEvaluationItem_Information_SafetyProductionEvaluation] FOREIGN KEY([SafetyProductionEvaluationId]) +REFERENCES [dbo].[Information_SafetyProductionEvaluation] ([SafetyProductionEvaluationId]) +GO + +ALTER TABLE [dbo].[Information_SafetyProductionEvaluationItem] CHECK CONSTRAINT [FK_Information_SafetyProductionEvaluationItem_Information_SafetyProductionEvaluation] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'°²ȫÉú²ú¹ÜÀíÆÀ¼۹¤×÷µ÷¶Ę̀ÕËÃ÷ϸ±í' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Information_SafetyProductionEvaluationItem' +GO + + +CREATE VIEW [dbo].[View_Information_SafetyProductionEvaluation] AS +SELECT + Report.SafetyProductionEvaluationId, + Report.UnitId, + Report.ReportDate, + Report.YearId, + Report.Quarter, + Report.UpState, + Report.HandleState, + (ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0011.ConstText,'-')) AS Quarters, + u.UnitName, + Report.HandleMan, + US.UserName +FROM dbo.Information_SafetyProductionEvaluation AS Report +LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.YearId +LEFT JOIN Sys_Const AS Group_0011 ON Group_0011.GroupId='0011' AND Group_0011.ConstValue =Report.Quarter +Left join Base_Unit as u on u.UnitId=Report.UnitId +LEFT JOIN Sys_User AS US ON US.UserId=Report.HandleMan + + + + + + +GO \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-09-09-phf.sql b/DataBase/版本日志/SGGLDB_WH_V2024-09-09-phf.sql new file mode 100644 index 00000000..dc9137f6 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-09-09-phf.sql @@ -0,0 +1,2 @@ +alter table Sys_User +add CompanyProjectId nvarchar(2000) null; \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-09-11-bwj.sql b/DataBase/版本日志/SGGLDB_WH_V2024-09-11-bwj.sql new file mode 100644 index 00000000..15c0b4f2 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-09-11-bwj.sql @@ -0,0 +1,111 @@ +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('FB94A120-921B-4AAB-B54F-EC11B6F561FD','µ¥λ·ֲ¿·ÖÏ³̻®·֡¢²üô','CQMS/WBS/Control/DivisionDivideAndCrop.aspx',15,'3B322232-38A1-4291-9832-CD4A01C2A975','Menu_CQMS',0,1,1) +go + insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + values('3829D89E-BFDE-4956-BC25-E00729DFCE62','FB94A120-921B-4AAB-B54F-EC11B6F561FD','±£´æ',1) + go +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('BA250432-492B-49A3-8BB6-D04BF74D2EDD','µ¥λ·ֲ¿·ÖÏ³̻®·ֱí','CQMS/WBS/Control/DivisionDivideList.aspx',16,'3B322232-38A1-4291-9832-CD4A01C2A975','Menu_CQMS',0,1,1) +go + +CREATE TABLE [dbo].[WBS_DivisionDivide]( + [DivisionDivideId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [UnitWorkId] [nvarchar](50) NULL, + [DivisionId] [varchar](50) NULL, + CONSTRAINT [PK_Division_DivisionDivide] PRIMARY KEY CLUSTERED +( + [DivisionDivideId] 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].[WBS_DivisionDivide] WITH CHECK ADD CONSTRAINT [FK_WBS_DivisionDivide_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[WBS_DivisionDivide] CHECK CONSTRAINT [FK_WBS_DivisionDivide_Base_Project] +GO + +ALTER TABLE [dbo].[WBS_DivisionDivide] WITH CHECK ADD CONSTRAINT [FK_WBS_DivisionDivide_Division_SubProjects] FOREIGN KEY([DivisionId]) +REFERENCES [dbo].[Division_SubProjects] ([DivisionId]) +GO + +ALTER TABLE [dbo].[WBS_DivisionDivide] CHECK CONSTRAINT [FK_WBS_DivisionDivide_Division_SubProjects] +GO + +ALTER TABLE [dbo].[WBS_DivisionDivide] WITH CHECK ADD CONSTRAINT [FK_WBS_DivisionDivide_WBS_UnitWork] FOREIGN KEY([UnitWorkId]) +REFERENCES [dbo].[WBS_UnitWork] ([UnitWorkId]) +GO + +ALTER TABLE [dbo].[WBS_DivisionDivide] CHECK CONSTRAINT [FK_WBS_DivisionDivide_WBS_UnitWork] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ö÷¼ü' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_DivisionDivide', @level2type=N'COLUMN',@level2name=N'DivisionDivideId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÏîĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_DivisionDivide', @level2type=N'COLUMN',@level2name=N'ProjectId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'µ¥λ¹¤³Ì/×ӵ¥λ¹¤³ÌId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'WBS_DivisionDivide', @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'WBS_DivisionDivide', @level2type=N'COLUMN',@level2name=N'DivisionId' +GO + + +CREATE VIEW View_WBS_DivisionDivide +AS +/*********µ¥λ·ֲ¿·ÖÏ³̻®·ֱí*********/ +SELECT +DD.DivisionDivideId, +DD.ProjectId, +DD.UnitWorkId, +DD.DivisionId, +SupUW.UnitWorkCode AS SupUnitWorkCode, +SupUW.UnitWorkName AS SupUnitWorkName, +NULL AS ChildUnitWorkCode, +NULL AS ChildUnitWorkName, +SupUW.SuperUnitWork, +SP.BranchEngineeringCode, +SP.BranchEngineeringName, +SP.SubBranchEngineeringName, +SP.ProEngineeringCode, +SP.ProEngineeringName, +SP.ProEngineeringNum, +SP.DivisionLevel, +SP.Sort, +SP.ParentId +FROM WBS_DivisionDivide DD +LEFT JOIN WBS_UnitWork AS SupUW ON SupUW.UnitWorkId=DD.UnitWorkId +LEFT JOIN WBS_UnitWork AS ChildUW ON ChildUW.SuperUnitWork = SupUW.UnitWorkId +LEFT JOIN Division_SubProjects AS SP ON SP.DivisionId = DD.DivisionId +WHERE (SupUW.SuperUnitWork='0' or SupUW.SuperUnitWork is null) + +UNION + +SELECT +DD.DivisionDivideId, +DD.ProjectId, +DD.UnitWorkId, +DD.DivisionId, +SupUW.UnitWorkCode AS SupUnitWorkCode, +SupUW.UnitWorkName AS SupUnitWorkName, +ChildUW.UnitWorkCode AS ChildUnitWorkCode, +ChildUW.UnitWorkName AS ChildUnitWorkName, +ChildUW.SuperUnitWork, +SP.BranchEngineeringCode, +SP.BranchEngineeringName, +SP.SubBranchEngineeringName, +SP.ProEngineeringCode, +SP.ProEngineeringName, +SP.ProEngineeringNum, +SP.DivisionLevel, +SP.Sort, +SP.ParentId +FROM WBS_DivisionDivide DD +LEFT JOIN WBS_UnitWork AS ChildUW ON ChildUW.UnitWorkId = DD.UnitWorkId +LEFT JOIN WBS_UnitWork AS SupUW ON SupUW.UnitWorkId=ChildUW.SuperUnitWork +LEFT JOIN Division_SubProjects AS SP ON SP.DivisionId = DD.DivisionId +WHERE ChildUW.SuperUnitWork <> '0' AND ChildUW.SuperUnitWork IS NOT NULL +Go \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-09-11-phf.sql b/DataBase/版本日志/SGGLDB_WH_V2024-09-11-phf.sql new file mode 100644 index 00000000..5ef0d067 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-09-11-phf.sql @@ -0,0 +1,5 @@ + +CREATE NONCLUSTERED INDEX [t_d_facerecord_Projectid_Index] +ON [dbo].[t_d_facerecord] ([ProjectId]) +INCLUDE ([ID],[EmployName],[DepartmentID],[DepartName],[AreaID],[AreaName],[EmployNO],[CardID],[RoleID],[DateTimeRecord],[RecordDes],[FaceIP],[InOrOut],[Des1],[Des2],[Des3],[Des4]) +; \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-09-20-bwj.sql b/DataBase/版本日志/SGGLDB_WH_V2024-09-20-bwj.sql new file mode 100644 index 00000000..f3f3742e --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-09-20-bwj.sql @@ -0,0 +1,10 @@ + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('0E1CCE60-6F9D-419D-B763-E9E0AF5621E6','µ¥λ·ֲ¿·ÖÏ³̻®·֡¢²üô','',10,'3B322232-38A1-4291-9832-CD4A01C2A975','Menu_CQMS',0,0,1) +go +update Sys_Menu set SortIndex=10,MenuName='·ֲ¿·ÖÏ³ÌÊý¾ݿâ',SuperMenu='0E1CCE60-6F9D-419D-B763-E9E0AF5621E6' where MenuId='17E206A1-E06B-40C0-8DCB-E3AAA2E3B339' +go +update Sys_Menu set SortIndex=20,SuperMenu='0E1CCE60-6F9D-419D-B763-E9E0AF5621E6' where MenuId='FB94A120-921B-4AAB-B54F-EC11B6F561FD' +go +update Sys_Menu set SortIndex=30,SuperMenu='0E1CCE60-6F9D-419D-B763-E9E0AF5621E6' where MenuId='BA250432-492B-49A3-8BB6-D04BF74D2EDD' +go diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-09-23-phf.sql b/DataBase/版本日志/SGGLDB_WH_V2024-09-23-phf.sql new file mode 100644 index 00000000..4e589fbc --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-09-23-phf.sql @@ -0,0 +1,3 @@ +CREATE NONCLUSTERED INDEX [SitePerson_Person_pid_isused_intime_index] +ON [dbo].[SitePerson_Person] ([ProjectId],[IsUsed],[InTime],[OutTime]) +INCLUDE ([PersonName]); \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-09-28-bwj.sql b/DataBase/版本日志/SGGLDB_WH_V2024-09-28-bwj.sql new file mode 100644 index 00000000..c7db4282 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-09-28-bwj.sql @@ -0,0 +1,13 @@ + +update Sys_Menu set Url='CQMS/WBS/Control/DivisionSubProjectsNew.aspx' where MenuId='17E206A1-E06B-40C0-8DCB-E3AAA2E3B339' +go + +insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('2037FD04-23E2-4286-9F85-AAF1D11384D5','17E206A1-E06B-40C0-8DCB-E3AAA2E3B339','Ôö¼Ó',1) +insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('C9D8D3DE-90A9-43AD-8694-85A017DCA9DC','17E206A1-E06B-40C0-8DCB-E3AAA2E3B339','Ð޸Ä',2) +insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('0B422E48-08B6-4262-B541-CE149B452E84','17E206A1-E06B-40C0-8DCB-E3AAA2E3B339','ɾ³ý',3) +insert into Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('2469D37C-F6A0-49EB-AB85-62F88180C9B4','17E206A1-E06B-40C0-8DCB-E3AAA2E3B339','±£´æ',4) +go diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-10-10-phf.sql b/DataBase/版本日志/SGGLDB_WH_V2024-10-10-phf.sql new file mode 100644 index 00000000..a1c266d5 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-10-10-phf.sql @@ -0,0 +1,48 @@ +ALTER TABLE Solution_CQMSConstructSolution +ADD CsUsers nvarchar(2000) null; + +ALTER TABLE GJSX +ADD CsUsers nvarchar(2000) null; + +CREATE TABLE [dbo].[Solution_CQMSConstructSolutionApprove_Item]( + [Id] [nvarchar](50) NOT NULL, + [TypeSortId] [int] NULL, + [SortId] [int] NULL, + [ConstructSolutionId] [nvarchar](50) NULL, + [Chapter] [nvarchar](200) NULL, + [Amendment] [nvarchar](200) NULL, + [Proposer] [nvarchar](50) NULL, + ProposerName [nvarchar](50) NULL, + [Modification] [nvarchar](200) NULL, + [ReviewerOpinion] [nvarchar](200) NULL, + [IsAccept] [nvarchar](50) NULL, + CONSTRAINT [PK_Solution_CQMSConstructSolutionApprove_Item] PRIMARY KEY CLUSTERED +( + [Id] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÀàÐÍÐòºţ¨ʩ¹¤¹¤³Ìʦ1£¬HSE2,ʩ¹¤¾­Àí3£©' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_CQMSConstructSolutionApprove_Item', @level2type=N'COLUMN',@level2name=N'TypeSortId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÐòºÅ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_CQMSConstructSolutionApprove_Item', @level2type=N'COLUMN',@level2name=N'SortId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Õ½Ú' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_CQMSConstructSolutionApprove_Item', @level2type=N'COLUMN',@level2name=N'Chapter' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ð޸ÄÒâ¼û' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_CQMSConstructSolutionApprove_Item', @level2type=N'COLUMN',@level2name=N'Amendment' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ìá³öÈË' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_CQMSConstructSolutionApprove_Item', @level2type=N'COLUMN',@level2name=N'Proposer' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ð޸ÄÇé¿ö' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_CQMSConstructSolutionApprove_Item', @level2type=N'COLUMN',@level2name=N'Modification' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÉóºËÈËÒâ¼û' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_CQMSConstructSolutionApprove_Item', @level2type=N'COLUMN',@level2name=N'ReviewerOpinion' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÊǷñ½ÓÊÜ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Solution_CQMSConstructSolutionApprove_Item', @level2type=N'COLUMN',@level2name=N'IsAccept' +GO \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-10-12-phf.sql b/DataBase/版本日志/SGGLDB_WH_V2024-10-12-phf.sql new file mode 100644 index 00000000..7b0401a8 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-10-12-phf.sql @@ -0,0 +1,61 @@ +ALTER PROCEDURE [dbo].[Sp_GJSX_getlist] + -- Add the parameters for the stored procedure here + @ProjectId nvarchar(max), + @sql_where varchar(max) +AS +BEGIN + --IF EXISTS(select * from tempdb..sysobjects where id=object_id('tempdb..#GJSX_List')) + --BEGIN + -- DROP TABLE #GJSX_List + --END + --DECLARE @Sql NVARCHAR(200) + --select * into #GJSX_List from( + -- select + --a.GJSXID + --,a.ProjectId + --,a.detail + --,b.username + --,a.createDate + --,User_ReceiveID=STUFF(( SELECT ',' + p2.UserName FROM dbo.Sys_User as p2 where PATINDEX('%,' + RTRIM(p2.UserId) + ',%',',' +a.User_ReceiveID + ',') >0 FOR XML PATH('')), 1, 1,'') + --, CNProfessionalId=STUFF(( SELECT ',' + Base_CNProfessional.ProfessionalName FROM dbo.Base_CNProfessional where PATINDEX('%,' + RTRIM(Base_CNProfessional.CNProfessionalId) + ',%',',' +a.CNProfessional_ID + ',') >0 FOR XML PATH('')), 1, 1,'') + --,Base_Project.ProjectName + --,Base_Unit.unitname + --,a.CloseDate + --,case a.state when 2 then 'ÕýÔڽøÐÐ' when 0 then '¹رÕ' when 1 then '¿ª·Å' end as state + --,QuestionTypeName=STUFF(( SELECT ',' + Base_QuestionType.QuestionTypeName FROM dbo.Base_QuestionType where PATINDEX('%,' + RTRIM(Base_QuestionType.QuestionTypeID) + ',%',',' +a.QuestionTypeID + ',') >0 FOR XML PATH('')), 1, 1,'') + --,a.IsManypeople + --,a.CompleteDate + --,a.AttachUrl + --,user_Acceptance =STUFF(( SELECT ',' + p2.UserName FROM dbo.Sys_User as p2 where PATINDEX('%,' + RTRIM(p2.UserId) + ',%',',' +a.user_Acceptance + ',') >0 FOR XML PATH('')), 1, 1,'') + --from GJSX as a left join Sys_User as b on a.UserId=b.UserId + --left join [dbo].[Base_Project] on a.ProjectId =Base_Project.ProjectId + --left join [dbo].[Base_Unit] on a.UnitId=Base_Unit.UnitId + --left join [dbo].[Base_QuestionType] on a.QuestionTypeID=Base_QuestionType.QuestionTypeID ) as a + + --set @Sql ='select * from #GJSX_List where ProjectId='''+@ProjectId+''' ' +@sql_where + + --exec(@Sql) + + select + a.GJSXID + ,a.ProjectId + ,a.detail + ,b.username + ,a.createDate + ,User_ReceiveID=STUFF(( SELECT ',' + p2.UserName FROM dbo.Sys_User as p2 where PATINDEX('%,' + RTRIM(p2.UserId) + ',%',',' +a.User_ReceiveID + ',') >0 FOR XML PATH('')), 1, 1,'') + , CNProfessionalId=STUFF(( SELECT ',' + Base_CNProfessional.ProfessionalName FROM dbo.Base_CNProfessional where PATINDEX('%,' + RTRIM(Base_CNProfessional.CNProfessionalId) + ',%',',' +a.CNProfessional_ID + ',') >0 FOR XML PATH('')), 1, 1,'') + ,Base_Project.ProjectName + ,Base_Unit.unitname + ,a.CloseDate + ,case a.state when 2 then 'ÕýÔڽøÐÐ' when 3 then '´ý¹رÕ' when 0 then 'ÒѹرÕ' when 1 then '¿ª·Å' end as state + ,QuestionTypeName=STUFF(( SELECT ',' + Base_QuestionType.QuestionTypeName FROM dbo.Base_QuestionType where PATINDEX('%,' + RTRIM(Base_QuestionType.QuestionTypeID) + ',%',',' +a.QuestionTypeID + ',') >0 FOR XML PATH('')), 1, 1,'') + ,a.IsManypeople + ,a.CompleteDate + ,a.AttachUrl + ,user_Acceptance =STUFF(( SELECT ',' + p2.UserName FROM dbo.Sys_User as p2 where PATINDEX('%,' + RTRIM(p2.UserId) + ',%',',' +a.user_Acceptance + ',') >0 FOR XML PATH('')), 1, 1,'') + from GJSX as a left join Sys_User as b on a.UserId=b.UserId + left join [dbo].[Base_Project] on a.ProjectId =Base_Project.ProjectId + left join [dbo].[Base_Unit] on a.UnitId=Base_Unit.UnitId + left join [dbo].[Base_QuestionType] on a.QuestionTypeID=Base_QuestionType.QuestionTypeID + where a.ProjectId=@ProjectId +END \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-10-14-phf.sql b/DataBase/版本日志/SGGLDB_WH_V2024-10-14-phf.sql new file mode 100644 index 00000000..0b7b5f9c --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-10-14-phf.sql @@ -0,0 +1,46 @@ +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('168A94C7-E37D-4B9C-8684-51DF4F8C5134','¹ؼüÊÂÏÄڲ¿£©','',10,'0','Menu_PGJSX',0,0,1) +go + +update sys_menu set IsUsed='0' where menuid='5F3B18D6-9FBA-4EF5-A7E4-DC9F6A4EA680'; +update sys_menu set IsUsed='0' where menuid='CAA875A7-089B-4B79-87CE-742FDFD9DE43'; + +--0 ÎҴ´½¨µģ¬1´ýÎҴ¦Àí£¬2ÎÒÒѴ¦Àí¡¢3ÎҲÎÓëµÄ +--¹ؼüÊÂÏî¸ijÉ ÎҴ´½¨µÄ +update sys_menu set SuperMenu='3517DBE2-9728-4BA0-9EA5-AE2147DB883B',MenuName='ÎҴ´½¨µÄ',url='PZHGL/GJSX/GJSXList.aspx?classify=0' +where menuid='0BEA2126-7A48-40EB-8E21-99148E91A22B'; + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('4A9E60ED-24FF-4410-B3B7-2A5079615A78','´ýÎҴ¦Àí','PZHGL/GJSX/GJSXList.aspx?classify=1',20,'168A94C7-E37D-4B9C-8684-51DF4F8C5134','Menu_PGJSX',0,1,1) +go + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('BEF7850D-1BA5-45F9-BD40-E52F6D813E7C','ÎÒÒѴ¦Àí','PZHGL/GJSX/GJSXList.aspx?classify=2',30,'168A94C7-E37D-4B9C-8684-51DF4F8C5134','Menu_PGJSX',0,1,1) +go + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('3C129205-F6A9-480D-B36C-E35DED5D7CEC','ÎҲÎÓëµÄ','PZHGL/GJSX/GJSXList.aspx?classify=3',40,'168A94C7-E37D-4B9C-8684-51DF4F8C5134','Menu_PGJSX',0,1,1) +go + +--Эµ÷¹µͨ +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('42791ACB-7C72-481F-B1ED-158C7141522C','Эµ÷¹µͨ£¨Íⲿ£©','',20,'0','Menu_PGJSX',0,0,1) +go + +update sys_menu set SuperMenu='42791ACB-7C72-481F-B1ED-158C7141522C',MenuName='ÎҴ´½¨µÄ',url='DocManage/DocManage.aspx?classify=0',MenuType='Menu_PGJSX' +where menuid='609F0D64-ABB8-4F5C-9646-FC1DFC8BAB85'; + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('2FEF98BD-DBBD-4ADA-B600-18D3C113B22A','´ýÎҴ¦Àí','DocManage/DocManage.aspx?classify=1',20,'42791ACB-7C72-481F-B1ED-158C7141522C','Menu_PGJSX',0,1,1) +go + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('5BDEEA43-FFD7-4AEB-B760-24E70009EA0C','ÎÒÒѴ¦Àí','DocManage/DocManage.aspx?classify=2',30,'42791ACB-7C72-481F-B1ED-158C7141522C','Menu_PGJSX',0,1,1) +go + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('58B45CA6-AFFB-4624-80C6-F70C1A54FBE2','ÎҲÎÓëµÄ','DocManage/DocManage.aspx?classify=3',40,'42791ACB-7C72-481F-B1ED-158C7141522C','Menu_PGJSX',0,1,1) +go + + + diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-10-21-bwj.sql b/DataBase/版本日志/SGGLDB_WH_V2024-10-21-bwj.sql new file mode 100644 index 00000000..7e2d85e8 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-10-21-bwj.sql @@ -0,0 +1,13 @@ + +alter table ProcessControl_InspectionManagement add ChildUnitWorkId nvarchar(50) +alter table ProcessControl_InspectionManagement add ChildBranch nvarchar(50) +go +ALTER TABLE [dbo].[ProcessControl_InspectionManagement] DROP CONSTRAINT [FK_ProcessControl_InspectionManagement_Base_CNProfessional] +GO + +update ProcessControl_InspectionManagement set CNProfessionalId='D03E079B-8B97-4C5A-BF1C-782887548B92' where CNProfessionalId='10487C07-DE54-4ED6-BBDF-2C7988A44665'--¹ܵÀ +update ProcessControl_InspectionManagement set CNProfessionalId='445B1EE6-901E-4A07-A4AB-4EE1066E742F' where CNProfessionalId='DEB367FF-AD35-41A0-B68E-FA8E68737B93'--µçÆø +update ProcessControl_InspectionManagement set CNProfessionalId='E9AC9563-E338-48B7-867D-488222AD0557' where CNProfessionalId='F41C5022-F499-4BD7-84B6-E87E4CE53CAC'--ÍÁ½¨ +--update ProcessControl_InspectionManagement set CNProfessionalId='' where CNProfessionalId='FBC066BE-082F-4185-AE5C-016A12132ADE'--É豸 + + diff --git a/DataBase/版本日志/SUBQHSE_V2024-10-16-phf.sql b/DataBase/版本日志/SUBQHSE_V2024-10-16-phf.sql new file mode 100644 index 00000000..58e8b765 --- /dev/null +++ b/DataBase/版本日志/SUBQHSE_V2024-10-16-phf.sql @@ -0,0 +1,42 @@ +alter table Environmental_OperationReport drop column Code +alter table Environmental_OperationReport drop column UnitLevel +alter table Environmental_OperationReport drop column CreateDate +alter table Environmental_OperationReport drop column Place +alter table Environmental_OperationReport drop column PersonNum +alter table Environmental_OperationReport drop column TotalAssets +alter table Environmental_OperationReport drop column TotalValue +alter table Environmental_OperationReport drop column NewInvestment +GO + +CREATE TABLE [dbo].[Environmental_OperationReportItem]( + [BusinessReportItemId] [nvarchar](50) NOT NULL, + [BusinessReportId] [nvarchar](50) NULL, + [SortIndex] [int] NULL, + [Code] [nvarchar](50) NULL, + [UnitLevel] [nvarchar](50) NULL, + [CreateDate] [datetime] NULL, + [Place] [nvarchar](200) NULL, + [PersonNum] [int] NULL, + [TotalAssets] [decimal](18, 4) NULL, + [TotalValue] [decimal](18, 4) NULL, + [NewInvestment] [decimal](18, 4) NULL, + [UnitName] [nvarchar](200) NULL, + [SortUnitName] [nvarchar](200) NULL, + CONSTRAINT [PK_Environmental_OperationReportItem] PRIMARY KEY CLUSTERED +( + [BusinessReportItemId] 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].[Environmental_OperationReportItem] WITH CHECK ADD CONSTRAINT [FK_Environmental_OperationReportItem_Environmental_OperationReport] FOREIGN KEY([BusinessReportId]) +REFERENCES [dbo].[Environmental_OperationReport] ([BusinessReportId]) +GO + +ALTER TABLE [dbo].[Environmental_OperationReportItem] CHECK CONSTRAINT [FK_Environmental_OperationReportItem_Environmental_OperationReport] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ÖÐÑëÆóҵ½ÚÄܻ·±£²úҵÆóҵ»ù±¾Çé¿öº;­ӪÇé¿ö±¨±íÃ÷ϸ±í' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Environmental_OperationReportItem' +GO + +update sys_menu set IsUsed=0 where menuid='EFA6E45F-1267-4804-BEE7-41E0C5461204'; \ No newline at end of file diff --git a/DataBase/版本日志/SUBQHSE_V2024-10-23-phf.sql b/DataBase/版本日志/SUBQHSE_V2024-10-23-phf.sql new file mode 100644 index 00000000..4fdbb4c1 --- /dev/null +++ b/DataBase/版本日志/SUBQHSE_V2024-10-23-phf.sql @@ -0,0 +1,7 @@ +--Ôö¼ÓΪÁ˵¥λÅÅÐò +alter table Environmental_EnergyReportItem +add SortUnit int NULL +GO + +update Environmental_EnergyReportItem set SortUnit=1 where EnergyReportId='template'; + diff --git a/DataBase/版本日志/SUBQHSE_V2024-10-26-phf.sql b/DataBase/版本日志/SUBQHSE_V2024-10-26-phf.sql new file mode 100644 index 00000000..8ab70c1c --- /dev/null +++ b/DataBase/版本日志/SUBQHSE_V2024-10-26-phf.sql @@ -0,0 +1,8 @@ +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('1FBC729D-0A8E-423C-B133-B64583BF9611','½ø¶ÈÈí¼þ£¨Ð£©','',70,'0','Menu_JDGL',0,0,0) +go + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +values('368DB90C-8A47-44F7-A69A-D2D60A6E338C','·ÑÓÃÏî²üô','JDGL/Progress/WbsManager.aspx',10,'1FBC729D-0A8E-423C-B133-B64583BF9611','Menu_JDGL',0,1,0) +go + diff --git a/DataBase/版本日志/SUBQHSE_V2024-10-28-bwj.sql b/DataBase/版本日志/SUBQHSE_V2024-10-28-bwj.sql new file mode 100644 index 00000000..6d9727b4 --- /dev/null +++ b/DataBase/版本日志/SUBQHSE_V2024-10-28-bwj.sql @@ -0,0 +1,5 @@ + +update ProcessControl_InspectionManagement set CNProfessionalId='10487C07-DE54-4ED6-BBDF-2C7988A44665' where CNProfessionalId='D03E079B-8B97-4C5A-BF1C-782887548B92'--¹ܵÀ +update ProcessControl_InspectionManagement set CNProfessionalId='DEB367FF-AD35-41A0-B68E-FA8E68737B93' where CNProfessionalId='445B1EE6-901E-4A07-A4AB-4EE1066E742F'--µçÆø +update ProcessControl_InspectionManagement set CNProfessionalId='F41C5022-F499-4BD7-84B6-E87E4CE53CAC' where CNProfessionalId='E9AC9563-E338-48B7-867D-488222AD0557'--ÍÁ½¨ +go \ No newline at end of file diff --git a/DataBase/版本日志/SUBQHSE_V2024-10-31-xiaj.sql b/DataBase/版本日志/SUBQHSE_V2024-10-31-xiaj.sql new file mode 100644 index 00000000..309d41e4 --- /dev/null +++ b/DataBase/版本日志/SUBQHSE_V2024-10-31-xiaj.sql @@ -0,0 +1,48 @@ + + +--1¡¢Ë÷ÒýÏîĿÖУ¬ɾ³ýӢÎ쬱£ÁôÖÐÎÄ +update Sys_Menu set MenuName='βÏî¹ÜÀí' where MenuId='016903B1-3B86-4CF5-AFF8-FF8BE389BEE5'; +update Sys_Menu set MenuName='·ǹ¤ÒÕϵͳÇ嵥' where MenuId='022428DC-FC99-4916-B8AF-6A9DC885DFAF'; +update Sys_Menu set MenuName='¹¤ÒÕϵͳÇ嵥' where MenuId='197F9A9A-480C-4CC3-B6B7-3A7D382DC3EB'; +update Sys_Menu set MenuName='βÏîÍê³Éͳ¼Ʊí' where MenuId='2352E44F-BE12-4012-B43F-AAF649EDAC32'; +update Sys_Menu set MenuName='Òƽ»״̬»ã×ܱí' where MenuId='25C13642-AE77-42E2-B0FB-32663B68F93F'; +update Sys_Menu set MenuName='µçÆø' where MenuId='296E75D2-192A-4D1F-8471-DD34263F8691'; +update Sys_Menu set MenuName='βÏî½ø¶ȸú×ٱí' where MenuId='549DD0B6-05CB-4C75-B8F5-9AADDEDF399F'; +update Sys_Menu set MenuName='µçÐÅ' where MenuId='58FFBD80-ACB9-4830-A18A-E025D9600D94'; +update Sys_Menu set MenuName='Òƽ»ͳ¼Æͼ±í' where MenuId='60838E30-4A46-4878-B299-C234900B10B7'; +update Sys_Menu set MenuName='¶¯É豸' where MenuId='7E2FB5F9-FB99-4455-B68F-460F1F9A2676'; +update Sys_Menu set MenuName='ÒDZí' where MenuId='88F51059-55B4-4CD5-A38C-36404E5029F6'; +update Sys_Menu set MenuName='ÍÁ½¨/½¨Öþ/½ṹ' where MenuId='95C39F86-C060-452E-BA37-D891C466A39B'; +update Sys_Menu set MenuName='¾²É豸' where MenuId='982F746C-084C-445C-9AE8-8C37BDFE7994'; +update Sys_Menu set MenuName='βÏî·ÖÀà±í' where MenuId='CB76462E-9444-4946-B787-ECB33C21E6D0'; +update Sys_Menu set MenuName='¹ܵÀ' where MenuId='D94C1BA4-9DFD-4514-AE12-6F886C5D8C9B'; +update Sys_Menu set MenuName='Òƽ»ͳ¼Ʊí' where MenuId='E305689E-5D84-4C1A-BF67-85FA2D828115'; +go +--2¡¢ɾ³ýÏîĿÖеĵعܺÍÏû·À2¸öÏîĿ£¨Òþ²ز˵¥£© +update Sys_Menu set MenuName='Ïû·À',IsUsed=0 where MenuId='794E64E2-FDD2-4B7D-8408-F7FB06F9C92A'; +update Sys_Menu set MenuName='µعÜ',IsUsed=0 where MenuId='95295BF7-FB51-480D-9902-6ADA4E8427FC'; +go +--3¡¢¸üйܵÀ±íµıí¸ñ +--ÅжÏ×ֶβ»´æÔÚÔòÌí¼Ó +IF NOT EXISTS(select * from sys.columns where name='TotalFactor' and [object_id]=object_id(N'Transfer_Piping')) +BEGIN + --×ܴïÒòÊý + ALTER TABLE Transfer_Piping ADD TotalFactor nvarchar(50) NULL; + --Íê³ɴïÒòÊý + ALTER TABLE Transfer_Piping ADD CompleteFactor nvarchar(50) NULL; + --Íê³ɱÈÀý + ALTER TABLE Transfer_Piping ADD CompleteProportion nvarchar(50) NULL; + --ÊÔѹÍê³É + ALTER TABLE Transfer_Piping ADD PressureTestCompleted nvarchar(50) NULL; + --³åϴ´µɨ + ALTER TABLE Transfer_Piping ADD RinseAndBlowClean nvarchar(50) NULL; + --¸´λ + ALTER TABLE Transfer_Piping ADD Reduction nvarchar(50) NULL; + --µç°éÈÈ + ALTER TABLE Transfer_Piping ADD ElectricHeatTracing nvarchar(50) NULL; + --±£ÎÂ/Àä + ALTER TABLE Transfer_Piping ADD Insulation nvarchar(50) NULL; +END +go + + diff --git a/DataBase/版本日志/SUBQHSE_V2024-11-15-xiaj.sql b/DataBase/版本日志/SUBQHSE_V2024-11-15-xiaj.sql new file mode 100644 index 00000000..6390a1e8 --- /dev/null +++ b/DataBase/版本日志/SUBQHSE_V2024-11-15-xiaj.sql @@ -0,0 +1,24 @@ + + +--1¡¢Ð޸ĹܵÀ±í×ֶÎÊý¾ÝÀàÐÍ +ALTER TABLE Transfer_Piping ALTER COLUMN TotalFactor decimal(10, 2); +ALTER TABLE Transfer_Piping ALTER COLUMN CompleteFactor decimal(10, 2); +update Transfer_Piping set CompleteProportion='0'where CompleteProportion='' or CompleteProportion is null; +go +ALTER TABLE Transfer_Piping ALTER COLUMN CompleteProportion decimal(10, 2); +go + + + +--3¡¢Òƽ»ͳ¼Ʊí²¹³äµç°éÈȺͱ£ÎÂÀä +IF NOT EXISTS(select * from sys.columns where name='Insulation' and [object_id]=object_id(N'Transfer_SystemControl')) +BEGIN + --µç°éÈÈ + ALTER TABLE Transfer_SystemControl ADD ElectricHeatTracing nvarchar(50) NULL; + --±£ÎÂ/Àä + ALTER TABLE Transfer_SystemControl ADD Insulation nvarchar(50) NULL; +END +go + + + diff --git a/DataBase/版本日志/SUBQHSE_V2024-11-22-xiaj.sql b/DataBase/版本日志/SUBQHSE_V2024-11-22-xiaj.sql new file mode 100644 index 00000000..547482e5 --- /dev/null +++ b/DataBase/版本日志/SUBQHSE_V2024-11-22-xiaj.sql @@ -0,0 +1,13 @@ + +--ÀúʷβÏîÊý¾ÝÐ޸Ä +update Transfer_PunchlistFrom set IsMatI='Y2' where IsMatI='Y'; +update Transfer_PunchlistFrom set Punch_Type='JWD' where Punch_Type='FWD'; +go + + +update Transfer_PunchlistFrom set Sub_Sys_No='LHC1-CVL05-01-01' where Sub_Sys_No='CVL05-01'; +update Transfer_PunchlistFrom set Sub_Sys_No='LHC1-EL01-00-01' where Sub_Sys_No='EL01-01'; + +go + + diff --git a/DataBase/版本日志/SUBQHSE_V2024-11-26-phf.sql b/DataBase/版本日志/SUBQHSE_V2024-11-26-phf.sql new file mode 100644 index 00000000..44166663 --- /dev/null +++ b/DataBase/版本日志/SUBQHSE_V2024-11-26-phf.sql @@ -0,0 +1,12 @@ + +alter table Report_ConstructionProblems +alter column ProblemDesrioption nvarchar(2000) null; + +alter table Report_ConstructionProblems +alter column TreatmentMeasures nvarchar(2000) null; + +alter table Report_RowMaterialProblem +alter column ProblemDesrioption nvarchar(2000) null; + +alter table Report_RowMaterialProblem +alter column TreatmentMeasures nvarchar(2000) null; diff --git a/SGGL/BLL/.vs/BLL.csproj.dtbcache.json b/SGGL/BLL/.vs/BLL.csproj.dtbcache.json index 9a74c8a3..11fd330d 100644 --- a/SGGL/BLL/.vs/BLL.csproj.dtbcache.json +++ b/SGGL/BLL/.vs/BLL.csproj.dtbcache.json @@ -1 +1 @@ -{"RootPath":"C:\\诺比达\\五环项目\\CNCEC_SUBQHSE_WUHUAN\\SGGL\\BLL","ProjectFileName":"BLL.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"API\\APIBaseInfoService.cs"},{"SourceFile":"API\\APICommonService.cs"},{"SourceFile":"API\\APIDoorServerService.cs"},{"SourceFile":"API\\APIGetHttpService.cs"},{"SourceFile":"API\\APIIDCardInfoService.cs"},{"SourceFile":"API\\APIPersonService.cs"},{"SourceFile":"API\\APIProjectService.cs"},{"SourceFile":"API\\APIUnitService.cs"},{"SourceFile":"API\\APIUpLoadFileService.cs"},{"SourceFile":"API\\APIUserService.cs"},{"SourceFile":"API\\HJGL\\APIGetHJDataService.cs"},{"SourceFile":"API\\HJGL\\APIHotProcessHardService.cs"},{"SourceFile":"API\\HJGL\\APINDETrustService.cs"},{"SourceFile":"API\\HJGL\\APIPipeJointService.cs"},{"SourceFile":"API\\HJGL\\APIPreWeldingDailyService.cs"},{"SourceFile":"API\\HJGL\\APIReportQueryService.cs"},{"SourceFile":"API\\HJGL\\APITestPackageService.cs"},{"SourceFile":"API\\HSSE\\APIGeneralEquipmentQualityService.cs"},{"SourceFile":"API\\HSSE\\APIPageDataService.cs"},{"SourceFile":"API\\HSSE\\APIChartAnalysisService.cs"},{"SourceFile":"API\\HSSE\\APICheckSpecialService.cs"},{"SourceFile":"API\\HSSE\\APIConstructSolutionService.cs"},{"SourceFile":"API\\HSSE\\APIEmergencyService.cs"},{"SourceFile":"API\\HSSE\\APIEquipmentQualityService.cs"},{"SourceFile":"API\\HSSE\\APIHazardListService.cs"},{"SourceFile":"API\\HSSE\\APIHazardRegisterService.cs"},{"SourceFile":"API\\HSSE\\APIHSEDiaryService.cs"},{"SourceFile":"API\\HSSE\\APIIncentiveNoticeService.cs"},{"SourceFile":"API\\HSSE\\APILicenseDataService.cs"},{"SourceFile":"API\\HSSE\\APILicenseFlowOperateService.cs"},{"SourceFile":"API\\HSSE\\APILicenseItemService.cs"},{"SourceFile":"API\\HSSE\\APIMeetingService.cs"},{"SourceFile":"API\\HSSE\\APIPauseNoticeService.cs"},{"SourceFile":"API\\HSSE\\APIPersonQualityService.cs"},{"SourceFile":"API\\HSSE\\APIPunishNoticeService.cs"},{"SourceFile":"API\\HSSE\\APIReceiveFileManagerService.cs"},{"SourceFile":"API\\HSSE\\APIRectifyNoticesService.cs"},{"SourceFile":"API\\HSSE\\APIResourcesService.cs"},{"SourceFile":"API\\HSSE\\APISeDinMonthReportService.cs"},{"SourceFile":"API\\HSSE\\APIServerTestPlanService.cs"},{"SourceFile":"API\\HSSE\\APIServerTestRecordService.cs"},{"SourceFile":"API\\HSSE\\APITestPlanService.cs"},{"SourceFile":"API\\HSSE\\APITestRecordService.cs"},{"SourceFile":"API\\HSSE\\APITrainingPlanService.cs"},{"SourceFile":"API\\HSSE\\APITrainingTaskService.cs"},{"SourceFile":"API\\HSSE\\APITrainRecordService.cs"},{"SourceFile":"BaseInfo\\AccidentTypeService.cs"},{"SourceFile":"BaseInfo\\BaseFactoryService.cs"},{"SourceFile":"BaseInfo\\CertificateService.cs"},{"SourceFile":"BaseInfo\\CNProfessionalService.cs"},{"SourceFile":"BaseInfo\\CostTypeService.cs"},{"SourceFile":"BaseInfo\\DesignProfessionalService.cs"},{"SourceFile":"BaseInfo\\DocTypeService.cs"},{"SourceFile":"BaseInfo\\EmergencyTypeService.cs"},{"SourceFile":"BaseInfo\\GoodsCategoryService.cs"},{"SourceFile":"BaseInfo\\HSSEStandardListTypeService.cs"},{"SourceFile":"BaseInfo\\HSSE_Hazard_HazardRegisterTypesService.cs"},{"SourceFile":"BaseInfo\\InspectionAreaService.cs"},{"SourceFile":"BaseInfo\\LawsRegulationsTypeService.cs"},{"SourceFile":"BaseInfo\\LicenseTypeService.cs"},{"SourceFile":"BaseInfo\\ManageRuleTypeService.cs"},{"SourceFile":"BaseInfo\\PersonManageService.cs"},{"SourceFile":"BaseInfo\\PictureTypeService.cs"},{"SourceFile":"BaseInfo\\PositionService.cs"},{"SourceFile":"BaseInfo\\PostService.cs"},{"SourceFile":"BaseInfo\\PostTitleService.cs"},{"SourceFile":"BaseInfo\\PracticeCertificateService.cs"},{"SourceFile":"BaseInfo\\ProjectTypeService.cs"},{"SourceFile":"BaseInfo\\QualityQuestionTypeService.cs"},{"SourceFile":"BaseInfo\\QuestionTypeService.cs"},{"SourceFile":"BaseInfo\\RectificationMeasureService.cs"},{"SourceFile":"BaseInfo\\RiskLevelService.cs"},{"SourceFile":"BaseInfo\\RulesRegulationsTypeService.cs"},{"SourceFile":"BaseInfo\\SafetyMeasuresService.cs"},{"SourceFile":"BaseInfo\\SolutionTempleteTypeService.cs"},{"SourceFile":"BaseInfo\\SpecialEquipmentService.cs"},{"SourceFile":"BaseInfo\\SpecialSchemeTypeService.cs"},{"SourceFile":"BaseInfo\\SteelService.cs"},{"SourceFile":"BaseInfo\\TestRunLicenseTypeService.cs"},{"SourceFile":"BaseInfo\\TestRunPerformanceStandardService.cs"},{"SourceFile":"BaseInfo\\TrainLevelService.cs"},{"SourceFile":"BaseInfo\\TrainTypeService.cs"},{"SourceFile":"BaseInfo\\TransferMajorService.cs"},{"SourceFile":"BaseInfo\\UnitTypeService.cs"},{"SourceFile":"BaseInfo\\WorkPostService.cs"},{"SourceFile":"BaseInfo\\WorkStageService.cs"},{"SourceFile":"BoSheng\\BOSHENGService.cs"},{"SourceFile":"Common\\AttachFileService.cs"},{"SourceFile":"Common\\CodeRecordsService.cs"},{"SourceFile":"Common\\CommonService.cs"},{"SourceFile":"Common\\CreateQRCodeService.cs"},{"SourceFile":"Common\\IDCardValid.cs"},{"SourceFile":"Common\\NPOIExcel.cs"},{"SourceFile":"Common\\NPOIHelper.cs"},{"SourceFile":"Common\\PrinterDocService.cs"},{"SourceFile":"Common\\ProjectDataFlowSetService.cs"},{"SourceFile":"Common\\Sys_DataTempService.cs"},{"SourceFile":"Common\\UploadFileService.cs"},{"SourceFile":"Common\\UpLoadImageService.cs"},{"SourceFile":"Common\\UserShowColumnsService.cs"},{"SourceFile":"Common\\WeatherService.cs"},{"SourceFile":"Common\\WeekDayService.cs"},{"SourceFile":"CostGoods\\MeasuresPlanService.cs"},{"SourceFile":"CostGoods\\PayRegistrationService.cs"},{"SourceFile":"CostGoods\\SubPayRegistrationService.cs"},{"SourceFile":"CQMS\\Comprehensive\\ConTechnologyDisclosureService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataDistributionApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataDistributionService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataReceivingApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataReceivingDocApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataReceivingDocService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataReceivingService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignChangeOrderApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignChangeOrderService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignDetailsApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignDetailsService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignDrawingsApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignDrawingsService.cs"},{"SourceFile":"CQMS\\Comprehensive\\GeneralPlanApprovalItemService.cs"},{"SourceFile":"CQMS\\Comprehensive\\GeneralPlanApprovalService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionEquipmentApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionEquipmentService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionMachineApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionMachineService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionPersonApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionPersonService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionTestPlanService.cs"},{"SourceFile":"CQMS\\Comprehensive\\MajorPlanApprovalItemService.cs"},{"SourceFile":"CQMS\\Comprehensive\\MajorPlanApprovalService.cs"},{"SourceFile":"CQMS\\Comprehensive\\NCRManagementApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\NCRManagementService.cs"},{"SourceFile":"CQMS\\Comprehensive\\PersonSteelService.cs"},{"SourceFile":"CQMS\\Comprehensive\\PersonWeldMethodService.cs"},{"SourceFile":"CQMS\\Comprehensive\\PressurePipeApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\PressurePipeService.cs"},{"SourceFile":"CQMS\\Comprehensive\\QualityAccidentApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\QualityAccidentService.cs"},{"SourceFile":"CQMS\\Comprehensive\\ReviewDrawingsService.cs"},{"SourceFile":"CQMS\\Comprehensive\\SiteVisaManagementApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\SiteVisaManagementService.cs"},{"SourceFile":"CQMS\\Comprehensive\\SpecialEquipmentApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\SpecialEquipmentService.cs"},{"SourceFile":"CQMS\\Check\\CheckControlApproveService.cs"},{"SourceFile":"CQMS\\Check\\CheckControlService.cs"},{"SourceFile":"CQMS\\Check\\CheckEquipmentApproveService.cs"},{"SourceFile":"CQMS\\Check\\CheckEquipmentService.cs"},{"SourceFile":"CQMS\\Check\\CheckMonthService.cs"},{"SourceFile":"CQMS\\Check\\DesignApproveService.cs"},{"SourceFile":"CQMS\\Check\\DesignService.cs"},{"SourceFile":"CQMS\\Check\\DrawApproveService.cs"},{"SourceFile":"CQMS\\Check\\DrawService.cs"},{"SourceFile":"CQMS\\Check\\FileCabinetService.cs"},{"SourceFile":"CQMS\\Check\\JointCheckApproveService.cs"},{"SourceFile":"CQMS\\Check\\JointCheckDetailService.cs"},{"SourceFile":"CQMS\\Check\\JointCheckService.cs"},{"SourceFile":"CQMS\\Check\\MonthSpotCheckDetailService.cs"},{"SourceFile":"CQMS\\Check\\SpecialEquipmentDetailService.cs"},{"SourceFile":"CQMS\\Check\\SpotCheckApproveService.cs"},{"SourceFile":"CQMS\\Check\\SpotCheckDetailService.cs"},{"SourceFile":"CQMS\\Check\\SpotCheckService.cs"},{"SourceFile":"CQMS\\Check\\TechnicalContactListApproveService.cs"},{"SourceFile":"CQMS\\Check\\TechnicalContactListService.cs"},{"SourceFile":"CQMS\\Comprehensive\\TrainingRecordsService.cs"},{"SourceFile":"CQMS\\DataBase\\ConstructionStandardListProjectService.cs"},{"SourceFile":"CQMS\\DataBase\\ConstructionStandardListService.cs"},{"SourceFile":"CQMS\\DataBase\\DataTypeProjectService.cs"},{"SourceFile":"CQMS\\DataBase\\DataTypeService.cs"},{"SourceFile":"CQMS\\DataBase\\FileService.cs"},{"SourceFile":"CQMS\\DataBase\\InspectionLotService.cs"},{"SourceFile":"CQMS\\DataBase\\PhotoService.cs"},{"SourceFile":"CQMS\\DataBase\\StartWorkReportService.cs"},{"SourceFile":"CQMS\\Foreign\\ControlPointCheckService.cs"},{"SourceFile":"CQMS\\Foreign\\ITPListProjectService.cs"},{"SourceFile":"CQMS\\Foreign\\ITPListService.cs"},{"SourceFile":"CQMS\\ManageReport\\ComprehensiveService.cs"},{"SourceFile":"CQMS\\ManageReport\\ConstructionProblemsService.cs"},{"SourceFile":"CQMS\\ManageReport\\NextQualityControlService.cs"},{"SourceFile":"CQMS\\ManageReport\\ProjectQualityWorkSummaryReportService.cs"},{"SourceFile":"CQMS\\ManageReport\\ProjectQuarterlyProjectQualityService.cs"},{"SourceFile":"CQMS\\ManageReport\\ReportNew\\ConstructionPlanService.cs"},{"SourceFile":"CQMS\\ManageReport\\ReportNew\\CqmsTargetService.cs"},{"SourceFile":"CQMS\\ManageReport\\ReportNew\\Report_CQMS_MonthReportItemService.cs"},{"SourceFile":"CQMS\\ManageReport\\ReportNew\\TextBoxContentService.cs"},{"SourceFile":"CQMS\\ManageReport\\ReportNew\\WeekAndMonthReportNewService.cs"},{"SourceFile":"CQMS\\ManageReport\\RowMaterialProblemService.cs"},{"SourceFile":"CQMS\\ManageReport\\ThisWeekOrMonthContentService.cs"},{"SourceFile":"CQMS\\ManageReport\\WeekAndMonthReportService.cs"},{"SourceFile":"CQMS\\Performance\\PerformanceService.cs"},{"SourceFile":"CQMS\\ProcessControl\\HotProessManageService.cs"},{"SourceFile":"CQMS\\ProcessControl\\InspectionManagementDetailService.cs"},{"SourceFile":"CQMS\\ProcessControl\\InspectionManagementService.cs"},{"SourceFile":"CQMS\\ProcessControl\\NondestructiveTestNewService.cs"},{"SourceFile":"CQMS\\ProcessControl\\NondestructiveTestService.cs"},{"SourceFile":"CQMS\\ProcessControl\\TestPackageManagementService.cs"},{"SourceFile":"CQMS\\Solution\\CQMSConstructSolutionApproveService.cs"},{"SourceFile":"CQMS\\Solution\\CQMSConstructSolutionService.cs"},{"SourceFile":"CQMS\\Unqualified\\WorkContactApproveService.cs"},{"SourceFile":"CQMS\\Unqualified\\WorkContactService.cs"},{"SourceFile":"CQMS\\WBS\\BreakdownProjectService.cs"},{"SourceFile":"CQMS\\WBS\\BreakdownService.cs"},{"SourceFile":"CQMS\\WBS\\ControlItemAndCycleService.cs"},{"SourceFile":"CQMS\\WBS\\ControlItemInitService.cs"},{"SourceFile":"CQMS\\WBS\\ControlItemProjectService.cs"},{"SourceFile":"CQMS\\WBS\\DivisionProjectService.cs"},{"SourceFile":"CQMS\\WBS\\DivisionService.cs"},{"SourceFile":"CQMS\\WBS\\ForeignBreakdownProjectService.cs"},{"SourceFile":"CQMS\\WBS\\ForeignBreakdownService.cs"},{"SourceFile":"CQMS\\WBS\\ForeignCNProfessionalService.cs"},{"SourceFile":"CQMS\\WBS\\WBSsearchService.cs"},{"SourceFile":"CQMS\\WBS\\WorkPackageInitService.cs"},{"SourceFile":"CQMS\\WBS\\WorkPackageProjectService.cs"},{"SourceFile":"CQMS\\WBS\\WorkPackageService.cs"},{"SourceFile":"DigData\\HSEDataCollectService.cs"},{"SourceFile":"DocManage\\DocManageApproveService.cs"},{"SourceFile":"DocManage\\DocManageService.cs"},{"SourceFile":"DoorServer\\InOutService.cs"},{"SourceFile":"DoorServer\\DoorServerService.cs"},{"SourceFile":"DropListService.cs"},{"SourceFile":"GlobalSuppressions.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_ComponentsService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_ConsumablesService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_DefectService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_DetectionRateService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_DetectionTypeService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_DNCompareService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_GrooveTypeService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_MaterialService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_MediumService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_PipingClassService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_PressurePipingClassService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_PressureService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_PurgeMethodService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_TestMediumService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_WeldingLocationServie.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_WeldingMethodService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_WeldTypeService.cs"},{"SourceFile":"HJGL\\FL\\FLDataService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\Hard_ReportService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\Hard_TrustItemService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\Hard_TrustService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\HotProessReportService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\HotProessTrustItemService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\HotProess_TrustService.cs"},{"SourceFile":"HJGL\\LeakVacuum\\LeakVacuumAuditService.cs"},{"SourceFile":"HJGL\\LeakVacuum\\LeakVacuumEditService.cs"},{"SourceFile":"HJGL\\LeakVacuum\\LV_ItemEndCheckService.cs"},{"SourceFile":"HJGL\\NDT\\Batch_NDEItemService.cs"},{"SourceFile":"HJGL\\NDT\\Batch_NDEService.cs"},{"SourceFile":"HJGL\\PersonManage\\CheckerService.cs"},{"SourceFile":"HJGL\\PersonManage\\WelderQualifyService.cs"},{"SourceFile":"HJGL\\PersonManage\\WelderService.cs"},{"SourceFile":"HJGL\\PointTrust\\Batch_BatchTrustItemService.cs"},{"SourceFile":"HJGL\\PointTrust\\Batch_BatchTrustService.cs"},{"SourceFile":"HJGL\\PointTrust\\PointBatchDetailService.cs"},{"SourceFile":"HJGL\\PointTrust\\PointBatchService.cs"},{"SourceFile":"HJGL\\PurgingCleaning\\PC_ItemEndCheckService.cs"},{"SourceFile":"HJGL\\PurgingCleaning\\PurgingCleaningAuditService.cs"},{"SourceFile":"HJGL\\PurgingCleaning\\PurgingCleaningEditService.cs"},{"SourceFile":"HJGL\\RepairAndExpand\\RepairRecordService.cs"},{"SourceFile":"HJGL\\TestPackage\\AItemEndCheckService.cs"},{"SourceFile":"HJGL\\TestPackage\\BItemEndCheckService.cs"},{"SourceFile":"HJGL\\TestPackage\\TestPackageApproveService.cs"},{"SourceFile":"HJGL\\TestPackage\\TestPackageAuditService.cs"},{"SourceFile":"HJGL\\TestPackage\\TestPackageEditService.cs"},{"SourceFile":"HJGL\\WeldingManage\\PipelineService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WeldingDailyService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WeldJointService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WeldTaskService.cs"},{"SourceFile":"HJGL\\WPQ\\WPQListService.cs"},{"SourceFile":"HSSE\\Accident\\AccidentHandleService.cs"},{"SourceFile":"HSSE\\Accident\\AccidentPersonRecordService.cs"},{"SourceFile":"HSSE\\Accident\\AccidentReportOtherItemService.cs"},{"SourceFile":"HSSE\\Accident\\AccidentReportOtherService.cs"},{"SourceFile":"HSSE\\Accident\\AccidentReportService.cs"},{"SourceFile":"HSSE\\Accident\\NoFourLetoffService.cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlanListService.cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlanSummaryService.cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlan_CompanyManagerRuleService.cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlan_ManagerRuleService.cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlan_SubManagerRuleService .cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlan_ProjectManagerRuleService.cs"},{"SourceFile":"HSSE\\Administrative\\CarManagerService.cs"},{"SourceFile":"HSSE\\Administrative\\DriverManagerService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckColligationDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckColligationService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckDayDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckDayService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckHolidayDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckHolidayService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckSpecialDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckSpecialService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckWorkDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckWorkService.cs"},{"SourceFile":"HSSE\\Check\\Check_PauseNoticeService.cs"},{"SourceFile":"HSSE\\Check\\Check_ProjectCheckItemDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_ProjectCheckItemSetService.cs"},{"SourceFile":"HSSE\\Check\\Check_ProjectLeaderCheckService.cs"},{"SourceFile":"HSSE\\Check\\ContactListService.cs"},{"SourceFile":"HSSE\\Check\\HSECertificateService.cs"},{"SourceFile":"HSSE\\Check\\IncentiveNoticeService.cs"},{"SourceFile":"HSSE\\Check\\PunishNoticeService.cs"},{"SourceFile":"HSSE\\Check\\RectifyNoticesService.cs"},{"SourceFile":"HSSE\\Check\\SupervisionNoticeService.cs"},{"SourceFile":"HSSE\\Check\\ViolationPersonService.cs"},{"SourceFile":"HSSE\\CostGoods\\CostManageItemService.cs"},{"SourceFile":"HSSE\\CostGoods\\CostManageService.cs"},{"SourceFile":"HSSE\\CostGoods\\CostSmallDetailItemService.cs"},{"SourceFile":"HSSE\\CostGoods\\CostSmallDetailService.cs"},{"SourceFile":"HSSE\\CostGoods\\GoodsManageService.cs"},{"SourceFile":"HSSE\\EduTrain\\AccidentCaseItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\AccidentCaseService.cs"},{"SourceFile":"HSSE\\EduTrain\\CompanyTrainingItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\CompanyTrainingService.cs"},{"SourceFile":"HSSE\\EduTrain\\EduTrain_TrainRecordDetailService.cs"},{"SourceFile":"HSSE\\EduTrain\\EduTrain_TrainRecordService.cs"},{"SourceFile":"HSSE\\EduTrain\\EduTrain_TrainTestService.cs"},{"SourceFile":"HSSE\\EduTrain\\TestPlanService.cs"},{"SourceFile":"HSSE\\EduTrain\\TestRecordItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\TestRecordService.cs"},{"SourceFile":"HSSE\\EduTrain\\TestTrainingItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\TestTrainingService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainingItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainingPlanItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainingPlanService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainingService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainingTaskService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainTestDBItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainTestDBService.cs"},{"SourceFile":"HSSE\\Emergency\\DrillRecordListService.cs"},{"SourceFile":"HSSE\\Emergency\\EmergencyListService.cs"},{"SourceFile":"HSSE\\Emergency\\EmergencySupplyService.cs"},{"SourceFile":"HSSE\\Emergency\\EmergencyTeamAndTrainService.cs"},{"SourceFile":"HSSE\\Environmental\\EIAReportService.cs"},{"SourceFile":"HSSE\\Environmental\\EnvironmentalEmergencyPlanService.cs"},{"SourceFile":"HSSE\\Environmental\\EnvironmentalMonitoringService.cs"},{"SourceFile":"HSSE\\Environmental\\UnexpectedEnvironmentalService.cs"},{"SourceFile":"HSSE\\FinalFileManage\\FinalFileListService.cs"},{"SourceFile":"HSSE\\FinalFileManage\\HSEFinalFileListService.cs"},{"SourceFile":"HSSE\\FinalFileManage\\OtherDocumentListService.cs"},{"SourceFile":"HSSE\\FinalFileManage\\OwnerFinalFileService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_EnvironmentalRiskItemService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_EnvironmentalRiskListService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_HazardListService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_HazardSelectedItemService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_OtherHazardService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_PatrolPlanService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_RoutingInspectionService.cs"},{"SourceFile":"HSSE\\Hazard\\RiskEvaluationRecordService.cs"},{"SourceFile":"HSSE\\HiddenInspection\\HSSE_Hazard_HazardRegisterService.cs"},{"SourceFile":"HSSE\\HSSESystem\\HSSEMainDutyService.cs"},{"SourceFile":"HSSE\\HSSESystem\\ServerSafetyInstitutionService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentInItemService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentInService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentOutItemService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentOutService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentQualityInItemService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentQualityInService.cs"},{"SourceFile":"HSSE\\InApproveManager\\GeneralEquipmentInItemService.cs"},{"SourceFile":"HSSE\\InApproveManager\\GeneralEquipmentInService.cs"},{"SourceFile":"HSSE\\InApproveManager\\GeneralEquipmentOutItemService.cs"},{"SourceFile":"HSSE\\InApproveManager\\GeneralEquipmentOutService.cs"},{"SourceFile":"HSSE\\InformationProject\\ConstructionStandardIdentifyService.cs"},{"SourceFile":"HSSE\\InformationProject\\ConstructionStandardSelectedItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\FileCabinetAItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\FileCabinetAService.cs"},{"SourceFile":"HSSE\\InformationProject\\LawRegulationIdentifyService.cs"},{"SourceFile":"HSSE\\InformationProject\\LawRegulationSelectedItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectAccidentCauseReportItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectAccidentCauseReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectDrillConductedQuarterlyReportItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectDrillConductedQuarterlyReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectDrillPlanHalfYearReportItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectDrillPlanHalfYearReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectEPSummaryReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectFolderItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectFolderService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectMillionsMonthlyReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectSafetyQuarterlyReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectWorkSummaryReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\PromotionalActivitiesService.cs"},{"SourceFile":"HSSE\\Law\\HSSEStandardsListService.cs"},{"SourceFile":"HSSE\\Law\\ManageRuleService.cs"},{"SourceFile":"HSSE\\Law\\RulesRegulationsService.cs"},{"SourceFile":"HSSE\\License\\EquipmentSafetyListService.cs"},{"SourceFile":"HSSE\\License\\HSETechnicalService.cs"},{"SourceFile":"HSSE\\License\\LicenseManagerService.cs"},{"SourceFile":"HSSE\\License\\LicensePublicService.cs"},{"SourceFile":"HSSE\\License\\SecurityLicenseService.cs"},{"SourceFile":"HSSE\\Manager\\AccidentDetailSortBService.cs"},{"SourceFile":"HSSE\\Manager\\CompletionReportService.cs"},{"SourceFile":"HSSE\\Manager\\HSSELogMonthService.cs"},{"SourceFile":"HSSE\\Manager\\HSSELogService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\AccidentDesciptionCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\AccidentDesciptionItemCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\AccidentSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\ActivitiesCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\ActivityDesCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\CheckCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\CheckDetailSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\CheckSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\ComplianceObligationsCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\CostInvestmentPlanCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\DrillSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\EmergencyExercisesCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\EmergencyPlanCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\EmergencySortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\FileManageCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\FiveExpenseCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\HazardCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\HazardSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\HseCostCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\IncentiveSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\InjuryAccidentCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\ManageDocPlanCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\MeetingCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\MeetingSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\MonthReportCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\NoInjuryAccidentCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\OtherActiveSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\OtherManagementCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\OtherWorkCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\OtherWorkPlanCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\PerformanceIndicatorCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\PersonSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\PlanCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\PromotionalActiviteSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\ReviewRecordCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\RewardAndPunishSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\SubExpenseCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\TrainActivitySortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\TrainCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\TrainSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonth_SeDinService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerWeekService.cs"},{"SourceFile":"HSSE\\Manager\\MonthReportBService.cs"},{"SourceFile":"HSSE\\Manager\\MonthReportDService.cs"},{"SourceFile":"HSSE\\Manager\\MonthReportService.cs"},{"SourceFile":"HSSE\\Manager\\ReportRemindService.cs"},{"SourceFile":"HSSE\\Manager\\SafetyDataDService.cs"},{"SourceFile":"HSSE\\Manager\\SubManagerMonthService.cs"},{"SourceFile":"HSSE\\Manager\\SubManagerWeekService.cs"},{"SourceFile":"HSSE\\Meeting\\AttendMeetingService.cs"},{"SourceFile":"HSSE\\Meeting\\ClassMeetingService.cs"},{"SourceFile":"HSSE\\Meeting\\MonthMeetingService.cs"},{"SourceFile":"HSSE\\Meeting\\SafetyLeaderGroupMeetingService.cs"},{"SourceFile":"HSSE\\Meeting\\SpecialMeetingService.cs"},{"SourceFile":"HSSE\\Meeting\\WeekMeetingService.cs"},{"SourceFile":"HSSE\\CostGoods\\ExpenseDetailService.cs"},{"SourceFile":"HSSE\\CostGoods\\ExpenseService.cs"},{"SourceFile":"HSSE\\OccupationHealth\\HazardDetectionService.cs"},{"SourceFile":"HSSE\\OccupationHealth\\OccupationalDiseaseAccidentService.cs"},{"SourceFile":"HSSE\\OccupationHealth\\PhysicalExaminationService.cs"},{"SourceFile":"HSSE\\Perfomance\\PerfomanceRecordService.cs"},{"SourceFile":"HSSE\\Perfomance\\PersonPerfomanceService.cs"},{"SourceFile":"HSSE\\QualityAudit\\EquipmentPersonQualityService.cs"},{"SourceFile":"HSSE\\QualityAudit\\EquipmentQualityAuditDetailService.cs"},{"SourceFile":"HSSE\\QualityAudit\\EquipmentQualityService.cs"},{"SourceFile":"HSSE\\QualityAudit\\GeneralEquipmentQualityService.cs"},{"SourceFile":"HSSE\\QualityAudit\\InUnitService.cs"},{"SourceFile":"HSSE\\QualityAudit\\ProjectRecordService.cs"},{"SourceFile":"HSSE\\QualityAudit\\SafePersonQualityService.cs"},{"SourceFile":"HSSE\\QualityAudit\\SafetyDataItemService.cs"},{"SourceFile":"HSSE\\QualityAudit\\SubUnitQualityAuditDetailService.cs"},{"SourceFile":"HSSE\\QualityAudit\\SubUnitQualityService.cs"},{"SourceFile":"HSSE\\Resources\\SignManageService.cs"},{"SourceFile":"HSSE\\SafetyData\\SafetyDataPlanService.cs"},{"SourceFile":"HSSE\\SafetyData\\SafetyDataService.cs"},{"SourceFile":"HSSE\\SecuritySystem\\SafetyOrganizationService.cs"},{"SourceFile":"HSSE\\Law\\LawRegulationListService.cs"},{"SourceFile":"HSSE\\SitePerson\\PersonInOutService.cs"},{"SourceFile":"HSSE\\QualityAudit\\PersonQualityService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_CheckingService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_DayReportDetailService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_DayReportService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_DayReportUnitDetailService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_MonthReportDetailService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_MonthReportService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_MonthReportUnitDetailService.cs"},{"SourceFile":"HSSE\\Solution\\ConstructSolutionService.cs"},{"SourceFile":"HSSE\\Solution\\ExpertArgumentService.cs"},{"SourceFile":"HSSE\\Solution\\LargerHazardService.cs"},{"SourceFile":"HSSE\\Solution\\SolutionTemplateService.cs"},{"SourceFile":"HSSE\\Technique\\EmergencyService.cs"},{"SourceFile":"HSSE\\Technique\\HazardListService.cs"},{"SourceFile":"HSSE\\Technique\\HazardListTypeService.cs"},{"SourceFile":"HSSE\\Technique\\EnvironmentalService.cs"},{"SourceFile":"HSSE\\Technique\\RectifyItemService.cs"},{"SourceFile":"HSSE\\Technique\\RectifyService.cs"},{"SourceFile":"HSSE\\Technique\\SpecialSchemeService.cs"},{"SourceFile":"HSSE\\Technique\\Technique_CheckItemDetailService.cs"},{"SourceFile":"HSSE\\Technique\\Technique_CheckItemSetService.cs"},{"SourceFile":"JDGL\\Check\\ElectricalCompletionService.cs"},{"SourceFile":"JDGL\\Check\\EquipmentCompletionService.cs"},{"SourceFile":"JDGL\\Check\\LowTankCompletionService.cs"},{"SourceFile":"JDGL\\Check\\MeterCompletionService.cs"},{"SourceFile":"JDGL\\Check\\MonthPlanService.cs"},{"SourceFile":"JDGL\\Check\\PipelineCompletionService.cs"},{"SourceFile":"JDGL\\Check\\ProgressCompletionService.cs"},{"SourceFile":"JDGL\\Check\\QuantityCompletionService.cs"},{"SourceFile":"JDGL\\Check\\QuantityListService.cs"},{"SourceFile":"JDGL\\Check\\SteelStructureCompletionService.cs"},{"SourceFile":"JDGL\\Check\\UndergroundPipeCompletionService.cs"},{"SourceFile":"JDGL\\WBSCompleteAndReal\\WBSReportService.cs"},{"SourceFile":"JDGL\\WBS\\CnProfessionInitService.cs"},{"SourceFile":"JDGL\\WBS\\CnProfessionService.cs"},{"SourceFile":"JDGL\\WBS\\CostControlDetailHistoryService.cs"},{"SourceFile":"JDGL\\WBS\\CostControlDetailService.cs"},{"SourceFile":"JDGL\\WBS\\CostControlInitService.cs"},{"SourceFile":"JDGL\\WBS\\CostControlParentDetailService.cs"},{"SourceFile":"JDGL\\WBS\\CostControlService.cs"},{"SourceFile":"JDGL\\WBS\\EquipmentMaterialBigTypeService.cs"},{"SourceFile":"JDGL\\WBS\\EquipmentMaterialTypeService.cs"},{"SourceFile":"JDGL\\WBS\\MilePostService.cs"},{"SourceFile":"JDGL\\WBS\\UnitProjectInitService.cs"},{"SourceFile":"JDGL\\WBS\\UnitProjectService.cs"},{"SourceFile":"JDGL\\WBS\\WbsDetailHistoryService.cs"},{"SourceFile":"JDGL\\WBS\\WbsDetailService.cs"},{"SourceFile":"JDGL\\WBS\\WBSRectificationMeasureSetService.cs"},{"SourceFile":"JDGL\\WBS\\WbsSetInitService.cs"},{"SourceFile":"JDGL\\WBS\\WbsSetMatchCostControlInitService.cs"},{"SourceFile":"JDGL\\WBS\\WbsSetMatchCostControlService.cs"},{"SourceFile":"JDGL\\WBS\\WbsSetService.cs"},{"SourceFile":"JDGL\\WBS\\WorkloadStatisticsService.cs"},{"SourceFile":"Notice\\NoticeService.cs"},{"SourceFile":"obj\\Debug\\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs"},{"SourceFile":"obj\\Debug\\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs"},{"SourceFile":"obj\\Debug\\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs"},{"SourceFile":"obj\\Release\\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs"},{"SourceFile":"obj\\Release\\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs"},{"SourceFile":"obj\\Release\\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs"},{"SourceFile":"OfficeCheck\\Check\\CheckNoticeService.cs"},{"SourceFile":"OfficeCheck\\Check\\CheckReportService.cs"},{"SourceFile":"OfficeCheck\\Check\\CheckTable1Service.cs"},{"SourceFile":"OfficeCheck\\Check\\CheckTeamService.cs"},{"SourceFile":"OfficeCheck\\Check\\ProjectSupervision_Check1Service.cs"},{"SourceFile":"OfficeCheck\\Check\\ProjectSupervision_RectifyItemService.cs"},{"SourceFile":"OfficeCheck\\Check\\ProjectSupervision_RectifyService.cs"},{"SourceFile":"OfficeCheck\\ProjectEvaluation\\ProjectEvaluationService.cs"},{"SourceFile":"OpenService\\FileInsertService.cs"},{"SourceFile":"OpenService\\FileStructService.cs"},{"SourceFile":"OpenService\\MonitorService.cs"},{"SourceFile":"DynamicTHeaderHepler.cs"},{"SourceFile":"OpenService\\GetDataService.cs"},{"SourceFile":"Opinion\\OpinionCollectionApproveService.cs"},{"SourceFile":"Opinion\\OpinionCollectionService.cs"},{"SourceFile":"Party\\BasicInformationDetailService.cs"},{"SourceFile":"Party\\BasicInformationService.cs"},{"SourceFile":"Party\\CommentPartyerService.cs"},{"SourceFile":"Party\\DoingThingsForMassesService.cs"},{"SourceFile":"Party\\EmployeeConversationRecordService.cs"},{"SourceFile":"Party\\FocusLearnService.cs"},{"SourceFile":"Party\\LastWorkSummaryService.cs"},{"SourceFile":"Party\\NewsPropagandaWorkService.cs"},{"SourceFile":"Party\\OrganizingLifeService.cs"},{"SourceFile":"Party\\PartyCommitteeService.cs"},{"SourceFile":"Party\\PartyCongressService.cs"},{"SourceFile":"Party\\PartyerService.cs"},{"SourceFile":"Party\\PartyHistoryStudyService.cs"},{"SourceFile":"Party\\PartyLectureService.cs"},{"SourceFile":"Party\\PartyMeetingService.cs"},{"SourceFile":"Party\\PartyMoneyUseService.cs"},{"SourceFile":"Party\\PartyPioneerDemonstrationService.cs"},{"SourceFile":"Party\\ThemePartyDayService.cs"},{"SourceFile":"Party\\TwoOneGoodSelectionService.cs"},{"SourceFile":"Party\\WorkPlanService.cs"},{"SourceFile":"Person\\Person_BusinessTripService.cs"},{"SourceFile":"Person\\Person_MeetingService.cs"},{"SourceFile":"Person\\PersonTotalService.cs"},{"SourceFile":"Person\\Person_DutyService.cs"},{"SourceFile":"Person\\Person_DutyTemplateService.cs"},{"SourceFile":"Person\\Person_PersonPlanService.cs"},{"SourceFile":"Person\\Person_QuarterCheckApproveService.cs"},{"SourceFile":"Person\\Person_QuarterCheckItemService.cs"},{"SourceFile":"Person\\Person_QuarterCheckService.cs"},{"SourceFile":"Person\\Person_ShuntApproveService.cs"},{"SourceFile":"Person\\Person_ShuntDetailService.cs"},{"SourceFile":"Person\\Person_ShuntService.cs"},{"SourceFile":"Person\\Person_TestRunMonthSummaryService.cs"},{"SourceFile":"Person\\Person_TestRunPerformanceService.cs"},{"SourceFile":"Person\\Person_TrainingPlanService.cs"},{"SourceFile":"ProjectData\\MainItemService.cs"},{"SourceFile":"ProjectData\\ProjectData_CodeTemplateRuleService.cs"},{"SourceFile":"ProjectData\\ProjectSateService.cs"},{"SourceFile":"ProjectData\\ProjectService.cs"},{"SourceFile":"ProjectData\\ProjectSetMapService.cs"},{"SourceFile":"ProjectData\\ProjectUnitService.cs"},{"SourceFile":"ProjectData\\ProjectUserService.cs"},{"SourceFile":"Common\\ChartControlService.cs"},{"SourceFile":"Common\\ConstValue.cs"},{"SourceFile":"Common\\UploadAttachmentService.cs"},{"SourceFile":"Common\\CreateMenuXML.cs"},{"SourceFile":"ProjectData\\Project_InstallationService.cs"},{"SourceFile":"ProjectData\\Project_SysSetService.cs"},{"SourceFile":"ProjectData\\TeamGroupService.cs"},{"SourceFile":"ProjectData\\UnitWorkService.cs"},{"SourceFile":"HSSE\\SitePerson\\PersonService.cs"},{"SourceFile":"PZHGL\\GJSX\\GJSXItemService.cs"},{"SourceFile":"PZHGL\\GJSX\\GJSXProcessService.cs"},{"SourceFile":"PZHGL\\GJSX\\GJSXService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ConstructionLogService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ConstructionPlanApproveService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ConstructionPlanService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ConstructionReportApproveService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ConstructionReportService.cs"},{"SourceFile":"PZHGL\\InformationProject\\PictureService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ReceiveFileManagerService.cs"},{"SourceFile":"PZHGL\\InformationProject\\WorkHandoverApproveService.cs"},{"SourceFile":"PZHGL\\InformationProject\\WorkHandoverDetailService.cs"},{"SourceFile":"PZHGL\\InformationProject\\WorkHandoverService.cs"},{"SourceFile":"PZHGL\\ProjectData\\ProjectMapService.cs"},{"SourceFile":"PZHGL\\ProjectData\\ProjectPageDataService.cs"},{"SourceFile":"Service References\\CNCECHSSEService\\Reference.cs"},{"SourceFile":"Service References\\MCSService\\Reference.cs"},{"SourceFile":"SHIYE\\InformationProject_SafetyBriefingService.cs"},{"SourceFile":"SortConditionHelper.cs"},{"SourceFile":"SQLHelper.cs"},{"SourceFile":"Common\\Const.cs"},{"SourceFile":"ErrLogInfo.cs"},{"SourceFile":"FriendlyException.cs"},{"SourceFile":"Common\\Funs.cs"},{"SourceFile":"MethodRefelect.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"SessionName.cs"},{"SourceFile":"SoftRegeditService.cs"},{"SourceFile":"LoginService.cs"},{"SourceFile":"SysManage\\ButtonPowerService.cs"},{"SourceFile":"SysManage\\ButtonToMenuService.cs"},{"SourceFile":"SysManage\\DepartService.cs"},{"SourceFile":"SysManage\\LogService.cs"},{"SourceFile":"SysManage\\MenuFlowOperateService.cs"},{"SourceFile":"SysManage\\RoleItemService.cs"},{"SourceFile":"SysManage\\RolePowerService.cs"},{"SourceFile":"SysManage\\RoleService.cs"},{"SourceFile":"SysManage\\SysConstSetService.cs"},{"SourceFile":"SysManage\\SysHttplogService.cs"},{"SourceFile":"SysManage\\SysMenuService.cs"},{"SourceFile":"SysManage\\UnitService.cs"},{"SourceFile":"SysManage\\UserService.cs"},{"SourceFile":"PersonManage\\Test\\ServerTestPlanService.cs"},{"SourceFile":"PersonManage\\Test\\ServerTestPlanTrainingService.cs"},{"SourceFile":"PersonManage\\Test\\ServerTestRecordService.cs"},{"SourceFile":"TaskScheduling\\InterFaceService\\DataForJTApiService.cs"},{"SourceFile":"TaskScheduling\\InterFaceService\\InterFaceLogService .cs"},{"SourceFile":"TaskScheduling\\InterFaceService\\InterFaceSetService .cs"},{"SourceFile":"TaskScheduling\\InterFaceService\\InterFaceTaskService .cs"},{"SourceFile":"TaskScheduling\\TimerTask\\CustomJobListener.cs"},{"SourceFile":"TaskScheduling\\TimerTask\\TaskJob.cs"},{"SourceFile":"TaskScheduling\\TimerTask\\TimerTaskBase.cs"},{"SourceFile":"TestRun\\BeforeTestRun\\BeforeTestRunService.cs"},{"SourceFile":"TestRun\\DriverGoods\\GoodsBuyItemService.cs"},{"SourceFile":"TestRun\\DriverGoods\\GoodsBuyService.cs"},{"SourceFile":"TestRun\\DriverGoods\\GoodsModelService.cs"},{"SourceFile":"TestRun\\DriverGoods\\GoodsPlanService.cs"},{"SourceFile":"TestRun\\DriverGoods\\MaterialTraceService.cs"},{"SourceFile":"TestRun\\DriverHse\\HseHazardService.cs"},{"SourceFile":"TestRun\\DriverHse\\HseLicenseService.cs"},{"SourceFile":"TestRun\\DriverHse\\HseMeasureService.cs"},{"SourceFile":"TestRun\\DriverHse\\RoadMapService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDriverConStudyService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDriverDataService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDriverDataTypeService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDriverPersonPlanService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDriverPlanService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDutyItemService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDutyService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareSchemePlanItemService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareSchemePlanService.cs"},{"SourceFile":"TestRun\\DriverProgressService.cs"},{"SourceFile":"TestRun\\DriverReport\\DriverReportService.cs"},{"SourceFile":"TestRun\\DriverReport\\TestRun_MonthReportItem2Service.cs"},{"SourceFile":"TestRun\\DriverReport\\TestRun_MonthReportItemService.cs"},{"SourceFile":"TestRun\\DriverReport\\TestRun_MonthReportService.cs"},{"SourceFile":"TestRun\\DriverRun\\DriverRunApproveService.cs"},{"SourceFile":"TestRun\\DriverRun\\DriverRunContactService.cs"},{"SourceFile":"TestRun\\DriverRun\\DriverRunPlanService.cs"},{"SourceFile":"TestRun\\DriverRun\\DriverRunService.cs"},{"SourceFile":"TestRun\\DriverSchemeService.cs"},{"SourceFile":"TestRun\\DriverSub\\DriverSubContactService.cs"},{"SourceFile":"TestRun\\DriverSub\\DriverSubContractorsService.cs"},{"SourceFile":"TestRun\\DriverSub\\DriverSubPlanService.cs"},{"SourceFile":"TestRun\\DriverSub\\DriverSubService.cs"},{"SourceFile":"TestRun\\DriverSummary\\DriverSummaryService.cs"},{"SourceFile":"TestRun\\FeedingTestRunService.cs"},{"SourceFile":"TestRun\\Meeting\\MeetingItemService.cs"},{"SourceFile":"TestRun\\Meeting\\MeetingMinutesService.cs"},{"SourceFile":"TestRun\\Meeting\\MeetingService.cs"},{"SourceFile":"TestRun\\PersonTrain\\DriverPrepareTrainPlanService.cs"},{"SourceFile":"TestRun\\PersonTrain\\PersonTrainPlanService.cs"},{"SourceFile":"TestRun\\PersonTrain\\TrainContactService.cs"},{"SourceFile":"TestRun\\PersonTrain\\TrainContentService.cs"},{"SourceFile":"TestRun\\PersonTrain\\TrainContractService.cs"},{"SourceFile":"TestRun\\PersonTrain\\TrainRecordsService.cs"},{"SourceFile":"TestRun\\ProduceProperty\\AnalySampService.cs"},{"SourceFile":"TestRun\\ProduceProperty\\PropertyRunOthersCheckService.cs"},{"SourceFile":"TestRun\\ProduceProperty\\PropertyRunPumpCheckService.cs"},{"SourceFile":"TestRun\\ProduceProperty\\PropertyRunRecordService.cs"},{"SourceFile":"TestRun\\ProduceProperty\\PropertyRunReportService.cs"},{"SourceFile":"TestRun\\ProduceTestRun\\TestRunOthersCheckService.cs"},{"SourceFile":"TestRun\\ProduceTestRun\\TestRunPumpCheckService.cs"},{"SourceFile":"TestRun\\ProduceTestRun\\TestRunRecordService.cs"},{"SourceFile":"TestRun\\ProduceTestRun\\TestRunReportService.cs"},{"SourceFile":"TestRun\\TestRunConstructSolutionApproveService.cs"},{"SourceFile":"TestRun\\TestRunConstructSolutionService.cs"},{"SourceFile":"TestRun\\TestRunService.cs"},{"SourceFile":"BoSheng\\BOSHENGMonitorService.cs"},{"SourceFile":"Transfer\\PipingService.cs"},{"SourceFile":"Transfer\\ProjectSetupService.cs"},{"SourceFile":"Transfer\\RotatingEquipmentService.cs"},{"SourceFile":"Transfer\\StaticEquipmentService.cs"},{"SourceFile":"WebService\\MCSWebService.cs"},{"SourceFile":"WebService\\CNCECHSSEWebService.cs"},{"SourceFile":"WebService\\CNCECHSSEMonitorService.cs"},{"SourceFile":"ZHGL\\DataStatistics\\DataStatisticsService.cs"},{"SourceFile":"ZHGL\\DataSync\\CQMSDataService.cs"},{"SourceFile":"ZHGL\\DataSync\\Hazard_RealTimeDeviceService.cs"},{"SourceFile":"ZHGL\\DataSync\\HJGLData_DefectService.cs"},{"SourceFile":"ZHGL\\DataSync\\HJGLData_HJGLService.cs"},{"SourceFile":"ZHGL\\DataSync\\HSSEData_HiddenDangerDetailService.cs"},{"SourceFile":"ZHGL\\DataSync\\HSSEData_HSSEService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_CQMSDataService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_HJGLData_DefectService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_HJGLData_HJGLService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_HSSEData_HiddenDangerDetailService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_HSSEData_HSSEService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_SYHSEData_SYHSEService.cs"},{"SourceFile":"ZHGL\\DataSync\\ServerService.cs"},{"SourceFile":"ZHGL\\DataSync\\SYHSEData_DataService.cs"},{"SourceFile":"ZHGL\\DataSync\\SYHSEData_HiddenDangerCheckService.cs"},{"SourceFile":"ZHGL\\DataSync\\SYHSEData_RiskControlService.cs"},{"SourceFile":"ZHGL\\DataSync\\SYHSEData_SYHSEService.cs"},{"SourceFile":"ZHGL\\Emergency\\UnitDrillRecordListService.cs"},{"SourceFile":"ZHGL\\Emergency\\UnitEmergencyListService.cs"},{"SourceFile":"ZHGL\\Environmental\\ArchitectureReportItemService.cs"},{"SourceFile":"ZHGL\\Environmental\\ArchitectureReportService.cs"},{"SourceFile":"ZHGL\\Environmental\\ChemicalReportItemService.cs"},{"SourceFile":"ZHGL\\Environmental\\ChemicalReportService.cs"},{"SourceFile":"ZHGL\\Environmental\\EnergyreportItemService .cs"},{"SourceFile":"ZHGL\\Environmental\\EnergyReportService.cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectArchitectureReportItemService.cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectArchitectureReportService.cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectChemicalReportItemService.cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectChemicalReportService.cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectEnergyreportItemService .cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectEnergyReportService.cs"},{"SourceFile":"ZHGL\\HSSESystem\\HSSEManageItemService.cs"},{"SourceFile":"ZHGL\\HSSESystem\\HSSEManageService.cs"},{"SourceFile":"ZHGL\\HSSESystem\\HSSEOrganizeService.cs"},{"SourceFile":"ZHGL\\Information\\AccidentCauseReportItemService.cs"},{"SourceFile":"ZHGL\\Information\\AccidentCauseReportService.cs"},{"SourceFile":"ZHGL\\Information\\EPSummaryReportService.cs"},{"SourceFile":"ZHGL\\Information\\QualityWorkSummaryReportService.cs"},{"SourceFile":"ZHGL\\Information\\QuarterlyProjectQualityService.cs"},{"SourceFile":"ZHGL\\Information\\SafetyBriefingService.cs"},{"SourceFile":"ZHGL\\Information\\UrgeReportService.cs"},{"SourceFile":"ZHGL\\Information\\AnalyseResourceService.cs"},{"SourceFile":"ZHGL\\Information\\DrillConductedQuarterlyReportItemService.cs"},{"SourceFile":"ZHGL\\Information\\DrillConductedQuarterlyReportService.cs"},{"SourceFile":"ZHGL\\Information\\DrillPlanHalfYearReportItemService.cs"},{"SourceFile":"ZHGL\\Information\\DrillPlanHalfYearReportService.cs"},{"SourceFile":"ZHGL\\Information\\MillionsMonthlyReportItemService.cs"},{"SourceFile":"ZHGL\\Information\\MillionsMonthlyReportService.cs"},{"SourceFile":"ZHGL\\Information\\SafetyQuarterlyReportService.cs"},{"SourceFile":"ZHGL\\Information\\WorkSummaryReportService.cs"},{"SourceFile":"ZHGL\\InspectionSummary\\InspectionSummaryService.cs"},{"SourceFile":"ZHGL\\Meeting\\CompanySafetyMeetingService.cs"},{"SourceFile":"ZHGL\\Meeting\\CompanySpecialMeetingService.cs"},{"SourceFile":"ZHGL\\Person\\CompanyBranchPersonService.cs"},{"SourceFile":"ZHGL\\ProjectAccident\\AccidentAnalysisItemService.cs"},{"SourceFile":"ZHGL\\ProjectAccident\\AccidentAnalysisService.cs"},{"SourceFile":"ZHGL\\ProjectAccident\\AccidentStatisticsService.cs"},{"SourceFile":"ZHGL\\ProjectAccident\\ProjectAccidentReportService.cs"},{"SourceFile":"ZHGL\\RealName\\BasicDataService.cs"},{"SourceFile":"ZHGL\\RealName\\RealName_ProjectService.cs"},{"SourceFile":"ZHGL\\RealName\\OnPostService.cs"},{"SourceFile":"ZHGL\\RealName\\LeavePostService.cs"},{"SourceFile":"ZHGL\\RealName\\CityService.cs"},{"SourceFile":"ZHGL\\RealName\\CountryService.cs"},{"SourceFile":"ZHGL\\RealName\\RealNameMonitorService.cs"},{"SourceFile":"ZHGL\\RealName\\SynchroSetService.cs"},{"SourceFile":"ZHGL\\ServerCheck\\CheckRectifyItemService.cs"},{"SourceFile":"ZHGL\\ServerCheck\\CheckRectifyService.cs"},{"SourceFile":"ZHGL\\ServerCheck\\SubUnitReportItemService.cs"},{"SourceFile":"ZHGL\\ServerCheck\\SubUnitReportService.cs"},{"SourceFile":"ZHGL\\ServerCheck\\UpCheckReportService.cs"},{"SourceFile":"ZHGL\\Supervise\\SubUnitCheckRectifyItemService.cs"},{"SourceFile":"ZHGL\\Supervise\\SubUnitCheckRectifyService.cs"},{"SourceFile":"ZHGL\\Supervise\\SuperviseCheckRectifyItemService.cs"},{"SourceFile":"ZHGL\\Supervise\\SuperviseCheckRectifyService.cs"},{"SourceFile":"ZHGL\\Supervise\\SuperviseCheckReportItemService.cs"},{"SourceFile":"ZHGL\\Supervise\\SuperviseCheckReportService.cs"},{"SourceFile":"ZHGL\\TestRunPerformance\\TestRunMonthSummaryReportService.cs"},{"SourceFile":"ZHGL\\TestRunPerformance\\TestRunPerformanceMonthReportService.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\apache.nms.activemq\\1.8.0\\lib\\net40\\Apache.NMS.ActiveMQ.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\apache.nms\\1.8.0\\lib\\net40\\Apache.NMS.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\诺比达\\五环项目\\CNCEC_SUBQHSE_WUHUAN\\SGGL\\FineUIPro\\Reference BLL\\Aspose.Words.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\portable.bouncycastle\\1.8.9\\lib\\net40\\BouncyCastle.Crypto.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\emitmapper\\1.0.0\\lib\\EmitMapper.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\诺比达\\五环项目\\CNCEC_SUBQHSE_WUHUAN\\SGGL\\FineUIPro\\FineUIPro.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\sharpziplib\\1.3.2\\lib\\net45\\ICSharpCode.SharpZipLib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\2.1.1\\lib\\netstandard2.0\\Microsoft.Extensions.Logging.Abstractions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\诺比达\\五环项目\\CNCEC_SUBQHSE_WUHUAN\\SGGL\\BLL\\bin\\Debug\\Microsoft.QualityTools.Testing.Fakes.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\Microsoft.SQLServer.ManagedDTS\\v4.0_15.0.0.0__89845dcd8080cc91\\Microsoft.SQLServer.ManagedDTS.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\诺比达\\五环项目\\CNCEC_SUBQHSE_WUHUAN\\SGGL\\Model\\bin\\Debug\\Model.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\newtonsoft.json\\12.0.1\\lib\\net45\\Newtonsoft.Json.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\npoi\\2.5.5\\lib\\net45\\NPOI.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\npoi\\2.5.5\\lib\\net45\\NPOI.OOXML.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\npoi\\2.5.5\\lib\\net45\\NPOI.OpenXml4Net.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\npoi\\2.5.5\\lib\\net45\\NPOI.OpenXmlFormats.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\quartz\\3.5.0\\lib\\net472\\Quartz.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\restsharp\\106.15.0\\lib\\net452\\RestSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\诺比达\\五环项目\\CNCEC_SUBQHSE_WUHUAN\\SGGL\\SgManager.AI\\bin\\Debug\\SgManager.AI.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\system.buffers\\4.5.1\\ref\\net45\\System.Buffers.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\system.configuration.configurationmanager\\6.0.0\\lib\\net461\\System.Configuration.ConfigurationManager.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Configuration.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.OracleClient.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\system.diagnostics.diagnosticsource\\4.7.1\\lib\\net46\\System.Diagnostics.DiagnosticSource.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.DirectoryServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Management.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\system.memory\\4.5.4\\lib\\net461\\System.Memory.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Net.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Numerics.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\system.numerics.vectors\\4.5.0\\ref\\net46\\System.Numerics.Vectors.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\4.5.3\\ref\\net461\\System.Runtime.CompilerServices.Unsafe.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Runtime.Remoting.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Runtime.Serialization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\system.security.accesscontrol\\4.7.0\\ref\\net461\\System.Security.AccessControl.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Security.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\system.security.permissions\\4.7.0\\ref\\net461\\System.Security.Permissions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Users\\汪青\\.nuget\\packages\\system.security.principal.windows\\4.7.0\\ref\\net461\\System.Security.Principal.Windows.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.ServiceModel.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.ServiceProcess.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Transactions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Web.DataVisualization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\诺比达\\五环项目\\CNCEC_SUBQHSE_WUHUAN\\SGGL\\FineUIPro\\Reference BLL\\ThoughtWorks.QRCode.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\WindowsBase.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\诺比达\\五环项目\\CNCEC_SUBQHSE_WUHUAN\\SGGL\\BLL\\bin\\Debug\\BLL.dll","OutputItemRelativePath":"BLL.dll"},{"OutputItemFullPath":"C:\\诺比达\\五环项目\\CNCEC_SUBQHSE_WUHUAN\\SGGL\\BLL\\bin\\Debug\\BLL.pdb","OutputItemRelativePath":"BLL.pdb"}],"CopyToOutputEntries":[]} \ No newline at end of file +{"RootPath":"D:\\诺必达\\五环\\SGGL\\BLL","ProjectFileName":"BLL.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"AnBang\\AnBangService.cs"},{"SourceFile":"API\\APIBaseInfoService.cs"},{"SourceFile":"API\\APICommonService.cs"},{"SourceFile":"API\\APIDoorServerService.cs"},{"SourceFile":"API\\APIGetHttpService.cs"},{"SourceFile":"API\\APIIDCardInfoService.cs"},{"SourceFile":"API\\APIPersonService.cs"},{"SourceFile":"API\\APIProjectService.cs"},{"SourceFile":"API\\APIUnitService.cs"},{"SourceFile":"API\\APIUpLoadFileService.cs"},{"SourceFile":"API\\APIUserService.cs"},{"SourceFile":"API\\CQMS\\ApiInspectionManagementService.cs"},{"SourceFile":"API\\CQMS\\BreakdownProjectService.cs"},{"SourceFile":"API\\CQMS\\QualityAssuranceService.cs"},{"SourceFile":"API\\HJGL\\APIGetHJDataService.cs"},{"SourceFile":"API\\HJGL\\APIHotProcessHardService.cs"},{"SourceFile":"API\\HJGL\\APINDETrustService.cs"},{"SourceFile":"API\\HJGL\\APIPipeJointService.cs"},{"SourceFile":"API\\HJGL\\APIPreWeldingDailyService.cs"},{"SourceFile":"API\\HJGL\\APIReportQueryService.cs"},{"SourceFile":"API\\HJGL\\APITestPackageService.cs"},{"SourceFile":"API\\HSSE\\APIGeneralEquipmentQualityService.cs"},{"SourceFile":"API\\HSSE\\APIPageDataService.cs"},{"SourceFile":"API\\HSSE\\APIChartAnalysisService.cs"},{"SourceFile":"API\\HSSE\\APICheckSpecialService.cs"},{"SourceFile":"API\\HSSE\\APIConstructSolutionService.cs"},{"SourceFile":"API\\HSSE\\APIEmergencyService.cs"},{"SourceFile":"API\\HSSE\\APIEquipmentQualityService.cs"},{"SourceFile":"API\\HSSE\\APIHazardListService.cs"},{"SourceFile":"API\\HSSE\\APIHazardRegisterService.cs"},{"SourceFile":"API\\HSSE\\APIHSEDiaryService.cs"},{"SourceFile":"API\\HSSE\\APIIncentiveNoticeService.cs"},{"SourceFile":"API\\HSSE\\APILicenseDataService.cs"},{"SourceFile":"API\\HSSE\\APILicenseFlowOperateService.cs"},{"SourceFile":"API\\HSSE\\APILicenseItemService.cs"},{"SourceFile":"API\\HSSE\\APIMeetingService.cs"},{"SourceFile":"API\\HSSE\\APIPauseNoticeService.cs"},{"SourceFile":"API\\HSSE\\APIPersonQualityService.cs"},{"SourceFile":"API\\HSSE\\APIPunishNoticeService.cs"},{"SourceFile":"API\\HSSE\\APIReceiveFileManagerService.cs"},{"SourceFile":"API\\HSSE\\APIRectifyNoticesService.cs"},{"SourceFile":"API\\HSSE\\APIResourcesService.cs"},{"SourceFile":"API\\HSSE\\APISeDinMonthReportService.cs"},{"SourceFile":"API\\HSSE\\APIServerTestPlanService.cs"},{"SourceFile":"API\\HSSE\\APIServerTestRecordService.cs"},{"SourceFile":"API\\HSSE\\APITestPlanService.cs"},{"SourceFile":"API\\HSSE\\APITestRecordService.cs"},{"SourceFile":"API\\HSSE\\APITrainingPlanService.cs"},{"SourceFile":"API\\HSSE\\APITrainingTaskService.cs"},{"SourceFile":"API\\HSSE\\APITrainRecordService.cs"},{"SourceFile":"BaseInfo\\AccidentTypeService.cs"},{"SourceFile":"BaseInfo\\BaseFactoryService.cs"},{"SourceFile":"BaseInfo\\CertificateService.cs"},{"SourceFile":"BaseInfo\\CNProfessionalService.cs"},{"SourceFile":"BaseInfo\\CostTypeService.cs"},{"SourceFile":"BaseInfo\\DesignProfessionalService.cs"},{"SourceFile":"BaseInfo\\DocTypeService.cs"},{"SourceFile":"BaseInfo\\EmergencyTypeService.cs"},{"SourceFile":"BaseInfo\\GoodsCategoryService.cs"},{"SourceFile":"BaseInfo\\HSSEStandardListTypeService.cs"},{"SourceFile":"BaseInfo\\HSSE_Hazard_HazardRegisterTypesService.cs"},{"SourceFile":"BaseInfo\\InspectionAreaService.cs"},{"SourceFile":"BaseInfo\\LawsRegulationsTypeService.cs"},{"SourceFile":"BaseInfo\\LicenseTypeService.cs"},{"SourceFile":"BaseInfo\\ManageRuleTypeService.cs"},{"SourceFile":"BaseInfo\\PersonManageService.cs"},{"SourceFile":"BaseInfo\\PictureTypeService.cs"},{"SourceFile":"BaseInfo\\PositionService.cs"},{"SourceFile":"BaseInfo\\PostService.cs"},{"SourceFile":"BaseInfo\\PostTitleService.cs"},{"SourceFile":"BaseInfo\\PracticeCertificateService.cs"},{"SourceFile":"BaseInfo\\ProjectTypeService.cs"},{"SourceFile":"BaseInfo\\QualityQuestionTypeService.cs"},{"SourceFile":"BaseInfo\\QuestionTypeService.cs"},{"SourceFile":"BaseInfo\\RectificationMeasureService.cs"},{"SourceFile":"BaseInfo\\RiskLevelService.cs"},{"SourceFile":"BaseInfo\\RulesRegulationsTypeService.cs"},{"SourceFile":"BaseInfo\\SafetyMeasuresService.cs"},{"SourceFile":"BaseInfo\\SolutionTempleteTypeService.cs"},{"SourceFile":"BaseInfo\\SpecialEquipmentService.cs"},{"SourceFile":"BaseInfo\\SpecialSchemeTypeService.cs"},{"SourceFile":"BaseInfo\\SteelService.cs"},{"SourceFile":"BaseInfo\\TestRunLicenseTypeService.cs"},{"SourceFile":"BaseInfo\\TestRunPerformanceStandardService.cs"},{"SourceFile":"BaseInfo\\TrainLevelService.cs"},{"SourceFile":"BaseInfo\\TrainTypeService.cs"},{"SourceFile":"BaseInfo\\TransferMajorService.cs"},{"SourceFile":"BaseInfo\\UnitTypeService.cs"},{"SourceFile":"BaseInfo\\WorkPostService.cs"},{"SourceFile":"BaseInfo\\WorkStageService.cs"},{"SourceFile":"BoSheng\\BOSHENGService.cs"},{"SourceFile":"Common\\AttachFileService.cs"},{"SourceFile":"Common\\CodeRecordsService.cs"},{"SourceFile":"Common\\CommonService.cs"},{"SourceFile":"Common\\CreateQRCodeService.cs"},{"SourceFile":"Common\\IDCardValid.cs"},{"SourceFile":"Common\\NPOIExcel.cs"},{"SourceFile":"Common\\NPOIHelper.cs"},{"SourceFile":"Common\\PrinterDocService.cs"},{"SourceFile":"Common\\ProjectDataFlowSetService.cs"},{"SourceFile":"Common\\Sys_DataTempService.cs"},{"SourceFile":"Common\\UploadFileService.cs"},{"SourceFile":"Common\\UpLoadImageService.cs"},{"SourceFile":"Common\\UserShowColumnsService.cs"},{"SourceFile":"Common\\WeatherService.cs"},{"SourceFile":"Common\\WeekDayService.cs"},{"SourceFile":"CostGoods\\MeasuresPlanService.cs"},{"SourceFile":"CostGoods\\PayRegistrationService.cs"},{"SourceFile":"CostGoods\\SubPayRegistrationService.cs"},{"SourceFile":"CQMS\\Comprehensive\\ConTechnologyDisclosureService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataDistributionApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataDistributionService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataReceivingApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataReceivingDocApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataReceivingDocService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DataReceivingService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignChangeOrderApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignChangeOrderService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignDetailsApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignDetailsService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignDrawingsApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\DesignDrawingsService.cs"},{"SourceFile":"CQMS\\Comprehensive\\GeneralPlanApprovalItemService.cs"},{"SourceFile":"CQMS\\Comprehensive\\GeneralPlanApprovalService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionEquipmentApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionEquipmentService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionMachineApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionMachineService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionPersonApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionPersonService.cs"},{"SourceFile":"CQMS\\Comprehensive\\InspectionTestPlanService.cs"},{"SourceFile":"CQMS\\Comprehensive\\MajorPlanApprovalItemService.cs"},{"SourceFile":"CQMS\\Comprehensive\\MajorPlanApprovalService.cs"},{"SourceFile":"CQMS\\Comprehensive\\NCRManagementApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\NCRManagementService.cs"},{"SourceFile":"CQMS\\Comprehensive\\PersonSteelService.cs"},{"SourceFile":"CQMS\\Comprehensive\\PersonWeldMethodService.cs"},{"SourceFile":"CQMS\\Comprehensive\\PressurePipeApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\PressurePipeService.cs"},{"SourceFile":"CQMS\\Comprehensive\\QualityAccidentApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\QualityAccidentService.cs"},{"SourceFile":"CQMS\\Comprehensive\\ReviewDrawingsService.cs"},{"SourceFile":"CQMS\\Comprehensive\\SiteVisaManagementApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\SiteVisaManagementService.cs"},{"SourceFile":"CQMS\\Comprehensive\\SpecialEquipmentApproveService.cs"},{"SourceFile":"CQMS\\Comprehensive\\SpecialEquipmentService.cs"},{"SourceFile":"CQMS\\Check\\CheckControlApproveService.cs"},{"SourceFile":"CQMS\\Check\\CheckControlService.cs"},{"SourceFile":"CQMS\\Check\\CheckEquipmentApproveService.cs"},{"SourceFile":"CQMS\\Check\\CheckEquipmentService.cs"},{"SourceFile":"CQMS\\Check\\CheckMonthService.cs"},{"SourceFile":"CQMS\\Check\\DesignApproveService.cs"},{"SourceFile":"CQMS\\Check\\DesignService.cs"},{"SourceFile":"CQMS\\Check\\DrawApproveService.cs"},{"SourceFile":"CQMS\\Check\\DrawService.cs"},{"SourceFile":"CQMS\\Check\\FileCabinetService.cs"},{"SourceFile":"CQMS\\Check\\JointCheckApproveService.cs"},{"SourceFile":"CQMS\\Check\\JointCheckDetailService.cs"},{"SourceFile":"CQMS\\Check\\JointCheckService.cs"},{"SourceFile":"CQMS\\Check\\MonthSpotCheckDetailService.cs"},{"SourceFile":"CQMS\\Check\\SpecialEquipmentDetailService.cs"},{"SourceFile":"CQMS\\Check\\SpotCheckApproveService.cs"},{"SourceFile":"CQMS\\Check\\SpotCheckDetailService.cs"},{"SourceFile":"CQMS\\Check\\SpotCheckService.cs"},{"SourceFile":"CQMS\\Check\\TechnicalContactListApproveService.cs"},{"SourceFile":"CQMS\\Check\\TechnicalContactListService.cs"},{"SourceFile":"CQMS\\Comprehensive\\TrainingRecordsService.cs"},{"SourceFile":"CQMS\\DataBase\\ConstructionStandardListProjectService.cs"},{"SourceFile":"CQMS\\DataBase\\ConstructionStandardListService.cs"},{"SourceFile":"CQMS\\DataBase\\DataTypeProjectService.cs"},{"SourceFile":"CQMS\\DataBase\\DataTypeService.cs"},{"SourceFile":"CQMS\\DataBase\\FileService.cs"},{"SourceFile":"CQMS\\DataBase\\InspectionLotService.cs"},{"SourceFile":"CQMS\\DataBase\\PhotoService.cs"},{"SourceFile":"CQMS\\DataBase\\StartWorkReportService.cs"},{"SourceFile":"CQMS\\Foreign\\ControlPointCheckService.cs"},{"SourceFile":"CQMS\\Foreign\\ITPListProjectService.cs"},{"SourceFile":"CQMS\\Foreign\\ITPListService.cs"},{"SourceFile":"CQMS\\ManageReport\\ComprehensiveService.cs"},{"SourceFile":"CQMS\\ManageReport\\ConstructionProblemsService.cs"},{"SourceFile":"CQMS\\ManageReport\\NextQualityControlService.cs"},{"SourceFile":"CQMS\\ManageReport\\ProjectQualityWorkSummaryReportService.cs"},{"SourceFile":"CQMS\\ManageReport\\ProjectQuarterlyProjectQualityService.cs"},{"SourceFile":"CQMS\\ManageReport\\ReportNew\\ConstructionPlanService.cs"},{"SourceFile":"CQMS\\ManageReport\\ReportNew\\CqmsTargetService.cs"},{"SourceFile":"CQMS\\ManageReport\\ReportNew\\Report_CQMS_MonthReportItemService.cs"},{"SourceFile":"CQMS\\ManageReport\\ReportNew\\TextBoxContentService.cs"},{"SourceFile":"CQMS\\ManageReport\\ReportNew\\WeekAndMonthReportNewService.cs"},{"SourceFile":"CQMS\\ManageReport\\RowMaterialProblemService.cs"},{"SourceFile":"CQMS\\ManageReport\\ThisWeekOrMonthContentService.cs"},{"SourceFile":"CQMS\\ManageReport\\WeekAndMonthReportService.cs"},{"SourceFile":"CQMS\\Performance\\PerformanceService.cs"},{"SourceFile":"CQMS\\ProcessControl\\HotProessManageService.cs"},{"SourceFile":"CQMS\\ProcessControl\\InspectionManagementDetailService.cs"},{"SourceFile":"CQMS\\ProcessControl\\InspectionManagementService.cs"},{"SourceFile":"CQMS\\ProcessControl\\NondestructiveTestNewService.cs"},{"SourceFile":"CQMS\\ProcessControl\\NondestructiveTestService.cs"},{"SourceFile":"CQMS\\ProcessControl\\TestPackageManagementService.cs"},{"SourceFile":"CQMS\\QualityPlanning\\ConExperienceSummaryService.cs"},{"SourceFile":"CQMS\\QualityPlanning\\ProjectQualityPlanService.cs"},{"SourceFile":"CQMS\\QualityPlanning\\QualityManagementSysService.cs"},{"SourceFile":"CQMS\\Solution\\CQMSConstructSolutionApproveService.cs"},{"SourceFile":"CQMS\\Solution\\CQMSConstructSolutionService.cs"},{"SourceFile":"CQMS\\Unqualified\\WorkContactApproveService.cs"},{"SourceFile":"CQMS\\Unqualified\\WorkContactService.cs"},{"SourceFile":"CQMS\\WBS\\BreakdownProjectService.cs"},{"SourceFile":"CQMS\\WBS\\BreakdownService.cs"},{"SourceFile":"CQMS\\WBS\\ControlItemAndCycleService.cs"},{"SourceFile":"CQMS\\WBS\\ControlItemInitService.cs"},{"SourceFile":"CQMS\\WBS\\ControlItemProjectService.cs"},{"SourceFile":"CQMS\\WBS\\DivisionDivideService.cs"},{"SourceFile":"CQMS\\WBS\\DivisionProjectService.cs"},{"SourceFile":"CQMS\\WBS\\DivisionService.cs"},{"SourceFile":"CQMS\\WBS\\ForeignBreakdownProjectService.cs"},{"SourceFile":"CQMS\\WBS\\ForeignBreakdownService.cs"},{"SourceFile":"CQMS\\WBS\\ForeignCNProfessionalService.cs"},{"SourceFile":"CQMS\\WBS\\SubProjectsService.cs"},{"SourceFile":"CQMS\\WBS\\WBSsearchService.cs"},{"SourceFile":"CQMS\\WBS\\WorkPackageInitService.cs"},{"SourceFile":"CQMS\\WBS\\WorkPackageProjectService.cs"},{"SourceFile":"CQMS\\WBS\\WorkPackageService.cs"},{"SourceFile":"DigData\\HSEDataCollectService.cs"},{"SourceFile":"DocManage\\DocManageApproveService.cs"},{"SourceFile":"DocManage\\DocManageService.cs"},{"SourceFile":"DoorServer\\InOutService.cs"},{"SourceFile":"DoorServer\\DoorServerService.cs"},{"SourceFile":"DropListService.cs"},{"SourceFile":"GlobalSuppressions.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_ComponentsService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_ConsumablesService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_DefectService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_DetectionRateService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_DetectionTypeService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_DNCompareService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_GrooveTypeService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_MaterialService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_MediumService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_PipingClassService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_PressurePipingClassService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_PressureService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_PurgeMethodService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_TestMediumService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_WeldingLocationServie.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_WeldingMethodService.cs"},{"SourceFile":"HJGL\\BaseInfo\\Base_WeldTypeService.cs"},{"SourceFile":"HJGL\\FL\\FLDataService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\Hard_ReportService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\Hard_TrustItemService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\Hard_TrustService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\HotProessReportService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\HotProessTrustItemService.cs"},{"SourceFile":"HJGL\\HotProcessHard\\HotProess_TrustService.cs"},{"SourceFile":"HJGL\\LeakVacuum\\LeakVacuumAuditService.cs"},{"SourceFile":"HJGL\\LeakVacuum\\LeakVacuumEditService.cs"},{"SourceFile":"HJGL\\LeakVacuum\\LV_ItemEndCheckService.cs"},{"SourceFile":"HJGL\\NDT\\Batch_NDEItemService.cs"},{"SourceFile":"HJGL\\NDT\\Batch_NDEService.cs"},{"SourceFile":"HJGL\\PersonManage\\CheckerService.cs"},{"SourceFile":"HJGL\\PersonManage\\WelderQualifyService.cs"},{"SourceFile":"HJGL\\PersonManage\\WelderService.cs"},{"SourceFile":"HJGL\\PointTrust\\Batch_BatchTrustItemService.cs"},{"SourceFile":"HJGL\\PointTrust\\Batch_BatchTrustService.cs"},{"SourceFile":"HJGL\\PointTrust\\PointBatchDetailService.cs"},{"SourceFile":"HJGL\\PointTrust\\PointBatchService.cs"},{"SourceFile":"HJGL\\PurgingCleaning\\PC_ItemEndCheckService.cs"},{"SourceFile":"HJGL\\PurgingCleaning\\PurgingCleaningAuditService.cs"},{"SourceFile":"HJGL\\PurgingCleaning\\PurgingCleaningEditService.cs"},{"SourceFile":"HJGL\\RepairAndExpand\\RepairRecordService.cs"},{"SourceFile":"HJGL\\TestPackage\\AItemEndCheckService.cs"},{"SourceFile":"HJGL\\TestPackage\\BItemEndCheckService.cs"},{"SourceFile":"HJGL\\TestPackage\\TestPackageApproveService.cs"},{"SourceFile":"HJGL\\TestPackage\\TestPackageAuditService.cs"},{"SourceFile":"HJGL\\TestPackage\\TestPackageEditService.cs"},{"SourceFile":"HJGL\\WeldingManage\\PipelineService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WeldingDailyService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WeldJointService.cs"},{"SourceFile":"HJGL\\WeldingManage\\WeldTaskService.cs"},{"SourceFile":"HJGL\\WPQ\\WPQListService.cs"},{"SourceFile":"HSSE\\Accident\\AccidentHandleService.cs"},{"SourceFile":"HSSE\\Accident\\AccidentPersonRecordService.cs"},{"SourceFile":"HSSE\\Accident\\AccidentReportOtherItemService.cs"},{"SourceFile":"HSSE\\Accident\\AccidentReportOtherService.cs"},{"SourceFile":"HSSE\\Accident\\AccidentReportService.cs"},{"SourceFile":"HSSE\\Accident\\NoFourLetoffService.cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlanListService.cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlanSummaryService.cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlan_CompanyManagerRuleService.cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlan_ManagerRuleService.cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlan_SubManagerRuleService .cs"},{"SourceFile":"HSSE\\ActionPlan\\ActionPlan_ProjectManagerRuleService.cs"},{"SourceFile":"HSSE\\Administrative\\CarManagerService.cs"},{"SourceFile":"HSSE\\Administrative\\DriverManagerService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckColligationDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckColligationService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckDayDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckDayService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckHolidayDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckHolidayService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckSpecialDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckSpecialService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckWorkDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_CheckWorkService.cs"},{"SourceFile":"HSSE\\Check\\Check_PauseNoticeService.cs"},{"SourceFile":"HSSE\\Check\\Check_ProjectCheckItemDetailService.cs"},{"SourceFile":"HSSE\\Check\\Check_ProjectCheckItemSetService.cs"},{"SourceFile":"HSSE\\Check\\Check_ProjectLeaderCheckService.cs"},{"SourceFile":"HSSE\\Check\\ContactListService.cs"},{"SourceFile":"HSSE\\Check\\HSECertificateService.cs"},{"SourceFile":"HSSE\\Check\\IncentiveNoticeService.cs"},{"SourceFile":"HSSE\\Check\\PunishNoticeService.cs"},{"SourceFile":"HSSE\\Check\\RectifyNoticesService.cs"},{"SourceFile":"HSSE\\Check\\SupervisionNoticeService.cs"},{"SourceFile":"HSSE\\Check\\ViolationPersonService.cs"},{"SourceFile":"HSSE\\CostGoods\\CostManageItemService.cs"},{"SourceFile":"HSSE\\CostGoods\\CostManageService.cs"},{"SourceFile":"HSSE\\CostGoods\\CostSmallDetailItemService.cs"},{"SourceFile":"HSSE\\CostGoods\\CostSmallDetailService.cs"},{"SourceFile":"HSSE\\CostGoods\\FeeRegistration.cs"},{"SourceFile":"HSSE\\CostGoods\\GoodsManageService.cs"},{"SourceFile":"HSSE\\CostGoods\\HseExpenseService.cs"},{"SourceFile":"HSSE\\EduTrain\\AccidentCaseItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\AccidentCaseService.cs"},{"SourceFile":"HSSE\\EduTrain\\CompanyTrainingItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\CompanyTrainingService.cs"},{"SourceFile":"HSSE\\EduTrain\\EduTrain_TrainRecordDetailService.cs"},{"SourceFile":"HSSE\\EduTrain\\EduTrain_TrainRecordService.cs"},{"SourceFile":"HSSE\\EduTrain\\EduTrain_TrainTestService.cs"},{"SourceFile":"HSSE\\EduTrain\\TestPlanService.cs"},{"SourceFile":"HSSE\\EduTrain\\TestRecordItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\TestRecordService.cs"},{"SourceFile":"HSSE\\EduTrain\\TestTrainingItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\TestTrainingService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainingItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainingPlanItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainingPlanService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainingService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainingTaskService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainTestDBItemService.cs"},{"SourceFile":"HSSE\\EduTrain\\TrainTestDBService.cs"},{"SourceFile":"HSSE\\Emergency\\DrillRecordListService.cs"},{"SourceFile":"HSSE\\Emergency\\EmergencyListService.cs"},{"SourceFile":"HSSE\\Emergency\\EmergencySupplyService.cs"},{"SourceFile":"HSSE\\Emergency\\EmergencyTeamAndTrainService.cs"},{"SourceFile":"HSSE\\Environmental\\EIAReportService.cs"},{"SourceFile":"HSSE\\Environmental\\EnvironmentalEmergencyPlanService.cs"},{"SourceFile":"HSSE\\Environmental\\EnvironmentalMonitoringService.cs"},{"SourceFile":"HSSE\\Environmental\\UnexpectedEnvironmentalService.cs"},{"SourceFile":"HSSE\\FinalFileManage\\FinalFileListService.cs"},{"SourceFile":"HSSE\\FinalFileManage\\HSEFinalFileListService.cs"},{"SourceFile":"HSSE\\FinalFileManage\\OtherDocumentListService.cs"},{"SourceFile":"HSSE\\FinalFileManage\\OwnerFinalFileService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_EnvironmentalRiskItemService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_EnvironmentalRiskListService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_HazardListService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_HazardSelectedItemService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_OtherHazardService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_PatrolPlanService.cs"},{"SourceFile":"HSSE\\Hazard\\Hazard_RoutingInspectionService.cs"},{"SourceFile":"HSSE\\Hazard\\RiskEvaluationRecordService.cs"},{"SourceFile":"HSSE\\HiddenInspection\\HSSE_Hazard_HazardRegisterService.cs"},{"SourceFile":"HSSE\\HSSESystem\\HSSEMainDutyService.cs"},{"SourceFile":"HSSE\\HSSESystem\\ServerSafetyInstitutionService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentInItemService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentInService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentOutItemService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentOutService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentQualityInItemService.cs"},{"SourceFile":"HSSE\\InApproveManager\\EquipmentQualityInService.cs"},{"SourceFile":"HSSE\\InApproveManager\\GeneralEquipmentInItemService.cs"},{"SourceFile":"HSSE\\InApproveManager\\GeneralEquipmentInService.cs"},{"SourceFile":"HSSE\\InApproveManager\\GeneralEquipmentOutItemService.cs"},{"SourceFile":"HSSE\\InApproveManager\\GeneralEquipmentOutService.cs"},{"SourceFile":"HSSE\\InformationProject\\ConstructionStandardIdentifyService.cs"},{"SourceFile":"HSSE\\InformationProject\\ConstructionStandardSelectedItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\FileCabinetAItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\FileCabinetAService.cs"},{"SourceFile":"HSSE\\InformationProject\\LawRegulationIdentifyService.cs"},{"SourceFile":"HSSE\\InformationProject\\LawRegulationSelectedItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectAccidentCauseReportItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectAccidentCauseReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectDrillConductedQuarterlyReportItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectDrillConductedQuarterlyReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectDrillPlanHalfYearReportItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectDrillPlanHalfYearReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectEPSummaryReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectFolderItemService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectFolderService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectMillionsMonthlyReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectSafetyQuarterlyReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\ProjectWorkSummaryReportService.cs"},{"SourceFile":"HSSE\\InformationProject\\PromotionalActivitiesService.cs"},{"SourceFile":"HSSE\\Law\\HSSEStandardsListService.cs"},{"SourceFile":"HSSE\\Law\\ManageRuleService.cs"},{"SourceFile":"HSSE\\Law\\RulesRegulationsService.cs"},{"SourceFile":"HSSE\\License\\EquipmentSafetyListService.cs"},{"SourceFile":"HSSE\\License\\HSETechnicalService.cs"},{"SourceFile":"HSSE\\License\\LicenseManagerService.cs"},{"SourceFile":"HSSE\\License\\LicensePublicService.cs"},{"SourceFile":"HSSE\\License\\SecurityLicenseService.cs"},{"SourceFile":"HSSE\\Manager\\AccidentDetailSortBService.cs"},{"SourceFile":"HSSE\\Manager\\CompletionReportService.cs"},{"SourceFile":"HSSE\\Manager\\HSSELogMonthService.cs"},{"SourceFile":"HSSE\\Manager\\HSSELogService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\AccidentDesciptionCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\AccidentDesciptionItemCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\AccidentSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\ActivitiesCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\ActivityDesCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\CheckCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\CheckDetailSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\CheckSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\ComplianceObligationsCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\CostInvestmentPlanCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\DrillSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\EmergencyExercisesCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\EmergencyPlanCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\EmergencySortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\FileManageCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\FiveExpenseCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\HazardCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\HazardSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\HseCostCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\IncentiveSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\InjuryAccidentCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\ManageDocPlanCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\MeetingCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\MeetingSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\MonthReportCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\NoInjuryAccidentCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\OtherActiveSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\OtherManagementCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\OtherWorkCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\OtherWorkPlanCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\PerformanceIndicatorCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\PersonSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\PlanCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\PromotionalActiviteSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\ReviewRecordCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\RewardAndPunishSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\SubExpenseCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\TrainActivitySortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\TrainCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonthC\\TrainSortCService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerMonth_SeDinService.cs"},{"SourceFile":"HSSE\\Manager\\ManagerWeekService.cs"},{"SourceFile":"HSSE\\Manager\\MonthReportBService.cs"},{"SourceFile":"HSSE\\Manager\\MonthReportDService.cs"},{"SourceFile":"HSSE\\Manager\\MonthReportService.cs"},{"SourceFile":"HSSE\\Manager\\ReportRemindService.cs"},{"SourceFile":"HSSE\\Manager\\SafetyDataDService.cs"},{"SourceFile":"HSSE\\Manager\\SubManagerMonthService.cs"},{"SourceFile":"HSSE\\Manager\\SubManagerWeekService.cs"},{"SourceFile":"HSSE\\Meeting\\AttendMeetingService.cs"},{"SourceFile":"HSSE\\Meeting\\ClassMeetingService.cs"},{"SourceFile":"HSSE\\Meeting\\MonthMeetingService.cs"},{"SourceFile":"HSSE\\Meeting\\SafetyLeaderGroupMeetingService.cs"},{"SourceFile":"HSSE\\Meeting\\SpecialMeetingService.cs"},{"SourceFile":"HSSE\\Meeting\\WeekMeetingService.cs"},{"SourceFile":"HSSE\\CostGoods\\ExpenseDetailService.cs"},{"SourceFile":"HSSE\\CostGoods\\ExpenseService.cs"},{"SourceFile":"HSSE\\OccupationHealth\\HazardDetectionService.cs"},{"SourceFile":"HSSE\\OccupationHealth\\OccupationalDiseaseAccidentService.cs"},{"SourceFile":"HSSE\\OccupationHealth\\PhysicalExaminationService.cs"},{"SourceFile":"HSSE\\Perfomance\\PerfomanceRecordService.cs"},{"SourceFile":"HSSE\\Perfomance\\PersonPerfomanceService.cs"},{"SourceFile":"HSSE\\QualityAudit\\EquipmentPersonQualityService.cs"},{"SourceFile":"HSSE\\QualityAudit\\EquipmentQualityAuditDetailService.cs"},{"SourceFile":"HSSE\\QualityAudit\\EquipmentQualityService.cs"},{"SourceFile":"HSSE\\QualityAudit\\GeneralEquipmentQualityService.cs"},{"SourceFile":"HSSE\\QualityAudit\\InUnitService.cs"},{"SourceFile":"HSSE\\QualityAudit\\ProjectRecordService.cs"},{"SourceFile":"HSSE\\QualityAudit\\SafePersonQualityService.cs"},{"SourceFile":"HSSE\\QualityAudit\\SafetyDataItemService.cs"},{"SourceFile":"HSSE\\QualityAudit\\SubUnitQualityAuditDetailService.cs"},{"SourceFile":"HSSE\\QualityAudit\\SubUnitQualityService.cs"},{"SourceFile":"HSSE\\Resources\\SignManageService.cs"},{"SourceFile":"HSSE\\SafetyData\\SafetyDataPlanService.cs"},{"SourceFile":"HSSE\\SafetyData\\SafetyDataService.cs"},{"SourceFile":"HSSE\\SecuritySystem\\SafetyOrganizationService.cs"},{"SourceFile":"HSSE\\Law\\LawRegulationListService.cs"},{"SourceFile":"HSSE\\SitePerson\\PersonInOutService.cs"},{"SourceFile":"HSSE\\QualityAudit\\PersonQualityService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_CheckingService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_DayReportDetailService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_DayReportService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_DayReportUnitDetailService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_MonthReportDetailService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_MonthReportService.cs"},{"SourceFile":"HSSE\\SitePerson\\SitePerson_MonthReportUnitDetailService.cs"},{"SourceFile":"HSSE\\Solution\\ConstructSolutionService.cs"},{"SourceFile":"HSSE\\Solution\\ExpertArgumentService.cs"},{"SourceFile":"HSSE\\Solution\\LargerHazardService.cs"},{"SourceFile":"HSSE\\Solution\\SolutionTemplateService.cs"},{"SourceFile":"HSSE\\Technique\\EmergencyService.cs"},{"SourceFile":"HSSE\\Technique\\HazardListService.cs"},{"SourceFile":"HSSE\\Technique\\HazardListTypeService.cs"},{"SourceFile":"HSSE\\Technique\\EnvironmentalService.cs"},{"SourceFile":"HSSE\\Technique\\RectifyItemService.cs"},{"SourceFile":"HSSE\\Technique\\RectifyService.cs"},{"SourceFile":"HSSE\\Technique\\SpecialSchemeService.cs"},{"SourceFile":"HSSE\\Technique\\Technique_CheckItemDetailService.cs"},{"SourceFile":"HSSE\\Technique\\Technique_CheckItemSetService.cs"},{"SourceFile":"JDGL\\Check\\ElectricalCompletionService.cs"},{"SourceFile":"JDGL\\Check\\EquipmentCompletionService.cs"},{"SourceFile":"JDGL\\Check\\LowTankCompletionService.cs"},{"SourceFile":"JDGL\\Check\\MeterCompletionService.cs"},{"SourceFile":"JDGL\\Check\\MonthPlanService.cs"},{"SourceFile":"JDGL\\Check\\PipelineCompletionService.cs"},{"SourceFile":"JDGL\\Check\\ProgressCompletionService.cs"},{"SourceFile":"JDGL\\Check\\QuantityCompletionService.cs"},{"SourceFile":"JDGL\\Check\\QuantityListService.cs"},{"SourceFile":"JDGL\\Check\\SteelStructureCompletionService.cs"},{"SourceFile":"JDGL\\Check\\UndergroundPipeCompletionService.cs"},{"SourceFile":"JDGL\\Check\\WeekPlanService.cs"},{"SourceFile":"JDGL\\WBSCompleteAndReal\\WBSReportService.cs"},{"SourceFile":"JDGL\\WBS\\CnProfessionInitService.cs"},{"SourceFile":"JDGL\\WBS\\CnProfessionService.cs"},{"SourceFile":"JDGL\\WBS\\CostControlDetailHistoryService.cs"},{"SourceFile":"JDGL\\WBS\\CostControlDetailService.cs"},{"SourceFile":"JDGL\\WBS\\CostControlInitService.cs"},{"SourceFile":"JDGL\\WBS\\CostControlParentDetailService.cs"},{"SourceFile":"JDGL\\WBS\\CostControlService.cs"},{"SourceFile":"JDGL\\WBS\\EquipmentMaterialBigTypeService.cs"},{"SourceFile":"JDGL\\WBS\\EquipmentMaterialTypeService.cs"},{"SourceFile":"JDGL\\WBS\\MilePostService.cs"},{"SourceFile":"JDGL\\WBS\\UnitProjectInitService.cs"},{"SourceFile":"JDGL\\WBS\\UnitProjectService.cs"},{"SourceFile":"JDGL\\WBS\\WbsDetailHistoryService.cs"},{"SourceFile":"JDGL\\WBS\\WbsDetailService.cs"},{"SourceFile":"JDGL\\WBS\\WBSRectificationMeasureSetService.cs"},{"SourceFile":"JDGL\\WBS\\WbsSetInitService.cs"},{"SourceFile":"JDGL\\WBS\\WbsSetMatchCostControlInitService.cs"},{"SourceFile":"JDGL\\WBS\\WbsSetMatchCostControlService.cs"},{"SourceFile":"JDGL\\WBS\\WbsSetService.cs"},{"SourceFile":"JDGL\\WBS\\WorkloadStatisticsService.cs"},{"SourceFile":"Notice\\NoticeService.cs"},{"SourceFile":"OfficeCheck\\Check\\CheckNoticeService.cs"},{"SourceFile":"OfficeCheck\\Check\\CheckReportService.cs"},{"SourceFile":"OfficeCheck\\Check\\CheckTable1Service.cs"},{"SourceFile":"OfficeCheck\\Check\\CheckTeamService.cs"},{"SourceFile":"OfficeCheck\\Check\\ProjectSupervision_Check1Service.cs"},{"SourceFile":"OfficeCheck\\Check\\ProjectSupervision_RectifyItemService.cs"},{"SourceFile":"OfficeCheck\\Check\\ProjectSupervision_RectifyService.cs"},{"SourceFile":"OfficeCheck\\ProjectEvaluation\\ProjectEvaluationService.cs"},{"SourceFile":"OpenService\\FileInsertService.cs"},{"SourceFile":"OpenService\\FileStructService.cs"},{"SourceFile":"OpenService\\MonitorService.cs"},{"SourceFile":"DynamicTHeaderHepler.cs"},{"SourceFile":"OpenService\\GetDataService.cs"},{"SourceFile":"Opinion\\OpinionCollectionApproveService.cs"},{"SourceFile":"Opinion\\OpinionCollectionService.cs"},{"SourceFile":"Party\\BasicInformationDetailService.cs"},{"SourceFile":"Party\\BasicInformationService.cs"},{"SourceFile":"Party\\CommentPartyerService.cs"},{"SourceFile":"Party\\DoingThingsForMassesService.cs"},{"SourceFile":"Party\\EmployeeConversationRecordService.cs"},{"SourceFile":"Party\\FocusLearnService.cs"},{"SourceFile":"Party\\LastWorkSummaryService.cs"},{"SourceFile":"Party\\NewsPropagandaWorkService.cs"},{"SourceFile":"Party\\OrganizingLifeService.cs"},{"SourceFile":"Party\\PartyCommitteeService.cs"},{"SourceFile":"Party\\PartyCongressService.cs"},{"SourceFile":"Party\\PartyerService.cs"},{"SourceFile":"Party\\PartyHistoryStudyService.cs"},{"SourceFile":"Party\\PartyLectureService.cs"},{"SourceFile":"Party\\PartyMeetingService.cs"},{"SourceFile":"Party\\PartyMoneyUseService.cs"},{"SourceFile":"Party\\PartyPioneerDemonstrationService.cs"},{"SourceFile":"Party\\ThemePartyDayService.cs"},{"SourceFile":"Party\\TwoOneGoodSelectionService.cs"},{"SourceFile":"Party\\WorkPlanService.cs"},{"SourceFile":"Person\\Person_BusinessTripService.cs"},{"SourceFile":"Person\\Person_MeetingService.cs"},{"SourceFile":"Person\\PersonTotalService.cs"},{"SourceFile":"Person\\Person_DutyService.cs"},{"SourceFile":"Person\\Person_DutyTemplateService.cs"},{"SourceFile":"Person\\Person_PersonPlanService.cs"},{"SourceFile":"Person\\Person_QuarterCheckApproveService.cs"},{"SourceFile":"Person\\Person_QuarterCheckItemService.cs"},{"SourceFile":"Person\\Person_QuarterCheckService.cs"},{"SourceFile":"Person\\Person_ShuntApproveService.cs"},{"SourceFile":"Person\\Person_ShuntDetailService.cs"},{"SourceFile":"Person\\Person_ShuntService.cs"},{"SourceFile":"Person\\Person_TestRunMonthSummaryService.cs"},{"SourceFile":"Person\\Person_TestRunPerformanceService.cs"},{"SourceFile":"Person\\Person_TrainingPlanService.cs"},{"SourceFile":"ProjectData\\MainItemService.cs"},{"SourceFile":"ProjectData\\ProjectData_CodeTemplateRuleService.cs"},{"SourceFile":"ProjectData\\ProjectSateService.cs"},{"SourceFile":"ProjectData\\ProjectService.cs"},{"SourceFile":"ProjectData\\ProjectSetMapService.cs"},{"SourceFile":"ProjectData\\ProjectUnitService.cs"},{"SourceFile":"ProjectData\\ProjectUserService.cs"},{"SourceFile":"Common\\ChartControlService.cs"},{"SourceFile":"Common\\ConstValue.cs"},{"SourceFile":"Common\\UploadAttachmentService.cs"},{"SourceFile":"Common\\CreateMenuXML.cs"},{"SourceFile":"ProjectData\\Project_InstallationService.cs"},{"SourceFile":"ProjectData\\Project_SysSetService.cs"},{"SourceFile":"ProjectData\\TeamGroupService.cs"},{"SourceFile":"ProjectData\\UnitWorkService.cs"},{"SourceFile":"HSSE\\SitePerson\\PersonService.cs"},{"SourceFile":"PZHGL\\GJSX\\GJSXItemService.cs"},{"SourceFile":"PZHGL\\GJSX\\GJSXProcessService.cs"},{"SourceFile":"PZHGL\\GJSX\\GJSXService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ConstructionLogService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ConstructionPlanApproveService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ConstructionPlanService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ConstructionReportApproveService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ConstructionReportService.cs"},{"SourceFile":"PZHGL\\InformationProject\\PictureService.cs"},{"SourceFile":"PZHGL\\InformationProject\\ReceiveFileManagerService.cs"},{"SourceFile":"PZHGL\\InformationProject\\WorkHandoverApproveService.cs"},{"SourceFile":"PZHGL\\InformationProject\\WorkHandoverDetailService.cs"},{"SourceFile":"PZHGL\\InformationProject\\WorkHandoverService.cs"},{"SourceFile":"PZHGL\\ProjectData\\ProjectMapService.cs"},{"SourceFile":"PZHGL\\ProjectData\\ProjectPageDataService.cs"},{"SourceFile":"Service References\\CNCECHSSEService\\Reference.cs"},{"SourceFile":"Service References\\MCSService\\Reference.cs"},{"SourceFile":"SHIYE\\InformationProject_SafetyBriefingService.cs"},{"SourceFile":"SortConditionHelper.cs"},{"SourceFile":"SQLHelper.cs"},{"SourceFile":"Common\\Const.cs"},{"SourceFile":"ErrLogInfo.cs"},{"SourceFile":"FriendlyException.cs"},{"SourceFile":"Common\\Funs.cs"},{"SourceFile":"MethodRefelect.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"SessionName.cs"},{"SourceFile":"SoftRegeditService.cs"},{"SourceFile":"LoginService.cs"},{"SourceFile":"SysManage\\ButtonPowerService.cs"},{"SourceFile":"SysManage\\ButtonToMenuService.cs"},{"SourceFile":"SysManage\\DepartService.cs"},{"SourceFile":"SysManage\\LogService.cs"},{"SourceFile":"SysManage\\MenuFlowOperateService.cs"},{"SourceFile":"SysManage\\RoleItemService.cs"},{"SourceFile":"SysManage\\RolePowerService.cs"},{"SourceFile":"SysManage\\RoleService.cs"},{"SourceFile":"SysManage\\SysConstSetService.cs"},{"SourceFile":"SysManage\\SysHttplogService.cs"},{"SourceFile":"SysManage\\SysMenuService.cs"},{"SourceFile":"SysManage\\UnitService.cs"},{"SourceFile":"SysManage\\UserService.cs"},{"SourceFile":"PersonManage\\Test\\ServerTestPlanService.cs"},{"SourceFile":"PersonManage\\Test\\ServerTestPlanTrainingService.cs"},{"SourceFile":"PersonManage\\Test\\ServerTestRecordService.cs"},{"SourceFile":"TaskScheduling\\InterFaceService\\DataForJTApiService.cs"},{"SourceFile":"TaskScheduling\\InterFaceService\\InterFaceLogService .cs"},{"SourceFile":"TaskScheduling\\InterFaceService\\InterFaceSetService .cs"},{"SourceFile":"TaskScheduling\\InterFaceService\\InterFaceTaskService .cs"},{"SourceFile":"TaskScheduling\\TimerTask\\CustomJobListener.cs"},{"SourceFile":"TaskScheduling\\TimerTask\\TaskJob.cs"},{"SourceFile":"TaskScheduling\\TimerTask\\TimerTaskBase.cs"},{"SourceFile":"TestRun\\BeforeTestRun\\BeforeTestRunService.cs"},{"SourceFile":"TestRun\\DriverGoods\\GoodsBuyItemService.cs"},{"SourceFile":"TestRun\\DriverGoods\\GoodsBuyService.cs"},{"SourceFile":"TestRun\\DriverGoods\\GoodsModelService.cs"},{"SourceFile":"TestRun\\DriverGoods\\GoodsPlanService.cs"},{"SourceFile":"TestRun\\DriverGoods\\MaterialTraceService.cs"},{"SourceFile":"TestRun\\DriverHse\\HseHazardService.cs"},{"SourceFile":"TestRun\\DriverHse\\HseLicenseService.cs"},{"SourceFile":"TestRun\\DriverHse\\HseMeasureService.cs"},{"SourceFile":"TestRun\\DriverHse\\RoadMapService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDriverConStudyService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDriverDataService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDriverDataTypeService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDriverPersonPlanService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDriverPlanService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDutyItemService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareDutyService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareSchemePlanItemService.cs"},{"SourceFile":"TestRun\\DriverPrepare\\DriverPrepareSchemePlanService.cs"},{"SourceFile":"TestRun\\DriverProgressService.cs"},{"SourceFile":"TestRun\\DriverReport\\DriverReportService.cs"},{"SourceFile":"TestRun\\DriverReport\\TestRun_MonthReportItem2Service.cs"},{"SourceFile":"TestRun\\DriverReport\\TestRun_MonthReportItemService.cs"},{"SourceFile":"TestRun\\DriverReport\\TestRun_MonthReportService.cs"},{"SourceFile":"TestRun\\DriverRun\\DriverRunApproveService.cs"},{"SourceFile":"TestRun\\DriverRun\\DriverRunContactService.cs"},{"SourceFile":"TestRun\\DriverRun\\DriverRunPlanService.cs"},{"SourceFile":"TestRun\\DriverRun\\DriverRunService.cs"},{"SourceFile":"TestRun\\DriverSchemeService.cs"},{"SourceFile":"TestRun\\DriverSub\\DriverSubContactService.cs"},{"SourceFile":"TestRun\\DriverSub\\DriverSubContractorsService.cs"},{"SourceFile":"TestRun\\DriverSub\\DriverSubPlanService.cs"},{"SourceFile":"TestRun\\DriverSub\\DriverSubService.cs"},{"SourceFile":"TestRun\\DriverSummary\\DriverSummaryService.cs"},{"SourceFile":"TestRun\\FeedingTestRunService.cs"},{"SourceFile":"TestRun\\Meeting\\MeetingItemService.cs"},{"SourceFile":"TestRun\\Meeting\\MeetingMinutesService.cs"},{"SourceFile":"TestRun\\Meeting\\MeetingService.cs"},{"SourceFile":"TestRun\\PersonTrain\\DriverPrepareTrainPlanService.cs"},{"SourceFile":"TestRun\\PersonTrain\\PersonTrainPlanService.cs"},{"SourceFile":"TestRun\\PersonTrain\\TrainContactService.cs"},{"SourceFile":"TestRun\\PersonTrain\\TrainContentService.cs"},{"SourceFile":"TestRun\\PersonTrain\\TrainContractService.cs"},{"SourceFile":"TestRun\\PersonTrain\\TrainRecordsService.cs"},{"SourceFile":"TestRun\\ProduceProperty\\AnalySampService.cs"},{"SourceFile":"TestRun\\ProduceProperty\\PropertyRunOthersCheckService.cs"},{"SourceFile":"TestRun\\ProduceProperty\\PropertyRunPumpCheckService.cs"},{"SourceFile":"TestRun\\ProduceProperty\\PropertyRunRecordService.cs"},{"SourceFile":"TestRun\\ProduceProperty\\PropertyRunReportService.cs"},{"SourceFile":"TestRun\\ProduceTestRun\\TestRunOthersCheckService.cs"},{"SourceFile":"TestRun\\ProduceTestRun\\TestRunPumpCheckService.cs"},{"SourceFile":"TestRun\\ProduceTestRun\\TestRunRecordService.cs"},{"SourceFile":"TestRun\\ProduceTestRun\\TestRunReportService.cs"},{"SourceFile":"TestRun\\TestRunConstructSolutionApproveService.cs"},{"SourceFile":"TestRun\\TestRunConstructSolutionService.cs"},{"SourceFile":"TestRun\\TestRunService.cs"},{"SourceFile":"BoSheng\\BOSHENGMonitorService.cs"},{"SourceFile":"Transfer\\PipingService.cs"},{"SourceFile":"Transfer\\ProjectSetupService.cs"},{"SourceFile":"Transfer\\RotatingEquipmentService.cs"},{"SourceFile":"Transfer\\StaticEquipmentService.cs"},{"SourceFile":"WebService\\MCSWebService.cs"},{"SourceFile":"WebService\\CNCECHSSEWebService.cs"},{"SourceFile":"WebService\\CNCECHSSEMonitorService.cs"},{"SourceFile":"ZHGL\\DataStatistics\\DataStatisticsService.cs"},{"SourceFile":"ZHGL\\DataSync\\CQMSDataService.cs"},{"SourceFile":"ZHGL\\DataSync\\Hazard_RealTimeDeviceService.cs"},{"SourceFile":"ZHGL\\DataSync\\HJGLData_DefectService.cs"},{"SourceFile":"ZHGL\\DataSync\\HJGLData_HJGLService.cs"},{"SourceFile":"ZHGL\\DataSync\\HSSEData_HiddenDangerDetailService.cs"},{"SourceFile":"ZHGL\\DataSync\\HSSEData_HSSEService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_CQMSDataService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_HJGLData_DefectService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_HJGLData_HJGLService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_HSSEData_HiddenDangerDetailService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_HSSEData_HSSEService.cs"},{"SourceFile":"ZHGL\\DataSync\\ProjectDataSync\\Project_SYHSEData_SYHSEService.cs"},{"SourceFile":"ZHGL\\DataSync\\ServerService.cs"},{"SourceFile":"ZHGL\\DataSync\\SYHSEData_DataService.cs"},{"SourceFile":"ZHGL\\DataSync\\SYHSEData_HiddenDangerCheckService.cs"},{"SourceFile":"ZHGL\\DataSync\\SYHSEData_RiskControlService.cs"},{"SourceFile":"ZHGL\\DataSync\\SYHSEData_SYHSEService.cs"},{"SourceFile":"ZHGL\\Emergency\\UnitDrillRecordListService.cs"},{"SourceFile":"ZHGL\\Emergency\\UnitEmergencyListService.cs"},{"SourceFile":"ZHGL\\Environmental\\ArchitectureReportItemService.cs"},{"SourceFile":"ZHGL\\Environmental\\ArchitectureReportService.cs"},{"SourceFile":"ZHGL\\Environmental\\ChemicalReportItemService.cs"},{"SourceFile":"ZHGL\\Environmental\\ChemicalReportService.cs"},{"SourceFile":"ZHGL\\Environmental\\EnergyreportItemService .cs"},{"SourceFile":"ZHGL\\Environmental\\EnergyReportService.cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectArchitectureReportItemService.cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectArchitectureReportService.cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectChemicalReportItemService.cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectChemicalReportService.cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectEnergyreportItemService .cs"},{"SourceFile":"ZHGL\\Environmental\\ProjectEnergyReportService.cs"},{"SourceFile":"ZHGL\\HSSESystem\\HSSEManageItemService.cs"},{"SourceFile":"ZHGL\\HSSESystem\\HSSEManageService.cs"},{"SourceFile":"ZHGL\\HSSESystem\\HSSEOrganizeService.cs"},{"SourceFile":"ZHGL\\Information\\AccidentCauseReportItemService.cs"},{"SourceFile":"ZHGL\\Information\\AccidentCauseReportService.cs"},{"SourceFile":"ZHGL\\Information\\ActionWorkLedgerItemService.cs"},{"SourceFile":"ZHGL\\Information\\ActionWorkLedgerService.cs"},{"SourceFile":"ZHGL\\Information\\EPSummaryReportService.cs"},{"SourceFile":"ZHGL\\Information\\QualityWorkSummaryReportService.cs"},{"SourceFile":"ZHGL\\Information\\QuarterlyProjectQualityService.cs"},{"SourceFile":"ZHGL\\Information\\SafetyBriefingService.cs"},{"SourceFile":"ZHGL\\Information\\SafetyProductionEvaluationItemService.cs"},{"SourceFile":"ZHGL\\Information\\SafetyProductionEvaluationService.cs"},{"SourceFile":"ZHGL\\Information\\UrgeReportService.cs"},{"SourceFile":"ZHGL\\Information\\AnalyseResourceService.cs"},{"SourceFile":"ZHGL\\Information\\DrillConductedQuarterlyReportItemService.cs"},{"SourceFile":"ZHGL\\Information\\DrillConductedQuarterlyReportService.cs"},{"SourceFile":"ZHGL\\Information\\DrillPlanHalfYearReportItemService.cs"},{"SourceFile":"ZHGL\\Information\\DrillPlanHalfYearReportService.cs"},{"SourceFile":"ZHGL\\Information\\MillionsMonthlyReportItemService.cs"},{"SourceFile":"ZHGL\\Information\\MillionsMonthlyReportService.cs"},{"SourceFile":"ZHGL\\Information\\SafetyQuarterlyReportService.cs"},{"SourceFile":"ZHGL\\Information\\WorkSummaryReportService.cs"},{"SourceFile":"ZHGL\\InspectionSummary\\InspectionSummaryService.cs"},{"SourceFile":"ZHGL\\Meeting\\CompanySafetyMeetingService.cs"},{"SourceFile":"ZHGL\\Meeting\\CompanySpecialMeetingService.cs"},{"SourceFile":"ZHGL\\Person\\CompanyBranchPersonService.cs"},{"SourceFile":"ZHGL\\ProjectAccident\\AccidentAnalysisItemService.cs"},{"SourceFile":"ZHGL\\ProjectAccident\\AccidentAnalysisService.cs"},{"SourceFile":"ZHGL\\ProjectAccident\\AccidentStatisticsService.cs"},{"SourceFile":"ZHGL\\ProjectAccident\\ProjectAccidentReportService.cs"},{"SourceFile":"ZHGL\\RealName\\BasicDataService.cs"},{"SourceFile":"ZHGL\\RealName\\RealName_ProjectService.cs"},{"SourceFile":"ZHGL\\RealName\\OnPostService.cs"},{"SourceFile":"ZHGL\\RealName\\LeavePostService.cs"},{"SourceFile":"ZHGL\\RealName\\CityService.cs"},{"SourceFile":"ZHGL\\RealName\\CountryService.cs"},{"SourceFile":"ZHGL\\RealName\\RealNameMonitorService.cs"},{"SourceFile":"ZHGL\\RealName\\SynchroSetService.cs"},{"SourceFile":"ZHGL\\ServerCheck\\CheckRectifyItemService.cs"},{"SourceFile":"ZHGL\\ServerCheck\\CheckRectifyService.cs"},{"SourceFile":"ZHGL\\ServerCheck\\SubUnitReportItemService.cs"},{"SourceFile":"ZHGL\\ServerCheck\\SubUnitReportService.cs"},{"SourceFile":"ZHGL\\ServerCheck\\UpCheckReportService.cs"},{"SourceFile":"ZHGL\\Supervise\\SubUnitCheckRectifyItemService.cs"},{"SourceFile":"ZHGL\\Supervise\\SubUnitCheckRectifyService.cs"},{"SourceFile":"ZHGL\\Supervise\\SuperviseCheckRectifyItemService.cs"},{"SourceFile":"ZHGL\\Supervise\\SuperviseCheckRectifyService.cs"},{"SourceFile":"ZHGL\\Supervise\\SuperviseCheckReportItemService.cs"},{"SourceFile":"ZHGL\\Supervise\\SuperviseCheckReportService.cs"},{"SourceFile":"ZHGL\\TestRunPerformance\\TestRunMonthSummaryReportService.cs"},{"SourceFile":"ZHGL\\TestRunPerformance\\TestRunPerformanceMonthReportService.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs"}],"References":[{"Reference":"D:\\诺必达\\五环\\SGGL\\FineUIPro\\Reference BLL\\Aspose.Words.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\诺必达\\五环\\SGGL\\FineUIPro\\FineUIPro.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\Microsoft.CSharp\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Microsoft SQL Server\\110\\SDK\\Assemblies\\Microsoft.SQLServer.ManagedDTS.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\诺必达\\五环\\SGGL\\Model\\bin\\Debug\\Model.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":"D:\\诺必达\\五环\\SGGL\\Model\\bin\\Debug\\Model.dll"},{"Reference":"C:\\WINDOWS\\Microsoft.NET\\Framework\\v4.0.30319\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\诺必达\\五环\\SGGL\\SgManager.AI\\bin\\Debug\\SgManager.AI.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":"D:\\诺必达\\五环\\SGGL\\SgManager.AI\\bin\\Debug\\SgManager.AI.dll"},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Core\\v4.0_4.0.0.0__b77a5c561934e089\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Data.DataSetExtensions\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_64\\System.Data\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Data.Linq\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_64\\System.Data.OracleClient\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.OracleClient.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.DirectoryServices\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.DirectoryServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System\\v4.0_4.0.0.0__b77a5c561934e089\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Drawing\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Management\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Management.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Net\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Net.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Numerics\\v4.0_4.0.0.0__b77a5c561934e089\\System.Numerics.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Runtime.Serialization\\v4.0_4.0.0.0__b77a5c561934e089\\System.Runtime.Serialization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Security\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Security.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.ServiceModel\\v4.0_4.0.0.0__b77a5c561934e089\\System.ServiceModel.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.ServiceProcess\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.ServiceProcess.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_64\\System.Transactions\\v4.0_4.0.0.0__b77a5c561934e089\\System.Transactions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Web.DataVisualization\\v4.0_4.0.0.0__31bf3856ad364e35\\System.Web.DataVisualization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_64\\System.Web\\v4.0_4.0.0.0__b03f5f7f11d50a3a\\System.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\System.Xml.Linq\\v4.0_4.0.0.0__b77a5c561934e089\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\诺必达\\五环\\SGGL\\FineUIPro\\Reference BLL\\ThoughtWorks.QRCode.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\WINDOWS\\Microsoft.Net\\assembly\\GAC_MSIL\\WindowsBase\\v4.0_4.0.0.0__31bf3856ad364e35\\WindowsBase.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"D:\\诺必达\\五环\\SGGL\\BLL\\bin\\Debug\\BLL.dll","OutputItemRelativePath":"BLL.dll"},{"OutputItemFullPath":"","OutputItemRelativePath":""}],"CopyToOutputEntries":[]} \ No newline at end of file diff --git a/SGGL/BLL/API/APIBaseInfoService.cs b/SGGL/BLL/API/APIBaseInfoService.cs index 1a647d0c..7e5b29ac 100644 --- a/SGGL/BLL/API/APIBaseInfoService.cs +++ b/SGGL/BLL/API/APIBaseInfoService.cs @@ -71,6 +71,30 @@ namespace BLL } #endregion + #region 根据项目名称获取项目信息 + /// + /// 根据项目名称获取项目信息 + /// + /// + /// + public static Model.BaseInfoItem getProjectByName(string projectName) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + var getDataLists = (from x in db.Base_Project + where x.ProjectName == projectName + select new Model.BaseInfoItem + { + BaseInfoId = x.ProjectId, + BaseInfoCode = x.ProjectCode, + BaseInfoName = x.ProjectName + } + ).FirstOrDefault(); + return getDataLists; + } + } + #endregion + #region 根据项目id获取区域表 /// /// 根据项目id获取区域表 diff --git a/SGGL/BLL/API/CQMS/ApiInspectionManagementService.cs b/SGGL/BLL/API/CQMS/ApiInspectionManagementService.cs new file mode 100644 index 00000000..9864e81f --- /dev/null +++ b/SGGL/BLL/API/CQMS/ApiInspectionManagementService.cs @@ -0,0 +1,393 @@ +using Model.CQMS; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL.API.CQMS +{ + public class ApiInspectionManagementService + { + public static bool AddInspectionManagement(InspectionManagement inspectionManagement) + { + using (var db = new Model.SGGLDB(Funs.ConnString)) + { + Model.ProcessControl_InspectionManagement newInspectionManagement = null; + if (!string.IsNullOrEmpty(inspectionManagement.InspectionId)) + { + newInspectionManagement = db.ProcessControl_InspectionManagement.FirstOrDefault(x => x.InspectionId == inspectionManagement.InspectionId); + } + if (newInspectionManagement == null) + { + newInspectionManagement = new Model.ProcessControl_InspectionManagement(); + newInspectionManagement.InspectionId = Guid.NewGuid().ToString(); + } + newInspectionManagement.InspectionId = inspectionManagement.InspectionId; + newInspectionManagement.ProjectId = inspectionManagement.ProjectId; + newInspectionManagement.UnitId = inspectionManagement.UnitId; + newInspectionManagement.CNProfessionalId = inspectionManagement.CNProfessionalId; + newInspectionManagement.InspectionCode = inspectionManagement.InspectionCode; + newInspectionManagement.UnitWorkId = inspectionManagement.UnitWorkId; + newInspectionManagement.Branch = inspectionManagement.Branch; + newInspectionManagement.ControlPointType = inspectionManagement.ControlPointType; + newInspectionManagement.AcceptanceSite = inspectionManagement.AcceptanceSite; + newInspectionManagement.IsOnceQualified = inspectionManagement.IsOnceQualified == "true" ? true : false; + if (!string.IsNullOrEmpty(inspectionManagement.InspectionDate)) + newInspectionManagement.InspectionDate = DateTime.Parse(inspectionManagement.InspectionDate); + newInspectionManagement.AttachUrl = inspectionManagement.AttachUrl; + newInspectionManagement.AttachUrl2 = inspectionManagement.AttachUrl2; + newInspectionManagement.NoticeCode = inspectionManagement.NoticeCode; + newInspectionManagement.ParentDivisionProjectId = inspectionManagement.ParentDivisionProjectId; + if (!string.IsNullOrEmpty(inspectionManagement.CheckDate)) + newInspectionManagement.CheckDate = DateTime.Parse(inspectionManagement.CheckDate); + newInspectionManagement.CheckMan = inspectionManagement.CheckMan; + newInspectionManagement.CompileMan = inspectionManagement.CompileMan; + //newInspectionManagement.CompileMan2 = inspectionManagement.CompileMan2; + if (!string.IsNullOrEmpty(inspectionManagement.CompileDate)) + newInspectionManagement.CompileDate = DateTime.Parse(inspectionManagement.CompileDate); + newInspectionManagement.UnqualifiedReason = inspectionManagement.UnqualifiedReason; + newInspectionManagement.AcceptanceCheckMan = inspectionManagement.AcceptanceCheckMan; + newInspectionManagement.FileType = inspectionManagement.FileType; + //newInspectionManagement.CCUnitIds = inspectionManagement.CCUnitIds; + //newInspectionManagement.MainSendUnitId = inspectionManagement.MainSendUnitId; + //newInspectionManagement.AuditMan = inspectionManagement.AuditMan; + //newInspectionManagement.Status = inspectionManagement.Status; + //if (!string.IsNullOrEmpty(inspectionManagement.PlanComplateDate)) + // newInspectionManagement.PlanComplateDate = DateTime.Parse(inspectionManagement.PlanComplateDate); + db.ProcessControl_InspectionManagement.InsertOnSubmit(newInspectionManagement); + db.SubmitChanges(); + + foreach (var InspectionDetail in inspectionManagement.inspectionManagementDetails) + + { + Model.ProcessControl_InspectionManagementDetail newInspectionDetail = new Model.ProcessControl_InspectionManagementDetail(); + newInspectionDetail.InspectionDetailId = InspectionDetail.InspectionDetailId; + newInspectionDetail.InspectionId = newInspectionManagement.InspectionId; + newInspectionDetail.UnitWorkId = InspectionDetail.UnitWorkId; + newInspectionDetail.Branch = InspectionDetail.Branch; + newInspectionDetail.ControlPointType = InspectionDetail.ControlPointType; + if (!string.IsNullOrEmpty(InspectionDetail.CreateDate)) + newInspectionDetail.CreateDate = DateTime.Parse(InspectionDetail.CreateDate); + + db.ProcessControl_InspectionManagementDetail.InsertOnSubmit(newInspectionDetail); + } + db.SubmitChanges(); + } + return true; + } + + /// + /// 获取分部 + /// + /// + /// + protected static string ConvertBranch(object Branch) + { + string name = string.Empty; + if (Branch != null) + { + var branch = BLL.DivisionProjectService.GetDivisionProjectById(Branch.ToString()); + if (branch != null) + { + name = branch.DivisionName; + } + } + return name; + } + + /// + /// 获取控制点内容 + /// + /// + /// + protected static string ConvertControlPointType(object ControlPointType) + { + string name = string.Empty; + if (ControlPointType != null) + { + var controlPointType = BLL.BreakdownProjectService.GetBreakdownProjectById(ControlPointType.ToString()); + if (controlPointType != null) + { + name = controlPointType.BreakdownName; + } + } + return name; + } + + /// + /// 获取控制点等级 + /// + /// + /// + protected static string ConvertClass(object ControlPointType) + { + string name = string.Empty; + if (ControlPointType != null) + { + var controlPointType = BLL.BreakdownProjectService.GetBreakdownProjectById(ControlPointType.ToString()); + if (controlPointType != null) + { + name = controlPointType.Class; + } + } + return name; + } + + public static List getInspectionManagementDetail(string projectId, int index, int page, string state, string name) + { + using (var db = new Model.SGGLDB(Funs.ConnString)) + { + var dataList = from x in db.ProcessControl_InspectionManagementDetail + where x.ProcessControl_InspectionManagement.ProjectId == projectId + select x; + var listRes = dataList.Skip(index * page).Take(page); + + List list = new List(); + foreach (var item in listRes) + { + InspectionManagementDetail detail = new InspectionManagementDetail() + { + InspectionDetailId = item.InspectionDetailId, + UnitWorkId = item.UnitWorkId, + UnitWorkName = db.WBS_UnitWork.FirstOrDefault(x => x.UnitWorkId == item.UnitWorkId).UnitWorkName, + ControlPointType = item.ControlPointType, + CreateDate = item.CreateDate.HasValue ? item.CreateDate.Value.ToString("yyyy-MM-dd") : "", + Branch = item.Branch, + + BranchName= ConvertBranch(item.Branch), + ControlPointTypeName= ConvertControlPointType(item.ControlPointType), + ControlPointTypeLevel= ConvertClass(item.ControlPointType) + }; + InspectionManagement inspectionManagement = new InspectionManagement(); + + inspectionManagement.InspectionId = item.ProcessControl_InspectionManagement.InspectionId; + inspectionManagement.ProjectId = item.ProcessControl_InspectionManagement.ProjectId; + inspectionManagement.ProjectName = db.Base_Project.FirstOrDefault(x => x.ProjectId == item.ProcessControl_InspectionManagement.ProjectId).ProjectName; + inspectionManagement.UnitId = item.ProcessControl_InspectionManagement.UnitId; + inspectionManagement.UnitName = db.Base_Unit.FirstOrDefault(x => x.UnitId == item.ProcessControl_InspectionManagement.UnitId).UnitName; + inspectionManagement.CNProfessionalId = item.ProcessControl_InspectionManagement.CNProfessionalId; + if (!string.IsNullOrEmpty(inspectionManagement.CNProfessionalId)) + { + inspectionManagement.CNProfessionalName = db.Base_CNProfessional.FirstOrDefault(x => x.CNProfessionalId == item.ProcessControl_InspectionManagement.CNProfessionalId).ProfessionalName; + } + inspectionManagement.InspectionCode = item.ProcessControl_InspectionManagement.InspectionCode; + inspectionManagement.UnitWorkId = item.ProcessControl_InspectionManagement.UnitWorkId; + if (!string.IsNullOrEmpty(inspectionManagement.UnitWorkId)) + { + inspectionManagement.UnitWorkName = db.WBS_UnitWork.FirstOrDefault(x => x.UnitWorkId == item.ProcessControl_InspectionManagement.UnitWorkId).UnitWorkName; + } + inspectionManagement.Branch = item.ProcessControl_InspectionManagement.Branch; + inspectionManagement.ControlPointType = item.ProcessControl_InspectionManagement.ControlPointType; + inspectionManagement.AcceptanceSite = item.ProcessControl_InspectionManagement.AcceptanceSite; + inspectionManagement.IsOnceQualified = item.ProcessControl_InspectionManagement.IsOnceQualified.HasValue ? item.ProcessControl_InspectionManagement.IsOnceQualified.Value.ToString() : ""; + inspectionManagement.InspectionDate = item.ProcessControl_InspectionManagement.InspectionDate.HasValue ? "" : ""; + inspectionManagement.AttachUrl = item.ProcessControl_InspectionManagement.AttachUrl; + inspectionManagement.CheckDate = item.ProcessControl_InspectionManagement.CheckDate.HasValue ? item.ProcessControl_InspectionManagement.CheckDate.Value.ToString("yyyy-MM-dd") : ""; + inspectionManagement.CheckMan = item.ProcessControl_InspectionManagement.CheckMan; + inspectionManagement.CheckMan = item.ProcessControl_InspectionManagement.CheckMan; + inspectionManagement.UnqualifiedReason = item.ProcessControl_InspectionManagement.UnqualifiedReason; + inspectionManagement.NoticeCode = item.ProcessControl_InspectionManagement.NoticeCode; + inspectionManagement.AcceptanceCheckMan = item.ProcessControl_InspectionManagement.AcceptanceCheckMan; + inspectionManagement.ParentDivisionProjectId = item.ProcessControl_InspectionManagement.ParentDivisionProjectId; + inspectionManagement.CompileMan = item.ProcessControl_InspectionManagement.CompileMan; + if (!string.IsNullOrEmpty(inspectionManagement.CompileMan)) + { + inspectionManagement.CompileManName = db.Sys_User.FirstOrDefault(x => x.UserId == item.ProcessControl_InspectionManagement.CompileMan).UserName; //item.ProcessControl_InspectionManagement.CompileManName; + } + inspectionManagement.CompileDate = item.ProcessControl_InspectionManagement.CompileDate.HasValue ? item.ProcessControl_InspectionManagement.CompileDate.Value.ToString("yyyy-MM-dd") : ""; + inspectionManagement.FileType = item.ProcessControl_InspectionManagement.FileType; + inspectionManagement.AttachUrl2 = item.ProcessControl_InspectionManagement.AttachUrl2; + //inspectionManagement.MainSendUnitId = item.ProcessControl_InspectionManagement.MainSendUnitId; + if (!string.IsNullOrEmpty(inspectionManagement.MainSendUnitId)) + inspectionManagement.MainSendUnitName = UnitService.getUnitNamesUnitIds(inspectionManagement.MainSendUnitId);//item.ProcessControl_InspectionManagement.MainSendUnitName; + //inspectionManagement.CCUnitIds = item.ProcessControl_InspectionManagement.CCUnitIds; + if (!string.IsNullOrEmpty(inspectionManagement.CCUnitIds)) + { + inspectionManagement.CCUnitName = UnitService.getUnitNamesUnitIds(inspectionManagement.CCUnitIds);// item.ProcessControl_InspectionManagement.CCUnitName; + } + //inspectionManagement.PlanComplateDate = item.ProcessControl_InspectionManagement.PlanComplateDate.HasValue ? item.ProcessControl_InspectionManagement.PlanComplateDate.Value.ToString("yyyy-MM-dd") : ""; + + //inspectionManagement.Status = item.ProcessControl_InspectionManagement.Status; + //inspectionManagement.CompileMan2 = item.ProcessControl_InspectionManagement.CompileMan2; + + //inspectionManagement.AuditMan = item.ProcessControl_InspectionManagement.AuditMan; + //if (!string.IsNullOrEmpty(inspectionManagement.AuditMan)) + //{ inspectionManagement.AuditManName = db.Sys_User.FirstOrDefault(x => x.UserId == item.ProcessControl_InspectionManagement.AuditMan).UserName; } + detail.inspectionManagement = inspectionManagement; + list.Add(detail); + } + return list; + } + } + public static List getInspectionManagement(string projectId, int index, int page, string state, string name) + { + using (var db = new Model.SGGLDB(Funs.ConnString)) + { + var dataList = from x in db.ProcessControl_InspectionManagement + where x.ProjectId == projectId + select x; + var listRes = dataList.Skip(index * page).Take(page); + + List list = new List(); + foreach (var item in listRes) + { + + InspectionManagement inspectionManagement = new InspectionManagement(); + + inspectionManagement.InspectionId = item.InspectionId; + inspectionManagement.ProjectId = item.ProjectId; + inspectionManagement.ProjectName = db.Base_Project.FirstOrDefault(x => x.ProjectId == item.ProjectId).ProjectName; + inspectionManagement.UnitId = item.UnitId; + inspectionManagement.UnitName = db.Base_Unit.FirstOrDefault(x => x.UnitId == item.UnitId).UnitName; + inspectionManagement.CNProfessionalId = item.CNProfessionalId; + + + + + if (!string.IsNullOrEmpty(inspectionManagement.CNProfessionalId)) + { + inspectionManagement.CNProfessionalName = db.Base_CNProfessional.FirstOrDefault(x => x.CNProfessionalId == item.CNProfessionalId).ProfessionalName; + } + inspectionManagement.InspectionCode = item.InspectionCode; + inspectionManagement.UnitWorkId = item.UnitWorkId; + if (!string.IsNullOrEmpty(inspectionManagement.UnitWorkId)) + { + inspectionManagement.UnitWorkName = db.WBS_UnitWork.FirstOrDefault(x => x.UnitWorkId == item.UnitWorkId).UnitWorkName; + } + inspectionManagement.Branch = item.Branch; + inspectionManagement.ControlPointType = item.ControlPointType; + inspectionManagement.AcceptanceSite = item.AcceptanceSite; + inspectionManagement.IsOnceQualified = item.IsOnceQualified.HasValue ? item.IsOnceQualified.Value.ToString() : ""; + inspectionManagement.InspectionDate = item.InspectionDate.HasValue ? "" : ""; + inspectionManagement.AttachUrl = item.AttachUrl; + inspectionManagement.CheckDate = item.CheckDate.HasValue ? item.CheckDate.Value.ToString("yyyy-MM-dd") : ""; + inspectionManagement.CheckMan = item.CheckMan; + inspectionManagement.CheckMan = item.CheckMan; + inspectionManagement.UnqualifiedReason = item.UnqualifiedReason; + inspectionManagement.NoticeCode = item.NoticeCode; + inspectionManagement.AcceptanceCheckMan = item.AcceptanceCheckMan; + inspectionManagement.ParentDivisionProjectId = item.ParentDivisionProjectId; + inspectionManagement.CompileMan = item.CompileMan; + if (!string.IsNullOrEmpty(inspectionManagement.CompileMan)) + { + inspectionManagement.CompileManName = db.Sys_User.FirstOrDefault(x => x.UserId == item.CompileMan).UserName; //item.CompileManName; + } + inspectionManagement.CompileDate = item.CompileDate.HasValue ? item.CompileDate.Value.ToString("yyyy-MM-dd") : ""; + inspectionManagement.FileType = item.FileType; + inspectionManagement.AttachUrl2 = item.AttachUrl2; + //inspectionManagement.MainSendUnitId = item.MainSendUnitId; + if (!string.IsNullOrEmpty(inspectionManagement.MainSendUnitId)) + inspectionManagement.MainSendUnitName = UnitService.getUnitNamesUnitIds(inspectionManagement.MainSendUnitId);//item.MainSendUnitName; + //inspectionManagement.CCUnitIds = item.CCUnitIds; + if (!string.IsNullOrEmpty(inspectionManagement.CCUnitIds)) + { + inspectionManagement.CCUnitName = UnitService.getUnitNamesUnitIds(inspectionManagement.CCUnitIds);// item.CCUnitName; + } + //inspectionManagement.PlanComplateDate = item.PlanComplateDate.HasValue ? item.PlanComplateDate.Value.ToString("yyyy-MM-dd") : ""; + + //inspectionManagement.Status = item.Status; + //inspectionManagement.CompileMan2 = item.CompileMan2; + + //inspectionManagement.AuditMan = item.AuditMan; + //if (!string.IsNullOrEmpty(inspectionManagement.AuditMan)) + //{ inspectionManagement.AuditManName = db.Sys_User.FirstOrDefault(x => x.UserId == item.AuditMan).UserName; } + + list.Add(inspectionManagement); + } + return list; + } + } + + + + + public static List getInspectionManagementDetailByinspectionId(string inspectionId) + { + using (var db = new Model.SGGLDB(Funs.ConnString)) + { + var dataList = from x in db.ProcessControl_InspectionManagementDetail + where x.InspectionId == inspectionId + select x; + var listRes = dataList.ToList(); + + List list = new List(); + foreach (var item in listRes) + { + InspectionManagementDetail detail = new InspectionManagementDetail(){ }; + detail.InspectionDetailId = item.InspectionDetailId; + detail.UnitWorkId = item.UnitWorkId; + detail.UnitWorkName = db.WBS_UnitWork.FirstOrDefault(x => x.UnitWorkId == item.UnitWorkId).UnitWorkName; + detail.ControlPointType = item.ControlPointType; + detail.CreateDate = item.CreateDate.HasValue ? item.CreateDate.Value.ToString("yyyy-MM-dd") : ""; + detail.Branch = item.Branch; + detail.BranchName = ConvertBranch(item.Branch); + detail.ControlPointTypeName = ConvertControlPointType(item.ControlPointType); + detail.ControlPointTypeLevel = ConvertClass(item.ControlPointType); + + InspectionManagement inspectionManagement = new InspectionManagement(); + + inspectionManagement.InspectionId = item.ProcessControl_InspectionManagement.InspectionId; + inspectionManagement.ProjectId = item.ProcessControl_InspectionManagement.ProjectId; + inspectionManagement.ProjectName = db.Base_Project.FirstOrDefault(x => x.ProjectId == item.ProcessControl_InspectionManagement.ProjectId).ProjectName; + inspectionManagement.UnitId = item.ProcessControl_InspectionManagement.UnitId; + inspectionManagement.UnitName = db.Base_Unit.FirstOrDefault(x => x.UnitId == item.ProcessControl_InspectionManagement.UnitId).UnitName; + inspectionManagement.CNProfessionalId = item.ProcessControl_InspectionManagement.CNProfessionalId; + if (!string.IsNullOrEmpty(inspectionManagement.CNProfessionalId)) + { + inspectionManagement.CNProfessionalName = db.Base_CNProfessional.FirstOrDefault(x => x.CNProfessionalId == item.ProcessControl_InspectionManagement.CNProfessionalId).ProfessionalName; + } + inspectionManagement.InspectionCode = item.ProcessControl_InspectionManagement.InspectionCode; + inspectionManagement.UnitWorkId = item.ProcessControl_InspectionManagement.UnitWorkId; + if (!string.IsNullOrEmpty(inspectionManagement.UnitWorkId)) + { + inspectionManagement.UnitWorkName = db.WBS_UnitWork.FirstOrDefault(x => x.UnitWorkId == item.ProcessControl_InspectionManagement.UnitWorkId).UnitWorkName; + } + inspectionManagement.Branch = item.ProcessControl_InspectionManagement.Branch; + inspectionManagement.ControlPointType = item.ProcessControl_InspectionManagement.ControlPointType; + inspectionManagement.AcceptanceSite = item.ProcessControl_InspectionManagement.AcceptanceSite; + inspectionManagement.IsOnceQualified = item.ProcessControl_InspectionManagement.IsOnceQualified.HasValue ? item.ProcessControl_InspectionManagement.IsOnceQualified.Value.ToString() : ""; + inspectionManagement.InspectionDate = item.ProcessControl_InspectionManagement.InspectionDate.HasValue ? "" : ""; + + //inspectionManagement.AttachUrl = item.ProcessControl_InspectionManagement.AttachUrl; + inspectionManagement.AttachUrl = APIUpLoadFileService.getFileUrl(item.InspectionId, null); + + inspectionManagement.CheckDate = item.ProcessControl_InspectionManagement.CheckDate.HasValue ? item.ProcessControl_InspectionManagement.CheckDate.Value.ToString("yyyy-MM-dd") : ""; + inspectionManagement.CheckMan = item.ProcessControl_InspectionManagement.CheckMan; + inspectionManagement.CheckMan = item.ProcessControl_InspectionManagement.CheckMan; + inspectionManagement.UnqualifiedReason = item.ProcessControl_InspectionManagement.UnqualifiedReason; + inspectionManagement.NoticeCode = item.ProcessControl_InspectionManagement.NoticeCode; + inspectionManagement.AcceptanceCheckMan = item.ProcessControl_InspectionManagement.AcceptanceCheckMan; + inspectionManagement.ParentDivisionProjectId = item.ProcessControl_InspectionManagement.ParentDivisionProjectId; + inspectionManagement.CompileMan = item.ProcessControl_InspectionManagement.CompileMan; + if (!string.IsNullOrEmpty(inspectionManagement.CompileMan)) + { + inspectionManagement.CompileManName = db.Sys_User.FirstOrDefault(x => x.UserId == item.ProcessControl_InspectionManagement.CompileMan).UserName; //item.ProcessControl_InspectionManagement.CompileManName; + } + inspectionManagement.CompileDate = item.ProcessControl_InspectionManagement.CompileDate.HasValue ? item.ProcessControl_InspectionManagement.CompileDate.Value.ToString("yyyy-MM-dd") : ""; + inspectionManagement.FileType = item.ProcessControl_InspectionManagement.FileType; + inspectionManagement.AttachUrl2 = item.ProcessControl_InspectionManagement.AttachUrl2; + //inspectionManagement.MainSendUnitId = item.ProcessControl_InspectionManagement.MainSendUnitId; + if (!string.IsNullOrEmpty(inspectionManagement.MainSendUnitId)) + inspectionManagement.MainSendUnitName = UnitService.getUnitNamesUnitIds(inspectionManagement.MainSendUnitId);//item.ProcessControl_InspectionManagement.MainSendUnitName; + //inspectionManagement.CCUnitIds = item.ProcessControl_InspectionManagement.CCUnitIds; + if (!string.IsNullOrEmpty(inspectionManagement.CCUnitIds)) + { + inspectionManagement.CCUnitName = UnitService.getUnitNamesUnitIds(inspectionManagement.CCUnitIds);// item.ProcessControl_InspectionManagement.CCUnitName; + } + //inspectionManagement.PlanComplateDate = item.ProcessControl_InspectionManagement.PlanComplateDate.HasValue ? item.ProcessControl_InspectionManagement.PlanComplateDate.Value.ToString("yyyy-MM-dd") : ""; + + //inspectionManagement.Status = item.ProcessControl_InspectionManagement.Status; + //inspectionManagement.CompileMan2 = item.ProcessControl_InspectionManagement.CompileMan2; + + //inspectionManagement.AuditMan = item.ProcessControl_InspectionManagement.AuditMan; + //if (!string.IsNullOrEmpty(inspectionManagement.AuditMan)) + //{ inspectionManagement.AuditManName = db.Sys_User.FirstOrDefault(x => x.UserId == item.ProcessControl_InspectionManagement.AuditMan).UserName; } + detail.inspectionManagement = inspectionManagement; + list.Add(detail); + } + return list; + } + } + } +} diff --git a/SGGL/BLL/API/CQMS/BreakdownProjectService.cs b/SGGL/BLL/API/CQMS/BreakdownProjectService.cs new file mode 100644 index 00000000..13e619e5 --- /dev/null +++ b/SGGL/BLL/API/CQMS/BreakdownProjectService.cs @@ -0,0 +1,51 @@ +using Model.CQMS; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL.API.CQMS +{ + public class BreakdownProjectService + { + public static List getBreakdowns(string projectId, string keyWord) + { + List res = new List(); + using (var db = new Model.SGGLDB(Funs.ConnString)) + { + var q = from x in db.View_WBS_BreakdownProject + where x.ProjectId == projectId && x.IsSelected == true + where keyWord == "" || x.BreakdownName.Contains(keyWord) + select x; + var list = q.ToList(); + foreach (var item in list) + { + BreakdownProject breakdownProject = new BreakdownProject(); + breakdownProject.AttachUrl = item.AttachUrl; + breakdownProject.BreakdownProjectId = item.BreakdownProjectId; + breakdownProject.ProjectId = item.ProjectId; + breakdownProject.BreakdownCode = item.BreakdownCode; + breakdownProject.BreakdownName = item.BreakdownName; + breakdownProject.DivisionProjectId = item.DivisionProjectId; + breakdownProject.Basis = item.Basis; + breakdownProject.CheckPoints = item.CheckPoints; + breakdownProject.RecordAndCode = item.RecordAndCode; + breakdownProject.Class = item.Class; + breakdownProject.SortIndex = item.SortIndex.HasValue ? item.SortIndex.Value.ToString() : ""; + breakdownProject.Remark = item.Remark; + breakdownProject.AttachUrl = item.AttachUrl; + breakdownProject.IsAcceptance = item.IsAcceptance.HasValue ? item.IsAcceptance.Value.ToString() : ""; + breakdownProject.FenBao = item.FenBao; + breakdownProject.WuHuan = item.WuHuan; + breakdownProject.JianLi = item.JianLi; + breakdownProject.YeZhu = item.YeZhu; + breakdownProject.IsSelected = item.IsSelected.HasValue ? "" : ""; + res.Add(breakdownProject); + + } + } + return res; + } + } +} diff --git a/SGGL/BLL/API/CQMS/QualityAssuranceService.cs b/SGGL/BLL/API/CQMS/QualityAssuranceService.cs new file mode 100644 index 00000000..77c1e2bd --- /dev/null +++ b/SGGL/BLL/API/CQMS/QualityAssuranceService.cs @@ -0,0 +1,1076 @@ + +using System; +using System.Collections.Generic; +using System.Data.Linq.SqlClient; +using System.Linq; + +namespace BLL +{ + public class QualityAssuranceService + { + #region 设计交底 + public class Comprehensive_DesignDetailsDto : Model.Comprehensive_DesignDetails + { + /// + /// 专业名称 + /// + public string ProfessionalName { get; set; } + + /// + /// 单位工程名称 + /// + public string UnitWorkNames { get; set; } + + /// + /// 单位名称 + /// + public string UnitNames { get; set; } + + public string DetailsDates { get; set; } + } + + /// + /// 设计交底列表 + /// + /// + /// + public static List getDesignDetailsList(string projectId, string cNProfessionalId = "") + { + var list = (from x in Funs.DB.Comprehensive_DesignDetails + join y in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals y.CNProfessionalId + where x.ProjectId == projectId + orderby x.CompileDate descending + select new Comprehensive_DesignDetailsDto() + { + DesignDetailsId = x.DesignDetailsId, + CNProfessionalId = x.CNProfessionalId, + ProfessionalName = y.ProfessionalName, + DesignDetailsCode = x.DesignDetailsCode, + DetailsMan = x.DetailsMan, + DetailsDates = string.Format("{0:yyyy-MM-dd}", x.DetailsDate), + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + UnitNames = ConvertCarryUnit(x.UnitName), + }).ToList(); + if (!string.IsNullOrEmpty(cNProfessionalId)) + { + list = list.Where(x => x.CNProfessionalId == cNProfessionalId).ToList(); + } + return list; + } + + public static Comprehensive_DesignDetailsDto getDesignDetails(string Id) + { + var list = (from x in Funs.DB.Comprehensive_DesignDetails + join y in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals y.CNProfessionalId + where x.DesignDetailsId == Id + select new Comprehensive_DesignDetailsDto() + { + DesignDetailsId = x.DesignDetailsId, + ProfessionalName = y.ProfessionalName, + DesignDetailsCode = x.DesignDetailsCode, + DetailsMan = x.DetailsMan, + DetailsDates = string.Format("{0:yyyy-MM-dd}", x.DetailsDate), + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + UnitNames = ConvertCarryUnit(x.UnitName), + JoinPersonNum = x.JoinPersonNum, + RemarCode = x.RemarCode, + AttachUrl = APIUpLoadFileService.getFileUrl(x.DesignDetailsId, null), + }).First(); + return list; + } + + /// + /// 获取单位工程名称 + /// + /// + /// + protected static string ConvertUnitWork(object CarryUnitWorks) + { + string CarryUnitWorkName = string.Empty; + if (CarryUnitWorks != null) + { + string[] Ids = CarryUnitWorks.ToString().Split(','); + foreach (string t in Ids) + { + var UnitWork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(t); + if (UnitWork != null) + { + CarryUnitWorkName += UnitWork.UnitWorkName + ","; + } + } + } + if (CarryUnitWorkName != string.Empty) + { + return CarryUnitWorkName.Substring(0, CarryUnitWorkName.Length - 1); + } + else + { + return ""; + } + } + + /// + /// 获取单位名称 + /// + /// + /// + protected static string ConvertCarryUnit(object CarryUnitIds) + { + string CarryUnitName = string.Empty; + if (CarryUnitIds != null) + { + string[] Ids = CarryUnitIds.ToString().Split(','); + foreach (string t in Ids) + { + var type = BLL.UnitService.GetUnitByUnitId(t); + if (type != null) + { + CarryUnitName += type.UnitName + ","; + } + } + } + if (CarryUnitName != string.Empty) + { + return CarryUnitName.Substring(0, CarryUnitName.Length - 1); + } + else + { + return ""; + } + } + #endregion + + #region 图纸会审 + public class Comprehensive_ReviewDrawingsDto : Model.Comprehensive_ReviewDrawings + { + public string ProfessionalName { get; set; } + + public string ReviewDates { get; set; } + + public string UnitWorkNames { get; set; } + + public string ReceiveUnitss { get; set; } + + public string AttachUrl { get; set; } + } + + /// + /// 图纸会审列表 + /// + /// + /// + /// + public static List getReviewDrawingsList(string projectId, string cNProfessionalId = "") + { + var list = (from x in Funs.DB.Comprehensive_ReviewDrawings + join y in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals y.CNProfessionalId + where x.ProjectId == projectId + orderby x.CreateDate descending + select new Comprehensive_ReviewDrawingsDto + { + Id = x.Id, + CNProfessionalId = x.CNProfessionalId, + ProfessionalName = y.ProfessionalName, + DraCode = x.DraCode, + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + ReceiveUnitss = ConvertCarryUnit(x.ReceiveUnits), + ReviewDates = string.Format("{0:yyyy-MM-dd}", x.ReviewDate), + }).ToList(); + if (!string.IsNullOrEmpty(cNProfessionalId)) + { + list = list.Where(x => x.CNProfessionalId == cNProfessionalId).ToList(); + } + return list; + } + + /// + /// 图纸会审详情 + /// + /// + /// + public static Comprehensive_ReviewDrawingsDto getReviewDrawings(string Id) + { + var list = (from x in Funs.DB.Comprehensive_ReviewDrawings + join y in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals y.CNProfessionalId + where x.Id == Id + select new Comprehensive_ReviewDrawingsDto + { + Id = x.Id, + CNProfessionalId = x.CNProfessionalId, + ProfessionalName = y.ProfessionalName, + DraCode = x.DraCode, + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + ReceiveUnitss = ConvertCarryUnit(x.ReceiveUnits), + ReviewDates = string.Format("{0:yyyy-MM-dd}", x.ReviewDate), + RemarkCode = x.RemarkCode, + Remarks = x.Remarks, + AttachUrl = APIUpLoadFileService.getFileUrl(x.Id, null), + }).First(); + return list; + } + #endregion + + #region 技术交底 + public class Comprehensive_ConTechnologyDisclosureDto : Model.Comprehensive_ConTechnologyDisclosure + { + public string ProfessionalName { get; set; } + + public string UnitName { get; set; } + + public string UnitWorkNames { get; set; } + + public string DisclosureDates { get; set; } + } + + public static List getConTechnologyDisclosureList(string projectId, string cNProfessionalId = "") + { + var list = (from x in Funs.DB.Comprehensive_ConTechnologyDisclosure + join y in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals y.CNProfessionalId + join z in Funs.DB.Base_Unit on x.UnitId equals z.UnitId + where x.ProjectId == projectId + orderby x.CompileDate descending + select new Comprehensive_ConTechnologyDisclosureDto + { + ConTechnologyDisclosureId = x.ConTechnologyDisclosureId, + ProfessionalName = y.ProfessionalName, + DisclosureCode = x.DisclosureCode, + DisclosureName = x.DisclosureName, + UnitName = z.UnitName, + DisclosureMan = x.DisclosureMan, + DisclosureDates = string.Format("{0:yyyy-MM-dd}", x.DisclosureDate), + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + AttendMan = x.AttendMan, + + }).ToList(); + if (!string.IsNullOrEmpty(cNProfessionalId)) + { + list = list.Where(x => x.CNProfessionalId == cNProfessionalId).ToList(); + } + return list; + } + + public static Comprehensive_ConTechnologyDisclosureDto getConTechnologyDisclosure(string Id) + { + var list = (from x in Funs.DB.Comprehensive_ConTechnologyDisclosure + join y in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals y.CNProfessionalId + join z in Funs.DB.Base_Unit on x.UnitId equals z.UnitId + where x.ConTechnologyDisclosureId == Id + select new Comprehensive_ConTechnologyDisclosureDto + { + ConTechnologyDisclosureId = x.ConTechnologyDisclosureId, + ProfessionalName = y.ProfessionalName, + DisclosureCode = x.DisclosureCode, + DisclosureName = x.DisclosureName, + UnitName = z.UnitName, + DisclosureMan = x.DisclosureMan, + DisclosureDates = string.Format("{0:yyyy-MM-dd}", x.DisclosureDate), + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + RemarkCode = x.RemarkCode, + AttendMan = x.AttendMan, + }).First(); + return list; + } + #endregion + + #region 人员报验 + public class Comprehensive_InspectionPersonDto : Model.Comprehensive_InspectionPerson + { + public string UnitName { get; set; } + + public string ProfessionalName { get; set; } + + public string UnitWorkNames { get; set; } + + public string PostName { get; set; } + + public string ValidityDates { get; set; } + + public string ApprovalTimes { get; set; } + + public string DepartureTimes { get; set; } + + public string IsOnSites { get; set; } + + public string IsTrains { get; set; } + + } + + /// + /// 人员报验列表 + /// + /// + /// + /// + public static List getInspectionPersonList(string projectId, string searchText = "") + { + var list = (from x in Funs.DB.Comprehensive_InspectionPerson + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join Cn in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals Cn.CNProfessionalId + join z in Funs.DB.Base_Post on x.PostId equals z.PostId + where x.ProjectId == projectId + orderby x.CompileDate descending + select new Comprehensive_InspectionPersonDto + { + InspectionPersonId = x.InspectionPersonId, + UnitName = y.UnitName, + InspectionPersonCode = x.InspectionPersonCode, + ProfessionalName = Cn.ProfessionalName, + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + PostName = z.PostName, + PersonName = x.PersonName, + CertificateNumber = x.CertificateNumber, + QualifiedProjectCode = x.QualifiedProjectCode, + ValidityDates = string.Format("{0:yyyy-MM-dd}", x.ValidityDate), + ApprovalTimes = string.Format("{0:yyyy-MM-dd}", x.ApprovalTime), + DepartureTimes = string.Format("{0:yyyy-MM-dd}", x.DepartureTime), + }).ToList(); + if (!string.IsNullOrEmpty(searchText)) + { + list = list.Where(x => x.PersonName.Contains(searchText)).ToList(); + } + return list; + } + + /// + /// 详情 + /// + /// + /// + public static Comprehensive_InspectionPersonDto getInspectionPerson(string Id) + { + var list = (from x in Funs.DB.Comprehensive_InspectionPerson + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join Cn in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals Cn.CNProfessionalId + join z in Funs.DB.Base_Post on x.PostId equals z.PostId + where x.InspectionPersonId == Id + select new Comprehensive_InspectionPersonDto + { + InspectionPersonId = x.InspectionPersonId, + UnitName = y.UnitName, + InspectionPersonCode = x.InspectionPersonCode, + ProfessionalName = Cn.ProfessionalName, + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + PostName = z.PostName, + PersonName = x.PersonName, + CertificateNumber = x.CertificateNumber, + QualifiedProjectCode = x.QualifiedProjectCode, + ValidityDates = string.Format("{0:yyyy-MM-dd}", x.ValidityDate), + ApprovalTimes = string.Format("{0:yyyy-MM-dd}", x.ApprovalTime), + DepartureTimes = string.Format("{0:yyyy-MM-dd}", x.DepartureTime), + IsOnSites = x.IsOnSite == true ? "是" : "否", + IsTrains = x.IsTrain == true ? "是" : "否", + RemarkCode = x.RemarkCode, + AttachUrl = APIUpLoadFileService.getFileUrl(x.InspectionPersonId, null), + }).First(); + return list; + } + #endregion + + #region 材料报验 + public class Comprehensive_InspectionEquipmentDto : Model.Comprehensive_InspectionEquipment + { + public string UnitName { get; set; } + + public string ProfessionalName { get; set; } + + public string InspectionDates { get; set; } + + public string Attributes { get; set; } + } + public static string getAttributesName(string aId) + { + if (aId == "1") + { + return "钢材出厂合格证、试验报告核查要录"; + } + else if (aId == "2") + { + return "钢筋机械连接、焊接接头检验报告核查要录"; + } + else if (aId == "3") + { + return "水泥合格证、试验报告核查要录"; + } + else if (aId == "4") + { + return "砖石(砌块)合格证、试验报告核查要录"; + } + else if (aId == "5") + { + return "防水材料合格证、检验报告核查要录"; + } + else if (aId == "6") + { + return "其它材料、构件合格证、试验报告核查要录"; + } + else if (aId == "7") + { + return "混凝土、砂浆试件抗压强度试验报告核查要录"; + } + else if (aId == "8") + { + return "混凝土抗渗试件试验报告核查要录"; + } + else if (aId == "9") + { + return "商品混凝土进场验收记录"; + } + else + { + return ""; + } + } + + public static List getInspectionEquipmentList(string projectId, string searchText = "") + { + var list = (from x in Funs.DB.Comprehensive_InspectionEquipment + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join Cn in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals Cn.CNProfessionalId + where x.ProjectId == projectId + orderby x.CompileDate descending + select new Comprehensive_InspectionEquipmentDto + { + InspectionEquipmentId = x.InspectionEquipmentId, + UnitName = y.UnitName, + InspectionCode = x.InspectionCode, + EquipmentNO = x.EquipmentNO, + ProfessionalName = Cn.ProfessionalName, + InspectionName = x.InspectionName, + Specifications = x.Specifications, + Supplier = x.Supplier, + Counts = x.Counts, + Unit = x.Unit, + SamplingCount = x.SamplingCount, + SamplingResult = x.SamplingResult, + InspectionDates = string.Format("{0:yyyy-MM-dd}", x.InspectionDate), + UsedPlace = x.UsedPlace, + + EquipmentOrMatail = x.EquipmentOrMatail, + Attributes = getAttributesName(x.Attribute), + RemarkCode = x.RemarkCode, + //AttachUrl = APIUpLoadFileService.getFileUrl(x.InspectionPersonId, null), + + }).ToList(); + if (!string.IsNullOrEmpty(searchText)) + { + list.Where(x => x.InspectionName.Contains(searchText)).ToList(); + } + return list; + } + + public static Comprehensive_InspectionEquipmentDto getInspectionEquipment(string Id) + { + var list = (from x in Funs.DB.Comprehensive_InspectionEquipment + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join Cn in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals Cn.CNProfessionalId + where x.InspectionEquipmentId == Id + select new Comprehensive_InspectionEquipmentDto + { + InspectionEquipmentId = x.InspectionEquipmentId, + UnitName = y.UnitName, + InspectionCode = x.InspectionCode, + EquipmentNO = x.EquipmentNO, + ProfessionalName = Cn.ProfessionalName, + InspectionName = x.InspectionName, + Specifications = x.Specifications, + Supplier = x.Supplier, + Counts = x.Counts, + Unit = x.Unit, + SamplingCount = x.SamplingCount, + SamplingResult = x.SamplingResult, + InspectionDates = string.Format("{0:yyyy-MM-dd}", x.InspectionDate), + UsedPlace = x.UsedPlace, + + EquipmentOrMatail = x.EquipmentOrMatail, + Attributes = getAttributesName(x.Attribute), + RemarkCode = x.RemarkCode, + AttachUrl = APIUpLoadFileService.getFileUrl(x.InspectionEquipmentId, null), + + }).First(); + + return list; + } + + #endregion + + #region 机具报验 + public class Comprehensive_InspectionMachineDto : Model.Comprehensive_InspectionMachine + { + public string UnitName { get; set; } + + public string ProfessionalName { get; set; } + + public string NextTestDates { get; set; } + + public string IsVerifications { get; set; } + + public string InspectionDates { get; set; } + + public string IsCheckOKs { get; set; } + + public string LeaveDates { get; set; } + + public string IsOnSites { get; set; } + } + public static List getInspectionMachineList(string projectId, string searchText = "") + { + + var list = (from x in Funs.DB.Comprehensive_InspectionMachine + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join Cn in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals Cn.CNProfessionalId + where x.ProjectId == projectId + orderby x.CompileDate descending + select new Comprehensive_InspectionMachineDto + { + InspectionMachineId = x.InspectionMachineId, + UnitName = y.UnitName, + InspectionMachineCode = x.InspectionMachineCode, + InspectionMachineName = x.InspectionMachineName, + ProfessionalName = Cn.ProfessionalName, + InspectionType = x.InspectionType, + SpecificationModel = x.SpecificationModel, + NextTestDates = string.Format("{0:yyyy-MM-dd}", x.NextTestDate), + TestCycle = x.TestCycle, + IsVerifications = x.IsVerification == true ? "是" : "否", + InspectionDates = string.Format("{0:yyyy-MM-dd}", x.InspectionDate), + IsCheckOKs = x.IsCheckOK == true ? "是" : "否", + UnitsCount = x.UnitsCount, + LeaveDates = string.Format("{0:yyyy-MM-dd}", x.LeaveDate), + IsOnSites = x.IsOnSite == true ? "是" : "否", + RemarkCode = x.RemarkCode + }).ToList(); + if (!string.IsNullOrEmpty(searchText)) + { + list.Where(x => x.InspectionMachineName.Contains(searchText)).ToList(); + } + return list; + } + + public static Comprehensive_InspectionMachineDto getInspectionMachine(string Id) + { + + var list = (from x in Funs.DB.Comprehensive_InspectionMachine + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join Cn in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals Cn.CNProfessionalId + where x.InspectionMachineId == Id + select new Comprehensive_InspectionMachineDto + { + InspectionMachineId = x.InspectionMachineId, + UnitName = y.UnitName, + InspectionMachineCode = x.InspectionMachineCode, + InspectionMachineName = x.InspectionMachineName, + ProfessionalName = Cn.ProfessionalName, + InspectionType = x.InspectionType, + SpecificationModel = x.SpecificationModel, + NextTestDates = string.Format("{0:yyyy-MM-dd}", x.NextTestDate), + TestCycle = x.TestCycle, + IsVerifications = x.IsVerification == true ? "是" : "否", + InspectionDates = string.Format("{0:yyyy-MM-dd}", x.InspectionDate), + IsCheckOKs = x.IsCheckOK == true ? "是" : "否", + UnitsCount = x.UnitsCount, + LeaveDates = string.Format("{0:yyyy-MM-dd}", x.LeaveDate), + IsOnSites = x.IsOnSite == true ? "是" : "否", + RemarkCode = x.RemarkCode, + AttachUrl = APIUpLoadFileService.getFileUrl(x.InspectionMachineId, null), + }).First(); + return list; + } + + #endregion + + #region 无损检测 + public class ProcessControl_NondestructiveTest_NewDto : Model.ProcessControl_NondestructiveTest_New + { + public string UnitName { get; set; } + + public string CreateDates { get; set; } + + public string AttachUrl { get; set; } + } + + public static List getNondestructiveTest_NewList(string projectId, string searchText = "") + { + var list = (from x in Funs.DB.ProcessControl_NondestructiveTest_New + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + where x.ProjectId == projectId + orderby x.CreateDate descending + select new ProcessControl_NondestructiveTest_NewDto + { + Id = x.Id, + UnitName = y.UnitName, + ProfessionalName = x.ProfessionalName, + MonthQuantity = x.MonthQuantity, + TotalQuantity = x.TotalQuantity, + MonthRate = x.MonthRate, + TotalRate = x.TotalRate, + CreateDates = string.Format("{0:yyyy-MM-dd}", x.CreateDate) + }).ToList(); + return list; + } + + public static ProcessControl_NondestructiveTest_NewDto getNondestructiveTest_New(string Id) + { + var list = (from x in Funs.DB.ProcessControl_NondestructiveTest_New + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + where x.Id == Id + select new ProcessControl_NondestructiveTest_NewDto + { + Id = x.Id, + UnitName = y.UnitName, + ProfessionalName = x.ProfessionalName, + MonthQuantity = x.MonthQuantity, + TotalQuantity = x.TotalQuantity, + MonthRate = x.MonthRate, + TotalRate = x.TotalRate, + CreateDates = string.Format("{0:yyyy-MM-dd}", x.CreateDate), + AttachUrl = APIUpLoadFileService.getFileUrl(x.Id, null), + }).First(); + return list; + } + + #endregion + + #region 压力管道 + public class Comprehensive_PressurePipeDto : Model.Comprehensive_PressurePipe + { + public string UnitName { get; set; } + + public string ReportTimes { get; set; } + public string AttachUrl { get; set; } + } + + public static List getPressurePipeList(string projectId, string searchText = "") + { + var list = (from x in Funs.DB.Comprehensive_PressurePipe + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + where x.Projctid == projectId + + select new Comprehensive_PressurePipeDto + { + PressurePipeId = x.PressurePipeId, + UnitName = y.UnitName, + EstimateNumber = x.EstimateNumber, + ActualNumber = x.ActualNumber, + PackageNumber = x.PackageNumber, + CompletePackageNumber = x.CompletePackageNumber, + PressurePipeNumber = x.PressurePipeNumber, + IssuedReportNumber = x.IssuedReportNumber, + RemarkCode = x.RemarkCode, + ReportTimes = string.Format("{0:yyyy-MM-dd}", x.ReportTime) + }).ToList(); + return list; + } + + public static Comprehensive_PressurePipeDto getPressurePipe(string Id) + { + var list = (from x in Funs.DB.Comprehensive_PressurePipe + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + where x.PressurePipeId == Id + select new Comprehensive_PressurePipeDto + { + PressurePipeId = x.PressurePipeId, + UnitName = y.UnitName, + EstimateNumber = x.EstimateNumber, + ActualNumber = x.ActualNumber, + PackageNumber = x.PackageNumber, + CompletePackageNumber = x.CompletePackageNumber, + PressurePipeNumber = x.PressurePipeNumber, + IssuedReportNumber = x.IssuedReportNumber, + RemarkCode = x.RemarkCode, + ReportTimes = string.Format("{0:yyyy-MM-dd}", x.ReportTime), + AttachUrl = APIUpLoadFileService.getFileUrl(x.PressurePipeId, null), + }).First(); + return list; + } + #endregion + + #region 特种设备 + public class Comprehensive_SpecialEquipmentDto : Model.Comprehensive_SpecialEquipment + { + public string UnitName { get; set; } + + public string SpecialEquipmentName { get; set; } + + public string ReportTimes { get; set; } + public string AttachUrl { get; set; } + } + + public static List getSpecialEquipmentList(string projectId, string searchText = "") + { + var list = (from x in Funs.DB.Comprehensive_SpecialEquipment + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join z in Funs.DB.Base_SpecialEquipment on x.EquipmentId equals z.SpecialEquipmentId + where x.ProjectId == projectId + select new Comprehensive_SpecialEquipmentDto + { + SpecialEquipmentId = x.SpecialEquipmentId, + UnitName = y.UnitName, + SpecialEquipmentName = z.SpecialEquipmentName, + PositionNum = x.PositionNum, + SunNumber = x.SunNumber, + InformNumber = x.InformNumber, + SubmitDataNumber = x.SubmitDataNumber, + MonitoringReportNumber = x.MonitoringReportNumber, + RemarkCode = x.RemarkCode, + ReportTimes = string.Format("{0:yyyy-MM-dd}", x.ReportTime), + } + ).ToList(); + return list; + } + + public static Comprehensive_SpecialEquipmentDto getSpecialEquipment(string Id) + { + var list = (from x in Funs.DB.Comprehensive_SpecialEquipment + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join z in Funs.DB.Base_SpecialEquipment on x.EquipmentId equals z.SpecialEquipmentId + where x.SpecialEquipmentId == Id + select new Comprehensive_SpecialEquipmentDto + { + SpecialEquipmentId = x.SpecialEquipmentId, + UnitName = y.UnitName, + SpecialEquipmentName = z.SpecialEquipmentName, + PositionNum = x.PositionNum, + SunNumber = x.SunNumber, + InformNumber = x.InformNumber, + SubmitDataNumber = x.SubmitDataNumber, + MonitoringReportNumber = x.MonitoringReportNumber, + RemarkCode = x.RemarkCode, + ReportTimes = string.Format("{0:yyyy-MM-dd}", x.ReportTime), + AttachUrl = APIUpLoadFileService.getFileUrl(x.SpecialEquipmentId, null), + } + ).First(); + return list; + } + #endregion + + #region 控制点检查检测 + + #endregion + + #region 控制点检查检测合格率统计 + public static DateTime NextDate; + public static DateTime NewDate; + public static DateTime EndDate; + public static List getInspectionManagementStatisticsList(string projectId, string searchText = "") + { + var StatisticsList = new List(); + Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(projectId); + var StartDate = Convert.ToDateTime(project.StartDate); + + + for (int i = 0; i < i + 1; i++) + { + Model.InspectionManagementStatistics Statistics = new Model.InspectionManagementStatistics(); + if (i == 0) + { + NextDate = Convert.ToDateTime(DateTime.Parse(StartDate.ToString("yyyy-MM-dd")).AddMonths(1).ToShortDateString()); + NewDate = Convert.ToDateTime(NextDate.Year + "-" + NextDate.Month + "-25"); + Statistics.CheckDate = string.Format("{0:yyyy-MM-dd}", StartDate) + " 至 "; + if (StartDate.Day < 25) + { + if (DateTime.Now < NewDate) + { + List managementListSunNumber = new List(); + List managementListOneNumber = new List(); + + //统计所给事件段的全部数量 + managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, DateTime.Now, false); + //统计所给事件段的合格数量 + managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, DateTime.Now, true); + + Statistics.CheckDate += string.Format("{0:yyyy-MM-dd}", DateTime.Now); + Statistics.SunNumber = managementListSunNumber.Count(); + Statistics.OneStatisticsSunNumber = managementListOneNumber.Count(); + if (managementListSunNumber.Count() != 0)//被除数不能为零 + { + Statistics.OneStatistics = Math.Round((double)managementListOneNumber.Count() / (double)managementListSunNumber.Count() * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + Statistics.OneStatistics = "0%"; + } + StatisticsList.Add(Statistics); + break; + } + else + { + List managementListSunNumber = new List(); + List managementListOneNumber = new List(); + NextDate = Convert.ToDateTime(StartDate.Year + "-" + StartDate.Month + "-25"); + + //统计所给事件段的全部数量 + managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, NewDate, false); + //统计所给事件段的合格数量 + managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, NewDate, true); + + Statistics.CheckDate += string.Format("{0:yyyy-MM-dd}", NextDate); + Statistics.SunNumber = managementListSunNumber.Count(); + Statistics.OneStatisticsSunNumber = managementListOneNumber.Count(); + if (managementListSunNumber.Count() != 0)//被除数不能为零 + { + Statistics.OneStatistics = Math.Round((double)managementListOneNumber.Count() / (double)managementListSunNumber.Count() * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + Statistics.OneStatistics = "0%"; + } + } + } + else + { + if (DateTime.Now < NewDate) + { + List managementListSunNumber = new List(); + List managementListOneNumber = new List(); + + //统计所给事件段的全部数量 + managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, DateTime.Now, false); + //统计所给事件段的合格数量 + managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, DateTime.Now, true); + + + + Statistics.CheckDate += string.Format("{0:yyyy-MM-dd}", DateTime.Now); + Statistics.SunNumber = managementListSunNumber.Count(); + Statistics.OneStatisticsSunNumber = managementListOneNumber.Count(); + if (managementListSunNumber.Count() != 0)//被除数不能为零 + { + Statistics.OneStatistics = Math.Round((double)managementListOneNumber.Count() / (double)managementListSunNumber.Count() * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + Statistics.OneStatistics = "0%"; + } + + StatisticsList.Add(Statistics); + break; + } + else + { + List managementListSunNumber = new List(); + List managementListOneNumber = new List(); + + //统计所给事件段的全部数量 + managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, NewDate, false); + //统计所给事件段的合格数量 + managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, NewDate, true); + + Statistics.CheckDate += string.Format("{0:yyyy-MM-dd}", NewDate); + Statistics.SunNumber = managementListSunNumber.Count(); + Statistics.OneStatisticsSunNumber = managementListOneNumber.Count(); + if (managementListSunNumber.Count() != 0)//被除数不能为零 + { + Statistics.OneStatistics = Math.Round((double)managementListOneNumber.Count() / (double)managementListSunNumber.Count() * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + Statistics.OneStatistics = "0%"; + } + } + } + } + else + { + + if (StartDate.Day > 25) + { + Statistics.CheckDate = NewDate.Year + "-" + NewDate.Month + "-" + (NewDate.Day + 1) + " 至 "; + StartDate = Convert.ToDateTime(NewDate.Year + "-" + NewDate.Month + "-" + (NewDate.Day + 1));//获取上一记录的结束日期加一天为本次记录的开始日期 + } + else + { + Statistics.CheckDate = NextDate.Year + "-" + NextDate.Month + "-" + (NextDate.Day + 1) + " 至 "; + StartDate = Convert.ToDateTime(NextDate.Year + "-" + NextDate.Month + "-" + (NextDate.Day + 1));//获取上一记录的结束日期加一天为本次记录的开始日期 + } + + NextDate = Convert.ToDateTime(DateTime.Parse(NextDate.ToString("yyyy-MM-dd")).AddMonths(1).ToShortDateString()); + NewDate = Convert.ToDateTime(NextDate.Year + "-" + NextDate.Month + "-25"); + if (DateTime.Now < NewDate) + { + List managementListSunNumber = new List(); + List managementListOneNumber = new List(); + + //统计所给事件段的全部数量 + managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, DateTime.Now, false); + //统计所给事件段的合格数量 + managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, DateTime.Now, true); + + Statistics.CheckDate += string.Format("{0:yyyy-MM-dd}", DateTime.Now); + Statistics.SunNumber = managementListSunNumber.Count(); + Statistics.OneStatisticsSunNumber = managementListOneNumber.Count(); + if (managementListSunNumber.Count() != 0)//被除数不能为零 + { + Statistics.OneStatistics = Math.Round((double)managementListOneNumber.Count() / (double)managementListSunNumber.Count() * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + Statistics.OneStatistics = "0%"; + } + + StatisticsList.Add(Statistics); + break; + } + else + { + List managementListSunNumber = new List(); + List managementListOneNumber = new List(); + + //统计所给事件段的全部数量 + managementListSunNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, NewDate, false); + //统计所给事件段的合格数量 + managementListOneNumber = BLL.InspectionManagementService.getInspectionManagementDetailListByDate(projectId, StartDate, NewDate, true); + + Statistics.CheckDate += string.Format("{0:yyyy-MM-dd}", NewDate); + Statistics.SunNumber = managementListSunNumber.Count(); + Statistics.OneStatisticsSunNumber = managementListOneNumber.Count(); + if (managementListSunNumber.Count() != 0)//被除数不能为零 + { + Statistics.OneStatistics = Math.Round((double)managementListOneNumber.Count() / (double)managementListSunNumber.Count() * 100, 2) + "%";//保留两位小数、后四舍五入 + } + else + { + Statistics.OneStatistics = "0%"; + } + } + } + StatisticsList.Add(Statistics); + + } + return StatisticsList; + } + #endregion + + #region 施工组织设计及施工方案管理 + public class Comprehensive_GeneralPlanApprovalDto : Model.Comprehensive_GeneralPlanApproval + { + public string UnitName { get; set; } + + public string ProfessionalName { get; set; } + + public string UnitWorkNames { get; set; } + + public string ApprovalDates { get; set; } + + //public string AttachUrl { get; set; } + } + + public static List getGeneralPlanList(string projectId, string searchText = "") + { + var list = (from x in Funs.DB.Comprehensive_GeneralPlanApproval + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join z in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals z.CNProfessionalId + where x.ProjectId == projectId + orderby x.ApprovalDate descending + select new Comprehensive_GeneralPlanApprovalDto + { + GeneralPlanApprovalId = x.GeneralPlanApprovalId, + UnitName = y.UnitName, + ProfessionalName = z.ProfessionalName, + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + PlanCode = x.PlanCode, + PlanName = x.PlanName, + ApprovalDates = string.Format("{0:yyyy-MM-dd}", x.ApprovalDate), + AuditMan = x.AuditMan, + ApprovalMan = x.ApprovalMan, + ImplementationDeviation = x.ImplementationDeviation, + RemarkCode = x.RemarkCode + }).ToList(); + return list; + } + + public static Comprehensive_GeneralPlanApprovalDto getGeneralPlan(string Id) + { + var list = (from x in Funs.DB.Comprehensive_GeneralPlanApproval + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join z in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals z.CNProfessionalId + where x.GeneralPlanApprovalId == Id + select new Comprehensive_GeneralPlanApprovalDto + { + GeneralPlanApprovalId = x.GeneralPlanApprovalId, + UnitName = y.UnitName, + ProfessionalName = z.ProfessionalName, + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + PlanCode = x.PlanCode, + PlanName = x.PlanName, + ApprovalDates = string.Format("{0:yyyy-MM-dd}", x.ApprovalDate), + AuditMan = x.AuditMan, + ApprovalMan = x.ApprovalMan, + ImplementationDeviation = x.ImplementationDeviation, + RemarkCode = x.RemarkCode, + AttachUrl = APIUpLoadFileService.getFileUrl(x.GeneralPlanApprovalId, null), + }).First(); + return list; + } + #endregion + + #region 超危大工程施工方案管理 + public class Comprehensive_MajorPlanApprovalDto : Model.Comprehensive_MajorPlanApproval + { + public string UnitName { get; set; } + + public string ProfessionalName { get; set; } + + public string UnitWorkNames { get; set; } + + public string ApprovalDates { get; set; } + + public string IsReviews { get; set; } + } + + public static List getMajorPlanList(string projectId, string searchText = "") + { + var list = (from x in Funs.DB.Comprehensive_MajorPlanApproval + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join z in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals z.CNProfessionalId + where x.ProjectId == projectId + orderby x.ApprovalDate descending + select new Comprehensive_MajorPlanApprovalDto { + MajorPlanApprovalId=x.MajorPlanApprovalId, + UnitName = y.UnitName, + ProfessionalName = z.ProfessionalName, + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + PlanCode = x.PlanCode, + PlanName = x.PlanName, + ReviewMan=x.ReviewMan, + ApprovalDates = string.Format("{0:yyyy-MM-dd}", x.ApprovalDate), + AuditMan=x.AuditMan, + ApprovalMan=x.ApprovalMan, + ExpertReviewMan = x.ExpertReviewMan, + IsReviews = x.IsReview==true?"是":"否", + ImplementationDeviation=x.ImplementationDeviation, + RemarkCode = x.RemarkCode, + }) + .ToList(); + return list; + } + + public static Comprehensive_MajorPlanApprovalDto getMajorPlan(string Id) + { + var list = (from x in Funs.DB.Comprehensive_MajorPlanApproval + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + join z in Funs.DB.Base_CNProfessional on x.CNProfessionalId equals z.CNProfessionalId + where x.MajorPlanApprovalId == Id + select new Comprehensive_MajorPlanApprovalDto + { + MajorPlanApprovalId = x.MajorPlanApprovalId, + UnitName = y.UnitName, + ProfessionalName = z.ProfessionalName, + UnitWorkNames = ConvertUnitWork(x.UnitWorkId), + PlanCode = x.PlanCode, + PlanName = x.PlanName, + ReviewMan = x.ReviewMan, + ApprovalDates = string.Format("{0:yyyy-MM-dd}", x.ApprovalDate), + AuditMan = x.AuditMan, + ApprovalMan = x.ApprovalMan, + IsReviews = x.IsReview == true ? "是" : "否", + ImplementationDeviation = x.ImplementationDeviation, + RemarkCode = x.RemarkCode, + ExpertReviewMan=x.ExpertReviewMan, + AttachUrl = APIUpLoadFileService.getFileUrl(x.MajorPlanApprovalId, null), + }) + .First(); + return list; + } + #endregion + } +} diff --git a/SGGL/BLL/API/HSSE/APIPageDataService.cs b/SGGL/BLL/API/HSSE/APIPageDataService.cs index ba6d276c..43746f29 100644 --- a/SGGL/BLL/API/HSSE/APIPageDataService.cs +++ b/SGGL/BLL/API/HSSE/APIPageDataService.cs @@ -167,6 +167,37 @@ namespace BLL return getSiteInOutList; } } + + public static List getPersonNumByCompany(DateTime dateValue,string[] pids) + { + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + List getSiteInOutList = new List(); + var getDayAll = from x in db.SitePerson_PersonInOutNow + join y in db.SitePerson_Person on x.PersonId equals y.PersonId + join z in db.Base_WorkPost on y.WorkPostId equals z.WorkPostId + where x.ChangeTime.Value.Year == dateValue.Year && x.ChangeTime.Value.Month == dateValue.Month + && x.ChangeTime.Value.Day == dateValue.Day && pids.Contains(x.ProjectId) + select new { x.PersonId, x.ChangeTime, x.IsIn, z.PostType }; + if (getDayAll.Count() > 0) + { + var getInMaxs = from x in getDayAll + group x by x.PersonId into g + select new Model.PageDataPersonInOutItem + { + PersonId = g.First().PersonId, + ChangeTime = g.Max(x => x.ChangeTime), + IsIn = g.First().IsIn, + PostType = g.First().PostType + }; + if (getInMaxs.Count() > 0) + { + getSiteInOutList = getInMaxs.Where(x => x.IsIn == true).ToList(); + } + } + return getSiteInOutList; + } + } #endregion } } diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 100e10d6..7a73dcf4 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -10,7 +10,7 @@ Properties BLL BLL - v4.6.1 + v4.6.2 512 @@ -51,9 +51,6 @@ False ..\FineUIPro\FineUIPro.dll - - False - False C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.ManagedDTS\v4.0_16.0.0.0__89845dcd8080cc91\新建文件夹\Microsoft.SQLServer.ManagedDTS.dll @@ -96,6 +93,9 @@ + + + @@ -292,11 +292,13 @@ + + @@ -843,10 +845,14 @@ + + + + diff --git a/SGGL/BLL/BaseInfo/CNProfessionalService.cs b/SGGL/BLL/BaseInfo/CNProfessionalService.cs index a5361053..ed46a47b 100644 --- a/SGGL/BLL/BaseInfo/CNProfessionalService.cs +++ b/SGGL/BLL/BaseInfo/CNProfessionalService.cs @@ -21,6 +21,11 @@ namespace BLL var q = (from x in Funs.DB.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalHSEId orderby x.SortIndex select x).ToList(); return q; } + + public static List GetCnProList() + { + return (from x in Funs.DB.Control_PointCropping where x.ParentId == null || x.ParentId == "" orderby x.OperateTime select x).ToList(); + } /// /// 添加 /// diff --git a/SGGL/BLL/CQMS/Comprehensive/DesignDrawingsService.cs b/SGGL/BLL/CQMS/Comprehensive/DesignDrawingsService.cs index 7289c9c1..c8fc3da6 100644 --- a/SGGL/BLL/CQMS/Comprehensive/DesignDrawingsService.cs +++ b/SGGL/BLL/CQMS/Comprehensive/DesignDrawingsService.cs @@ -62,7 +62,7 @@ namespace BLL } return from x in q.Skip(startRowIndex).Take(maximumRows) select new - { + { x.DesignDrawingsId, x.ProjectId, x.CNProfessionalId, diff --git a/SGGL/BLL/CQMS/Comprehensive/SpecialEquipmentService.cs b/SGGL/BLL/CQMS/Comprehensive/SpecialEquipmentService.cs index 7f697c09..462e8d7c 100644 --- a/SGGL/BLL/CQMS/Comprehensive/SpecialEquipmentService.cs +++ b/SGGL/BLL/CQMS/Comprehensive/SpecialEquipmentService.cs @@ -107,6 +107,7 @@ namespace BLL newEquipment.Status = SpecialEquipment.Status; newEquipment.PositionNum = SpecialEquipment.PositionNum; newEquipment.RemarkCode = SpecialEquipment.RemarkCode; + newEquipment.ReportTime = SpecialEquipment.ReportTime; db.Comprehensive_SpecialEquipment.InsertOnSubmit(newEquipment); db.SubmitChanges(); } @@ -131,6 +132,7 @@ namespace BLL newEquipment.Status = SpecialEquipment.Status; newEquipment.PositionNum = SpecialEquipment.PositionNum; newEquipment.RemarkCode = SpecialEquipment.RemarkCode; + newEquipment.ReportTime = SpecialEquipment.ReportTime; db.SubmitChanges(); } } diff --git a/SGGL/BLL/CQMS/ProcessControl/InspectionManagementService.cs b/SGGL/BLL/CQMS/ProcessControl/InspectionManagementService.cs index f8ff3af4..2d3b6cad 100644 --- a/SGGL/BLL/CQMS/ProcessControl/InspectionManagementService.cs +++ b/SGGL/BLL/CQMS/ProcessControl/InspectionManagementService.cs @@ -250,6 +250,8 @@ namespace BLL newInspectionManagement.UnqualifiedReason = inspectionManagement.UnqualifiedReason; newInspectionManagement.AcceptanceCheckMan = inspectionManagement.AcceptanceCheckMan; newInspectionManagement.FileType = inspectionManagement.FileType; + newInspectionManagement.ChildUnitWorkId = inspectionManagement.ChildUnitWorkId; + newInspectionManagement.ChildBranch = inspectionManagement.ChildBranch; db.ProcessControl_InspectionManagement.InsertOnSubmit(newInspectionManagement); db.SubmitChanges(); } @@ -282,6 +284,8 @@ namespace BLL newInspectionManagement.ParentDivisionProjectId = inspectionManagement.ParentDivisionProjectId; newInspectionManagement.UnqualifiedReason = inspectionManagement.UnqualifiedReason; newInspectionManagement.AcceptanceCheckMan = inspectionManagement.AcceptanceCheckMan; + newInspectionManagement.ChildUnitWorkId = inspectionManagement.ChildUnitWorkId; + newInspectionManagement.ChildBranch = inspectionManagement.ChildBranch; db.SubmitChanges(); } } diff --git a/SGGL/BLL/CQMS/Solution/CQMSConstructSolutionApproveService.cs b/SGGL/BLL/CQMS/Solution/CQMSConstructSolutionApproveService.cs index a4222ead..3d4ade20 100644 --- a/SGGL/BLL/CQMS/Solution/CQMSConstructSolutionApproveService.cs +++ b/SGGL/BLL/CQMS/Solution/CQMSConstructSolutionApproveService.cs @@ -37,6 +37,13 @@ namespace BLL return (from x in Funs.DB.Solution_CQMSConstructSolutionApprove where x.ConstructSolutionId == ConstructSolutionId && x.ApproveType != "S" && x.SignType == signType && x.Edition == edtion select x.ApproveMan).ToList(); } + public static List GetUserIdsApprovesBySignTypeNew(string ConstructSolutionId, string signType) + { + var edtion = GetUserIdsApprovesBySignTypeEditon(ConstructSolutionId); + return (from x in Funs.DB.Solution_CQMSConstructSolutionApprove where x.ConstructSolutionId == ConstructSolutionId && x.ApproveType != "S" + && x.SignType == signType && x.Edition == edtion-1 select x.ApproveMan).ToList(); + } + public static int? GetUserIdsApprovesBySignTypeEditon(string ConstructSolutionId) { int edition = 0; @@ -54,17 +61,19 @@ namespace BLL /// 施工方案审批实体 public static void UpdateConstructSolutionApprove(Model.Solution_CQMSConstructSolutionApprove approve) { - Model.SGGLDB db = Funs.DB; - Model.Solution_CQMSConstructSolutionApprove newApprove = db.Solution_CQMSConstructSolutionApprove.First(e => e.ConstructSolutionApproveId == approve.ConstructSolutionApproveId && e.ApproveDate == null); - newApprove.ConstructSolutionId = approve.ConstructSolutionId; - newApprove.ApproveMan = approve.ApproveMan; - newApprove.ApproveDate = approve.ApproveDate; - newApprove.ApproveIdea = approve.ApproveIdea; - newApprove.IsAgree = approve.IsAgree; - newApprove.ApproveType = approve.ApproveType; - newApprove.Edition = approve.Edition; - newApprove.Order=approve.Order; - db.SubmitChanges(); + using (var db = new Model.SGGLDB(Funs.ConnString)) { + + Model.Solution_CQMSConstructSolutionApprove newApprove = db.Solution_CQMSConstructSolutionApprove.First(e => e.ConstructSolutionApproveId == approve.ConstructSolutionApproveId && e.ApproveDate == null); + newApprove.ConstructSolutionId = approve.ConstructSolutionId; + newApprove.ApproveMan = approve.ApproveMan; + newApprove.ApproveDate = approve.ApproveDate; + newApprove.ApproveIdea = approve.ApproveIdea; + newApprove.IsAgree = approve.IsAgree; + newApprove.ApproveType = approve.ApproveType; + newApprove.Edition = approve.Edition; + newApprove.Order=approve.Order; + db.SubmitChanges(); + } } /// /// 根据施工方案发布Id获取所以对应施工方案审批信息(查询全部会签状态) @@ -78,6 +87,13 @@ namespace BLL } + public static List GetHandleConstructSolutionApprovesByConstructSolutionId2(string ConstructSolutionId, int edition) + { + var list = Funs.DB.Solution_CQMSConstructSolutionApprove.Where(p => p.ConstructSolutionId == ConstructSolutionId && p.ApproveType == Const.CQMSConstructSolution_Audit1 && p.Edition == edition).ToList(); + return list; + + } + public static List GetHandleConstruct(string ConstructSolutionId, int edition) { var list = Funs.DB.Solution_CQMSConstructSolutionApprove.Where(p => p.ConstructSolutionId == ConstructSolutionId && p.ApproveType != "S" && p.ApproveDate != null && p.Edition == edition).ToList(); @@ -162,10 +178,13 @@ namespace BLL /// public static void delSolutionApprove(string constructSolutionId, string man) { - Model.SGGLDB db = Funs.DB; - var q = (from x in Funs.DB.Solution_CQMSConstructSolutionApprove where x.ConstructSolutionId == constructSolutionId && x.ApproveType != "S" && x.ApproveMan.Equals(man) && x.ApproveDate == null select x).ToList(); - db.Solution_CQMSConstructSolutionApprove.DeleteAllOnSubmit(q); - db.SubmitChanges(); + using (var db = new Model.SGGLDB(Funs.ConnString)) + { + var q = db.Solution_CQMSConstructSolutionApprove.Where(x => x.ConstructSolutionId == constructSolutionId && x.ApproveType != "S" && x.ApproveMan.Equals(man) && x.ApproveDate == null) + .ToList(); + db.Solution_CQMSConstructSolutionApprove.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } } @@ -177,7 +196,7 @@ namespace BLL public static void DeleteConstructSolutionApprovesByConstructSolutionId(string ConstructSolutionId) { Model.SGGLDB db = Funs.DB; - var q = (from x in Funs.DB.Solution_CQMSConstructSolutionApprove where x.ConstructSolutionId == ConstructSolutionId select x).ToList(); + var q = (from x in db.Solution_CQMSConstructSolutionApprove where x.ConstructSolutionId == ConstructSolutionId select x).ToList(); db.Solution_CQMSConstructSolutionApprove.DeleteAllOnSubmit(q); db.SubmitChanges(); } @@ -209,8 +228,8 @@ namespace BLL /// 施工方案审批实体 public static void AddConstructSolutionApprove(Model.Solution_CQMSConstructSolutionApprove approve) { - var db = Funs.DB; - Model.Solution_CQMSConstructSolutionApprove newApprove = new Model.Solution_CQMSConstructSolutionApprove(); + using (var db = new Model.SGGLDB(Funs.ConnString)) { + Model.Solution_CQMSConstructSolutionApprove newApprove = new Model.Solution_CQMSConstructSolutionApprove(); if (string.IsNullOrWhiteSpace(approve.ConstructSolutionApproveId)) { newApprove.ConstructSolutionApproveId = SQLHelper.GetNewID(typeof(Model.Solution_CQMSConstructSolutionApprove)); @@ -227,9 +246,11 @@ namespace BLL newApprove.ApproveType = approve.ApproveType; newApprove.SignType = approve.SignType; newApprove.Edition = approve.Edition; - newApprove.Order= GetMaxOrderByConstructSolutionId(approve.ConstructSolutionId); + //newApprove.Order= GetMaxOrderByConstructSolutionId(approve.ConstructSolutionId); + newApprove.Order = approve.Order; db.Solution_CQMSConstructSolutionApprove.InsertOnSubmit(newApprove); db.SubmitChanges(); + } } public static int GetMaxOrderByConstructSolutionId(string constructSolutionId) @@ -254,18 +275,87 @@ namespace BLL select x).FirstOrDefault(); return q; } - public static string GetThisApproveNameByConstructSolutionId(object constructSolutionId) + + public static List GetThisApproveByConstructSolutionId(string constructSolutionId,string state) { - string name = ""; - var q = (from x in Funs.DB.Solution_CQMSConstructSolutionApprove - where x.ConstructSolutionId == constructSolutionId.ToString() && x.ApproveDate == null - orderby x.Order - select x).FirstOrDefault(); - if (q!=null) + var constructSolution = + CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId(constructSolutionId.ToString()); + + var q = new List(); + if (state == "2") { - name = UserService.GetUserNameByUserId(q.ApproveMan); + q = (from x in Funs.DB.Solution_CQMSConstructSolutionApprove + where x.ConstructSolutionId == constructSolutionId && x.ApproveDate == null + && x.SignType == "Yi" + && x.Edition==constructSolution.Edition + orderby x.Order + select x).ToList(); } - return name; + else if (state == "3") + { + q = (from x in Funs.DB.Solution_CQMSConstructSolutionApprove + where x.ConstructSolutionId == constructSolutionId && x.ApproveDate == null + && x.SignType == "Er" + && x.Edition == constructSolution.Edition + orderby x.Order + select x).ToList(); + } + else { + q = (from x in Funs.DB.Solution_CQMSConstructSolutionApprove + where x.ConstructSolutionId == constructSolutionId && x.ApproveDate == null + && x.SignType == null + && x.Edition == constructSolution.Edition + orderby x.Order + select x).ToList(); + } + return q; + } + + //加载审批人 + public static string GetThisApproveNameByConstructSolutionId(object constructSolutionId,object state) + { + var constructSolution = + CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId(constructSolutionId.ToString()); + + string name = ""; + if (state.ToString() == "2") + { + var q = (from x in Funs.DB.Solution_CQMSConstructSolutionApprove + where x.ConstructSolutionId == constructSolutionId.ToString() && x.ApproveDate == null + && x.Edition == constructSolution.Edition + && x.SignType == "Yi" + orderby x.Order + select x).ToList(); + if (q.Count > 0) + { + foreach (var item in q) + { + name += UserService.GetUserNameByUserId(item.ApproveMan) + ","; + } + } + return name; + } + else if (state.ToString() == "3") + { + var q = (from x in Funs.DB.Solution_CQMSConstructSolutionApprove + where x.ConstructSolutionId == constructSolutionId.ToString() && x.ApproveDate == null + && x.SignType == "Er" + && x.Edition == constructSolution.Edition + orderby x.Order + select x).ToList(); + if (q.Count > 0) + { + foreach (var item in q) + { + name += UserService.GetUserNameByUserId(item.ApproveMan) + ","; + } + } + return name; + } + else { + return ""; + } + } /// /// 推送待办给下一步办理人 diff --git a/SGGL/BLL/CQMS/Solution/CQMSConstructSolutionService.cs b/SGGL/BLL/CQMS/Solution/CQMSConstructSolutionService.cs index 2d3ac3c9..36c2bc3d 100644 --- a/SGGL/BLL/CQMS/Solution/CQMSConstructSolutionService.cs +++ b/SGGL/BLL/CQMS/Solution/CQMSConstructSolutionService.cs @@ -66,6 +66,8 @@ namespace BLL newConstructSolution.Edition = constructSolution.Edition; newConstructSolution.SpecialSchemeTypeId = constructSolution.SpecialSchemeTypeId; newConstructSolution.Content= constructSolution.Content; + newConstructSolution.CsUsers = constructSolution.CsUsers; + db.Solution_CQMSConstructSolution.InsertOnSubmit(newConstructSolution); db.SubmitChanges(); } @@ -75,20 +77,22 @@ namespace BLL /// 方案审查实体 public static void UpdateConstructSolution(Model.Solution_CQMSConstructSolution constructSolution) { - Model.SGGLDB db = Funs.DB; - Model.Solution_CQMSConstructSolution newConstructSolution = db.Solution_CQMSConstructSolution.First(e => e.ConstructSolutionId == constructSolution.ConstructSolutionId); - newConstructSolution.Code = constructSolution.Code; - newConstructSolution.UnitId = constructSolution.UnitId; - newConstructSolution.SolutionName = constructSolution.SolutionName; - newConstructSolution.SolutionType = constructSolution.SolutionType; - newConstructSolution.UnitWorkIds = constructSolution.UnitWorkIds; - newConstructSolution.CNProfessionalCodes = constructSolution.CNProfessionalCodes; - newConstructSolution.AttachUrl = constructSolution.AttachUrl; - newConstructSolution.State = constructSolution.State; - newConstructSolution.Edition = constructSolution.Edition; - newConstructSolution.SpecialSchemeTypeId = constructSolution.SpecialSchemeTypeId; - newConstructSolution.Content= constructSolution.Content; - db.SubmitChanges(); + using (var db = new Model.SGGLDB(Funs.ConnString)) { + Model.Solution_CQMSConstructSolution newConstructSolution = db.Solution_CQMSConstructSolution.First(e => e.ConstructSolutionId == constructSolution.ConstructSolutionId); + newConstructSolution.Code = constructSolution.Code; + newConstructSolution.UnitId = constructSolution.UnitId; + newConstructSolution.SolutionName = constructSolution.SolutionName; + newConstructSolution.SolutionType = constructSolution.SolutionType; + newConstructSolution.UnitWorkIds = constructSolution.UnitWorkIds; + newConstructSolution.CNProfessionalCodes = constructSolution.CNProfessionalCodes; + newConstructSolution.AttachUrl = constructSolution.AttachUrl; + newConstructSolution.State = constructSolution.State; + newConstructSolution.Edition = constructSolution.Edition; + newConstructSolution.SpecialSchemeTypeId = constructSolution.SpecialSchemeTypeId; + newConstructSolution.Content= constructSolution.Content; + newConstructSolution.CsUsers = constructSolution.CsUsers; + db.SubmitChanges(); + } } @@ -112,7 +116,11 @@ namespace BLL } else if (state.ToString() == BLL.Const.CQMSConstructSolution_Audit) { - return "会签"; + return "一级审批"; + } + else if (state.ToString() == BLL.Const.CQMSConstructSolution_Audit1) + { + return "二级审核"; } else if (state.ToString() == BLL.Const.CQMSConstructSolution_Complete) { diff --git a/SGGL/BLL/CQMS/WBS/DivisionDivideService.cs b/SGGL/BLL/CQMS/WBS/DivisionDivideService.cs new file mode 100644 index 00000000..0da5073b --- /dev/null +++ b/SGGL/BLL/CQMS/WBS/DivisionDivideService.cs @@ -0,0 +1,76 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + public class DivisionDivideService + { + /// + /// 根据DivisionId获取分部分项工程划分 + /// + /// + /// + public static Model.WBS_DivisionDivide GetDivisionDivideByDivisionId(string unitWorkId, string divisionId) + { + return Funs.DB.WBS_DivisionDivide.FirstOrDefault(e => e.UnitWorkId == unitWorkId && e.DivisionId == divisionId); + } + + /// + /// 添加单位分部分项工程划分、裁剪 + /// + /// + public static void AddDivisionDivide(Model.WBS_DivisionDivide divide) + { + Model.WBS_DivisionDivide newDivide = new Model.WBS_DivisionDivide + { + DivisionDivideId = divide.DivisionDivideId, + ProjectId = divide.ProjectId, + DivisionId = divide.DivisionId, + UnitWorkId = divide.UnitWorkId + }; + Funs.DB.WBS_DivisionDivide.InsertOnSubmit(newDivide); + Funs.DB.SubmitChanges(); + } + + /// + /// 根据分项Id删除 + /// + /// + public static void DeleteDivisionDivideByDivisionId(string divisionId) + { + Model.WBS_DivisionDivide divisionDivide = Funs.DB.WBS_DivisionDivide.FirstOrDefault(e => e.DivisionId == divisionId); + if (divisionDivide!=null) + { + Funs.DB.WBS_DivisionDivide.DeleteOnSubmit(divisionDivide); + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据单位工程/子单位工程删除 + /// + /// + public static void DeleteDivisionDivideByUnitWorkId(string unitWorkId) + { + var div = (from x in Funs.DB.WBS_DivisionDivide where x.UnitWorkId == unitWorkId select x).ToList(); + if (div != null) + { + Funs.DB.WBS_DivisionDivide.DeleteAllOnSubmit(div); + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据单位工程Id获取数据 + /// + /// + /// + public static List GetDivisionDivideByUnitWorkId(string unitWorkId) + { + return (from x in Funs.DB.WBS_DivisionDivide where x.UnitWorkId == unitWorkId select x).ToList(); + } + } +} diff --git a/SGGL/BLL/CQMS/WBS/SubProjectsService.cs b/SGGL/BLL/CQMS/WBS/SubProjectsService.cs new file mode 100644 index 00000000..32f86579 --- /dev/null +++ b/SGGL/BLL/CQMS/WBS/SubProjectsService.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Model; + +namespace BLL +{ + /// + /// 分部分项工程 + /// + public class SubProjectsService + { + /// + /// 根据主键获取分部分项工程 + /// + /// + /// + public static Model.Division_SubProjects GetSubProjectsById(string divisionId) + { + return Funs.DB.Division_SubProjects.FirstOrDefault(e => e.DivisionId == divisionId); + } + + /// + /// 根据项目Id获取分部分项工程数量 + /// + /// + /// + public static int GetSubProjectsByProjectId(string projectId) + { + return (from x in Funs.DB.Division_SubProjects where x.ProjectId == projectId select x).Count(); + } + + /// + /// 添加分部分项 + /// + /// + public static void AddSubProjects(Division_SubProjects subProjects) + { + Model.Division_SubProjects newSubProjects = new Division_SubProjects + { + DivisionId = subProjects.DivisionId, + ProjectId = subProjects.ProjectId, + ParentId = subProjects.ParentId, + DivisionLevel = subProjects.DivisionLevel, + BranchEngineeringCode = subProjects.BranchEngineeringCode, + BranchEngineeringName = subProjects.BranchEngineeringName, + SubBranchEngineeringName = subProjects.SubBranchEngineeringName, + ProEngineeringCode = subProjects.ProEngineeringCode, + ProEngineeringName = subProjects.ProEngineeringName, + ProEngineeringNum = subProjects.ProEngineeringNum, + Remark = subProjects.Remark, + Status=subProjects.Status, + AddUser=subProjects.AddUser, + OperateTime=subProjects.OperateTime, + Sort=subProjects.Sort + }; + Funs.DB.Division_SubProjects.InsertOnSubmit(newSubProjects); + Funs.DB.SubmitChanges(); + } + + /// + /// 修改分部分项 + /// + /// + public static void UpdateSubProjects(Division_SubProjects subProjects) + { + Model.Division_SubProjects newSubProjects = Funs.DB.Division_SubProjects.FirstOrDefault(e => e.DivisionId == subProjects.DivisionId); + if (newSubProjects!=null) + { + newSubProjects.ParentId = subProjects.ParentId; + newSubProjects.DivisionLevel = subProjects.DivisionLevel; + newSubProjects.BranchEngineeringCode = subProjects.BranchEngineeringCode; + newSubProjects.BranchEngineeringName = subProjects.BranchEngineeringName; + newSubProjects.SubBranchEngineeringName = subProjects.SubBranchEngineeringName; + newSubProjects.ProEngineeringCode = subProjects.ProEngineeringCode; + newSubProjects.ProEngineeringName = subProjects.ProEngineeringName; + newSubProjects.ProEngineeringNum = subProjects.ProEngineeringNum; + newSubProjects.Remark = subProjects.Remark; + newSubProjects.Status = subProjects.Status; + newSubProjects.AddUser = subProjects.AddUser; + newSubProjects.OperateTime = subProjects.OperateTime; + newSubProjects.Sort = subProjects.Sort; + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据主键删除分部分项工程 + /// + /// + public static void DeleteSubProjectsById(string divisionId) + { + var subProjects = Funs.DB.Division_SubProjects.FirstOrDefault(e => e.DivisionId == divisionId); + if (subProjects != null) + { + Funs.DB.Division_SubProjects.DeleteOnSubmit(subProjects); + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/Common/AttachFileService.cs b/SGGL/BLL/Common/AttachFileService.cs index 9a50abef..d4a5d72d 100644 --- a/SGGL/BLL/Common/AttachFileService.cs +++ b/SGGL/BLL/Common/AttachFileService.cs @@ -501,6 +501,9 @@ namespace BLL list.Add(".txt"); list.Add(".xlsx"); list.Add(".xls"); + list.Add(".png"); + list.Add(".jpg"); + list.Add(".jpeg"); foreach (var item in list) { if (item == FiletExtension) diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index d2b95329..395393e0 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -5,10 +5,11 @@ namespace BLL { public static class Const { + /// - /// 时间书签(用于筛选数据范围) + /// 时间书签(用于筛选数据范围)修改日期 2024-10-19 18:55:14 由2023改成2020 /// - public static DateTime DtmarkTime = DateTime.Parse("2023-01-01"); + public static DateTime DtmarkTime = DateTime.Parse("2020-01-01"); #region 查询字段:系统设置 /// /// 系统管理员ID @@ -3364,6 +3365,11 @@ namespace BLL /// public const string HseMonthReportNewTemplateUrl = "File\\Word\\HSSE\\项目安全月报.doc"; + /// + /// 单位分部分项工程划分模板 + /// + public const string DivisionDivideTempUrl = "File\\Excel\\DataIn\\单位分部分项工程划分导入模板.xls"; + #region 导出模板 /// /// 质量专项检查模板文件原始虚拟路径 @@ -3778,6 +3784,21 @@ namespace BLL /// public const string ControlItemAndCycleShowMenuId = "94217974-201A-4D4F-A832-D9477ACD63A5"; + /// + /// 单位分部分项工程划分、裁剪 + /// + public const string DivisionDivideAndCropMenuId = "FB94A120-921B-4AAB-B54F-EC11B6F561FD"; + + /// + /// 单位分部分项工程划分表 + /// + public const string DivisionDivideListMenuId = "BA250432-492B-49A3-8BB6-D04BF74D2EDD"; + + /// + /// 分部分项工程数据库 + /// + public const string DivisionSubProjectsMenuId = "17E206A1-E06B-40C0-8DCB-E3AAA2E3B339"; + #endregion #region 工序验收 @@ -4636,14 +4657,21 @@ namespace BLL public static string CQMSConstructSolution_Compile = "1"; /// - /// 会签 + /// 一级审批 /// public static string CQMSConstructSolution_Audit = "2"; + /// + /// 二级审批 + /// + public static string CQMSConstructSolution_Audit1 = "3"; + /// /// 审批完成 /// - public static string CQMSConstructSolution_Complete = "3"; + public static string CQMSConstructSolution_Complete = "4"; + + #endregion @@ -6071,5 +6099,31 @@ namespace BLL /// HSSE管理月报新 /// public const string ManagerMonthCNewMenuId = "9E4B28DF-8C8E-49F8-AB15-270BBDC73449"; + + /// + /// 中央企业安全生产治本攻坚三年行动工作台账 + /// + public const string ActionWorkLedgerMenuId = "CB76394B-BDEB-4F45-9D19-F38612DC6591"; + + + /// + /// 中央企业安全生产管理评价工作调度台账 + /// + public const string SafetyProductionEvaluationMenuId = "C48087A8-4C9F-485D-B0A4-C85E112BA705"; + + /// + /// 中央企业安全生产治本攻坚三年行动工作台账 + /// + public const string ReportType_11 = "11"; + + /// + /// 中央企业安全生产管理评价工作调度台账上报 + /// + public const string ReportType_12 = "12"; + + /// + /// 施工工程师(总包) + /// + public const string SGEngineer = "F7302DA3-B522-43F9-98CC-6317622A884E"; } } \ No newline at end of file diff --git a/SGGL/BLL/Common/Funs.cs b/SGGL/BLL/Common/Funs.cs index d9cfa096..4df1e5b8 100644 --- a/SGGL/BLL/Common/Funs.cs +++ b/SGGL/BLL/Common/Funs.cs @@ -10,6 +10,7 @@ namespace BLL using System.Linq; using System.Net; using System.Reflection; + using System.Security.Cryptography; using System.Text; /// @@ -1281,6 +1282,25 @@ namespace BLL IRestResponse response = client.Execute(request); return response.Content; } + public static string GetMD5(string str) + { + using (MD5 md5 = MD5.Create()) + { + // ½«ÊäÈë×ַû´®ת»»Ϊ×ֽÚÊý×鲢¼ÆËã¹þϣֵ + byte[] inputBytes = Encoding.ASCII.GetBytes(str); + byte[] hashBytes = md5.ComputeHash(inputBytes); + + // ½«×ֽÚÊý×éת»»ΪʮÁù½øÖÆ×ַû´® + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < hashBytes.Length; i++) + { + sb.Append(hashBytes[i].ToString("X2")); + } + + return sb.ToString(); + } + + } } } diff --git a/SGGL/BLL/Const.txt b/SGGL/BLL/Const.txt new file mode 100644 index 00000000..768e7fd6 --- /dev/null +++ b/SGGL/BLL/Const.txt @@ -0,0 +1,10 @@ + /// + /// 中央企业安全生产治本攻坚三年行动工作台账 + /// + public const string ActionWorkLedgerMenuId = "CB76394B-BDEB-4F45-9D19-F38612DC6591"; + + + /// + /// 中央企业安全生产管理评价工作调度台账 + /// + public const string SafetyProductionEvaluationMenuId = "C48087A8-4C9F-485D-B0A4-C85E112BA705"; \ No newline at end of file diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/CheckSortCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/CheckSortCService.cs index 1252af92..2c988a71 100644 --- a/SGGL/BLL/HSSE/Manager/ManagerMonthC/CheckSortCService.cs +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/CheckSortCService.cs @@ -77,9 +77,13 @@ namespace BLL /// 月报告主键 public static void DeleteCheckSortsByMonthReportId(string monthReportId) { - var q = (from x in db.Manager_CheckSortC where x.MonthReportId == monthReportId select x).ToList(); - db.Manager_CheckSortC.DeleteAllOnSubmit(q); - db.SubmitChanges(); + var q = Funs.DB.Manager_CheckSortC.Where(x=>x.MonthReportId== monthReportId).ToList(); + if (q.Count>0) + { + Funs.DB.Manager_CheckSortC.DeleteAllOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } } } diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/ComplianceObligationsCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/ComplianceObligationsCService.cs index 313d61fd..f6f2d6b7 100644 --- a/SGGL/BLL/HSSE/Manager/ManagerMonthC/ComplianceObligationsCService.cs +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/ComplianceObligationsCService.cs @@ -53,5 +53,67 @@ namespace BLL Funs.DB.SubmitChanges(); } } + + #region 施工方案审批 + public static void AddSolution_CQMSConstructSolutionApprove_Item(Model.Solution_CQMSConstructSolutionApprove_Item data) + { + using (var db = new Model.SGGLDB(Funs.ConnString)) { + Model.Solution_CQMSConstructSolutionApprove_Item newData = new Model.Solution_CQMSConstructSolutionApprove_Item + { + Id = data.Id, + TypeSortId = data.TypeSortId, + ConstructSolutionId = data.ConstructSolutionId, + SortId = data.SortId, + Chapter = data.Chapter, + Amendment = data.Amendment, + Proposer=data.Proposer, + ProposerName=data.ProposerName, + Modification = data.Modification, + ReviewerOpinion = data.ReviewerOpinion, + IsAccept = data.IsAccept, + }; + db.Solution_CQMSConstructSolutionApprove_Item.InsertOnSubmit(newData); + db.SubmitChanges(); + } + } + + public static void UpdateSolution_CQMSConstructSolutionApprove_Item(Model.Solution_CQMSConstructSolutionApprove_Item data) { + using (var db = new Model.SGGLDB(Funs.ConnString)) + { + var result = db.Solution_CQMSConstructSolutionApprove_Item.FirstOrDefault(a => a.Id == data.Id); + if (result != null) + { + result.Modification = data.Modification; + db.SubmitChanges(); + } + } + } + + public static void UpdateSolution_CQMSConstructSolutionApprove_ItemNew(Model.Solution_CQMSConstructSolutionApprove_Item data) + { + using (var db = new Model.SGGLDB(Funs.ConnString)) + { + var result = db.Solution_CQMSConstructSolutionApprove_Item.FirstOrDefault(a => a.Id == data.Id); + if (result != null) + { + result.ReviewerOpinion = data.ReviewerOpinion; + result.IsAccept = data.IsAccept; + db.SubmitChanges(); + } + } + } + + public static void DeleteSolution_CQMSConstructSolutionApprove_Item(string ConstructSolutionId,string Proposer) + { + var q = (from x in Funs.DB.Solution_CQMSConstructSolutionApprove_Item where x.ConstructSolutionId == ConstructSolutionId + && x.Proposer== Proposer + select x).ToList(); + if (q .Count>0) + { + Funs.DB.Solution_CQMSConstructSolutionApprove_Item.DeleteAllOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } + #endregion } } diff --git a/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs b/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs index c9a101a8..edf74a54 100644 --- a/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs +++ b/SGGL/BLL/HSSE/Manager/ManagerMonthC/PersonSortCService.cs @@ -55,8 +55,11 @@ namespace BLL public static void DeletePersonSortsByMonthReportId(string monthReportId) { var q = (from x in db.Manager_PersonSortC where x.MonthReportId == monthReportId select x).ToList(); - db.Manager_PersonSortC.DeleteAllOnSubmit(q); - db.SubmitChanges(); + if (q.Count>0) + { + db.Manager_PersonSortC.DeleteAllOnSubmit(q); + db.SubmitChanges(); + } } /// diff --git a/SGGL/BLL/PZHGL/GJSX/GJSXItemService.cs b/SGGL/BLL/PZHGL/GJSX/GJSXItemService.cs index cd0f27b9..c206c13c 100644 --- a/SGGL/BLL/PZHGL/GJSX/GJSXItemService.cs +++ b/SGGL/BLL/PZHGL/GJSX/GJSXItemService.cs @@ -54,7 +54,7 @@ namespace BLL string newKeyID = SQLHelper.GetNewID(typeof(Model.GJSX_detail)); Model.GJSX_detail newGJSXMX = new Model.GJSX_detail(); - newGJSXMX.Cuid = newKeyID; + newGJSXMX.Cuid = gjsxmx.Cuid; newGJSXMX.GJSXID = gjsxmx.GJSXID; newGJSXMX.Progress_user = gjsxmx.Progress_user; newGJSXMX.Progress_detail = gjsxmx.Progress_detail; diff --git a/SGGL/BLL/PZHGL/GJSX/GJSXService.cs b/SGGL/BLL/PZHGL/GJSX/GJSXService.cs index 5b7e2c10..5060bbf3 100644 --- a/SGGL/BLL/PZHGL/GJSX/GJSXService.cs +++ b/SGGL/BLL/PZHGL/GJSX/GJSXService.cs @@ -43,7 +43,9 @@ namespace BLL IsManypeople = _GJSX.IsManypeople, CompleteDate = _GJSX.CompleteDate, AttachUrl = _GJSX.AttachUrl, - User_Acceptance = _GJSX.User_Acceptance + User_Acceptance = _GJSX.User_Acceptance, + + CsUsers=_GJSX.CsUsers }; db.GJSX.InsertOnSubmit(newGJSX); @@ -75,6 +77,7 @@ namespace BLL newGJSX.CompleteDate = _GJSX.CompleteDate; newGJSX.AttachUrl = _GJSX.AttachUrl; newGJSX.User_Acceptance = _GJSX.User_Acceptance; + newGJSX.CsUsers = _GJSX.CsUsers; db.SubmitChanges(); } } diff --git a/SGGL/BLL/ProjectData/ProjectService.cs b/SGGL/BLL/ProjectData/ProjectService.cs index ca2f2232..fcf65cef 100644 --- a/SGGL/BLL/ProjectData/ProjectService.cs +++ b/SGGL/BLL/ProjectData/ProjectService.cs @@ -251,12 +251,23 @@ /// 获取项目下拉选项 /// /// - public static List GetAllProjectDropDownList() + public static List GetAllProjectDropDownList(string[] pids = null) { - var list = (from x in Funs.DB.Base_Project - orderby x.ProjectCode descending - select x).ToList(); - return list; + if (pids == null) + { + var list = (from x in Funs.DB.Base_Project + orderby x.ProjectCode descending + select x).ToList(); + return list; + } + else { + var list = (from x in Funs.DB.Base_Project + where pids.Contains(x.ProjectId) + orderby x.ProjectCode descending + select x).ToList(); + return list; + } + } @@ -315,7 +326,7 @@ /// 获取userId参与项目下拉框 /// /// - public static List GetProjectByUserIdStateDropDownList(string userId, string state) + public static List GetProjectByUserIdStateDropDownList(string userId, string state,string urlType="") { if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId) { @@ -329,20 +340,42 @@ { /// 获取角色类型 var getRoleP = Funs.DB.Sys_RolePower.FirstOrDefault(x => x.RoleId == getUser.RoleId && x.IsOffice == false); - if (getRoleP != null) + //如果是项目级别,获取到他的类型后,并且还要单位是五环的 + if (!string.IsNullOrEmpty(urlType)) { - return (from x in Funs.DB.Base_Project - where x.ProjectState == state - orderby x.ProjectCode descending - select x).ToList(); + //五环的能看所有项目,否则只能看项目用户中有自己或者所属单位是自己单位的 + if (getRoleP != null && getUser.UnitId== Const.UnitId_CWCEC) + { + return (from x in Funs.DB.Base_Project + where x.ProjectState == state + orderby x.ProjectCode descending + select x).ToList(); + } + else + { + return (from x in Funs.DB.Base_Project + join y in Funs.DB.Project_ProjectUser on x.ProjectId equals y.ProjectId + where ( (y.UserId == userId && y.IsPost == true)|| x.UnitId== getUser.UnitId) && x.ProjectState == state + orderby x.ProjectCode descending + select x).Distinct().ToList(); + } } - else - { - return (from x in Funs.DB.Base_Project - join y in Funs.DB.Project_ProjectUser on x.ProjectId equals y.ProjectId - where y.UserId == userId && y.IsPost == true && x.ProjectState == state - orderby x.ProjectCode descending - select x).Distinct().ToList(); + else { + if (getRoleP != null) + { + return (from x in Funs.DB.Base_Project + where x.ProjectState == state + orderby x.ProjectCode descending + select x).ToList(); + } + else + { + return (from x in Funs.DB.Base_Project + join y in Funs.DB.Project_ProjectUser on x.ProjectId equals y.ProjectId + where y.UserId == userId && y.IsPost == true && x.ProjectState == state + orderby x.ProjectCode descending + select x).Distinct().ToList(); + } } } else @@ -448,11 +481,11 @@ /// /// /// - public static void InitProjectShortNameByStateDropDownList(FineUIPro.DropDownList dropName, string userId, string state, bool isShowPlease) + public static void InitProjectShortNameByStateDropDownList(FineUIPro.DropDownList dropName, string userId, string state, bool isShowPlease,string urlType="") { dropName.DataValueField = "ProjectId"; dropName.DataTextField = "ProjectName"; - var projectlist = GetProjectByUserIdStateDropDownList(userId, state); + var projectlist = GetProjectByUserIdStateDropDownList(userId, state, urlType); dropName.DataSource = projectlist; dropName.DataBind(); if (projectlist.Count() == 0) @@ -669,5 +702,27 @@ return list; } + + #region 加载公司级别项目 + public static List GetUnEndProjectByUserIdDropDownList(string projectState, + string projectName = null, string projectCode = null) { + IQueryable projects = (from x in Funs.DB.Base_Project + where x.ProjectState == projectState + orderby x.ProjectCode descending + select x); + if (!string.IsNullOrEmpty(projectName)) + { + projects = from x in projects where x.ProjectName.Contains(projectName) select x; + } + if (!string.IsNullOrEmpty(projectCode)) + { + projects = from x in projects where x.ProjectCode.Contains(projectCode) select x; + } + return (from x in projects + join y in Funs.DB.Base_Unit on x.UnitId equals y.UnitId + select x).Distinct().ToList(); + + } + #endregion } } \ No newline at end of file diff --git a/SGGL/BLL/ProjectData/UnitWorkService.cs b/SGGL/BLL/ProjectData/UnitWorkService.cs index cf918b4a..8e681db9 100644 --- a/SGGL/BLL/ProjectData/UnitWorkService.cs +++ b/SGGL/BLL/ProjectData/UnitWorkService.cs @@ -672,5 +672,14 @@ namespace BLL return (from x in Funs.DB.WBS_UnitWork where x.SuperUnitWork == superUnitWork select x).Count() > 0; } + /// + /// 根据单位工程获取子单位工程信息 + /// + /// + /// + public static List GetUnitWorksBySupUnitWork(string supUnitWork) + { + return (from x in Funs.DB.WBS_UnitWork where x.SuperUnitWork == supUnitWork select x).ToList(); + } } } diff --git a/SGGL/BLL/WebService/CNCECHSSEWebService.cs b/SGGL/BLL/WebService/CNCECHSSEWebService.cs index 0e5e6ed0..ee7bcc3d 100644 --- a/SGGL/BLL/WebService/CNCECHSSEWebService.cs +++ b/SGGL/BLL/WebService/CNCECHSSEWebService.cs @@ -893,6 +893,27 @@ #endregion #region 中央企业环保产业企业基本情况和经营情况汇总表 + private static List getreportItemList(string BusinessReportId) + { + return Funs.DB.Environmental_OperationReportItem.Where(x => x.BusinessReportId == BusinessReportId) + .OrderBy(x => x.SortIndex).OrderBy(x => x.SortUnitName).Select(x => new Model.reportItemListDto() + { + BusinessReportItemId = x.BusinessReportItemId, + BusinessReportId = x.BusinessReportId, + SortIndex = x.SortIndex, + Code = x.Code, + UnitLevel = x.UnitLevel, + CreateDate = x.CreateDate, + Place = x.Place, + PersonNum = x.PersonNum, + TotalAssets = x.TotalAssets, + TotalValue = x.TotalValue, + NewInvestment = x.NewInvestment, + UnitName = x.UnitName, + SortUnitName = x.SortUnitName + }).ToList(); + } + public static string UpOperationReport(string businessReportId, Model.Sys_User CurrUser) { @@ -903,29 +924,22 @@ { var upReport = from x in db.Environmental_OperationReport where x.BusinessReportId == businessReportId - select new Model.OperationReportDto + select new Model.Environmental_OperationReportDto { BusinessReportId = x.BusinessReportId, UnitId = x.UnitId, Year = x.Year, Quarters = x.Quarters, - Code = x.Code, - UnitLevel = x.UnitLevel, - CreateDate = x.CreateDate, - Place = x.Place, - PersonNum = x.PersonNum, - TotalAssets = x.TotalAssets, - TotalValue = x.TotalValue, - NewInvestment = x.NewInvestment, FillingMan = x.FillingMan, FillingDate = x.FillingDate, StatisticsDutyPerson = x.StatisticsDutyPerson, UnitDutyPerson = x.UnitDutyPerson, - Remark = x.Remark + Remark = x.Remark, + reportItemList = getreportItemList(x.BusinessReportId) }; //新接口Api - code = UpApiOperationReport(upReport).ToString(); + code = UpApiOperationReportNew(upReport).ToString(); if (code == "1") { var report = db.Environmental_OperationReport.FirstOrDefault(e => e.BusinessReportId == businessReportId); @@ -951,6 +965,7 @@ } + #region 上报中央企业环保产业企业基本情况和经营情况季表 private static int UpApiOperationReport(IQueryable upReport) { string baseurl = "/api/InformationData/SaveOperationReport"; @@ -959,6 +974,16 @@ return responeData.code; } + private static int UpApiOperationReportNew(IQueryable upReport) + { + string baseurl = "/api/InformationData/SaveOperationReportNew"; + var resultJsonReport = JsonConvert.SerializeObject(upReport.FirstOrDefault()); + var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl); + return responeData.code; + } + + + #endregion #endregion @@ -973,7 +998,7 @@ { try { - CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var upReport = from x in db.Environmental_EnergyReport where x.EnergyReportId == energyReportId select new Model.EnergyReport @@ -1014,6 +1039,7 @@ ServiceOperatingIncome_BasePeriod = x.ServiceOperatingIncome_BasePeriod, ServiceOperatingIncome_LastYear = x.ServiceOperatingIncome_LastYear, ServiceOperatingIncome_ThisYear = x.ServiceOperatingIncome_ThisYear, + SortUnit = x.SortUnit }; //老接口Serveice @@ -3305,6 +3331,192 @@ } #endregion #endregion + + #region 中央企业安全生产治本攻坚三年行动工作台账上报 + /// + /// 中央企业安全生产治本攻坚三年行动工作台账上报 + /// + public static string UpActionWorkLedger(string actionWorkLedgerId, Model.Sys_User CurrUser) + { + string code = "0"; + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var upReport = from x in db.Information_ActionWorkLedger + where x.ActionWorkLedgerId == actionWorkLedgerId + select new Model.ActionWorkLedger + { + ActionWorkLedgerId = x.ActionWorkLedgerId, + UnitId = x.UnitId, + ReportDate = x.ReportDate, + Quarter = x.Quarter, + YearId = x.YearId, + CompileMan = x.CompileMan, + }; + + var upReportItem = from x in db.Information_ActionWorkLedgerItem + where x.ActionWorkLedgerId == actionWorkLedgerId + select new Model.ActionWorkLedgerItem + { + ActionWorkLedgerItemId = x.ActionWorkLedgerItemId, + ActionWorkLedgerId = x.ActionWorkLedgerId, + SortIndex = x.SortIndex, + Focus = x.Focus, + SpecialTask = x.SpecialTask, + WorkPoints = x.WorkPoints, + FillingRequirements = x.FillingRequirements, + CompletionDeadline = x.CompletionDeadline, + ImplementationStatus = x.ImplementationStatus, + }; + + //var getR = hsseC.DataInsertInformation_DrillConductedQuarterlyReportTable(upReport.ToList(), upReportItem.ToList()); + //新接口Api + code = UpApiSaveActionWorkLedger(upReport, upReportItem).ToString(); + if (code == "1") + { + foreach (var item in upReport.Select(p => p.ActionWorkLedgerId)) + { + var report = db.Information_ActionWorkLedger.FirstOrDefault(e => e.ActionWorkLedgerId == item); + if (report != null) + { + report.UpState = BLL.Const.UpState_3; + db.SubmitChanges(); + ////更新 当前人要处理的意见 + ProjectDataFlowSetService.CloseFlowOperate(Const.ActionWorkLedgerMenuId, item, string.Empty); + ////更新催报信息 + UrgeReportService.SetComplete(report.UnitId, Const.ReportType_11, report.YearId.ToString(), report.Quarter.ToString()); + } + } + LogService.AddSys_Log(CurrUser, "【中央企业安全生产治本攻坚三年行动工作台账上报】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + else + { + LogService.AddSys_Log(CurrUser, "【中央企业安全生产治本攻坚三年行动工作台账上报】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + + } + } + catch (Exception ex) + { + ErrLogInfo.WriteLog("【中央企业安全生产治本攻坚三年行动工作台账上报】上传到服务器", ex); + LogService.AddSys_Log(CurrUser, "【中央企业安全生产治本攻坚三年行动工作台账上报】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + + return code; + } + } + /// + /// DrillConductedQuarterlyReportApi调用 + /// + /// 主表 + /// 明细表 + /// + private static int UpApiSaveActionWorkLedger(IQueryable upReport, IQueryable upReportItem) + { + string baseurl = "/api/InformationData/SaveActionWorkLedger"; + //合并 + //var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem }); + var resultJson = JsonConvert.SerializeObject(upReport.FirstOrDefault()); + var resultJson1 = JsonConvert.SerializeObject(new { actionWorkLedgerItem = upReportItem }); + resultJson = "{\"InformationDataItems\":[" + (resultJson + resultJson1).Replace("}{", ",") + "]}"; + var responeData = BLL.ServerService.PushCNCEC(resultJson, baseurl); + return responeData.code; + } + #endregion + + #region 中央企业安全生产管理评价工作调度台账上报 + /// + /// 中央企业安全生产管理评价工作调度台账上报 + /// + public static string UpSafetyProductionEvaluation(string safetyProductionEvaluationId, Model.Sys_User CurrUser) + { + string code = "0"; + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + try + { + CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient(); + var upReport = from x in db.Information_SafetyProductionEvaluation + where x.SafetyProductionEvaluationId == safetyProductionEvaluationId + select new Model.SafetyProductionEvaluation + { + SafetyProductionEvaluationId = x.SafetyProductionEvaluationId, + UnitId = x.UnitId, + ReportDate = x.ReportDate, + Quarter = x.Quarter, + YearId = x.YearId, + CompileMan = x.CompileMan, + }; + + var upReportItem = from x in db.Information_SafetyProductionEvaluationItem + where x.SafetyProductionEvaluationId == safetyProductionEvaluationId + select new Model.SafetyProductionEvaluationItem + { + SafetyProductionEvaluationItemId = x.SafetyProductionEvaluationItemId, + SafetyProductionEvaluationId = x.SafetyProductionEvaluationId, + SortIndex = x.SortIndex, + Type = x.Type, + EvaluateWork = x.EvaluateWork, + EvaluationContent = x.EvaluationContent, + FillingRequirements = x.FillingRequirements, + CompletionDeadline = x.CompletionDeadline, + ImplementationStatus = x.ImplementationStatus, + }; + + //var getR = hsseC.DataInsertInformation_DrillConductedQuarterlyReportTable(upReport.ToList(), upReportItem.ToList()); + //新接口Api + code = UpApiSaveSafetyProductionEvaluation(upReport, upReportItem).ToString(); + if (code == "1") + { + foreach (var item in upReport.Select(p => p.SafetyProductionEvaluationId)) + { + var report = db.Information_SafetyProductionEvaluation.FirstOrDefault(e => e.SafetyProductionEvaluationId == item); + if (report != null) + { + report.UpState = BLL.Const.UpState_3; + db.SubmitChanges(); + ////更新 当前人要处理的意见 + ProjectDataFlowSetService.CloseFlowOperate(Const.SafetyProductionEvaluationMenuId, item, string.Empty); + ////更新催报信息 + UrgeReportService.SetComplete(report.UnitId, Const.ReportType_12, report.YearId.ToString(), report.Quarter.ToString()); + } + } + LogService.AddSys_Log(CurrUser, "【中央企业安全生产管理评价工作调度台账上报】上传到服务器" + upReport.Count().ToString() + "条数据;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + else + { + LogService.AddSys_Log(CurrUser, "【中央企业安全生产管理评价工作调度台账上报】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + + } + } + catch (Exception ex) + { + ErrLogInfo.WriteLog("【中央企业安全生产管理评价工作调度台账上报】上传到服务器", ex); + LogService.AddSys_Log(CurrUser, "【中央企业安全生产管理评价工作调度台账上报】上传到服务器失败;", null, BLL.Const.MillionsMonthlyReportMenuId, BLL.Const.BtnUploadResources); + } + + return code; + } + } + /// + /// DrillConductedQuarterlyReportApi调用 + /// + /// 主表 + /// 明细表 + /// + private static int UpApiSaveSafetyProductionEvaluation(IQueryable upReport, IQueryable upReportItem) + { + string baseurl = "/api/InformationData/SaveSafetyProductionEvaluation"; + //合并 + //var resultJson = JsonConvert.SerializeObject(new { upReport, ReportItem = upReportItem }); + var resultJson = JsonConvert.SerializeObject(upReport.FirstOrDefault()); + var resultJson1 = JsonConvert.SerializeObject(new { safetyProductionEvaluationItem = upReportItem }); + resultJson = "{\"InformationDataItems\":[" + (resultJson + resultJson1).Replace("}{", ",") + "]}"; + var responeData = BLL.ServerService.PushCNCEC(resultJson, baseurl); + return responeData.code; + } + #endregion } diff --git a/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs b/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs index ec66dd73..d0037999 100644 --- a/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs +++ b/SGGL/BLL/ZHGL/DataSync/HSSEData_HSSEService.cs @@ -686,36 +686,67 @@ namespace BLL /// 获取企业负责人带班检查次数 /// /// - public static int GetCompanyLeadShiftCheckNum() + public static int GetCompanyLeadShiftCheckNum(string[] pids=null) { - var result = (from x in Funs.DB.Supervise_SuperviseCheckReport - where x.CheckType == "1" && x.CheckDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Supervise_SuperviseCheckReport + where x.CheckType == "1" && x.CheckDate > Const.DtmarkTime + select x).Count(); + return result; + } + else { + var result = (from x in Funs.DB.Supervise_SuperviseCheckReport + where x.CheckType == "1" && x.CheckDate > Const.DtmarkTime + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } + } /// /// 获取企业综合检查次数 /// /// - public static int GetCompanyComprehensiveCheckNum() + public static int GetCompanyComprehensiveCheckNum(string[] pids = null) { - var result = (from x in Funs.DB.Supervise_SuperviseCheckReport - where x.CheckType == "2" && x.CheckDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) { + var result = (from x in Funs.DB.Supervise_SuperviseCheckReport + where x.CheckType == "2" && x.CheckDate > Const.DtmarkTime + select x).Count(); + return result; + } + else { + var result = (from x in Funs.DB.Supervise_SuperviseCheckReport + where x.CheckType == "2" && x.CheckDate > Const.DtmarkTime + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } + } /// /// 获取企业专项检查次数 /// /// - public static int GetCompanySpecialCheckNum() + public static int GetCompanySpecialCheckNum(string[] pids = null) { - var result = (from x in Funs.DB.Supervise_SuperviseCheckReport - where x.CheckType == "3" && x.CheckDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Supervise_SuperviseCheckReport + where x.CheckType == "3" && x.CheckDate > Const.DtmarkTime + select x).Count(); + return result; + } + else { + var result = (from x in Funs.DB.Supervise_SuperviseCheckReport + where x.CheckType == "3" && x.CheckDate > Const.DtmarkTime + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// diff --git a/SGGL/BLL/ZHGL/DataSync/ServerService.cs b/SGGL/BLL/ZHGL/DataSync/ServerService.cs index 77ad9f81..490d4fb8 100644 --- a/SGGL/BLL/ZHGL/DataSync/ServerService.cs +++ b/SGGL/BLL/ZHGL/DataSync/ServerService.cs @@ -11,7 +11,7 @@ using System.Threading.Tasks; namespace BLL { - public static class ServerService + public static class ServerService { public static Model.TokenItem GetCNCECToken() { @@ -30,47 +30,53 @@ namespace BLL Console.WriteLine(response.Content); var responeData = JsonConvert.DeserializeObject(response.Content.ToString()); TokenItem tokenItem = new TokenItem(); - if (responeData.code==1&&string .IsNullOrEmpty(responeData.message) ) + if (responeData.code == 1 && string.IsNullOrEmpty(responeData.message)) { var token = JsonConvert.DeserializeObject(responeData.data.ToString()); - tokenItem.Token=token.Token.ToString(); - tokenItem.ExpiryTime= token.ExpiryTime.ToString(); + tokenItem.Token = token.Token.ToString(); + tokenItem.ExpiryTime = token.ExpiryTime.ToString(); SysConstSetService.SetToken(tokenItem.Token); SysConstSetService.SetTokenExpirationTime(tokenItem.ExpiryTime); } return tokenItem; - - } - public static Model.ReturnData PushCNCEC(string JsonBody,string apiurl) - { - Model.ReturnData responeData = new Model.ReturnData(); - string CNCECPath = SysConstSetService.CNCECPath; - if (string.IsNullOrEmpty(CNCECPath)) - { - responeData.code = 0; - responeData.message = "接口地址为空,请配置!"; - return responeData; - } - string baseurl = CNCECPath + apiurl; - var client = new RestClient(baseurl); - client.Timeout = -1; - var request = new RestRequest(Method.POST); - ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; - var tokenItem = GetToken(); - request.AddHeader("token", tokenItem.Token); - request.AddJsonBody(JsonBody); - IRestResponse response = client.Execute(request); - APICommonService.SaveSysHttpLog("api_Out", baseurl, response.Content); - var returnData = JsonConvert.DeserializeObject(response.Content.ToString()); - if (returnData.code == 0) + } + public static Model.ReturnData PushCNCEC(string JsonBody, string apiurl) + { + try { - responeData.code = 0; + + + Model.ReturnData responeData = new Model.ReturnData(); + string CNCECPath = SysConstSetService.CNCECPath; + //string CNCECPath = "http://localhost:7143"; + if (string.IsNullOrEmpty(CNCECPath)) + { + responeData.code = 0; + responeData.message = "接口地址为空,请配置!"; + return responeData; + + } + string baseurl = CNCECPath + apiurl; + var client = new RestClient(baseurl); + client.Timeout = -1; + var request = new RestRequest(Method.POST); + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; + var tokenItem = GetToken(); + request.AddHeader("token", tokenItem.Token); + request.AddJsonBody(JsonBody); + IRestResponse response = client.Execute(request); + APICommonService.SaveSysHttpLog("api_Out", baseurl, response.Content); + var returnData = JsonConvert.DeserializeObject(response.Content.ToString()); + responeData.code = returnData.code; responeData.message = returnData.message; return responeData; - } - return responeData; + catch (Exception ex) + { + + throw; + } } public static Model.TokenItem GetToken() { @@ -81,7 +87,7 @@ namespace BLL { //DateTime.Parse(SysConstSetService.CNCECTTokenExTime).AddMinutes(-10) > DateTime.Now tokenItem = GetCNCECToken(); - } + } else if (DateTime.Parse(SysConstSetService.CNCECTTokenExTime).AddMinutes(-10) < DateTime.Now) { tokenItem = GetCNCECToken(); diff --git a/SGGL/BLL/ZHGL/Environmental/EnergyreportItemService .cs b/SGGL/BLL/ZHGL/Environmental/EnergyreportItemService .cs index c08460be..832249c5 100644 --- a/SGGL/BLL/ZHGL/Environmental/EnergyreportItemService .cs +++ b/SGGL/BLL/ZHGL/Environmental/EnergyreportItemService .cs @@ -99,7 +99,7 @@ namespace BLL { return (from x in Funs.DB.Environmental_EnergyReportItem where x.EnergyReportId == EnergyReportId - orderby x.SortIndex + orderby x.SortIndex,x.SortUnit select x).ToList(); } @@ -141,38 +141,39 @@ namespace BLL { var q = (from x in Funs.DB.Environmental_EnergyReportItem where x.EnergyReportId == EnergyReportId - orderby x.SortIndex + orderby x.SortIndex,x.SortUnit select x).ToList(); - List newItems = new List(); - foreach (var item in q) - { - Model.Environmental_EnergyReportItem newItem = new Model.Environmental_EnergyReportItem(); + //List newItems = new List(); + //foreach (var item in q) + //{ + // Model.Environmental_EnergyReportItem newItem = new Model.Environmental_EnergyReportItem(); - newItem.EnergyReportItemId = item.EnergyReportItemId; - newItem.EnergyReportId = item.EnergyReportId; - newItem.SortIndex = item.SortIndex; - newItem.BusinessCategory = item.BusinessCategory; - newItem.Throughput_BasePeriod = item.Throughput_BasePeriod; - newItem.Throughput_LastPeriod = item.Throughput_LastPeriod; - newItem.Throughput_ThisPeriod = item.Throughput_ThisPeriod; - newItem.Throughput_UnitOfMeasurement = item.Throughput_UnitOfMeasurement; - newItem.Yield_BasePeriod = item.Yield_BasePeriod; - newItem.Yield_LastPeriod = item.Yield_LastPeriod; - newItem.Yield_ThisPeriod = item.Yield_ThisPeriod; - newItem.Yield_UnitOfMeasurement = item.Yield_UnitOfMeasurement; - newItem.OutputValue_BasePeriod = item.OutputValue_BasePeriod; - newItem.OutputValue_LastYear = item.OutputValue_LastYear; - newItem.OutputValue_ThisYear = item.OutputValue_ThisYear; - newItem.OperationScale_BasePeriod = item.OperationScale_BasePeriod; - newItem.OperationScale_LastYear = item.OperationScale_LastYear; - newItem.OperationScale_ThisYear = item.OperationScale_ThisYear; - newItem.OperationScale_UnitOfMeasurement = item.OperationScale_UnitOfMeasurement; - newItem.ServiceOperatingIncome_BasePeriod = item.ServiceOperatingIncome_BasePeriod; - newItem.ServiceOperatingIncome_LastYear = item.ServiceOperatingIncome_LastYear; - newItem.ServiceOperatingIncome_ThisYear = item.ServiceOperatingIncome_ThisYear; - newItems.Add(newItem); - } - return newItems; + // newItem.EnergyReportItemId = item.EnergyReportItemId; + // newItem.EnergyReportId = item.EnergyReportId; + // newItem.SortIndex = item.SortIndex; + // newItem.BusinessCategory = item.BusinessCategory; + // newItem.Throughput_BasePeriod = item.Throughput_BasePeriod; + // newItem.Throughput_LastPeriod = item.Throughput_LastPeriod; + // newItem.Throughput_ThisPeriod = item.Throughput_ThisPeriod; + // newItem.Throughput_UnitOfMeasurement = item.Throughput_UnitOfMeasurement; + // newItem.Yield_BasePeriod = item.Yield_BasePeriod; + // newItem.Yield_LastPeriod = item.Yield_LastPeriod; + // newItem.Yield_ThisPeriod = item.Yield_ThisPeriod; + // newItem.Yield_UnitOfMeasurement = item.Yield_UnitOfMeasurement; + // newItem.OutputValue_BasePeriod = item.OutputValue_BasePeriod; + // newItem.OutputValue_LastYear = item.OutputValue_LastYear; + // newItem.OutputValue_ThisYear = item.OutputValue_ThisYear; + // newItem.OperationScale_BasePeriod = item.OperationScale_BasePeriod; + // newItem.OperationScale_LastYear = item.OperationScale_LastYear; + // newItem.OperationScale_ThisYear = item.OperationScale_ThisYear; + // newItem.OperationScale_UnitOfMeasurement = item.OperationScale_UnitOfMeasurement; + // newItem.ServiceOperatingIncome_BasePeriod = item.ServiceOperatingIncome_BasePeriod; + // newItem.ServiceOperatingIncome_LastYear = item.ServiceOperatingIncome_LastYear; + // newItem.ServiceOperatingIncome_ThisYear = item.ServiceOperatingIncome_ThisYear; + + // newItems.Add(newItem); + //} + return q; } public static void AddEnvironmental_EnergyReportItem(Model.Environmental_EnergyReportItem newtable) { diff --git a/SGGL/BLL/ZHGL/Information/ActionWorkLedgerItemService.cs b/SGGL/BLL/ZHGL/Information/ActionWorkLedgerItemService.cs new file mode 100644 index 00000000..b388fd5d --- /dev/null +++ b/SGGL/BLL/ZHGL/Information/ActionWorkLedgerItemService.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 中央企业安全生产治本攻坚三年行动工作台账明细表 + /// + public static class ActionWorkLedgerItemService + { + /// + /// 根据主键获取中央企业安全生产治本攻坚三年行动工作台账明细信息 + /// + /// + /// + public static Model.Information_ActionWorkLedgerItem GetActionWorkLedgerItemById(string ActionWorkLedgerItemId) + { + return Funs.DB.Information_ActionWorkLedgerItem.FirstOrDefault(e => e.ActionWorkLedgerItemId == ActionWorkLedgerItemId); + } + + /// + /// 根据中央企业安全生产治本攻坚三年行动工作台账Id获取所有相关明细信息 + /// + /// + /// + public static List GetActionWorkLedgerItemList(string ActionWorkLedgerId) + { + return (from x in Funs.DB.Information_ActionWorkLedgerItem where x.ActionWorkLedgerId == ActionWorkLedgerId orderby x.SortIndex select x).ToList(); + } + + /// + /// 添加中央企业安全生产治本攻坚三年行动工作台账明细信息 + /// + /// + public static void AddActionWorkLedgerItem(Model.Information_ActionWorkLedgerItem ActionWorkLedgerItem) + { + Model.Information_ActionWorkLedgerItem newActionWorkLedgerItem = new Model.Information_ActionWorkLedgerItem + { + ActionWorkLedgerItemId = ActionWorkLedgerItem.ActionWorkLedgerItemId, + ActionWorkLedgerId = ActionWorkLedgerItem.ActionWorkLedgerId, + Focus = ActionWorkLedgerItem.Focus, + SpecialTask = ActionWorkLedgerItem.SpecialTask, + WorkPoints = ActionWorkLedgerItem.WorkPoints, + FillingRequirements = ActionWorkLedgerItem.FillingRequirements, + CompletionDeadline = ActionWorkLedgerItem.CompletionDeadline, + ImplementationStatus = ActionWorkLedgerItem.ImplementationStatus, + SortIndex = ActionWorkLedgerItem.SortIndex + }; + Funs.DB.Information_ActionWorkLedgerItem.InsertOnSubmit(newActionWorkLedgerItem); + Funs.DB.SubmitChanges(); + } + + /// + /// 修改中央企业安全生产治本攻坚三年行动工作台账明细信息 + /// + /// + public static void UpdateActionWorkLedgerItem(Model.Information_ActionWorkLedgerItem ActionWorkLedgerItem) + { + Model.Information_ActionWorkLedgerItem newActionWorkLedgerItem = Funs.DB.Information_ActionWorkLedgerItem.FirstOrDefault(e => e.ActionWorkLedgerItemId == ActionWorkLedgerItem.ActionWorkLedgerItemId); + if (newActionWorkLedgerItem != null) + { + newActionWorkLedgerItem.Focus = ActionWorkLedgerItem.Focus; + newActionWorkLedgerItem.SpecialTask = ActionWorkLedgerItem.SpecialTask; + newActionWorkLedgerItem.WorkPoints = ActionWorkLedgerItem.WorkPoints; + newActionWorkLedgerItem.FillingRequirements = ActionWorkLedgerItem.FillingRequirements; + newActionWorkLedgerItem.CompletionDeadline = ActionWorkLedgerItem.CompletionDeadline; + newActionWorkLedgerItem.ImplementationStatus = ActionWorkLedgerItem.ImplementationStatus; + newActionWorkLedgerItem.SortIndex = ActionWorkLedgerItem.SortIndex; + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据主键删除中央企业安全生产治本攻坚三年行动工作台账明细信息 + /// + /// + public static void DeleteActionWorkLedgerItemById(string ActionWorkLedgerItemId) + { + Model.Information_ActionWorkLedgerItem ActionWorkLedgerItem = Funs.DB.Information_ActionWorkLedgerItem.FirstOrDefault(e => e.ActionWorkLedgerItemId == ActionWorkLedgerItemId); + if (ActionWorkLedgerItem != null) + { + Funs.DB.Information_ActionWorkLedgerItem.DeleteOnSubmit(ActionWorkLedgerItem); + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据中央企业安全生产治本攻坚三年行动工作台账主表id删除所有相关明细信息 + /// + /// + public static void DeleteActionWorkLedgerItemList(string ActionWorkLedgerId) + { + var q = (from x in Funs.DB.Information_ActionWorkLedgerItem where x.ActionWorkLedgerId == ActionWorkLedgerId select x).ToList(); + if (q != null) + { + Funs.DB.Information_ActionWorkLedgerItem.DeleteAllOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/ZHGL/Information/ActionWorkLedgerService.cs b/SGGL/BLL/ZHGL/Information/ActionWorkLedgerService.cs new file mode 100644 index 00000000..603f472f --- /dev/null +++ b/SGGL/BLL/ZHGL/Information/ActionWorkLedgerService.cs @@ -0,0 +1,113 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 中央企业安全生产治本攻坚三年行动工作台账 + /// + public static class ActionWorkLedgerService + { + /// + /// 根据主键获取中央企业安全生产治本攻坚三年行动工作台账 + /// + /// + /// + public static Model.Information_ActionWorkLedger GetActionWorkLedgerById(string ActionWorkLedgerId) + { + return Funs.DB.Information_ActionWorkLedger.FirstOrDefault(e => e.ActionWorkLedgerId == ActionWorkLedgerId); + } + + /// + /// 中央企业安全生产治本攻坚三年行动工作台账 + /// + /// 单位Id + /// 年度 + /// 季度 + /// 中央企业安全生产治本攻坚三年行动工作台账 + public static Model.Information_ActionWorkLedger GetActionWorkLedgerByUnitIdAndYearAndQuarters(string unitId, int year, int quarters) + { + return Funs.DB.Information_ActionWorkLedger.FirstOrDefault(e => e.UnitId == unitId && e.Quarter == quarters && e.YearId == year); + } + + /// + /// 根据单位Id获取安全生产数据季报集合 + /// + /// 单位Id + /// 安全生产数据季报集合 + public static List GetActionWorkLedgersByUnitId(string UnitId) + { + return (from x in Funs.DB.View_Information_ActionWorkLedger where x.UnitId == UnitId orderby x.ReportDate descending select x).ToList(); + } + + /// + /// 添加中央企业安全生产治本攻坚三年行动工作台账 + /// + /// + public static void AddActionWorkLedger(Model.Information_ActionWorkLedger ActionWorkLedger) + { + Model.Information_ActionWorkLedger newActionWorkLedger = new Model.Information_ActionWorkLedger + { + ActionWorkLedgerId = ActionWorkLedger.ActionWorkLedgerId, + UnitId = ActionWorkLedger.UnitId, + ReportDate = ActionWorkLedger.ReportDate, + YearId = ActionWorkLedger.YearId, + Quarter = ActionWorkLedger.Quarter, + CompileMan = ActionWorkLedger.CompileMan, + UpState = ActionWorkLedger.UpState, + HandleState = ActionWorkLedger.HandleState, + HandleMan = ActionWorkLedger.HandleMan + }; + Funs.DB.Information_ActionWorkLedger.InsertOnSubmit(newActionWorkLedger); + Funs.DB.SubmitChanges(); + } + + /// + /// 修改中央企业安全生产治本攻坚三年行动工作台账 + /// + /// + public static void UpdateActionWorkLedger(Model.Information_ActionWorkLedger ActionWorkLedger) + { + Model.Information_ActionWorkLedger newActionWorkLedger = Funs.DB.Information_ActionWorkLedger.FirstOrDefault(e => e.ActionWorkLedgerId == ActionWorkLedger.ActionWorkLedgerId); + if (newActionWorkLedger != null) + { + newActionWorkLedger.UnitId = ActionWorkLedger.UnitId; + newActionWorkLedger.ReportDate = ActionWorkLedger.ReportDate; + newActionWorkLedger.YearId = ActionWorkLedger.YearId; + newActionWorkLedger.Quarter = ActionWorkLedger.Quarter; + newActionWorkLedger.UpState = ActionWorkLedger.UpState; + newActionWorkLedger.HandleState = ActionWorkLedger.HandleState; + newActionWorkLedger.HandleMan = ActionWorkLedger.HandleMan; + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据主键删除中央企业安全生产治本攻坚三年行动工作台账 + /// + /// + public static void DeleteActionWorkLedgerById(string ActionWorkLedgerId) + { + Model.Information_ActionWorkLedger ActionWorkLedger = Funs.DB.Information_ActionWorkLedger.FirstOrDefault(e => e.ActionWorkLedgerId == ActionWorkLedgerId); + if (ActionWorkLedger != null) + { + Funs.DB.Information_ActionWorkLedger.DeleteOnSubmit(ActionWorkLedger); + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据单位、季度获取中央企业安全生产治本攻坚三年行动工作台账 + /// + /// + /// + /// + public static Model.Information_ActionWorkLedger GetActionWorkLedgerByUnitIdDate(string unitId, int yearId, int quarter, string ActionWorkLedgerId) + { + return Funs.DB.Information_ActionWorkLedger.FirstOrDefault(e => e.UnitId == unitId && e.YearId == yearId && e.Quarter == quarter && ((ActionWorkLedgerId == null && e.ActionWorkLedgerId != null) || e.ActionWorkLedgerId != ActionWorkLedgerId)); + } + } +} diff --git a/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationItemService.cs b/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationItemService.cs new file mode 100644 index 00000000..0a0e72bb --- /dev/null +++ b/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationItemService.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 中央企业安全生产管理评价工作调度台账明细表 + /// + public static class SafetyProductionEvaluationItemService + { + /// + /// 根据主键获取中央企业安全生产管理评价工作调度台账明细信息 + /// + /// + /// + public static Model.Information_SafetyProductionEvaluationItem GetSafetyProductionEvaluationItemById(string SafetyProductionEvaluationItemId) + { + return Funs.DB.Information_SafetyProductionEvaluationItem.FirstOrDefault(e => e.SafetyProductionEvaluationItemId == SafetyProductionEvaluationItemId); + } + + /// + /// 根据中央企业安全生产管理评价工作调度台账Id获取所有相关明细信息 + /// + /// + /// + public static List GetSafetyProductionEvaluationItemList(string SafetyProductionEvaluationId) + { + return (from x in Funs.DB.Information_SafetyProductionEvaluationItem where x.SafetyProductionEvaluationId == SafetyProductionEvaluationId orderby x.SortIndex select x).ToList(); + } + + /// + /// 添加中央企业安全生产管理评价工作调度台账明细信息 + /// + /// + public static void AddSafetyProductionEvaluationItem(Model.Information_SafetyProductionEvaluationItem SafetyProductionEvaluationItem) + { + Model.Information_SafetyProductionEvaluationItem newSafetyProductionEvaluationItem = new Model.Information_SafetyProductionEvaluationItem + { + SafetyProductionEvaluationItemId = SafetyProductionEvaluationItem.SafetyProductionEvaluationItemId, + SafetyProductionEvaluationId = SafetyProductionEvaluationItem.SafetyProductionEvaluationId, + Type = SafetyProductionEvaluationItem.Type, + EvaluateWork = SafetyProductionEvaluationItem.EvaluateWork, + EvaluationContent = SafetyProductionEvaluationItem.EvaluationContent, + FillingRequirements = SafetyProductionEvaluationItem.FillingRequirements, + CompletionDeadline = SafetyProductionEvaluationItem.CompletionDeadline, + ImplementationStatus = SafetyProductionEvaluationItem.ImplementationStatus, + SortIndex = SafetyProductionEvaluationItem.SortIndex + }; + Funs.DB.Information_SafetyProductionEvaluationItem.InsertOnSubmit(newSafetyProductionEvaluationItem); + Funs.DB.SubmitChanges(); + } + + /// + /// 修改中央企业安全生产管理评价工作调度台账明细信息 + /// + /// + public static void UpdateSafetyProductionEvaluationItem(Model.Information_SafetyProductionEvaluationItem SafetyProductionEvaluationItem) + { + Model.Information_SafetyProductionEvaluationItem newSafetyProductionEvaluationItem = Funs.DB.Information_SafetyProductionEvaluationItem.FirstOrDefault(e => e.SafetyProductionEvaluationItemId == SafetyProductionEvaluationItem.SafetyProductionEvaluationItemId); + if (newSafetyProductionEvaluationItem != null) + { + newSafetyProductionEvaluationItem.Type = SafetyProductionEvaluationItem.Type; + newSafetyProductionEvaluationItem.EvaluateWork = SafetyProductionEvaluationItem.EvaluateWork; + newSafetyProductionEvaluationItem.EvaluationContent = SafetyProductionEvaluationItem.EvaluationContent; + newSafetyProductionEvaluationItem.FillingRequirements = SafetyProductionEvaluationItem.FillingRequirements; + newSafetyProductionEvaluationItem.CompletionDeadline = SafetyProductionEvaluationItem.CompletionDeadline; + newSafetyProductionEvaluationItem.ImplementationStatus = SafetyProductionEvaluationItem.ImplementationStatus; + newSafetyProductionEvaluationItem.SortIndex = SafetyProductionEvaluationItem.SortIndex; + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据主键删除中央企业安全生产管理评价工作调度台账明细信息 + /// + /// + public static void DeleteSafetyProductionEvaluationItemById(string SafetyProductionEvaluationItemId) + { + Model.Information_SafetyProductionEvaluationItem SafetyProductionEvaluationItem = Funs.DB.Information_SafetyProductionEvaluationItem.FirstOrDefault(e => e.SafetyProductionEvaluationItemId == SafetyProductionEvaluationItemId); + if (SafetyProductionEvaluationItem != null) + { + Funs.DB.Information_SafetyProductionEvaluationItem.DeleteOnSubmit(SafetyProductionEvaluationItem); + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据中央企业安全生产管理评价工作调度台账主表id删除所有相关明细信息 + /// + /// + public static void DeleteSafetyProductionEvaluationItemList(string SafetyProductionEvaluationId) + { + var q = (from x in Funs.DB.Information_SafetyProductionEvaluationItem where x.SafetyProductionEvaluationId == SafetyProductionEvaluationId select x).ToList(); + if (q != null) + { + Funs.DB.Information_SafetyProductionEvaluationItem.DeleteAllOnSubmit(q); + Funs.DB.SubmitChanges(); + } + } + } +} diff --git a/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationService.cs b/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationService.cs new file mode 100644 index 00000000..ba36d562 --- /dev/null +++ b/SGGL/BLL/ZHGL/Information/SafetyProductionEvaluationService.cs @@ -0,0 +1,113 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 中央企业安全生产管理评价工作调度台账 + /// + public static class SafetyProductionEvaluationService + { + /// + /// 根据主键获取中央企业安全生产管理评价工作调度台账 + /// + /// + /// + public static Model.Information_SafetyProductionEvaluation GetSafetyProductionEvaluationById(string SafetyProductionEvaluationId) + { + return Funs.DB.Information_SafetyProductionEvaluation.FirstOrDefault(e => e.SafetyProductionEvaluationId == SafetyProductionEvaluationId); + } + + /// + /// 中央企业安全生产管理评价工作调度台账 + /// + /// 单位Id + /// 年度 + /// 季度 + /// 中央企业安全生产管理评价工作调度台账 + public static Model.Information_SafetyProductionEvaluation GetSafetyProductionEvaluationByUnitIdAndYearAndQuarters(string unitId, int year, int quarters) + { + return Funs.DB.Information_SafetyProductionEvaluation.FirstOrDefault(e => e.UnitId == unitId && e.Quarter == quarters && e.YearId == year); + } + + /// + /// 根据单位Id获取安全生产数据季报集合 + /// + /// 单位Id + /// 安全生产数据季报集合 + public static List GetSafetyProductionEvaluationsByUnitId(string UnitId) + { + return (from x in Funs.DB.View_Information_SafetyProductionEvaluation where x.UnitId == UnitId orderby x.ReportDate descending select x).ToList(); + } + + /// + /// 添加中央企业安全生产管理评价工作调度台账 + /// + /// + public static void AddSafetyProductionEvaluation(Model.Information_SafetyProductionEvaluation SafetyProductionEvaluation) + { + Model.Information_SafetyProductionEvaluation newSafetyProductionEvaluation = new Model.Information_SafetyProductionEvaluation + { + SafetyProductionEvaluationId = SafetyProductionEvaluation.SafetyProductionEvaluationId, + UnitId = SafetyProductionEvaluation.UnitId, + ReportDate = SafetyProductionEvaluation.ReportDate, + YearId = SafetyProductionEvaluation.YearId, + Quarter = SafetyProductionEvaluation.Quarter, + CompileMan = SafetyProductionEvaluation.CompileMan, + UpState = SafetyProductionEvaluation.UpState, + HandleState = SafetyProductionEvaluation.HandleState, + HandleMan = SafetyProductionEvaluation.HandleMan + }; + Funs.DB.Information_SafetyProductionEvaluation.InsertOnSubmit(newSafetyProductionEvaluation); + Funs.DB.SubmitChanges(); + } + + /// + /// 修改中央企业安全生产管理评价工作调度台账 + /// + /// + public static void UpdateSafetyProductionEvaluation(Model.Information_SafetyProductionEvaluation SafetyProductionEvaluation) + { + Model.Information_SafetyProductionEvaluation newSafetyProductionEvaluation = Funs.DB.Information_SafetyProductionEvaluation.FirstOrDefault(e => e.SafetyProductionEvaluationId == SafetyProductionEvaluation.SafetyProductionEvaluationId); + if (newSafetyProductionEvaluation != null) + { + newSafetyProductionEvaluation.UnitId = SafetyProductionEvaluation.UnitId; + newSafetyProductionEvaluation.ReportDate = SafetyProductionEvaluation.ReportDate; + newSafetyProductionEvaluation.YearId = SafetyProductionEvaluation.YearId; + newSafetyProductionEvaluation.Quarter = SafetyProductionEvaluation.Quarter; + newSafetyProductionEvaluation.UpState = SafetyProductionEvaluation.UpState; + newSafetyProductionEvaluation.HandleState = SafetyProductionEvaluation.HandleState; + newSafetyProductionEvaluation.HandleMan = SafetyProductionEvaluation.HandleMan; + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据主键删除中央企业安全生产管理评价工作调度台账 + /// + /// + public static void DeleteSafetyProductionEvaluationById(string SafetyProductionEvaluationId) + { + Model.Information_SafetyProductionEvaluation SafetyProductionEvaluation = Funs.DB.Information_SafetyProductionEvaluation.FirstOrDefault(e => e.SafetyProductionEvaluationId == SafetyProductionEvaluationId); + if (SafetyProductionEvaluation != null) + { + Funs.DB.Information_SafetyProductionEvaluation.DeleteOnSubmit(SafetyProductionEvaluation); + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据单位、季度获取中央企业安全生产管理评价工作调度台账 + /// + /// + /// + /// + public static Model.Information_SafetyProductionEvaluation GetSafetyProductionEvaluationByUnitIdDate(string unitId, int yearId, int quarter, string SafetyProductionEvaluationId) + { + return Funs.DB.Information_SafetyProductionEvaluation.FirstOrDefault(e => e.UnitId == unitId && e.YearId == yearId && e.Quarter == quarter && ((SafetyProductionEvaluationId == null && e.SafetyProductionEvaluationId != null) || e.SafetyProductionEvaluationId != SafetyProductionEvaluationId)); + } + } +} diff --git a/SGGL/BLL/app.config b/SGGL/BLL/app.config index 39f6fcea..11911cae 100644 --- a/SGGL/BLL/app.config +++ b/SGGL/BLL/app.config @@ -61,4 +61,4 @@ - + diff --git a/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx b/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx index a8827aaf..d3a3b96f 100644 --- a/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx +++ b/SGGL/FineUIPro.Web/AttachFile/OnlineEditing.aspx @@ -201,7 +201,7 @@ fileInfo: { name: '', ext: '', - primary: '', + primary: urlString, creator: '', createTime: new Date('20210505') }, diff --git a/SGGL/FineUIPro.Web/AttachFile/OnlineEditingPrivate.aspx b/SGGL/FineUIPro.Web/AttachFile/OnlineEditingPrivate.aspx new file mode 100644 index 00000000..f2e33906 --- /dev/null +++ b/SGGL/FineUIPro.Web/AttachFile/OnlineEditingPrivate.aspx @@ -0,0 +1,300 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OnlineEditingPrivate.aspx.cs" Inherits="FineUIPro.Web.AttachFile.OnlineEditingPrivate" %> +<%@ Import Namespace="BLL" %> + + + + + + + + + + Spire.Office + + + + + + + + + + +
+
+ +
+
+ +
+
+
+
+ + + + diff --git a/SGGL/FineUIPro.Web/AttachFile/OnlineEditingPrivate.aspx.cs b/SGGL/FineUIPro.Web/AttachFile/OnlineEditingPrivate.aspx.cs new file mode 100644 index 00000000..78b061e3 --- /dev/null +++ b/SGGL/FineUIPro.Web/AttachFile/OnlineEditingPrivate.aspx.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using BLL; + +namespace FineUIPro.Web.AttachFile +{ + public partial class OnlineEditingPrivate : PageBase + { + #region 定义参数 + + public string CallBackUrl + { + get + { + var sysSet = (from x in Funs.DB.Sys_Const where x.ConstText == "OnlineEditCallBackurl" select x).ToList().FirstOrDefault(); + if (sysSet != null) + { + return sysSet.ConstValue; + } + else + { + return ""; + } + } + } + public string ReadOnly + { + get + { + return (string)ViewState["ReadOnly"]; + } + set + { + ViewState["ReadOnly"] = value; + } + } + public string PCUrl + { + get + { + return (string)ViewState["PCUrl"]; + } + set + { + ViewState["PCUrl"] = value; + } + } + public string editorMode + { + get + { + return (string)ViewState["editorMode"]; + } + set + { + ViewState["editorMode"] = value; + } + } + public string urlString = String.Empty; + public string urlStringMD5 = String.Empty; + #endregion + + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + /*UserId = Request.Params["UserId"]; + AttachFileId = Request.Params["AttachFileId"]; + ReadOnly = Request.Params["ReadOnly"];*/ + PCUrl = Request.Params["fileUrl"]; + editorMode = Request.Params["editorMode"]; + + urlString = Funs.SGGLUrl + PCUrl; + urlStringMD5 = Funs.GetMD5(urlString); + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/AttachFile/OnlineEditingPrivate.aspx.designer.cs b/SGGL/FineUIPro.Web/AttachFile/OnlineEditingPrivate.aspx.designer.cs new file mode 100644 index 00000000..56ed2427 --- /dev/null +++ b/SGGL/FineUIPro.Web/AttachFile/OnlineEditingPrivate.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.AttachFile +{ + + + public partial class OnlineEditingPrivate + { + } +} diff --git a/SGGL/FineUIPro.Web/AttachFile/webuploader.aspx.cs b/SGGL/FineUIPro.Web/AttachFile/webuploader.aspx.cs index 3333ace5..4d5fc9b1 100644 --- a/SGGL/FineUIPro.Web/AttachFile/webuploader.aspx.cs +++ b/SGGL/FineUIPro.Web/AttachFile/webuploader.aspx.cs @@ -968,7 +968,17 @@ namespace FineUIPro.Web.AttachFile if (isSupportType) { url = url.Replace(Funs.RootPath, ""); - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/OnlineEditing.aspx?fileUrl={0}&&editorMode={1}", url, editorMode, "编辑 -"))); + var sysSet4 = (from x in Funs.DB.Sys_Const where x.ConstText == "IsUseLoaclService" select x).ToList().FirstOrDefault(); + if (sysSet4!=null&& sysSet4.ConstValue=="1") + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/OnlineEditingPrivate.aspx?fileUrl={0}&&editorMode={1}", url, editorMode, "编辑 -"))); + + } + else + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../AttachFile/OnlineEditing.aspx?fileUrl={0}&&editorMode={1}", url, editorMode, "编辑 -"))); + + } } else { diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionMachine.aspx b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionMachine.aspx index 91601a21..838acfdf 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionMachine.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionMachine.aspx @@ -59,7 +59,7 @@ - + diff --git a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionMachineDataIn.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionMachineDataIn.aspx.cs index 2360fcd0..3edb1a77 100644 --- a/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionMachineDataIn.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Comprehensive/InspectionMachineDataIn.aspx.cs @@ -490,7 +490,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive Ins.TestCycle = pds.Rows[i][7].ToString().Trim(); - Ins.IsOnSite = pds.Rows[i][8].ToString().Trim() == "是" ? true : false; + Ins.IsVerification = pds.Rows[i][8].ToString().Trim() == "是" ? true : false; if (!string.IsNullOrEmpty(pds.Rows[i][9].ToString().Trim())) { @@ -542,7 +542,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive oldViewInfo.TestCycle = pds.Rows[i][7].ToString().Trim(); - oldViewInfo.IsOnSite = pds.Rows[i][8].ToString().Trim() == "是" ? true : false; + oldViewInfo.IsVerification = pds.Rows[i][8].ToString().Trim() == "是" ? true : false; if (!string.IsNullOrEmpty(pds.Rows[i][9].ToString().Trim())) { diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/NCRStatisc.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReport/NCRStatisc.aspx.cs index 60ca2d1f..d91d6e0f 100644 --- a/SGGL/FineUIPro.Web/CQMS/ManageReport/NCRStatisc.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/NCRStatisc.aspx.cs @@ -16,7 +16,8 @@ namespace FineUIPro.Web.CQMS.ManageReport protected void Page_Load(object sender, EventArgs e) { - if (!IsPostBack) { + if (!IsPostBack) + { Model.Base_Project project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId); this.txtStartDate.Text = "2015-01-01"; this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); @@ -104,8 +105,11 @@ namespace FineUIPro.Web.CQMS.ManageReport NCRStatisc.Num = i; NCRStatisc.WorkName = item.ProfessionalName; NCRStatisc.CheckNum = managementList.Count(); - NCRStatisc.OKNum = managementList.Count(x => x.Status == "3"); - NCRStatisc.NotOKNum = managementList.Count(x => x.Status != "3"); + //NCRStatisc.OKNum = managementList.Count(x => x.Status == "3"); + //NCRStatisc.NotOKNum = managementList.Count(x => x.Status != "3"); + int okNum = managementList.Where(x => x.ImplementationFrontState.Trim().Equals("已闭合")).Count(); + NCRStatisc.OKNum = okNum; + NCRStatisc.NotOKNum = managementList.Count() - okNum; NCRStatisc.Remark = ""; if (NCRStatisc.CheckNum != 0)//被除数不能为零 { diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReport/WeekReportEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReport/WeekReportEdit.aspx.cs index 1b5f32b6..58c8016d 100644 --- a/SGGL/FineUIPro.Web/CQMS/ManageReport/WeekReportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ManageReport/WeekReportEdit.aspx.cs @@ -916,7 +916,8 @@ namespace FineUIPro.Web.CQMS.ManageReport u.UnitId, u.UnitName, c.IssuedDate, - c.Status + c.Status, + c.ImplementationFrontState, }; @@ -926,8 +927,10 @@ namespace FineUIPro.Web.CQMS.ManageReport Model.NCRReportStatisc NCRStatisc = new Model.NCRReportStatisc(); NCRStatisc.Num = i; NCRStatisc.WorkName = item.UnitName; - NCRStatisc.CurrentPeriodOkNum = unitNCRStatic.Count(x => x.Status == "3"); - NCRStatisc.OKNum = AllList.Count(x => x.Status == "3"); + //NCRStatisc.CurrentPeriodOkNum = unitNCRStatic.Count(x => x.Status == "3"); + //NCRStatisc.OKNum = AllList.Count(x => x.Status == "3"); + NCRStatisc.CurrentPeriodOkNum = unitNCRStatic.Where(x => x.ImplementationFrontState.Trim().Equals("已闭合")).Count(); + NCRStatisc.OKNum = AllList.Where(x => x.ImplementationFrontState.Trim().Equals("已闭合")).Count(); NCRStatisc.CheckNum = AllList.Count(); if (NCRStatisc.CheckNum != 0)//被除数不能为零 { diff --git a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs index c4149d2b..d451cdfa 100644 --- a/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ManageReportNew/MonthReportEdit.aspx.cs @@ -65,6 +65,7 @@ namespace FineUIPro.Web.CQMS.ManageReportNew #endregion #region 加载所有单位 + [Serializable] public class UnitClass { public string UnitId { get; set; } public string UnitName { get; set; } @@ -72,16 +73,40 @@ namespace FineUIPro.Web.CQMS.ManageReportNew public string UnitType { get; set; } } - public List units = new List(); + //public List units = new List(); + + public List units + { + get + { + return (List)ViewState["units"]; + } + set + { + ViewState["units"] = value; + } + } #endregion #region 加载所有专业 + [Serializable] public class ProfessionalsClass { public string CNProfessionalId { get; set; } public string ProfessionalName { get; set; } } - public List CNProfessionals = new List(); + //public List CNProfessionals = new List(); + public List CNProfessionals + { + get + { + return (List)ViewState["CNProfessionals"]; + } + set + { + ViewState["CNProfessionals"] = value; + } + } #endregion #region 加载页面 diff --git a/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNotice.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNotice.aspx.cs index e1faeafe..bec70518 100644 --- a/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNotice.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNotice.aspx.cs @@ -25,7 +25,18 @@ namespace FineUIPro.Web.CQMS.ProcessControl if (!IsPostBack) { GetButtonPower(); - BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessional, true);//专业 + if (this.CurrUser.UserId == BLL.Const.hfnbdId) + { + this.drpCNProfessional.DataTextField = "DetectionItems"; + this.drpCNProfessional.DataValueField = "ControlId"; + this.drpCNProfessional.DataSource = BLL.CNProfessionalService.GetCnProList(); + this.drpCNProfessional.DataBind(); + Funs.FineUIPleaseSelect(this.drpCNProfessional); + } + else + { + BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessional, true);//专业 + } BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(drpUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, true);//施工分包商 BindGrid(); } @@ -36,13 +47,16 @@ namespace FineUIPro.Web.CQMS.ProcessControl ///
public void BindGrid() { - string strSql = @"SELECT P.InspectionId, + if (this.CurrUser.UserId==BLL.Const.hfnbdId) + { + + string strSql = @"SELECT P.InspectionId, P.ProjectId, P.UnitId, P.CNProfessionalId, P.UnitWorkId, U.UnitName, - C.ProfessionalName, + C.DetectionItems as ProfessionalName, P.NoticeCode, UnitWork.UnitWorkName, DP.DivisionName AS Branch, @@ -50,42 +64,96 @@ namespace FineUIPro.Web.CQMS.ProcessControl BP.Class, P.AcceptanceSite, P.AcceptanceCheckMan" - + @" FROM ProcessControl_InspectionManagement AS P" - + @" LEFT JOIN Base_Unit AS U ON U.UnitId = P.UnitId" - + @" LEFT JOIN Base_CNProfessional C ON C.CNProfessionalId = P.CNProfessionalId" - + @" LEFT JOIN WBS_UnitWork AS UnitWork ON UnitWork.UnitWorkId = P.UnitWorkId" - + @" LEFT JOIN WBS_DivisionProject AS DP ON DP.DivisionProjectId = P.Branch" - + @" LEFT JOIN WBS_BreakdownProject AS BP ON BP.BreakdownProjectId = P.ControlPointType" - + @" WHERE P.ProjectId=@ProjectId "; - List listStr = new List(); - listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); - if (drpUnit.SelectedValue != BLL.Const._Null) - { - strSql += " AND P.UnitId=@UnitId"; - listStr.Add(new SqlParameter("@UnitId", drpUnit.SelectedValue)); + + @" FROM ProcessControl_InspectionManagement AS P" + + @" LEFT JOIN Base_Unit AS U ON U.UnitId = P.UnitId" + + @" LEFT JOIN Control_PointCropping C ON C.ControlId = P.CNProfessionalId" + + @" LEFT JOIN WBS_UnitWork AS UnitWork ON UnitWork.UnitWorkId = P.UnitWorkId" + + @" LEFT JOIN WBS_DivisionProject AS DP ON DP.DivisionProjectId = P.Branch" + + @" LEFT JOIN WBS_BreakdownProject AS BP ON BP.BreakdownProjectId = P.ControlPointType" + + @" WHERE P.ProjectId=@ProjectId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (drpUnit.SelectedValue != BLL.Const._Null) + { + strSql += " AND P.UnitId=@UnitId"; + listStr.Add(new SqlParameter("@UnitId", drpUnit.SelectedValue)); + } + if (drpCNProfessional.SelectedValue != BLL.Const._Null) + { + strSql += " AND P.CNProfessionalId=@CNProfessionalId"; + listStr.Add(new SqlParameter("@CNProfessionalId", drpCNProfessional.SelectedValue)); + } + if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) + { + strSql += " AND P.InspectionDate >= @startTime"; + listStr.Add(new SqlParameter("@startTime", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) + { + strSql += " AND P.InspectionDate <= @endTime"; + listStr.Add(new SqlParameter("@endTime", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); } - if (drpCNProfessional.SelectedValue != BLL.Const._Null) + else { - strSql += " AND P.CNProfessionalId=@CNProfessionalId"; - listStr.Add(new SqlParameter("@CNProfessionalId", drpCNProfessional.SelectedValue)); + string strSql = @"SELECT P.InspectionId, + P.ProjectId, + P.UnitId, + P.CNProfessionalId, + P.UnitWorkId, + U.UnitName, + C.ProfessionalName as ProfessionalName, + P.NoticeCode, + UnitWork.UnitWorkName, + DP.DivisionName AS Branch, + BP.BreakdownName AS ControlPointType, + BP.Class, + P.AcceptanceSite, + P.AcceptanceCheckMan" + + @" FROM ProcessControl_InspectionManagement AS P" + + @" LEFT JOIN Base_Unit AS U ON U.UnitId = P.UnitId" + + @" left join Base_CNProfessional c on c.CNProfessionalId = P.CNProfessionalId" + + @" LEFT JOIN WBS_UnitWork AS UnitWork ON UnitWork.UnitWorkId = P.UnitWorkId" + + @" LEFT JOIN WBS_DivisionProject AS DP ON DP.DivisionProjectId = P.Branch" + + @" LEFT JOIN WBS_BreakdownProject AS BP ON BP.BreakdownProjectId = P.ControlPointType" + + @" WHERE P.ProjectId=@ProjectId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + if (drpUnit.SelectedValue != BLL.Const._Null) + { + strSql += " AND P.UnitId=@UnitId"; + listStr.Add(new SqlParameter("@UnitId", drpUnit.SelectedValue)); + } + if (drpCNProfessional.SelectedValue != BLL.Const._Null) + { + strSql += " AND P.CNProfessionalId=@CNProfessionalId"; + listStr.Add(new SqlParameter("@CNProfessionalId", drpCNProfessional.SelectedValue)); + } + if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) + { + strSql += " AND P.InspectionDate >= @startTime"; + listStr.Add(new SqlParameter("@startTime", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) + { + strSql += " AND P.InspectionDate <= @endTime"; + listStr.Add(new SqlParameter("@endTime", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid1.FilteredData, tb); + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); } - if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) - { - strSql += " AND P.InspectionDate >= @startTime"; - listStr.Add(new SqlParameter("@startTime", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); - } - if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) - { - strSql += " AND P.InspectionDate <= @endTime"; - listStr.Add(new SqlParameter("@endTime", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); - } - SqlParameter[] parameter = listStr.ToArray(); - DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - Grid1.RecordCount = tb.Rows.Count; - //tb = GetFilteredTable(Grid1.FilteredData, tb); - var table = this.GetPagedDataTable(Grid1, tb); - Grid1.DataSource = table; - Grid1.DataBind(); } #endregion diff --git a/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx b/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx index 6d83600f..6dbf5b0d 100644 --- a/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx @@ -15,79 +15,56 @@ - + - + - - - + + - <%-- + + + + + + + + + + + + + + - - - - - - - - - - - - - --%> - - - - - <%-- --%> - - - - - - - - - - - - - - - - - - - - - - - - + EnableTextSelection="True"> @@ -98,8 +75,7 @@ - + diff --git a/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx.cs index dbaec460..6745f3ea 100644 --- a/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx.cs @@ -18,11 +18,52 @@ namespace FineUIPro.Web.CQMS.ProcessControl { if (!IsPostBack) { + //测试阶段,仅hfnbd账号使用 + if (this.CurrUser.UserId == BLL.Const.hfnbdId) + { + this.drpUnitWorkId.Hidden = false; + this.fr1.Hidden = false; + this.fr2.Hidden = false; + } GetButtonPower(); BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(drpUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, true);//施工分包商 - BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true);//专业 + UserService.InitUserProjectIdUnitTypeDropDownList(this.drpAcceptanceCheckMan, this.CurrUser.LoginProjectId, string.Empty, false); //UserService.InitUserNameProjectIdUnitTypeDropDownList(this.drpAcceptanceCheckMan, this.CurrUser.LoginProjectId, string.Empty, false); + if (this.CurrUser.UserId == BLL.Const.hfnbdId)//测试阶段,仅hfnbd账号使用 + { + //专业 + this.drpCNProfessionalId.DataTextField = "DetectionItems"; + this.drpCNProfessionalId.DataValueField = "ControlId"; + this.drpCNProfessionalId.DataSource = BLL.CNProfessionalService.GetCnProList(); + this.drpCNProfessionalId.DataBind(); + Funs.FineUIPleaseSelect(this.drpCNProfessionalId); + } + else + { + BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true);//专业 + } + + //单位工程 + var q = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.WBS_UnitWork on x.UnitWorkId equals y.UnitWorkId + where x.ProjectId == this.CurrUser.LoginProjectId + && (y.SuperUnitWork == null || y.SuperUnitWork == "0") + select new + { + y.UnitWorkId, + UnitWorkName = y.UnitWorkCode + "-" + y.UnitWorkName + }).Distinct().ToList(); + this.drpUnitWorkId.DataTextField = "UnitWorkName"; + this.drpUnitWorkId.DataValueField = "UnitWorkId"; + this.drpUnitWorkId.DataSource = q; + this.drpUnitWorkId.DataBind(); + Funs.FineUIPleaseSelect(this.drpUnitWorkId);//单位工程 + Funs.FineUIPleaseSelect(this.drpChirldUnitWorkId);//子单位工程 + Funs.FineUIPleaseSelect(this.drpBranch);//分部工程 + Funs.FineUIPleaseSelect(this.drpChildBranch);//子分部工程 + Funs.FineUIPleaseSelect(this.drpProEngineering);//分项工程 + this.hdInspectionNoticeId.Text = Request.Params["inspectionId"]; if (!string.IsNullOrEmpty(Request.Params["View"])) { @@ -46,6 +87,170 @@ namespace FineUIPro.Web.CQMS.ProcessControl { this.drpAcceptanceCheckMan.SelectedValueArray = inspectionManagement.AcceptanceCheckMan.Split(','); } + //单位工程、分部工程、分项工程 + if (!string.IsNullOrEmpty(inspectionManagement.UnitWorkId)) + { + this.drpUnitWorkId.SelectedValue = inspectionManagement.UnitWorkId; + if (!string.IsNullOrEmpty(inspectionManagement.ChildUnitWorkId)) + { + //子单位工程 + var childUnitWorks = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.WBS_UnitWork on x.UnitWorkId equals y.UnitWorkId + where x.ProjectId == this.CurrUser.LoginProjectId + && y.SuperUnitWork == inspectionManagement.UnitWorkId + && (y.SuperUnitWork != "0") + select new + { + y.UnitWorkId, + UnitWorkName = y.UnitWorkCode + "-" + y.UnitWorkName + }).Distinct().ToList(); + this.drpChirldUnitWorkId.DataTextField = "UnitWorkName"; + this.drpChirldUnitWorkId.DataValueField = "UnitWorkId"; + this.drpChirldUnitWorkId.DataSource = childUnitWorks; + this.drpChirldUnitWorkId.DataBind(); + Funs.FineUIPleaseSelect(this.drpChirldUnitWorkId); + this.drpChirldUnitWorkId.SelectedIndex = 0; + this.drpChirldUnitWorkId.SelectedValue = inspectionManagement.ChildUnitWorkId; + } + if (!string.IsNullOrEmpty(inspectionManagement.Branch)) + { + if (string.IsNullOrEmpty(inspectionManagement.ChildUnitWorkId))//无子单位工程 + { + //分部工程 + var a = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && x.UnitWorkId == inspectionManagement.UnitWorkId + && y.ParentId == null + select new + { + y.DivisionId, + y.BranchEngineeringName + }).Distinct().ToList(); + this.drpBranch.DataTextField = "BranchEngineeringName"; + this.drpBranch.DataValueField = "DivisionId"; + this.drpBranch.DataSource = a; + this.drpBranch.DataBind(); + Funs.FineUIPleaseSelect(this.drpBranch); + this.drpBranch.SelectedIndex = 0; + this.drpBranch.SelectedValue = inspectionManagement.Branch; + } + else + { + //分部工程(有子单位工程) + var a = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && x.UnitWorkId == inspectionManagement.ChildUnitWorkId + && y.ParentId == null + select new + { + y.DivisionId, + y.BranchEngineeringName + }).Distinct().ToList(); + this.drpBranch.DataTextField = "BranchEngineeringName"; + this.drpBranch.DataValueField = "DivisionId"; + this.drpBranch.DataSource = a; + this.drpBranch.DataBind(); + Funs.FineUIPleaseSelect(this.drpBranch); + this.drpBranch.SelectedIndex = 0; + this.drpBranch.SelectedValue = inspectionManagement.Branch; + } + if (!string.IsNullOrEmpty(inspectionManagement.ChildBranch)) + { + #region 子分部工程 + if (!string.IsNullOrEmpty(inspectionManagement.ChildUnitWorkId)) + { + //子分部工程 + var childBranchs = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && y.ParentId == inspectionManagement.Branch + && x.UnitWorkId == inspectionManagement.ChildUnitWorkId + && y.SubBranchEngineeringName != null + select new + { + y.DivisionId, + y.SubBranchEngineeringName + }).Distinct().ToList(); + this.drpChildBranch.DataTextField = "SubBranchEngineeringName"; + this.drpChildBranch.DataValueField = "DivisionId"; + this.drpChildBranch.DataSource = childBranchs; + this.drpChildBranch.DataBind(); + Funs.FineUIPleaseSelect(this.drpChildBranch); + this.drpChildBranch.SelectedIndex = 0; + } + else + { + var childBranchs = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && y.ParentId == inspectionManagement.Branch + && x.UnitWorkId == inspectionManagement.UnitWorkId + && y.SubBranchEngineeringName != null + select new + { + y.DivisionId, + y.SubBranchEngineeringName + }).Distinct().ToList(); + this.drpChildBranch.DataTextField = "SubBranchEngineeringName"; + this.drpChildBranch.DataValueField = "DivisionId"; + this.drpChildBranch.DataSource = childBranchs; + this.drpChildBranch.DataBind(); + Funs.FineUIPleaseSelect(this.drpChildBranch); + this.drpChildBranch.SelectedIndex = 0; + } + this.drpChildBranch.SelectedValue = inspectionManagement.ChildBranch; + #endregion + } + + if (!string.IsNullOrEmpty(inspectionManagement.ControlPointType)) + { + //分项工程 + var b = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && x.UnitWorkId == this.drpUnitWorkId.SelectedValue + && y.ParentId == this.drpBranch.SelectedValue + && y.ParentId != null + select new + { + y.DivisionId, + y.ProEngineeringName, + y.SubBranchEngineeringName + }).Distinct().ToList(); + if (b.Where(w => w.SubBranchEngineeringName == null).Count() > 0) + { + this.drpProEngineering.DataTextField = "ProEngineeringName"; + this.drpProEngineering.DataValueField = "DivisionId"; + this.drpProEngineering.DataSource = b; + } + else + { + var c = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + join z in Funs.DB.Division_SubProjects on y.ParentId equals z.DivisionId + join w in Funs.DB.Division_SubProjects on z.ParentId equals w.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && x.UnitWorkId == this.drpUnitWorkId.SelectedValue + && z.ParentId == this.drpBranch.SelectedValue + select new + { + y.DivisionId, + y.ProEngineeringName + }).Distinct().ToList(); + this.drpProEngineering.DataTextField = "ProEngineeringName"; + this.drpProEngineering.DataValueField = "DivisionId"; + this.drpProEngineering.DataSource = c; + } + this.drpProEngineering.DataBind(); + Funs.FineUIPleaseSelect(this.drpProEngineering); + this.drpProEngineering.SelectedIndex = 0; + + this.drpProEngineering.SelectedValue = inspectionManagement.ControlPointType; + } + } + } this.txtNoticeCode.Text = inspectionManagement.NoticeCode; this.Grid1.DataSource = BLL.InspectionManagementDetailService.GetInspectionDetails(this.hdInspectionNoticeId.Text.Trim()); this.Grid1.DataBind(); @@ -58,7 +263,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl if (requestArg.StartsWith("ReloadGrid$")) { this.hdItemsString.Text = requestArg.Substring("ReloadGrid$".Length); - Window1_Close(null,null); + Window1_Close(null, null); } } } @@ -72,7 +277,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// protected void btnSave_Click(object sender, EventArgs e) { - if (this.drpUnit.SelectedValue==BLL.Const._Null) + if (this.drpUnit.SelectedValue == BLL.Const._Null) { Alert.ShowInTop("请先选择施工分包商!", MessageBoxIcon.Warning); return; @@ -112,6 +317,27 @@ namespace FineUIPro.Web.CQMS.ProcessControl CheckManIds = CheckManIds.Substring(0, CheckManIds.LastIndexOf(",")); } inspectionManagement.AcceptanceCheckMan = CheckManIds; + + if (this.drpUnitWorkId.SelectedValue != BLL.Const._Null) + { + inspectionManagement.UnitWorkId = this.drpUnitWorkId.SelectedValue; + } + if (this.drpChirldUnitWorkId.SelectedValue!=BLL.Const._Null) + { + inspectionManagement.ChildUnitWorkId = this.drpChirldUnitWorkId.SelectedValue; + } + if (this.drpBranch.SelectedValue != BLL.Const._Null) + { + inspectionManagement.Branch = this.drpBranch.SelectedValue; + } + if (this.drpChildBranch.SelectedValue!=BLL.Const._Null) + { + inspectionManagement.ChildBranch = this.drpChildBranch.SelectedValue; + } + if (this.drpProEngineering.SelectedValue != BLL.Const._Null) + { + inspectionManagement.ControlPointType = this.drpProEngineering.SelectedValue; + } //inspectionManagement.AcceptanceCheckMan = this.txtAcceptanceCheckMan.Text.Trim(); if (string.IsNullOrEmpty(Request.Params["inspectionId"])) { @@ -146,7 +372,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl { //编号不能重复 var InspectionManagementModel = Funs.DB.ProcessControl_InspectionManagement.FirstOrDefault(x => x.NoticeCode == this.txtNoticeCode.Text.Trim() - && x.InspectionId!= Request.Params["inspectionId"]); + && x.InspectionId != Request.Params["inspectionId"]); if (InspectionManagementModel != null) { ShowNotify("共检通知单编号已存在,不能重复!", MessageBoxIcon.Warning); @@ -192,6 +418,12 @@ namespace FineUIPro.Web.CQMS.ProcessControl } #endregion + #region Grid1行内事件 + /// + /// Grid1行内事件 + /// + /// + /// protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) { string itemId = Grid1.DataKeys[e.RowIndex][0].ToString(); @@ -210,6 +442,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl Grid1.DataBind(); } } + #endregion #region 搜索 /// @@ -250,7 +483,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl { detail.CreateDate = Convert.ToDateTime(createDate); } - + details.Add(detail); } return details; @@ -400,5 +633,213 @@ namespace FineUIPro.Web.CQMS.ProcessControl return name; } #endregion + + #region DropDownList下拉选择事件 + /// + /// 单位工程下拉选择事件 + /// + /// + /// + protected void drpUnitWorkId_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpChirldUnitWorkId.Items.Clear(); + if (this.drpUnitWorkId.SelectedValue != BLL.Const._Null) + { + //子单位工程 + var childUnitWorks = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.WBS_UnitWork on x.UnitWorkId equals y.UnitWorkId + where x.ProjectId == this.CurrUser.LoginProjectId + && y.SuperUnitWork == this.drpUnitWorkId.SelectedValue + && (y.SuperUnitWork != "0") + select new + { + y.UnitWorkId, + UnitWorkName = y.UnitWorkCode + "-" + y.UnitWorkName + }).Distinct().ToList(); + this.drpChirldUnitWorkId.DataTextField = "UnitWorkName"; + this.drpChirldUnitWorkId.DataValueField = "UnitWorkId"; + this.drpChirldUnitWorkId.DataSource = childUnitWorks; + this.drpChirldUnitWorkId.DataBind(); + Funs.FineUIPleaseSelect(this.drpChirldUnitWorkId); + this.drpChirldUnitWorkId.SelectedIndex = 0; + + //分部工程 + this.drpBranch.Items.Clear(); + var q = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && x.UnitWorkId == this.drpUnitWorkId.SelectedValue + && y.ParentId == null + select new + { + y.DivisionId, + y.BranchEngineeringName + }).Distinct().ToList(); + this.drpBranch.DataTextField = "BranchEngineeringName"; + this.drpBranch.DataValueField = "DivisionId"; + this.drpBranch.DataSource = q; + this.drpBranch.DataBind(); + Funs.FineUIPleaseSelect(this.drpBranch); + this.drpBranch.SelectedIndex = 0; + } + } + + /// + /// 子单位工程下拉选择事件 + /// + /// + /// + protected void drpChirldUnitWorkId_SelectedIndexChanged(object sender, EventArgs e) + { + if (this.drpChirldUnitWorkId.SelectedValue != BLL.Const._Null) + { + this.drpBranch.Items.Clear(); + var q = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && x.UnitWorkId == this.drpChirldUnitWorkId.SelectedValue + && y.ParentId == null + select new + { + y.DivisionId, + y.BranchEngineeringName + }).Distinct().ToList(); + this.drpBranch.DataTextField = "BranchEngineeringName"; + this.drpBranch.DataValueField = "DivisionId"; + this.drpBranch.DataSource = q; + this.drpBranch.DataBind(); + Funs.FineUIPleaseSelect(this.drpBranch); + this.drpBranch.SelectedIndex = 0; + } + } + + /// + /// 分部工程下拉选择事件 + /// + /// + /// + protected void drpBranch_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpChildBranch.Items.Clear(); + if (this.drpBranch.SelectedValue != BLL.Const._Null) + { + #region 子分部工程 + if (this.drpChirldUnitWorkId.SelectedValue != BLL.Const._Null) + { + //子分部工程 + var childBranchs = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && y.ParentId == this.drpBranch.SelectedValue + && x.UnitWorkId == this.drpChirldUnitWorkId.SelectedValue + && y.SubBranchEngineeringName != null + select new + { + y.DivisionId, + y.SubBranchEngineeringName + }).Distinct().ToList(); + this.drpChildBranch.DataTextField = "SubBranchEngineeringName"; + this.drpChildBranch.DataValueField = "DivisionId"; + this.drpChildBranch.DataSource = childBranchs; + this.drpChildBranch.DataBind(); + Funs.FineUIPleaseSelect(this.drpChildBranch); + this.drpChildBranch.SelectedIndex = 0; + } + else + { + var childBranchs = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && y.ParentId == this.drpBranch.SelectedValue + && x.UnitWorkId == this.drpUnitWorkId.SelectedValue + && y.SubBranchEngineeringName != null + select new + { + y.DivisionId, + y.SubBranchEngineeringName + }).Distinct().ToList(); + this.drpChildBranch.DataTextField = "SubBranchEngineeringName"; + this.drpChildBranch.DataValueField = "DivisionId"; + this.drpChildBranch.DataSource = childBranchs; + this.drpChildBranch.DataBind(); + Funs.FineUIPleaseSelect(this.drpChildBranch); + this.drpChildBranch.SelectedIndex = 0; + } + #endregion + + //分项工程 + this.drpProEngineering.Items.Clear(); + var q = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && x.UnitWorkId == this.drpUnitWorkId.SelectedValue + && y.ParentId == this.drpBranch.SelectedValue + && y.ParentId != null + select new + { + y.DivisionId, + y.ProEngineeringName, + y.SubBranchEngineeringName + }).Distinct().ToList(); + if (q.Where(w => w.SubBranchEngineeringName == null).Count() > 0) + { + this.drpProEngineering.DataTextField = "ProEngineeringName"; + this.drpProEngineering.DataValueField = "DivisionId"; + this.drpProEngineering.DataSource = q; + } + else + { + var a = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + join z in Funs.DB.Division_SubProjects on y.ParentId equals z.DivisionId + join w in Funs.DB.Division_SubProjects on z.ParentId equals w.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && x.UnitWorkId == this.drpUnitWorkId.SelectedValue + && z.ParentId == this.drpBranch.SelectedValue + select new + { + y.DivisionId, + y.ProEngineeringName + }).Distinct().ToList(); + this.drpProEngineering.DataTextField = "ProEngineeringName"; + this.drpProEngineering.DataValueField = "DivisionId"; + this.drpProEngineering.DataSource = a; + } + this.drpProEngineering.DataBind(); + Funs.FineUIPleaseSelect(this.drpProEngineering); + } + this.drpProEngineering.SelectedIndex = 0; + } + + /// + /// 子分部工程下拉选择事件 + /// + /// + /// + protected void drpChildBranch_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpProEngineering.Items.Clear(); + if (this.drpChildBranch.SelectedValue != BLL.Const._Null) + { + //分项工程 + var a = (from x in Funs.DB.WBS_DivisionDivide + join y in Funs.DB.Division_SubProjects on x.DivisionId equals y.DivisionId + where x.ProjectId == this.CurrUser.LoginProjectId + && x.UnitWorkId == this.drpUnitWorkId.SelectedValue + && y.ParentId == this.drpChildBranch.SelectedValue + select new + { + y.DivisionId, + y.ProEngineeringName + }).Distinct().ToList(); + this.drpProEngineering.DataTextField = "ProEngineeringName"; + this.drpProEngineering.DataValueField = "DivisionId"; + this.drpProEngineering.DataSource = a; + this.drpProEngineering.DataBind(); + Funs.FineUIPleaseSelect(this.drpProEngineering); + this.drpProEngineering.SelectedIndex = 0; + } + } + #endregion } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx.designer.cs index 90502fd5..63f508cf 100644 --- a/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/ProcessControl/InspectionNoticeEdit.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.CQMS.ProcessControl -{ - - - public partial class InspectionNoticeEdit - { - +namespace FineUIPro.Web.CQMS.ProcessControl { + + + public partial class InspectionNoticeEdit { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// SimpleForm1 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// drpUnit 控件。 /// @@ -49,7 +47,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpUnit; - + /// /// drpCNProfessionalId 控件。 /// @@ -58,7 +56,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpCNProfessionalId; - + /// /// txtNoticeCode 控件。 /// @@ -67,7 +65,70 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtNoticeCode; - + + /// + /// drpUnitWorkId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitWorkId; + + /// + /// fr1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FormRow fr1; + + /// + /// drpChirldUnitWorkId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpChirldUnitWorkId; + + /// + /// drpBranch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpBranch; + + /// + /// fr2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FormRow fr2; + + /// + /// drpChildBranch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpChildBranch; + + /// + /// drpProEngineering 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProEngineering; + /// /// txtAcceptanceSite 控件。 /// @@ -76,7 +137,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtAcceptanceSite; - + /// /// drpAcceptanceCheckMan 控件。 /// @@ -85,7 +146,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpAcceptanceCheckMan; - + /// /// Label1 控件。 /// @@ -94,7 +155,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label Label1; - + /// /// btnAttach 控件。 /// @@ -103,16 +164,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnAttach; - - /// - /// Panel2 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Panel Panel2; - + /// /// Grid1 控件。 /// @@ -121,7 +173,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar4 控件。 /// @@ -130,7 +182,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar4; - + /// /// btnNew 控件。 /// @@ -139,7 +191,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnNew; - + /// /// Label2 控件。 /// @@ -148,7 +200,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label2; - + /// /// Label3 控件。 /// @@ -157,7 +209,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label3; - + /// /// Label5 控件。 /// @@ -166,7 +218,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label5; - + /// /// Label4 控件。 /// @@ -175,7 +227,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label4; - + /// /// Toolbar1 控件。 /// @@ -184,7 +236,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// hdItemsString 控件。 /// @@ -193,7 +245,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdItemsString; - + /// /// hdInspectionNoticeId 控件。 /// @@ -202,7 +254,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdInspectionNoticeId; - + /// /// btnSave 控件。 /// @@ -211,7 +263,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// Window1 控件。 /// @@ -220,7 +272,7 @@ namespace FineUIPro.Web.CQMS.ProcessControl /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// WindowAtt 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolution.aspx b/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolution.aspx index 8a96bfa1..b731d669 100644 --- a/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolution.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolution.aspx @@ -92,8 +92,8 @@ - - + + @@ -108,56 +108,56 @@ - - - - - - - - - - - - + diff --git a/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolution.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolution.aspx.cs index 28f40e5f..05e1f62f 100644 --- a/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolution.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolution.aspx.cs @@ -128,12 +128,12 @@ namespace FineUIPro.Web.CQMS.Solution if (drpState.SelectedValue == "1") //已闭合 { strSql += " AND State=@State"; - listStr.Add(new SqlParameter("@State", "3")); + listStr.Add(new SqlParameter("@State", "4")); } else //未闭合 { strSql += " AND State!=@State"; - listStr.Add(new SqlParameter("@State", "3")); + listStr.Add(new SqlParameter("@State", "4")); } } strSql += " order by chec.code desc "; @@ -253,16 +253,21 @@ namespace FineUIPro.Web.CQMS.Solution return; } } - else if (constructSolution.State == Const.CQMSConstructSolution_Audit || constructSolution.State == Const.CQMSConstructSolution_ReCompile) + //一级审核、二级审批、重报 + else if (constructSolution.State == Const.CQMSConstructSolution_Audit + || constructSolution.State == Const.CQMSConstructSolution_Audit1 + || constructSolution.State == Const.CQMSConstructSolution_ReCompile) { - var approve = CQMSConstructSolutionApproveService.GetThisApproveByConstructSolutionId(id); - if (approve!=null && approve.ApproveMan==this.CurrUser.UserId) + //审批列表中是否包含当前用户 + var approve = CQMSConstructSolutionApproveService.GetThisApproveByConstructSolutionId(id, constructSolution.State); + //if (approve!=null && approve.ApproveMan==this.CurrUser.UserId) + if (approve.Any(x=>x.ApproveMan.IndexOf(CurrUser.UserId)>-1)) { PageContext.RegisterStartupScript(window_tt.GetShowReference(String.Format("EditConstructSolution.aspx?constructSolutionId={0}", id))); } else { - Alert.ShowInTop("您不是办理用户,无法操作!请右键查看", MessageBoxIcon.Warning); + Alert.ShowInTop("您不是审核人员,无法操作!请右键查看", MessageBoxIcon.Warning); return; } //Model.Solution_CQMSConstructSolutionApprove approve = CQMSConstructSolutionApproveService.GetConstructSolutionApproveByApproveMan(id, CurrUser.UserId); @@ -285,6 +290,7 @@ namespace FineUIPro.Web.CQMS.Solution //} } + } @@ -324,7 +330,7 @@ namespace FineUIPro.Web.CQMS.Solution } else { - Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Success); + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); } } else @@ -339,14 +345,14 @@ namespace FineUIPro.Web.CQMS.Solution Alert.ShowInTop("删除成功!", MessageBoxIcon.Success); return; } - Alert.ShowInTop("删除失败,方案正在审批中!", MessageBoxIcon.Success); + Alert.ShowInTop("删除失败,只能删除未上报的数据!", MessageBoxIcon.Warning); } } else { - Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Success); + Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); } } diff --git a/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolutionView.aspx b/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolutionView.aspx index cae51a81..8343e1d5 100644 --- a/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolutionView.aspx +++ b/SGGL/FineUIPro.Web/CQMS/Solution/ConstructSolutionView.aspx @@ -144,6 +144,78 @@ --%> + + + + + + + + + + + + <%-- + + + + --%> + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- - + <%-- - - - - - - - - - - - - <%----%> - - - - - - - - - <%----%> - - - - - - - - - <%----%> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + --%> + + @@ -274,7 +429,7 @@ - + <%-- --%> diff --git a/SGGL/FineUIPro.Web/CQMS/Solution/EditConstructSolution.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Solution/EditConstructSolution.aspx.cs index da744c0a..97f6e90e 100644 --- a/SGGL/FineUIPro.Web/CQMS/Solution/EditConstructSolution.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/Solution/EditConstructSolution.aspx.cs @@ -1,10 +1,13 @@ using System; using System.Collections.Generic; +using System.Data; using System.Linq; +using System.Reflection; using System.Web; using BLL; using FineUIPro.Web.HSSE.Solution; using Model; +using Newtonsoft.Json.Linq; using AspNet = System.Web.UI.WebControls; namespace FineUIPro.Web.CQMS.Solution @@ -23,22 +26,55 @@ namespace FineUIPro.Web.CQMS.Solution set => ViewState["ConstructSolutionId"] = value; } + /// + /// 是否第二次并且不同意的时候 + /// + public bool isSendTrue + { + get => (bool)ViewState["isSendTrue"]; + set => ViewState["isSendTrue"] = value; + } #endregion + private static List complianceObligationsCs = new List(); + public int ContactImg { get => Convert.ToInt32(ViewState["ContactImg"]); set => ViewState["ContactImg"] = value; } + private string[] GetUserNames(string Ids) + { + string[] arr = Ids.Split(','); + var data = Funs.DB.Sys_User.Where(t => arr.Contains(t.UserId)).Select(t => t.UserName).ToList(); + if (data.Count > 0) + return data.ToArray(); + return null; + + } + + protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { + isSendTrue = false; + complianceObligationsCs.Clear(); InitDropDownList(); //加载下拉框 - BindZYRole(); - BindAQRole(); - BindSGRole(); + + //加载一级审核人员 + GetCheckManBindGrid1(); + //加载二级审批人员 + GetCheckManBindGrid2(); + + //GetCheckManBindGrid3(); + + GetCheckManBindGrid4(); + + //BindZYRole(); + //BindAQRole(); + //BindSGRole(); ContactImg = 0; txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); ConstructSolutionId = Request.Params["constructSolutionId"]; @@ -101,38 +137,122 @@ namespace FineUIPro.Web.CQMS.Solution #region 检查树节点 var zyUserIds = - CQMSConstructSolutionApproveService.GetUserIdsApprovesBySignType(ConstructSolutionId, "ZY"); + CQMSConstructSolutionApproveService.GetUserIdsApprovesBySignType(ConstructSolutionId, "Yi"); if (zyUserIds.Count > 0) { - SetCheck(trOne, zyUserIds); + var zyUserIdsStr = string.Join(",", zyUserIds); + drpzyUserIds.Values = zyUserIdsStr.Split(','); + drpzyUserIds.Texts = GetUserNames(zyUserIdsStr); + //SetCheck(trOne, zyUserIds); } var aqUserIds = - CQMSConstructSolutionApproveService.GetUserIdsApprovesBySignType(ConstructSolutionId, "AQ"); + CQMSConstructSolutionApproveService.GetUserIdsApprovesBySignType(ConstructSolutionId, "Er"); if (aqUserIds.Count > 0) { - SetCheck(trThree, aqUserIds); + var aqUserIdsStr = string.Join(",", aqUserIds); + drpaqUserIds.Values = aqUserIdsStr.Split(','); + drpaqUserIds.Texts = GetUserNames(aqUserIdsStr); + //SetCheck(trThree, aqUserIds); } var sgUserIds = CQMSConstructSolutionApproveService.GetUserIdsApprovesBySignType(ConstructSolutionId, "SG"); if (sgUserIds.Count > 0) { - SetCheck(trFive, sgUserIds); + var sgUserIdsStr = string.Join(",", sgUserIds); + //drpsgUserIds.Values = sgUserIdsStr.Split(','); + //drpsgUserIds.Texts = GetUserNames(sgUserIdsStr); + //SetCheck(trFive, sgUserIds); } + if (!string.IsNullOrEmpty(constructSolution.CsUsers)) + { + drpCsUsers.Values = constructSolution.CsUsers.Split(','); + drpCsUsers.Texts = GetUserNames(constructSolution.CsUsers); + } #endregion if (constructSolution.State == Const.CQMSConstructSolution_ReCompile) - { - agree.Hidden = true; - options.Hidden = true; - optio.Hidden = true; - } - - if (constructSolution.State == Const.CQMSConstructSolution_Audit) { + txtProjectName.Enabled = false; + txtCode.Enabled = false; + drpUnit.Enabled = false; + drpModelType.Enabled = false; + drpSpecialType.Enabled = false; + txtCompileDate.Enabled = false; + txtSolutionName.Enabled = false; + txtCNProfessional.Enabled = false; + txtUnitWork.Enabled = false; + //ContactImg = -2; + //Panel2.Enabled = false; + //Panel2.Hidden = true; + btnSave.Hidden = true; + //txtDocContent.Readonly = true; + drpzyUserIds.Enabled = false; + drpaqUserIds.Enabled = false; + //drpsgUserIds.Enabled = false; + drpCsUsers.Enabled = false; + txtEdition.Enabled = false; + + agree.Hidden = true; + + optio.Hidden = true; + + #region 重报 + zyUserIds = + CQMSConstructSolutionApproveService.GetUserIdsApprovesBySignTypeNew(ConstructSolutionId, "Yi"); + if (zyUserIds.Count > 0) + { + var zyUserIdsStr = string.Join(",", zyUserIds); + drpzyUserIds.Values = zyUserIdsStr.Split(','); + drpzyUserIds.Texts = GetUserNames(zyUserIdsStr); + //SetCheck(trOne, zyUserIds); + } + + aqUserIds = + CQMSConstructSolutionApproveService.GetUserIdsApprovesBySignTypeNew(ConstructSolutionId, "Er"); + if (aqUserIds.Count > 0) + { + var aqUserIdsStr = string.Join(",", aqUserIds); + drpaqUserIds.Values = aqUserIdsStr.Split(','); + drpaqUserIds.Texts = GetUserNames(aqUserIdsStr); + //SetCheck(trThree, aqUserIds); + } + + sgUserIds = + CQMSConstructSolutionApproveService.GetUserIdsApprovesBySignTypeNew(ConstructSolutionId, "SG"); + if (sgUserIds.Count > 0) + { + var sgUserIdsStr = string.Join(",", sgUserIds); + //drpsgUserIds.Values = sgUserIdsStr.Split(','); + //drpsgUserIds.Texts = GetUserNames(sgUserIdsStr); + //SetCheck(trFive, sgUserIds); + } + #endregion + //重报的情况下 + //加载 + complianceObligationsCs = Funs.DB.Solution_CQMSConstructSolutionApprove_Item.Where(x => x.ConstructSolutionId == ConstructSolutionId) + .OrderBy(x => x.SortId).OrderBy(x => x.Proposer).ToList(); + if (complianceObligationsCs.Count > 0) + { + gvOperateComplianceObligations.DataSource = complianceObligationsCs; + gvOperateComplianceObligations.DataBind(); + } + + options.Hidden = false; + options1.Hidden = false; + btnNew.Hidden = true; + gvOperateComplianceObligations.AllColumns[0].Hidden = true; + gvOperateComplianceObligations.AllColumns[6].Hidden = true; + gvOperateComplianceObligations.AllColumns[7].Hidden = true; + } + + if (constructSolution.State == Const.CQMSConstructSolution_Audit || + constructSolution.State == Const.CQMSConstructSolution_Audit1) + { + plApprove2.Hidden = true; txtProjectName.Enabled = false; txtCode.Enabled = false; drpUnit.Enabled = false; @@ -143,12 +263,33 @@ namespace FineUIPro.Web.CQMS.Solution txtCNProfessional.Enabled = false; txtUnitWork.Enabled = false; ContactImg = -2; - Panel2.Enabled = false; - Panel2.Hidden = true; + //Panel2.Enabled = false; + //Panel2.Hidden = true; btnSave.Hidden=true; txtDocContent.Readonly=true; + drpzyUserIds.Enabled = false; + drpaqUserIds.Enabled = false; + //drpsgUserIds.Enabled = false; + drpCsUsers.Enabled = false; + txtEdition.Enabled = false; + + //1级审批 二级审批,如果填写过Solution_CQMSConstructSolutionApprove_Item的情况 则显示 + complianceObligationsCs = Funs.DB.Solution_CQMSConstructSolutionApprove_Item.Where(x => x.ConstructSolutionId == ConstructSolutionId + && x.Proposer == CurrUser.UserId).OrderBy(x => x.SortId).ToList(); + if (complianceObligationsCs.Count > 0) + { + isSendTrue = true; + options.Hidden = false; + options1.Hidden = false; + gvOperateComplianceObligations.DataSource = complianceObligationsCs; + gvOperateComplianceObligations.DataBind(); + gvOperateComplianceObligations.AllColumns[4].Hidden = true; + } + } + + ////提交版本人多次修改 //if (constructSolution.CompileMan.Equals(CurrUser.UserId)) //{ @@ -177,6 +318,7 @@ namespace FineUIPro.Web.CQMS.Solution agree.Hidden = true; txtEdition.Text = "0"; options.Hidden = true; + options1.Hidden = true; optio.Hidden = true; plApprove2.Hidden = true; txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", @@ -281,7 +423,15 @@ namespace FineUIPro.Web.CQMS.Solution { constructSolution.CNProfessionalCodes = string.Join(",", txtCNProfessional.Values); } - + + //抄送人 + string sendUserIds = string.Empty; + if (!string.IsNullOrEmpty(drpCsUsers.Value)) + { + sendUserIds = string.Join(",", drpCsUsers.Values); + } + constructSolution.CsUsers = sendUserIds; + constructSolution.Edition = Convert.ToInt32(txtEdition.Text); constructSolution.ConstructSolutionId = HFConstructSolutionId.Text; constructSolution.Content = txtDocContent.Text.Trim(); @@ -324,88 +474,207 @@ namespace FineUIPro.Web.CQMS.Solution countersign(constructSolution.ConstructSolutionId); constructSolution.State = Const.CQMSConstructSolution_Audit; CQMSConstructSolutionService.UpdateConstructSolution(constructSolution); + var approve = Funs.DB.Solution_CQMSConstructSolutionApprove.Where(x => x.ApproveDate == null && + x.ConstructSolutionId == ConstructSolutionId && x.ApproveMan == CurrUser.UserId && x.ApproveType=="0").First(); - var approve = CQMSConstructSolutionApproveService.GetThisApproveByConstructSolutionId(ConstructSolutionId); - if (approve.ApproveMan == this.CurrUser.UserId && approve.ApproveType == Const.CQMSConstructSolution_ReCompile) + if (approve!=null) { approve.ApproveDate = DateTime.Now; - approve.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); - CQMSConstructSolutionApproveService.UpdateConstructSolutionApprove(approve); + CQMSConstructSolutionApproveService.UpdateConstructSolutionApprove(approve); + TbrOperateComplianceObligationsCSort(); } } + //一级审核 else if (constructSolution.State == Const.CQMSConstructSolution_Audit && saveType == "submit") { - UpdateApprove(); + UpdateApprove("Yi"); + } + //二级审批 + else if (constructSolution.State == Const.CQMSConstructSolution_Audit1 && saveType == "submit") + { + UpdateApprove("Er"); } } /// /// 修改审批意见 /// - private void UpdateApprove() + private void UpdateApprove(string signType) { - var approve = CQMSConstructSolutionApproveService.GetThisApproveByConstructSolutionId(ConstructSolutionId); - if (approve.ApproveMan==this.CurrUser.UserId ) + var state = ""; + if (signType == "Yi") { - approve.ApproveDate = DateTime.Now; - approve.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); - approve.ApproveIdea = txtOptions.Text.Trim(); - approve.Edition=Convert.ToInt32(txtEdition.Text); - CQMSConstructSolutionApproveService.UpdateConstructSolutionApprove(approve); - CheckIsAllAgree(); + state = "2"; + } + else { + state = "3"; + } + var approveList = CQMSConstructSolutionApproveService.GetThisApproveByConstructSolutionId(ConstructSolutionId, state); + if (approveList.Any(x => x.ApproveMan.IndexOf(CurrUser.UserId) > -1)) + { + var approve = approveList.FirstOrDefault(x => x.ApproveMan == CurrUser.UserId); + if (approve.ApproveMan == this.CurrUser.UserId) + { + approve.ApproveDate = DateTime.Now; + approve.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); + //approve.ApproveIdea = txtOptions.Text.Trim(); + approve.Edition = Convert.ToInt32(txtEdition.Text); + CQMSConstructSolutionApproveService.UpdateConstructSolutionApprove(approve); + + //如果第二次审批,并且有不同意的情况下,进行修改 + if (isSendTrue) + { + SprOperateComplianceObligationsCSort(); + } + + //不同意的情况下 审批人增加列表 + if (Convert.ToBoolean(rblIsAgree.SelectedValue) == false) + { + if (isSendTrue) + { + SprOperateComplianceObligationsCSort(); + } + else { + OperateComplianceObligationsCSort(); + } + + } + + CheckIsAllAgree(signType); + } } - } /// /// 判断是否全部同意 /// - private void CheckIsAllAgree() + private void CheckIsAllAgree(string signType) { var edtion = Convert.ToInt32(txtEdition.Text); var constructSolution = CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId(ConstructSolutionId); - var allApproves = CQMSConstructSolutionApproveService.GetHandleConstructSolutionApprovesByConstructSolutionId(ConstructSolutionId, - constructSolution.Edition == null ? 0 : Convert.ToInt32(constructSolution.Edition)); + - var needApporveCount = allApproves.Where(x => x.ApproveDate == null).Count(); - if (needApporveCount>0) return; //判断是否最后一个审批 + //var needApporveCount = allApproves.Where(x => x.ApproveDate == null).Count(); + //if (needApporveCount>0) return; //判断是否最后一个审批 - var count = allApproves.Where(p => - p.ApproveDate != null && p.IsAgree != null && Convert.ToBoolean(p.IsAgree)).Count(); //查询会签同意的 - var fcount = allApproves.Where(p => - p.ApproveDate != null && p.IsAgree != null && !Convert.ToBoolean(p.IsAgree)).Count(); //查询会签不同意的 - if (count == allApproves.Count)//全部同意 - { - var cons = - CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId( - ConstructSolutionId); - cons.State = Const.CQMSConstructSolution_Complete; - cons.CompileDate = DateTime.Now; - CQMSConstructSolutionService.UpdateConstructSolution(cons); - } + - //有不同意意见,打回重新编制 - if (fcount > 0) + //一级审核 + if (signType=="Yi") { - var cons = - CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId( - ConstructSolutionId); - var reApprove = new Solution_CQMSConstructSolutionApprove(); - reApprove.ConstructSolutionId = constructSolution.ConstructSolutionId; - reApprove.ApproveMan = cons.CompileMan; - reApprove.ApproveType = Const.CQMSConstructSolution_ReCompile; - edtion++; - reApprove.Edition = edtion; - CQMSConstructSolutionApproveService.AddConstructSolutionApprove(reApprove); + var allApproves = CQMSConstructSolutionApproveService.GetHandleConstructSolutionApprovesByConstructSolutionId(ConstructSolutionId, + constructSolution.Edition == null ? 0 : Convert.ToInt32(constructSolution.Edition)); + + var count = allApproves.Where(p => p.SignType == "Yi").Count(); //查询一级所有数量 + + var ycount = allApproves.Where(p =>p.ApproveDate != null && p.IsAgree != null + && Convert.ToBoolean(p.IsAgree) && p.SignType=="Yi").Count(); //查询一级审核同意的 + + var fcount = allApproves.Where(p =>p.ApproveDate != null && p.IsAgree != null + && !Convert.ToBoolean(p.IsAgree) && p.SignType == "Yi").Count(); //查询一级审核不同意的 + + //如果当前已经审核完 + if (count == (ycount + fcount)) + { + //全部同意 + if (ycount == count) + { + //走到下一步,修改施工方案状态为二级审批 + var cons = CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId(ConstructSolutionId); + cons.State = Const.CQMSConstructSolution_Audit1; + CQMSConstructSolutionService.UpdateConstructSolution(cons); + + } + else { + //有不同意的直接打回 + var cons = CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId( + ConstructSolutionId); + var reApprove = new Solution_CQMSConstructSolutionApprove(); + reApprove.ConstructSolutionId = constructSolution.ConstructSolutionId; + reApprove.ApproveMan = cons.CompileMan; + reApprove.ApproveType = Const.CQMSConstructSolution_ReCompile; + edtion++; + reApprove.Edition = edtion; + CQMSConstructSolutionApproveService.AddConstructSolutionApprove(reApprove); + + cons.State = Const.CQMSConstructSolution_ReCompile; + cons.CompileDate = DateTime.Now; + cons.Edition = edtion; + constructSolution.State = Const.CQMSConstructSolution_ReCompile; + CQMSConstructSolutionService.UpdateConstructSolution(cons); + LogService.AddSys_Log(CurrUser, constructSolution.Code, ConstructSolutionId, + Const.CQMSConstructSolutionMenuId, "修改施工方案"); + } + } + else { + //没有审核完就跳出 + return; + } - cons.State = Const.CQMSConstructSolution_ReCompile; - cons.CompileDate = DateTime.Now; - cons.Edition= edtion; - constructSolution.State = Const.CQMSConstructSolution_ReCompile; - CQMSConstructSolutionService.UpdateConstructSolution(cons); - LogService.AddSys_Log(CurrUser, constructSolution.Code, ConstructSolutionId, - Const.CQMSConstructSolutionMenuId, "修改施工方案"); } + else if (signType=="Er") + { + var allApproves = CQMSConstructSolutionApproveService.GetHandleConstructSolutionApprovesByConstructSolutionId2(ConstructSolutionId, + constructSolution.Edition == null ? 0 : Convert.ToInt32(constructSolution.Edition)); + var count = allApproves.Where(p => p.SignType == "Er").Count(); //查询二级所有数量 + + var ycount = allApproves.Where(p => p.ApproveDate != null && p.IsAgree != null + && Convert.ToBoolean(p.IsAgree) && p.SignType == "Er").Count(); //查询二级审核同意的 + + var fcount = allApproves.Where(p => p.ApproveDate != null && p.IsAgree != null + && !Convert.ToBoolean(p.IsAgree) && p.SignType == "Er").Count(); //查询二级审核不同意的 + // 如果当前已经审核完 + if (count == (ycount + fcount)) + { + //全部同意 + if (ycount == count) + { + //完成 + var cons = CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId(ConstructSolutionId); + cons.State = Const.CQMSConstructSolution_Complete; + cons.CompileDate = DateTime.Now; + CQMSConstructSolutionService.UpdateConstructSolution(cons); + + } + else + { + //有不同意的直接打回 + var cons = CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId( + ConstructSolutionId); + var reApprove = new Solution_CQMSConstructSolutionApprove(); + reApprove.ConstructSolutionId = constructSolution.ConstructSolutionId; + reApprove.ApproveMan = cons.CompileMan; + reApprove.ApproveType = Const.CQMSConstructSolution_ReCompile; + edtion++; + reApprove.Edition = edtion; + CQMSConstructSolutionApproveService.AddConstructSolutionApprove(reApprove); + + cons.State = Const.CQMSConstructSolution_ReCompile; + cons.CompileDate = DateTime.Now; + cons.Edition = edtion; + constructSolution.State = Const.CQMSConstructSolution_ReCompile; + CQMSConstructSolutionService.UpdateConstructSolution(cons); + LogService.AddSys_Log(CurrUser, constructSolution.Code, ConstructSolutionId, + Const.CQMSConstructSolutionMenuId, "修改施工方案"); + } + } + else + { + //没有审核完就跳出 + return; + } + + } + //if (count == allApproves.Count)//全部同意 + //{ + + //} + + ////有不同意意见,打回重新编制 + //if (fcount > 0) + //{ + + //} } /// @@ -422,9 +691,9 @@ namespace FineUIPro.Web.CQMS.Solution if (!AttachFileService.Getfile(HFConstructSolutionId.Text, Const.CQMSConstructSolutionMenuId)) err += "请上传附件,"; var list = new List(); - list.Add(trOne); - list.Add(trThree); - list.Add(trFive); + //list.Add(trOne); + //list.Add(trThree); + //list.Add(trFive); var res = false; foreach (var item in list) if (nodesCheckd(item)) @@ -593,69 +862,114 @@ namespace FineUIPro.Web.CQMS.Solution private void countersign(string constructSolutionId) { var solution = CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId(ConstructSolutionId); + //一级审核人员 + foreach (var item in drpzyUserIds.Values) + { + var approve = new Solution_CQMSConstructSolutionApprove(); + approve.ConstructSolutionId = constructSolutionId; + approve.ApproveMan = item; + approve.ApproveType = Const.CQMSConstructSolution_Audit; + approve.SignType = "Yi"; + var edtion = Convert.ToInt32(txtEdition.Text); + //if (solution != null) edtion++; + approve.Edition = edtion; + approve.Order = 2; + //delSolutionApprove(constructSolutionId, item, "Yi"); + CQMSConstructSolutionApproveService.AddConstructSolutionApprove(approve); + } + //二级审批人员 + foreach (var item in drpaqUserIds.Values) + { + var approve = new Solution_CQMSConstructSolutionApprove(); + approve.ConstructSolutionId = constructSolutionId; + approve.ApproveMan = item; + approve.ApproveType = Const.CQMSConstructSolution_Audit1; + approve.SignType = "Er"; + var edtion = Convert.ToInt32(txtEdition.Text); + // if (solution != null) edtion++; + approve.Edition = edtion; + approve.Order = 3; + //delSolutionApprove(constructSolutionId, item, "Er"); + CQMSConstructSolutionApproveService.AddConstructSolutionApprove(approve); + } + //foreach (var item in drpsgUserIds.Values) + //{ + // var approve = new Solution_CQMSConstructSolutionApprove(); + // approve.ConstructSolutionId = constructSolutionId; + // approve.ApproveMan = item; + // approve.ApproveType = Const.CQMSConstructSolution_Audit; + // approve.SignType = "SG"; + // var edtion = Convert.ToInt32(txtEdition.Text); + // //if (solution != null) edtion++; + // approve.Edition = edtion; + // approve.Order = 3; + // delSolutionApprove(constructSolutionId, item, "SG"); + // CQMSConstructSolutionApproveService.AddConstructSolutionApprove(approve); + //} - if (trOne.Nodes[0].Nodes.Count > 0) - foreach (var tn in trOne.Nodes[0].Nodes) - if (tn.Checked) - { - var approve = new Solution_CQMSConstructSolutionApprove(); - approve.ConstructSolutionId = constructSolutionId; - approve.ApproveMan = tn.NodeID; - approve.ApproveType = Const.CQMSConstructSolution_Audit; - approve.SignType = "ZY"; - var edtion = Convert.ToInt32(txtEdition.Text); - //if (solution != null) edtion++; - approve.Edition = edtion; - delSolutionApprove(constructSolutionId, tn.NodeID, "ZY"); - CQMSConstructSolutionApproveService.AddConstructSolutionApprove(approve); - //APICommonService.SendSubscribeMessage(approve.ApproveMan, "施工方案待办理", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now)); - } - else - { - delSolutionApprove(constructSolutionId, tn.NodeID, "ZY"); - } - if (trThree.Nodes[0].Nodes.Count > 0) - foreach (var tn in trThree.Nodes[0].Nodes) - if (tn.Checked) - { - var approve = new Solution_CQMSConstructSolutionApprove(); - approve.ConstructSolutionId = constructSolutionId; - approve.ApproveMan = tn.NodeID; - approve.ApproveType = Const.CQMSConstructSolution_Audit; - approve.SignType = "AQ"; - var edtion = Convert.ToInt32(txtEdition.Text); - // if (solution != null) edtion++; - approve.Edition = edtion; - delSolutionApprove(constructSolutionId, tn.NodeID, "AQ"); - CQMSConstructSolutionApproveService.AddConstructSolutionApprove(approve); - //APICommonService.SendSubscribeMessage(approve.ApproveMan, "施工方案待办理", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now)); - } - else - { - delSolutionApprove(constructSolutionId, tn.NodeID, "AQ"); - } + //if (trOne.Nodes[0].Nodes.Count > 0) + // foreach (var tn in trOne.Nodes[0].Nodes) + // if (tn.Checked) + // { + // var approve = new Solution_CQMSConstructSolutionApprove(); + // approve.ConstructSolutionId = constructSolutionId; + // approve.ApproveMan = tn.NodeID; + // approve.ApproveType = Const.CQMSConstructSolution_Audit; + // approve.SignType = "ZY"; + // var edtion = Convert.ToInt32(txtEdition.Text); + // //if (solution != null) edtion++; + // approve.Edition = edtion; + // delSolutionApprove(constructSolutionId, tn.NodeID, "ZY"); + // CQMSConstructSolutionApproveService.AddConstructSolutionApprove(approve); + // //APICommonService.SendSubscribeMessage(approve.ApproveMan, "施工方案待办理", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now)); + // } + // else + // { + // delSolutionApprove(constructSolutionId, tn.NodeID, "ZY"); + // } - if (trFive.Nodes[0].Nodes.Count > 0) - foreach (var tn in trFive.Nodes[0].Nodes) - if (tn.Checked) - { - var approve = new Solution_CQMSConstructSolutionApprove(); - approve.ConstructSolutionId = constructSolutionId; - approve.ApproveMan = tn.NodeID; - approve.ApproveType = Const.CQMSConstructSolution_Audit; - approve.SignType = "SG"; - var edtion = Convert.ToInt32(txtEdition.Text); - // if (solution != null) edtion++; - approve.Edition = edtion; - delSolutionApprove(constructSolutionId, tn.NodeID, "SG"); - CQMSConstructSolutionApproveService.AddConstructSolutionApprove(approve); - // APICommonService.SendSubscribeMessage(approve.ApproveMan, "施工方案待办理", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now)); - } - else - { - delSolutionApprove(constructSolutionId, tn.NodeID, "SG"); - } + //if (trThree.Nodes[0].Nodes.Count > 0) + // foreach (var tn in trThree.Nodes[0].Nodes) + // if (tn.Checked) + // { + // var approve = new Solution_CQMSConstructSolutionApprove(); + // approve.ConstructSolutionId = constructSolutionId; + // approve.ApproveMan = tn.NodeID; + // approve.ApproveType = Const.CQMSConstructSolution_Audit; + // approve.SignType = "AQ"; + // var edtion = Convert.ToInt32(txtEdition.Text); + // // if (solution != null) edtion++; + // approve.Edition = edtion; + // delSolutionApprove(constructSolutionId, tn.NodeID, "AQ"); + // CQMSConstructSolutionApproveService.AddConstructSolutionApprove(approve); + // //APICommonService.SendSubscribeMessage(approve.ApproveMan, "施工方案待办理", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now)); + // } + // else + // { + // delSolutionApprove(constructSolutionId, tn.NodeID, "AQ"); + // } + + //if (trFive.Nodes[0].Nodes.Count > 0) + // foreach (var tn in trFive.Nodes[0].Nodes) + // if (tn.Checked) + // { + // var approve = new Solution_CQMSConstructSolutionApprove(); + // approve.ConstructSolutionId = constructSolutionId; + // approve.ApproveMan = tn.NodeID; + // approve.ApproveType = Const.CQMSConstructSolution_Audit; + // approve.SignType = "SG"; + // var edtion = Convert.ToInt32(txtEdition.Text); + // // if (solution != null) edtion++; + // approve.Edition = edtion; + // delSolutionApprove(constructSolutionId, tn.NodeID, "SG"); + // CQMSConstructSolutionApproveService.AddConstructSolutionApprove(approve); + // // APICommonService.SendSubscribeMessage(approve.ApproveMan, "施工方案待办理", this.CurrUser.UserName, string.Format("{0:yyyy-MM-dd HH:mm:ss}", DateTime.Now)); + // } + // else + // { + // delSolutionApprove(constructSolutionId, tn.NodeID, "SG"); + // } } //protected void imgBtnFile_Click(object sender, EventArgs e) @@ -750,26 +1064,63 @@ namespace FineUIPro.Web.CQMS.Solution return; } var err = string.Empty; - if (!AttachFileService.Getfile(HFConstructSolutionId.Text, Const.CQMSConstructSolutionMenuId)) - err += "请上传附件,"; - var list = new List(); - list.Add(trOne); - list.Add(trThree); - list.Add(trFive); - var res = false; - foreach (var item in list) - if (nodesCheckd(item)) - { - res = true; - break; - } + //if (!AttachFileService.Getfile(HFConstructSolutionId.Text, Const.CQMSConstructSolutionMenuId)) + // err += "请上传附件,"; + //var list = new List(); + //list.Add(trOne); + //list.Add(trThree); + //list.Add(trFive); + //var res = false; + //foreach (var item in list) + // if (nodesCheckd(item)) + // { + // res = true; + // break; + // } + + //if (!res) err += "请选择总包会签人员,"; + + if (drpzyUserIds.Values.Length<2) + { + err += "一级审核人员必须选择施工工程师和HSE工程师,当前小于2人,"; + } + + if (drpaqUserIds.Values.Length < 3) + { + err += "一二级审批人员必须选择施工经理、HSE经理、质量经理,当前小于3人,"; + } + + //if (string.IsNullOrEmpty(drpzyUserIds.Value)) + //{ + // err += "请选择总包会签专业工程师,"; + //} + //if (string.IsNullOrEmpty(drpaqUserIds.Value)) + //{ + // err += "请选择总包会签HSE组,"; + //} + //if (string.IsNullOrEmpty(drpsgUserIds.Value)) + //{ + // err += "请选择总包会签施工经理,"; + //} - if (!res) err += "请选择总包会签人员,"; if (!string.IsNullOrWhiteSpace(err)) { err = err.Substring(0, err.LastIndexOf(",")); err += "!"; } + if (!string.IsNullOrEmpty(ConstructSolutionId)) + { + var constructSolution = + CQMSConstructSolutionService.GetConstructSolutionByConstructSolutionId(ConstructSolutionId); + if (constructSolution.State == Const.CQMSConstructSolution_Audit && Convert.ToBoolean(rblIsAgree.SelectedValue)==false) + { + if (complianceObligationsCs.Count==0) + { + err += "不同意的情况下请添加修改意见,"; + } + } + } + if (!string.IsNullOrWhiteSpace(err)) { @@ -777,7 +1128,9 @@ namespace FineUIPro.Web.CQMS.Solution return; } - Save("submit"); + + + Save("submit"); CQMSConstructSolutionApproveService.PushMessageToNextMan(ConstructSolutionId); PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); Alert.ShowInTop("提交成功!", MessageBoxIcon.Success); @@ -861,7 +1214,7 @@ namespace FineUIPro.Web.CQMS.Solution approve.Edition = Convert.ToInt32(edtion); approve.IsAgree = Convert.ToBoolean(rblIsAgree.SelectedValue); - approve.ApproveIdea = txtOptions.Text.Trim(); + //approve.ApproveIdea = txtOptions.Text.Trim(); CQMSConstructSolutionApproveService.UpdateConstructSolutionApprove(approve); } else @@ -974,7 +1327,7 @@ namespace FineUIPro.Web.CQMS.Solution if (userIds.Contains(tn.NodeID)) { tn.Checked = true; - txtCopyMan.Text += tn.Text; + //txtCopyMan.Text += tn.Text; } } } @@ -988,8 +1341,8 @@ namespace FineUIPro.Web.CQMS.Solution rootNode.NodeID = "0"; rootNode.Expanded = true; rootNode.EnableCheckEvent = true; - trOne.Nodes.Add(rootNode); - trOne.EnableCheckBox = true; + //trOne.Nodes.Add(rootNode); + //trOne.EnableCheckBox = true; using (var db = new SGGLDB(Funs.ConnString)) { var userList = from x in db.Sys_User @@ -1039,8 +1392,8 @@ namespace FineUIPro.Web.CQMS.Solution rootNode.NodeID = "0"; rootNode.Expanded = true; rootNode.EnableCheckEvent = true; - trThree.Nodes.Add(rootNode); - trThree.EnableCheckBox = true; + //trThree.Nodes.Add(rootNode); + //trThree.EnableCheckBox = true; using (var db = new SGGLDB(Funs.ConnString)) { var userList = from x in db.Sys_User @@ -1070,8 +1423,8 @@ namespace FineUIPro.Web.CQMS.Solution rootNode.NodeID = "0"; rootNode.Expanded = true; rootNode.EnableCheckEvent = true; - trFive.Nodes.Add(rootNode); - trFive.EnableCheckBox = true; + //trFive.Nodes.Add(rootNode); + //trFive.EnableCheckBox = true; using (var db = new SGGLDB(Funs.ConnString)) { var userList = from x in db.Sys_User @@ -1101,10 +1454,10 @@ namespace FineUIPro.Web.CQMS.Solution protected void trOne_NodeCheck(object sender, TreeCheckEventArgs e) { - if (e.Checked) - trOne.CheckAllNodes(e.Node.Nodes); - else - trOne.UncheckAllNodes(e.Node.Nodes); + //if (e.Checked) + // trOne.CheckAllNodes(e.Node.Nodes); + //else + // trOne.UncheckAllNodes(e.Node.Nodes); } protected void trTwo_NodeCheck(object sender, TreeCheckEventArgs e) @@ -1121,10 +1474,10 @@ namespace FineUIPro.Web.CQMS.Solution protected void trThree_NodeCheck(object sender, TreeCheckEventArgs e) { - if (e.Checked) - trThree.CheckAllNodes(e.Node.Nodes); - else - trThree.UncheckAllNodes(e.Node.Nodes); + //if (e.Checked) + // trThree.CheckAllNodes(e.Node.Nodes); + //else + // trThree.UncheckAllNodes(e.Node.Nodes); } protected void trFour_NodeCheck(object sender, TreeCheckEventArgs e) @@ -1141,10 +1494,10 @@ namespace FineUIPro.Web.CQMS.Solution protected void trFive_NodeCheck(object sender, TreeCheckEventArgs e) { - if (e.Checked) - trFive.CheckAllNodes(e.Node.Nodes); - else - trFive.UncheckAllNodes(e.Node.Nodes); + //if (e.Checked) + // trFive.CheckAllNodes(e.Node.Nodes); + //else + // trFive.UncheckAllNodes(e.Node.Nodes); } protected void trSixe_NodeCheck(object sender, TreeCheckEventArgs e) @@ -1160,5 +1513,512 @@ namespace FineUIPro.Web.CQMS.Solution } #endregion + + #region 加载一级审核人员 + private void GetCheckManBindGrid1() + { + var tb = GetCheckManSource1(); + // 1.设置总项数(特别注意:数据库分页一定要设置总记录数RecordCount) + Grid1.RecordCount = tb.Rows.Count; + + // 2.获取当前分页数据 + var table = this.GetPagedDataTable(Grid1, tb); + + // 3.绑定到Grid + Grid1.DataSource = table; + Grid1.DataBind(); + } + + /// + /// 一级审核人员, 施工工程师和HSE工程师 + /// + /// + private DataTable GetCheckManSource1() + { + string sortField = Grid1.SortField; + string sortDirection = Grid1.SortDirection; + + var userList = (from x in Funs.DB.Sys_User + join y in Funs.DB.Project_ProjectUnit + on x.UnitId equals y.UnitId + join p in Funs.DB.Project_ProjectUser + on x.UserId equals p.UserId + where (p.RoleId.Contains(Const.ZBCNEngineer)|| p.RoleId.Contains(Const.HSSEEngineer) + || p.RoleId.Contains(Const.SGEngineer)) + && y.UnitType == Const.ProjectUnitType_1 && p.ProjectId == CurrUser.LoginProjectId && + y.ProjectId == CurrUser.LoginProjectId + select x); + + DataTable table2 = LINQToDataTable(userList); + DataView view2 = table2.DefaultView; + view2.Sort = String.Format("{0} {1}", sortField, sortDirection); + + string searchKeyword = ttbSearch1.Text.Trim(); + if (!String.IsNullOrEmpty(searchKeyword) && ttbSearch1.ShowTrigger1) + { + view2.RowFilter = String.Format(" UserName LIKE '%{0}%'", searchKeyword); + } + + return view2.ToTable(); + } + + protected void ttbSearch_Trigger1Click1(object sender, EventArgs e) + { + ttbSearch1.ShowTrigger1 = true; + GetCheckManBindGrid1(); + } + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + GetCheckManBindGrid1(); + } + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + GetCheckManBindGrid1(); + } + protected void ttbSearch_Trigger2Click1(object sender, EventArgs e) + { + ttbSearch1.ShowTrigger1 = true; + GetCheckManBindGrid1(); + } + + #endregion + + #region 加载二级审批人员 + private void GetCheckManBindGrid2() + { + var tb = GetCheckManSource2(); + // 1.设置总项数(特别注意:数据库分页一定要设置总记录数RecordCount) + Grid2.RecordCount = tb.Rows.Count; + + // 2.获取当前分页数据 + var table = this.GetPagedDataTable(Grid2, tb); + + // 3.绑定到Grid + Grid2.DataSource = table; + Grid2.DataBind(); + } + + /// + /// 二级审批人员显示施工经理、HSE经理、质量经理 + /// + /// + private DataTable GetCheckManSource2() + { + string sortField = Grid2.SortField; + string sortDirection = Grid2.SortDirection; + + var userList = (from x in Funs.DB.Sys_User + join y in Funs.DB.Project_ProjectUnit + on x.UnitId equals y.UnitId + join p in Funs.DB.Project_ProjectUser + on x.UserId equals p.UserId + where (p.RoleId.Contains(Const.HSSEManager) || p.RoleId.Contains(Const.ConstructionManager) + || p.RoleId.Contains(Const.QAManager)) + && y.UnitType == Const.ProjectUnitType_1 && p.ProjectId == CurrUser.LoginProjectId && + y.ProjectId == CurrUser.LoginProjectId + orderby x.UserCode + select x); + + DataTable table2 = LINQToDataTable(userList); + DataView view2 = table2.DefaultView; + view2.Sort = String.Format("{0} {1}", sortField, sortDirection); + + string searchKeyword = ttbSearch1.Text.Trim(); + if (!String.IsNullOrEmpty(searchKeyword) && ttbSearch1.ShowTrigger1) + { + view2.RowFilter = String.Format(" UserName LIKE '%{0}%'", searchKeyword); + } + + return view2.ToTable(); + } + + protected void ttbSearch_Trigger1Click2(object sender, EventArgs e) + { + ttbSearch2.ShowTrigger1 = true; + GetCheckManBindGrid2(); + } + protected void Grid2_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid2.PageIndex = e.NewPageIndex; + GetCheckManBindGrid2(); + } + protected void Grid2_Sort(object sender, GridSortEventArgs e) + { + Grid2.SortDirection = e.SortDirection; + Grid2.SortField = e.SortField; + GetCheckManBindGrid2(); + } + protected void ttbSearch_Trigger2Click2(object sender, EventArgs e) + { + ttbSearch2.ShowTrigger1 = true; + GetCheckManBindGrid2(); + } + #endregion + + #region 加载施工经理 不用 + //private void GetCheckManBindGrid3() + //{ + // var tb = GetCheckManSource3(); + // // 1.设置总项数(特别注意:数据库分页一定要设置总记录数RecordCount) + // Grid3.RecordCount = tb.Rows.Count; + + // // 2.获取当前分页数据 + // var table = this.GetPagedDataTable(Grid3, tb); + + // // 3.绑定到Grid + // Grid3.DataSource = table; + // Grid3.DataBind(); + //} + + //private DataTable GetCheckManSource3() + //{ + // string sortField = Grid3.SortField; + // string sortDirection = Grid3.SortDirection; + + // var userList = (from x in Funs.DB.Sys_User + // join y in Funs.DB.Project_ProjectUnit + // on x.UnitId equals y.UnitId + // join p in Funs.DB.Project_ProjectUser + // on x.UserId equals p.UserId + // where (p.RoleId.Contains(Const.ConstructionManager) || + // p.RoleId.Contains(Const.ConstructionAssistantManager)) + // && y.UnitType == Const.ProjectUnitType_1 && p.ProjectId == CurrUser.LoginProjectId && + // y.ProjectId == CurrUser.LoginProjectId + // orderby x.UserCode + // select x); + + // DataTable table2 = LINQToDataTable(userList); + // DataView view2 = table2.DefaultView; + // view2.Sort = String.Format("{0} {1}", sortField, sortDirection); + + // string searchKeyword = ttbSearch1.Text.Trim(); + // if (!String.IsNullOrEmpty(searchKeyword) && ttbSearch1.ShowTrigger1) + // { + // view2.RowFilter = String.Format(" UserName LIKE '%{0}%'", searchKeyword); + // } + + // return view2.ToTable(); + //} + + //protected void ttbSearch_Trigger1Click3(object sender, EventArgs e) + //{ + // ttbSearch3.ShowTrigger1 = true; + // GetCheckManBindGrid3(); + //} + //protected void Grid3_PageIndexChange(object sender, GridPageEventArgs e) + //{ + // Grid3.PageIndex = e.NewPageIndex; + // GetCheckManBindGrid3(); + //} + //protected void Grid3_Sort(object sender, GridSortEventArgs e) + //{ + // Grid3.SortDirection = e.SortDirection; + // Grid3.SortField = e.SortField; + // GetCheckManBindGrid3(); + //} + //protected void ttbSearch_Trigger2Click3(object sender, EventArgs e) + //{ + // ttbSearch3.ShowTrigger1 = true; + // GetCheckManBindGrid3(); + //} + #endregion + + #region 加载抄送人员 + private void GetCheckManBindGrid4() + { + var tb = GetCheckManSource4(); + // 1.设置总项数(特别注意:数据库分页一定要设置总记录数RecordCount) + Grid4.RecordCount = tb.Rows.Count; + + // 2.获取当前分页数据 + var table = this.GetPagedDataTable(Grid4, tb); + + // 3.绑定到Grid + Grid4.DataSource = table; + Grid4.DataBind(); + } + + private DataTable GetCheckManSource4() + { + string sortField = Grid4.SortField; + string sortDirection = Grid4.SortDirection; + + var userList = (from x in Funs.DB.Sys_User + join y in Funs.DB.Project_ProjectUnit + on x.UnitId equals y.UnitId + join p in Funs.DB.Project_ProjectUser + on x.UserId equals p.UserId + where p.ProjectId == CurrUser.LoginProjectId && + y.ProjectId == CurrUser.LoginProjectId + orderby x.UserCode + select x); + + DataTable table2 = LINQToDataTable(userList); + DataView view2 = table2.DefaultView; + view2.Sort = String.Format("{0} {1}", sortField, sortDirection); + + string searchKeyword = ttbSearch4.Text.Trim(); + if (!String.IsNullOrEmpty(searchKeyword) && ttbSearch4.ShowTrigger1) + { + view2.RowFilter = String.Format(" UserName LIKE '%{0}%'", searchKeyword); + } + + return view2.ToTable(); + } + + protected void ttbSearch_Trigger1Click4(object sender, EventArgs e) + { + ttbSearch4.ShowTrigger1 = true; + GetCheckManBindGrid4(); + } + protected void Grid4_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid4.PageIndex = e.NewPageIndex; + GetCheckManBindGrid4(); + } + protected void Grid4_Sort(object sender, GridSortEventArgs e) + { + Grid4.SortDirection = e.SortDirection; + Grid4.SortField = e.SortField; + GetCheckManBindGrid4(); + } + protected void ttbSearch_Trigger2Click4(object sender, EventArgs e) + { + ttbSearch4.ShowTrigger1 = true; + GetCheckManBindGrid4(); + } + #endregion + + #region linq结果转换datatable + /// + /// linq结果转换datatable + /// + /// + /// + /// + public DataTable LINQToDataTable(IEnumerable varlist) + + { + DataTable dtReturn = new DataTable(); + // column names + PropertyInfo[] oProps = null; + + + + if (varlist == null) return dtReturn; + + foreach (T rec in varlist) + { + // Use reflection to get property names, to create table, Only first time, others + if (oProps == null) + { + oProps = ((Type)rec.GetType()).GetProperties(); + foreach (PropertyInfo pi in oProps) + { + Type colType = pi.PropertyType; + + if ((colType.IsGenericType) && (colType.GetGenericTypeDefinition() + == typeof(Nullable<>))) + { + colType = colType.GetGenericArguments()[0]; + } + + dtReturn.Columns.Add(new DataColumn(pi.Name, colType)); + } + } + + DataRow dr = dtReturn.NewRow(); + + foreach (PropertyInfo pi in oProps) + { + dr[pi.Name] = pi.GetValue(rec, null) == null ? DBNull.Value : pi.GetValue + (rec, null); + } + + dtReturn.Rows.Add(dr); + } + return dtReturn; + } + #endregion + + #region 审批填写表格 + /// + /// 审批人保存第一次 + /// + private void OperateComplianceObligationsCSort() + { + BLL.ComplianceObligationsCService.DeleteSolution_CQMSConstructSolutionApprove_Item(ConstructSolutionId,CurrUser.UserId); + jerqueSaveComplianceObligationsCList(); + foreach (Model.Solution_CQMSConstructSolutionApprove_Item coc in complianceObligationsCs) + { + coc.ConstructSolutionId = ConstructSolutionId; + BLL.ComplianceObligationsCService.AddSolution_CQMSConstructSolutionApprove_Item(coc); + } + } + + /// + /// 填报人保存(修改) + /// + private void TbrOperateComplianceObligationsCSort() + { + jerqueSaveComplianceObligationsCListTbr(); + foreach (Model.Solution_CQMSConstructSolutionApprove_Item coc in complianceObligationsCs) + { + coc.ConstructSolutionId = ConstructSolutionId; + BLL.ComplianceObligationsCService.UpdateSolution_CQMSConstructSolutionApprove_Item(coc); + } + } + + /// + /// 审批人(修改) + /// + private void SprOperateComplianceObligationsCSort() + { + jerqueSaveComplianceObligationsCListSpr(); + foreach (Model.Solution_CQMSConstructSolutionApprove_Item coc in complianceObligationsCs) + { + coc.ConstructSolutionId = ConstructSolutionId; + BLL.ComplianceObligationsCService.UpdateSolution_CQMSConstructSolutionApprove_ItemNew(coc); + } + } + + protected void btnNew_Click(object sender, EventArgs e) + { + jerqueSaveComplianceObligationsCList(); + Model.Solution_CQMSConstructSolutionApprove_Item complianceObligationsC = new Model.Solution_CQMSConstructSolutionApprove_Item + { + Id = SQLHelper.GetNewID(typeof(Model.Solution_CQMSConstructSolutionApprove_Item)) + }; + complianceObligationsCs.Add(complianceObligationsC); + this.gvOperateComplianceObligations.DataSource = complianceObligationsCs; + this.gvOperateComplianceObligations.DataBind(); + } + + private void jerqueSaveComplianceObligationsCList() + { + complianceObligationsCs.Clear(); + JArray mergedData = gvOperateComplianceObligations.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + int i = mergedRow.Value("index"); + var hazardSort = new Model.Solution_CQMSConstructSolutionApprove_Item + { + Id = this.gvOperateComplianceObligations.Rows[i].DataKeys[0].ToString(), + SortId= i+1, + Chapter = values.Value("Chapter").ToString(), + Amendment = values.Value("Amendment").ToString(), + Proposer = CurrUser.UserId, + ProposerName= CurrUser.UserName, + Modification = values.Value("Modification").ToString(), + ReviewerOpinion = values.Value("ReviewerOpinion").ToString(), + IsAccept = values.Value("IsAccept").ToString(), + }; + complianceObligationsCs.Add(hazardSort); + } + } + + private void jerqueSaveComplianceObligationsCListTbr() + { + complianceObligationsCs.Clear(); + JArray mergedData = gvOperateComplianceObligations.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + int i = mergedRow.Value("index"); + var hazardSort = new Model.Solution_CQMSConstructSolutionApprove_Item + { + Id = this.gvOperateComplianceObligations.Rows[i].DataKeys[0].ToString(), + Modification = values.Value("Modification").ToString(), + + }; + complianceObligationsCs.Add(hazardSort); + } + } + + private void jerqueSaveComplianceObligationsCListSpr() + { + complianceObligationsCs.Clear(); + JArray mergedData = gvOperateComplianceObligations.GetMergedData(); + foreach (JObject mergedRow in mergedData) + { + string status = mergedRow.Value("status"); + JObject values = mergedRow.Value("values"); + int i = mergedRow.Value("index"); + var hazardSort = new Model.Solution_CQMSConstructSolutionApprove_Item + { + Id = this.gvOperateComplianceObligations.Rows[i].DataKeys[0].ToString(), + ReviewerOpinion= values.Value("ReviewerOpinion").ToString(), + IsAccept = values.Value("IsAccept").ToString(), + + }; + complianceObligationsCs.Add(hazardSort); + } + } + + protected void gvOperateComplianceObligations_RowCommand(object sender, GridCommandEventArgs e) + { + jerqueSaveComplianceObligationsCList(); + string rowID = this.gvOperateComplianceObligations.DataKeys[e.RowIndex][0].ToString(); + if (e.CommandName == "Delete") + { + foreach (var item in complianceObligationsCs) + { + if (item.Id == rowID) + { + complianceObligationsCs.Remove(item); + break; + } + } + gvOperateComplianceObligations.DataSource = complianceObligationsCs; + gvOperateComplianceObligations.DataBind(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + + #endregion + + /// + /// 不同意的情况下显示 + /// + /// + /// + protected void radChange(object sender, EventArgs e) { + //不同意的情况下 + if (rblIsAgree.SelectedValue == "false") + { + if (isSendTrue) + { + + } + else { + //显示 + options.Hidden = false; + options1.Hidden = false; + //第一次 + gvOperateComplianceObligations.AllColumns[4].Hidden = true; + gvOperateComplianceObligations.AllColumns[5].Hidden = true; + gvOperateComplianceObligations.AllColumns[6].Hidden = true; + gvOperateComplianceObligations.AllColumns[7].Hidden = true; + } + + } + else { + if (isSendTrue) + { + + } + else { + //同意的情况下 + options.Hidden = true; + options1.Hidden = true; + } + } + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/Solution/EditConstructSolution.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/Solution/EditConstructSolution.aspx.designer.cs index 179c4546..61364cb6 100644 --- a/SGGL/FineUIPro.Web/CQMS/Solution/EditConstructSolution.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/Solution/EditConstructSolution.aspx.designer.cs @@ -168,103 +168,85 @@ namespace FineUIPro.Web.CQMS.Solution protected global::FineUIPro.DatePicker txtCompileDate; /// - /// TabStrip1 控件。 + /// drpzyUserIds 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TabStrip TabStrip1; + protected global::FineUIPro.DropDownBox drpzyUserIds; /// - /// SimpleForm2 控件。 + /// Grid1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.SimpleForm SimpleForm2; + protected global::FineUIPro.Grid Grid1; /// - /// txtDocContent 控件。 + /// ttbSearch1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.HtmlEditor txtDocContent; + protected global::FineUIPro.TwinTriggerBox ttbSearch1; /// - /// txtCopyMan 控件。 + /// drpaqUserIds 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtCopyMan; + protected global::FineUIPro.DropDownBox drpaqUserIds; /// - /// Panel2 控件。 + /// Grid2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Panel Panel2; + protected global::FineUIPro.Grid Grid2; /// - /// Panel1 控件。 + /// ttbSearch2 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Panel Panel1; + protected global::FineUIPro.TwinTriggerBox ttbSearch2; /// - /// trOne 控件。 + /// drpCsUsers 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Tree trOne; + protected global::FineUIPro.DropDownBox drpCsUsers; /// - /// Panel4 控件。 + /// Grid4 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Panel Panel4; + protected global::FineUIPro.Grid Grid4; /// - /// trThree 控件。 + /// ttbSearch4 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Tree trThree; - - /// - /// Panel6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Panel Panel6; - - /// - /// trFive 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Tree trFive; + protected global::FineUIPro.TwinTriggerBox ttbSearch4; /// /// agree 控件。 @@ -294,13 +276,76 @@ namespace FineUIPro.Web.CQMS.Solution protected global::FineUIPro.FormRow options; /// - /// txtOptions 控件。 + /// btnNew 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextArea txtOptions; + protected global::FineUIPro.Button btnNew; + + /// + /// options1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FormRow options1; + + /// + /// gvOperateComplianceObligations 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvOperateComplianceObligations; + + /// + /// TextBox7 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox7; + + /// + /// TextBox1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox1; + + /// + /// TextBox2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox2; + + /// + /// TextBox3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox TextBox3; + + /// + /// drpIsAccept 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpIsAccept; /// /// optio 控件。 @@ -320,6 +365,33 @@ namespace FineUIPro.Web.CQMS.Solution /// protected global::FineUIPro.Button btnapprove; + /// + /// TabStrip1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TabStrip TabStrip1; + + /// + /// SimpleForm2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.SimpleForm SimpleForm2; + + /// + /// txtDocContent 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HtmlEditor txtDocContent; + /// /// plApprove2 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCrop.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCrop.aspx new file mode 100644 index 00000000..c09845a4 --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCrop.aspx @@ -0,0 +1,103 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DivisionDivideAndCrop.aspx.cs" Inherits="FineUIPro.Web.CQMS.WBS.Control.DivisionDivideAndCrop" %> + + + + + + + 单位分部分项工程划分、裁剪 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCrop.aspx.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCrop.aspx.cs new file mode 100644 index 00000000..e678f8a5 --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCrop.aspx.cs @@ -0,0 +1,398 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.CQMS.WBS.Control +{ + public partial class DivisionDivideAndCrop : PageBase + { + #region 定义变量 + /// + /// 被选择项列表 + /// + public List SelectedList + { + get + { + return (List)ViewState["SelectedList"]; + } + set + { + ViewState["SelectedList"] = value; + } + } + + /// + /// 未被选择项列表 + /// + public List NoSelectedList + { + get + { + return (List)ViewState["NoSelectedList"]; + } + set + { + ViewState["NoSelectedList"] = value; + } + } + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.SelectedList = new List(); + this.NoSelectedList = new List(); + GetButtonPower(); + InitTreeMenu(); + BindGrid(); + } + } + #endregion + + #region 加载树 + /// + /// 加载树 + /// + private void InitTreeMenu() + { + this.trUnitWork.Nodes.Clear(); + this.trUnitWork.ShowBorder = false; + this.trUnitWork.ShowHeader = false; + this.trUnitWork.EnableIcons = true; + this.trUnitWork.AutoScroll = true; + this.trUnitWork.EnableSingleClickExpand = true; + List supUnitWorkList = BLL.UnitWorkService.GetUnitWorkLists(this.CurrUser.LoginProjectId); + if (supUnitWorkList.Count() > 0) + { + foreach (var item in supUnitWorkList) + { + TreeNode node = new TreeNode(); + node.Text = item.UnitWorkName; + node.NodeID = item.UnitWorkId; + node.CommandName = "supUnitWork"; + node.EnableClickEvent = true; + node.EnableExpandEvent = true; + this.trUnitWork.Nodes.Add(node); + TreeNode emptyNode = new TreeNode(); + emptyNode.Text = ""; + emptyNode.NodeID = ""; + node.Nodes.Add(emptyNode); + } + } + } + #endregion + + #region 展开树 + /// + /// 展开树 + /// + /// + /// + protected void trUnitWork_NodeExpand(object sender, TreeNodeEventArgs e) + { + e.Node.Nodes.Clear(); + if (e.Node.CommandName == "supUnitWork") //展开单位工程节点 + { + var unitWorks = from x in Funs.DB.WBS_UnitWork + where x.SuperUnitWork == e.Node.NodeID + orderby x.UnitWorkCode + select x; + foreach (var unitWork in unitWorks) + { + TreeNode newNode = new TreeNode(); + newNode.Text = unitWork.UnitWorkName; + newNode.NodeID = unitWork.UnitWorkId; + newNode.CommandName = "unitWork"; + newNode.EnableExpandEvent = true; + newNode.EnableClickEvent = true; + e.Node.Nodes.Add(newNode); + var installation3s = from x in Funs.DB.WBS_UnitWork where x.SuperUnitWork == unitWork.UnitWorkId orderby x.UnitWorkCode select x; + if (installation3s.Count() > 0) + { + TreeNode emptyNode = new TreeNode(); + emptyNode.Text = ""; + emptyNode.NodeID = ""; + newNode.Nodes.Add(emptyNode); + } + } + } + } + #endregion + + #region 节点选择事件 + /// + /// tv节点选中事件 + /// + /// + /// + protected void trUnitWork_NodeCommand(object sender, TreeCommandEventArgs e) + { + for (int i = 0; i < this.Grid1.Rows.Count; i++) + { + if (this.Grid1.SelectedRowIDArray.Contains(this.Grid1.Rows[i].RowID)) + { + SelectedList.Add(this.Grid1.Rows[i].RowID); + } + else + { + NoSelectedList.Add(this.Grid1.Rows[i].RowID); + } + } + BindGrid(); + } + #endregion + + #region 数据绑定和事件 + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select * from(select a.DivisionId,a.ProjectId,a.ParentId,a.DivisionLevel,a.BranchEngineeringCode,a.BranchEngineeringName,a.SubBranchEngineeringName,a.ProEngineeringCode,a.ProEngineeringName,a.ProEngineeringNum,a.Remark,a.AddUser,a.OperateTime,a.Sort,a.Status from Division_SubProjects as a where isnull(a.ProjectId,'')='' "; + string strSql1 = @"select a.DivisionId,a.ProjectId,a.ParentId,a.DivisionLevel,a.BranchEngineeringCode,a.BranchEngineeringName,a.SubBranchEngineeringName,a.ProEngineeringCode,a.ProEngineeringName,a.ProEngineeringNum,a.Remark,a.AddUser,a.OperateTime,a.Sort,a.Status from Division_SubProjects as a inner join Base_Project as b on a.ProjectId=b.ProjectId where a.ProjectId=@ProjectId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + SqlParameter[] parameter = listStr.ToArray(); + var zxsql = strSql + " union all " + strSql1 + " ) as t order by t.BranchEngineeringCode,t.Sort,t.DivisionLevel,t.ProEngineeringNum asc"; + DataTable tb = SQLHelper.GetDataTableRunText(zxsql, parameter); + Grid1.DataSource = tb; + Grid1.DataBind(); + + var selectIds = (from x in Funs.DB.WBS_DivisionDivide where x.UnitWorkId == this.trUnitWork.SelectedNodeID select x.DivisionId).ToList(); + if (selectIds.Count() > 0) + { + this.Grid1.SelectedRowIDArray = selectIds.ToArray(); + } + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.trUnitWork.SelectedNodeID)) + { + SelectedList.Clear(); + NoSelectedList.Clear(); + for (int i = 0; i < this.Grid1.Rows.Count; i++) + { + if (this.Grid1.SelectedRowIDArray.Contains(this.Grid1.Rows[i].RowID)) + { + SelectedList.Add(this.Grid1.Rows[i].RowID); + } + else + { + NoSelectedList.Add(this.Grid1.Rows[i].RowID); + } + } + foreach (var item in SelectedList.Distinct()) + { + Model.WBS_DivisionDivide divisionDivide = BLL.DivisionDivideService.GetDivisionDivideByDivisionId(this.trUnitWork.SelectedNodeID, item); + if (divisionDivide == null) + { + Model.WBS_DivisionDivide newdivisiondivide = new Model.WBS_DivisionDivide(); + newdivisiondivide.DivisionDivideId = SQLHelper.GetNewID(typeof(Model.WBS_DivisionDivide)); + newdivisiondivide.ProjectId = this.CurrUser.LoginProjectId; + newdivisiondivide.UnitWorkId = this.trUnitWork.SelectedNodeID; + newdivisiondivide.DivisionId = item; + BLL.DivisionDivideService.AddDivisionDivide(newdivisiondivide); + } + } + NoSelectedList = NoSelectedList.Distinct().ToList(); + var q = NoSelectedList.Distinct().ToList(); + foreach (var item in q) + { + foreach (var i in SelectedList.Distinct()) + { + if (item == i) + { + NoSelectedList.Remove(item); + } + } + } + foreach (var item in NoSelectedList) + { + Model.WBS_DivisionDivide divisionDivide = BLL.DivisionDivideService.GetDivisionDivideByDivisionId(this.trUnitWork.SelectedNodeID,item); + if (divisionDivide != null) + { + BLL.DivisionDivideService.DeleteDivisionDivideByDivisionId(item); + } + } + ShowNotify("保存成功!", MessageBoxIcon.Success); + } + else + { + Alert.ShowInTop("请先选择单位工程/子单位工程!", MessageBoxIcon.Warning); + return; + } + } + #endregion + + #region 导入 + /// + /// 导入 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DivisionDivideAndCropDataIn.aspx", "导入 - "))); + } + #endregion + + #region 拷贝 + /// + /// 拷贝 + /// + /// + /// + protected void btnCopy_Click(object sender, EventArgs e) + { + bool isOk = false; + if (!string.IsNullOrEmpty(this.trUnitWork.SelectedNodeID)) + { + var unitwork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(this.trUnitWork.SelectedNodeID); + if (unitwork != null) + { + Model.WBS_UnitWork newSupUnitWork = new Model.WBS_UnitWork(); + newSupUnitWork.UnitWorkId = SQLHelper.GetNewID(typeof(Model.WBS_UnitWork)); + newSupUnitWork.UnitWorkCode = unitwork.UnitWorkCode; + newSupUnitWork.UnitWorkName = unitwork.UnitWorkName; + newSupUnitWork.ProjectId = this.CurrUser.LoginProjectId; + newSupUnitWork.SuperUnitWork = unitwork.SuperUnitWork; + BLL.UnitWorkService.AddUnitWork(newSupUnitWork); + isOk = true; + + var divisionDivides = BLL.DivisionDivideService.GetDivisionDivideByUnitWorkId(this.trUnitWork.SelectedNodeID); + if (divisionDivides != null) + { + foreach (var item in divisionDivides) + { + Model.WBS_DivisionDivide newDivisionDivide = new Model.WBS_DivisionDivide(); + newDivisionDivide.DivisionDivideId = SQLHelper.GetNewID(typeof(Model.WBS_DivisionDivide)); + newDivisionDivide.ProjectId = this.CurrUser.LoginProjectId; + newDivisionDivide.UnitWorkId = newSupUnitWork.UnitWorkId; + newDivisionDivide.DivisionId = item.DivisionId; + BLL.DivisionDivideService.AddDivisionDivide(newDivisionDivide); + isOk = true; + } + } + + var unitworkList = BLL.UnitWorkService.GetUnitWorksBySupUnitWork(this.trUnitWork.SelectedNodeID); + if (unitworkList.Count() > 0) + { + foreach (var item in unitworkList) + { + Model.WBS_UnitWork newUnitWork = new Model.WBS_UnitWork(); + newUnitWork.UnitWorkId = SQLHelper.GetNewID(typeof(Model.WBS_UnitWork)); + newUnitWork.UnitWorkCode = item.UnitWorkCode; + newUnitWork.UnitWorkName = item.UnitWorkName; + newUnitWork.ProjectId = this.CurrUser.LoginProjectId; + newUnitWork.SuperUnitWork = newSupUnitWork.UnitWorkId; + BLL.UnitWorkService.AddUnitWork(newUnitWork); + isOk = true; + + var divisionDivideLists = BLL.DivisionDivideService.GetDivisionDivideByUnitWorkId(item.UnitWorkId); + if (divisionDivideLists != null) + { + foreach (var divis in divisionDivideLists) + { + Model.WBS_DivisionDivide newDivisionDivide = new Model.WBS_DivisionDivide(); + newDivisionDivide.DivisionDivideId = SQLHelper.GetNewID(typeof(Model.WBS_DivisionDivide)); + newDivisionDivide.ProjectId = this.CurrUser.LoginProjectId; + newDivisionDivide.UnitWorkId = newUnitWork.UnitWorkId; + newDivisionDivide.DivisionId = divis.DivisionId; + BLL.DivisionDivideService.AddDivisionDivide(newDivisionDivide); + isOk = true; + } + } + } + } + } + } + if (isOk) + { + ShowNotify("拷贝成功!", MessageBoxIcon.Success); + } + else + { + ShowNotify("拷贝失败!", MessageBoxIcon.Success); + } + } + #endregion + + #region 修改 + /// + /// 修改 + /// + /// + /// + protected void btnEdit_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.trUnitWork.SelectedNodeID)) + { + var unitWork = BLL.UnitWorkService.GetUnitWorkByUnitWorkId(this.trUnitWork.SelectedNodeID); + if (unitWork != null) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../../ProjectData/UnitWorkEdit.aspx?Id={0}&&SuperId={1}", this.trUnitWork.SelectedNode.NodeID, unitWork.SuperUnitWork, "编辑 - "))); + } + } + } + #endregion + + #region 关闭弹出窗体 + /// + /// 关闭弹出窗体 + /// + /// + /// + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + InitTreeMenu(); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DivisionDivideAndCropMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnSave.Hidden = false; + this.btnImport.Hidden = false; + this.btnCopy.Hidden = false; + this.btnEdit.Hidden = false; + } + } + } + + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCrop.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCrop.aspx.designer.cs new file mode 100644 index 00000000..3fc33fc4 --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCrop.aspx.designer.cs @@ -0,0 +1,150 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.CQMS.WBS.Control { + + + public partial class DivisionDivideAndCrop { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelLeftRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelLeftRegion; + + /// + /// trUnitWork 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tree trUnitWork; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar4; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnCopy 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnCopy; + + /// + /// btnEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnEdit; + } +} diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCropDataIn.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCropDataIn.aspx new file mode 100644 index 00000000..f86e0c45 --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCropDataIn.aspx @@ -0,0 +1,68 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DivisionDivideAndCropDataIn.aspx.cs" Inherits="FineUIPro.Web.CQMS.WBS.Control.DivisionDivideAndCropDataIn" %> + + + + + + + 单位分部分项工程划分、裁剪 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCropDataIn.aspx.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCropDataIn.aspx.cs new file mode 100644 index 00000000..1da9a68e --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCropDataIn.aspx.cs @@ -0,0 +1,523 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.OleDb; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.CQMS.WBS.Control +{ + public partial class DivisionDivideAndCropDataIn : PageBase + { + #region 定义变量 + /// + /// 上传预设的虚拟路径 + /// + private string initPath = Const.ExcelUrl; + + + /// + /// 错误集合 + /// + public static List errorInfos = new List(); + #endregion + + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + this.hdCheckResult.Text = string.Empty; + this.hdFileName.Text = string.Empty; + if (errorInfos != null) + { + errorInfos.Clear(); + } + } + } + #endregion + + #region 审核 + /// + /// 审核 + /// + /// + /// + protected void btnAudit_Click(object sender, EventArgs e) + { + try + { + if (this.fuAttachUrl.HasFile == false) + { + ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning); + return; + } + string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower(); + if (IsXls != ".xls") + { + ShowNotify("只可以选择Excel文件!", MessageBoxIcon.Warning); + return; + } + if (errorInfos != null) + { + errorInfos.Clear(); + } + string rootPath = Server.MapPath("~/"); + string initFullPath = rootPath + initPath; + if (!Directory.Exists(initFullPath)) + { + Directory.CreateDirectory(initFullPath); + } + + this.hdFileName.Text = BLL.Funs.GetNewFileName() + IsXls; + string filePath = initFullPath + this.hdFileName.Text; + this.fuAttachUrl.PostedFile.SaveAs(filePath); + ImportXlsToData(rootPath + initPath + this.hdFileName.Text); + } + catch (Exception ex) + { + ShowNotify("'" + ex.Message + "'", MessageBoxIcon.Warning); + } + } + + #region 读Excel提取数据 + /// + /// 从Excel提取数据--》Dataset + /// + /// Excel文件路径名 + private void ImportXlsToData(string fileName) + { + try + { + string oleDBConnString = String.Empty; + oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;"; + oleDBConnString += "Data Source="; + oleDBConnString += fileName; + oleDBConnString += ";Extended Properties=Excel 8.0;"; + OleDbConnection oleDBConn = null; + OleDbDataAdapter oleAdMaster = null; + DataTable m_tableName = new DataTable(); + DataSet ds = new DataSet(); + + oleDBConn = new OleDbConnection(oleDBConnString); + oleDBConn.Open(); + m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null); + + if (m_tableName != null && m_tableName.Rows.Count > 0) + { + + m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim(); + + } + string sqlMaster; + sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]"; + oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn); + oleAdMaster.Fill(ds, "m_tableName"); + oleAdMaster.Dispose(); + oleDBConn.Close(); + oleDBConn.Dispose(); + + AddDatasetToSQL(ds.Tables[0], 11); + hdCheckResult.Text = "1"; + } + catch (Exception exc) + { + Response.Write(exc); + //return null; + // return dt; + } + finally + { + } + } + #endregion + + #region 将Dataset的数据导入数据库 + /// + /// 将Dataset的数据导入数据库 + /// + /// 数据集 + /// 数据集行数 + /// + private bool AddDatasetToSQL(DataTable pds, int Cols) + { + string result = string.Empty; + int ic, ir; + ic = pds.Columns.Count; + if (ic < Cols) + { + ShowNotify("导入Excel格式错误!Excel只有" + ic.ToString().Trim() + "列", MessageBoxIcon.Warning); + return false; + } + + ir = pds.Rows.Count; + if (pds != null && ir > 0) + { + var supUnitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && (x.SuperUnitWork == "0" || x.SuperUnitWork == null) select x;//单位工程 + var childUnitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId==this.CurrUser.LoginProjectId && (x.SuperUnitWork != null && x.SuperUnitWork != "0") select x;//子单位工程 + var branchEngineerings = from x in Funs.DB.Division_SubProjects where x.ProjectId == this.CurrUser.LoginProjectId select x; //分部、分项 + + for (int i = 1; i < ir; i++) + { + string row1 = pds.Rows[i][1].ToString().Trim(); + if (!string.IsNullOrEmpty(row1)) + { + var supUnitWork = supUnitWorks.Where(y => y.UnitWorkName == row1).FirstOrDefault();//单位工程名称 + if (supUnitWork != null) + { + string row0 = pds.Rows[i][0].ToString(); + if (!string.IsNullOrEmpty(row0)) + { + var supUnitWorkCode = supUnitWorks.Where(x => x.UnitWorkCode == row0).FirstOrDefault();//单位工程编码 + if (supUnitWorkCode == null) + { + result += (i + 2).ToString() + "," + "单位工程编码" + "," + "[" + row0 + "]不存在!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "单位工程编码" + "," + "此项为必填项!" + "|"; + } + + string row2 = pds.Rows[i][2].ToString(); + if (!string.IsNullOrEmpty(row2)) + { + var childUnitWorkCode = childUnitWorks.Where(x => x.UnitWorkCode == row2 && x.SuperUnitWork == supUnitWork.UnitWorkId).FirstOrDefault(); + if (childUnitWorkCode == null) + { + result += (i + 2).ToString() + "," + "子单位工程编码" + "," + "[" + row2 + "]不存在!" + "|"; + } + } + string row3 = pds.Rows[i][3].ToString(); + if (!string.IsNullOrEmpty(row3)) + { + var childUnitWorkName = childUnitWorks.Where(x => x.UnitWorkName == row3 && x.SuperUnitWork == supUnitWork.UnitWorkId).FirstOrDefault(); + if (childUnitWorkName == null) + { + result += (i + 2).ToString() + "," + "子单位工程名称" + "," + "[" + row3 + "]不存在!" + "|"; + } + } + + string row4 = pds.Rows[i][4].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + branchEngineerings = branchEngineerings.Where(x => x.BranchEngineeringCode == row4); + if (branchEngineerings != null) + { + string row5 = pds.Rows[i][5].ToString(); + if (!string.IsNullOrEmpty(row5)) + { + branchEngineerings = branchEngineerings.Where(x => x.BranchEngineeringName == row5); + if (branchEngineerings.ToList().Count == 0) + { + result += (i + 2).ToString() + "," + "分部工程名称" + "," + "[" + row5 + "]不存在!" + "|"; + } + } + string row6 = pds.Rows[i][6].ToString(); + if (!string.IsNullOrEmpty(row6)) + { + branchEngineerings = branchEngineerings.Where(x => x.SubBranchEngineeringName == row6); + if (branchEngineerings.ToList().Count == 0) + { + result += (i + 2).ToString() + "," + "子分部工程名称" + "," + "[" + row6 + "]不存在!" + "|"; + } + } + string row7 = pds.Rows[i][7].ToString(); + if (!string.IsNullOrEmpty(row7)) + { + branchEngineerings = branchEngineerings.Where(x => x.ProEngineeringCode == row7); + if (branchEngineerings.ToList().Count == 0) + { + result += (i + 2).ToString() + "," + "分项工程编号" + "," + "[" + row7 + "]不存在!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "分项工程编号" + "," + "此项为必填项!" + "|"; + } + string row8 = pds.Rows[i][8].ToString(); + if (!string.IsNullOrEmpty(row8)) + { + + branchEngineerings = branchEngineerings.Where(x => x.ProEngineeringName == row8); + if (branchEngineerings.ToList().Count == 0) + { + result += (i + 2).ToString() + "," + "分项工程名称" + "," + "[" + row8 + "]不存在!" + "|"; + } + } + if (!string.IsNullOrEmpty(pds.Rows[i][9].ToString())) + { + branchEngineerings = branchEngineerings.Where(x => x.ProEngineeringNum == pds.Rows[i][9].ToString()); + if (branchEngineerings.ToList().Count == 0) + { + result += (i + 2).ToString() + "," + "分部分项码" + "," + "[" + pds.Rows[i][9].ToString() + "]不存在!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "分部分项码" + "," + "此项为必填项!" + "|"; + } + if (!string.IsNullOrEmpty(pds.Rows[i][10].ToString())) + { + try + { + branchEngineerings = branchEngineerings.Where(x => x.DivisionLevel == Convert.ToInt32(pds.Rows[i][10].ToString())); + if (branchEngineerings.ToList().Count == 0) + { + result += (i + 2).ToString() + "," + "级别" + "," + "[" + pds.Rows[i][10].ToString() + "]不存在!" + "|"; + } + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "级别" + "," + "[" + pds.Rows[i][10].ToString() + "]错误!" + "|"; + } + + } + else + { + result += (i + 2).ToString() + "," + "级别" + "," + "此项为必填项!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "分部工程编号" + "," + "[" + row4 + "]不存在!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "分部工程编号" + "," + "此项为必填项!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "单位工程名称" + "," + "[" + row1 + "]不存在!" + "|"; + } + } + else + { + result += (i + 2).ToString() + "," + "单位工程名称" + "," + "此项为必填项!" + "|"; + } + } + if (!string.IsNullOrEmpty(result)) + { + result = result.Substring(0, result.LastIndexOf("|")); + } + errorInfos.Clear(); + if (!string.IsNullOrEmpty(result)) + { + string results = result; + List errorInfoList = results.Split('|').ToList(); + foreach (var item in errorInfoList) + { + string[] errors = item.Split(','); + Model.ErrorInfo errorInfo = new Model.ErrorInfo(); + errorInfo.Row = errors[0]; + errorInfo.Column = errors[1]; + errorInfo.Reason = errors[2]; + errorInfos.Add(errorInfo); + } + if (errorInfos.Count > 0) + { + this.gvErrorInfo.DataSource = errorInfos; + this.gvErrorInfo.DataBind(); + } + } + else + { + ShowNotify("审核完成,请点击导入!", MessageBoxIcon.Success); + } + } + else + { + ShowNotify("导入数据为空!", MessageBoxIcon.Warning); + } + return true; + } + #endregion + #endregion + + #region 导入 + /// + /// 导入 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(hdCheckResult.Text)) + { + if (errorInfos.Count <= 0) + { + string rootPath = Server.MapPath("~/"); + ImportXlsToData2(rootPath + initPath + this.hdFileName.Text); + hdCheckResult.Text = string.Empty; + ShowNotify("导入成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + else + { + ShowNotify("请先将错误数据修正,再重新导入提交!", MessageBoxIcon.Warning); + } + } + else + { + ShowNotify("请先审核要导入的文件!", MessageBoxIcon.Warning); + } + } + + #region Excel提取数据 + /// + /// 从Excel提取数据--》Dataset + /// + /// Excel文件路径名 + private void ImportXlsToData2(string fileName) + { + try + { + string oleDBConnString = String.Empty; + oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;"; + oleDBConnString += "Data Source="; + oleDBConnString += fileName; + oleDBConnString += ";Extended Properties=Excel 8.0;"; + OleDbConnection oleDBConn = null; + OleDbDataAdapter oleAdMaster = null; + DataTable m_tableName = new DataTable(); + DataSet ds = new DataSet(); + + oleDBConn = new OleDbConnection(oleDBConnString); + oleDBConn.Open(); + m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null); + + if (m_tableName != null && m_tableName.Rows.Count > 0) + { + + m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim(); + + } + string sqlMaster; + sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]"; + oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn); + oleAdMaster.Fill(ds, "m_tableName"); + oleAdMaster.Dispose(); + oleDBConn.Close(); + oleDBConn.Dispose(); + + AddDatasetToSQL2(ds.Tables[0], 11); + } + catch (Exception ex) + { + throw ex; + } + } + #endregion + + #region 将Dataset的数据导入数据库 + /// + /// 将Dataset的数据导入数据库 + /// + /// 数据集 + /// 数据集列数 + /// + private bool AddDatasetToSQL2(DataTable pds, int Cols) + { + int ic, ir; + ic = pds.Columns.Count; + if (ic < Cols) + { + ShowNotify("导入Excel格式错误!Excel只有" + ic.ToString().Trim() + "列", MessageBoxIcon.Warning); + } + string result = string.Empty; + ir = pds.Rows.Count; + if (pds != null && ir > 0) + { + var oldDivisionDivides = from x in Funs.DB.WBS_DivisionDivide where x.ProjectId == this.CurrUser.LoginProjectId select x; + + var supUnitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && (x.SuperUnitWork == "0" || x.SuperUnitWork == null) select x;//单位工程 + //var childUnitWorks = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.CurrUser.LoginProjectId && (x.SuperUnitWork != null && x.SuperUnitWork != "0") select x;//子单位工程 + var branchEngineerings = from x in Funs.DB.Division_SubProjects where x.ProjectId == this.CurrUser.LoginProjectId select x; //分部、分项 + + for (int i = 1; i < ir; i++) + { + string row1 = pds.Rows[i][1].ToString().Trim(); + string row4 = pds.Rows[i][4].ToString().Trim(); + string row7 = pds.Rows[i][7].ToString().Trim(); + string row9 = pds.Rows[i][9].ToString().Trim(); + + var unitwork = supUnitWorks.Where(x => x.UnitWorkName == row1).FirstOrDefault(); + var division = branchEngineerings.Where(x => x.BranchEngineeringCode == row4 && x.ProEngineeringCode == row7 && x.ProEngineeringNum == row9).FirstOrDefault(); + if (unitwork != null && division != null) + { + Model.WBS_DivisionDivide divisionDivide = new Model.WBS_DivisionDivide(); + divisionDivide = oldDivisionDivides.FirstOrDefault(x => x.UnitWorkId == unitwork.UnitWorkId && x.DivisionId == division.DivisionId); + if (divisionDivide == null) + { + Model.WBS_DivisionDivide newDivisionDivide = new Model.WBS_DivisionDivide(); + newDivisionDivide.DivisionDivideId = SQLHelper.GetNewID(typeof(Model.WBS_DivisionDivide)); + newDivisionDivide.ProjectId = this.CurrUser.LoginProjectId; + newDivisionDivide.UnitWorkId = unitwork.UnitWorkId; + newDivisionDivide.DivisionId = division.DivisionId; + BLL.DivisionDivideService.AddDivisionDivide(newDivisionDivide); + } + } + else + { + result += (i + 2).ToString() + "," + "分部分项工程" + "," + "[" + row4 + "]不存在!" + "|"; + } + } + } + else + { + ShowNotify("导入数据为空!", MessageBoxIcon.Warning); + } + return true; + } + #endregion + #endregion + + #region 下载模板 + /// + /// 下载模板按钮 + /// + /// + /// + protected void btnDownLoad_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Confirm.GetShowReference("确定下载导入模板吗?", String.Empty, MessageBoxIcon.Question, PageManager1.GetCustomEventReference(false, "Confirm_OK"), PageManager1.GetCustomEventReference("Confirm_Cancel"))); + } + + /// + /// 下载导入模板 + /// + /// + /// + protected void PageManager1_CustomEvent(object sender, CustomEventArgs e) + { + if (e.EventArgument == "Confirm_OK") + { + string rootPath = Server.MapPath("~/"); + string uploadfilepath = rootPath + Const.DivisionDivideTempUrl; + string filePath = Const.DivisionDivideTempUrl; + string fileName = Path.GetFileName(filePath); + FileInfo info = new FileInfo(uploadfilepath); + long fileSize = info.Length; + Response.ClearContent(); + Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8)); + Response.ContentType = "excel/plain"; + Response.ContentEncoding = System.Text.Encoding.UTF8; + Response.AddHeader("Content-Length", fileSize.ToString().Trim()); + Response.TransmitFile(uploadfilepath, 0, fileSize); + Response.End(); + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCropDataIn.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCropDataIn.aspx.designer.cs new file mode 100644 index 00000000..eb57317e --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideAndCropDataIn.aspx.designer.cs @@ -0,0 +1,123 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.CQMS.WBS.Control { + + + public partial class DivisionDivideAndCropDataIn { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// hdFileName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdFileName; + + /// + /// btnAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAudit; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// btnDownLoad 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDownLoad; + + /// + /// hdCheckResult 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdCheckResult; + + /// + /// fuAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FileUpload fuAttachUrl; + + /// + /// gvErrorInfo 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid gvErrorInfo; + + /// + /// lblPageIndex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblPageIndex; + } +} diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideList.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideList.aspx new file mode 100644 index 00000000..5be33799 --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideList.aspx @@ -0,0 +1,69 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DivisionDivideList.aspx.cs" Inherits="FineUIPro.Web.CQMS.WBS.Control.DivisionDivideList" %> + + + + + + + 单位分部分项工程划分表 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + --%> + + + + + <%----%> + + diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideList.aspx.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideList.aspx.cs new file mode 100644 index 00000000..416f991a --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideList.aspx.cs @@ -0,0 +1,240 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.CQMS.WBS.Control +{ + public partial class DivisionDivideList : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + BLL.UnitWorkService.InitUnitWorkDownList(this.drpUnitWork, this.CurrUser.LoginProjectId, true); + + //var subProjectLists = from x in Funs.DB.Division_SubProjects where x.ProjectId==this.CurrUser.LoginProjectId && x.ParentId==null select x; + //this.drpBranchEngineering.DataTextField = "BranchEngineeringName"; + //this.drpBranchEngineering.DataValueField = "DivisionId"; + //this.drpBranchEngineering.DataSource = subProjectLists; + //this.drpBranchEngineering.DataBind(); + Funs.FineUIPleaseSelect(this.drpBranchEngineering); + + BindGrid(); + } + } + + /// + /// 绑定数据 + /// + private void BindGrid() + { + string strSql = @"SELECT * FROM View_WBS_DivisionDivide WHERE ProjectId = @projectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@projectId", this.CurrUser.LoginProjectId)); + if (this.drpUnitWork.SelectedValue != BLL.Const._Null) + { + strSql += " AND (UnitWorkId =@unitWorkId or SuperUnitWork=@unitWorkId) "; + listStr.Add(new SqlParameter("@unitWorkId", this.drpUnitWork.SelectedValue)); + } + if (this.drpBranchEngineering.SelectedValue != BLL.Const._Null) + { + strSql += " AND (DivisionId = @divisionId or ParentId=@divisionId) "; + listStr.Add(new SqlParameter("@divisionId", this.drpBranchEngineering.SelectedValue)); + } + strSql += " ORDER BY SupUnitWorkCode,ChildUnitWorkCode,Sort,DivisionLevel "; + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + Grid1.RecordCount = tb.Rows.Count; + //tb = GetFilteredTable(Grid1.FilteredData, tb); + //var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = tb; + Grid1.DataBind(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 导出按钮 + /// 导出按钮 + ///
+ /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + string rootPath = Server.MapPath("~/"); + string initTemplatePath = Const.DivisionDivideTempUrl; + string uploadfilepath = string.Empty; + string newUrl = string.Empty; + uploadfilepath = rootPath + initTemplatePath; + + var lists = (from x in Funs.DB.View_WBS_DivisionDivide + where x.ProjectId == this.CurrUser.LoginProjectId + select x); + if (this.drpUnitWork.SelectedValue != BLL.Const._Null) + { + lists = lists.Where(x => x.UnitWorkId == this.drpUnitWork.SelectedValue || x.SuperUnitWork == this.drpUnitWork.SelectedValue); + } + if (this.drpBranchEngineering.SelectedValue != BLL.Const._Null) + { + lists = lists.Where(x => x.DivisionId == this.drpBranchEngineering.SelectedValue || x.ParentId == this.drpBranchEngineering.SelectedValue); + } + lists = lists.OrderBy(x => x.SupUnitWorkCode).ThenBy(x => x.ChildUnitWorkCode).ThenBy(x => x.Sort).ThenBy(x => x.DivisionLevel); + + if (lists != null) + { + string projectName = BLL.ProjectService.GetShortNameByProjectId(this.CurrUser.LoginProjectId); + newUrl = uploadfilepath.Replace("单位分部分项工程划分导入模板", projectName + "单位分部分项工程划分表"); + File.Copy(uploadfilepath, newUrl); + // 第一步:读取文件流 + NPOI.SS.UserModel.IWorkbook workbook; + using (FileStream stream = new FileStream(newUrl, FileMode.Open, FileAccess.Read)) + { + //workbook = new NPOI.XSSF.UserModel.XSSFWorkbook(stream); + workbook = new NPOI.HSSF.UserModel.HSSFWorkbook(stream); + } + // 创建单元格样式 + NPOI.SS.UserModel.ICellStyle cellStyle = workbook.CreateCellStyle(); + cellStyle.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin; + cellStyle.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin; + cellStyle.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin; + cellStyle.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin; + cellStyle.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Center; + cellStyle.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center; + cellStyle.WrapText = true;//自动换行 + var font = workbook.CreateFont(); + font.FontHeightInPoints = 11; + cellStyle.SetFont(font); + // 第二步:创建新数据行 + NPOI.SS.UserModel.ISheet sheet = workbook.GetSheetAt(0); + NPOI.SS.UserModel.IRow row = sheet.GetRow(0); + NPOI.SS.UserModel.ICell cell; + int i = 2; + foreach (var item in lists) + { + // 第二步:创建新数据行 + row = sheet.CreateRow(i); + // 添加数据 + cell = row.CreateCell(0); + cell.CellStyle = cellStyle; + cell.SetCellValue(item.SupUnitWorkCode);//单位工程编码 + + cell = row.CreateCell(1); + cell.CellStyle = cellStyle; + cell.SetCellValue(item.SupUnitWorkName);//单位工程名称 + + cell = row.CreateCell(2); + cell.CellStyle = cellStyle; + cell.SetCellValue(item.ChildUnitWorkCode);//子单位工程编码 + + cell = row.CreateCell(3); + cell.CellStyle = cellStyle; + cell.SetCellValue(item.ChildUnitWorkName);//子单位工程名称 + + cell = row.CreateCell(4); + cell.CellStyle = cellStyle; + cell.SetCellValue(item.BranchEngineeringCode);//分部工程编号 + + cell = row.CreateCell(5); + cell.CellStyle = cellStyle; + cell.SetCellValue(item.BranchEngineeringName);//分部工程名称 + + cell = row.CreateCell(6); + cell.CellStyle = cellStyle; + cell.SetCellValue(item.SubBranchEngineeringName);//子分部工程名称 + + cell = row.CreateCell(7); + cell.CellStyle = cellStyle; + cell.SetCellValue(item.ProEngineeringCode);//分项工程编号 + + cell = row.CreateCell(8); + cell.CellStyle = cellStyle; + cell.SetCellValue(item.ProEngineeringName);//分项工程名称 + + cell = row.CreateCell(9); + cell.CellStyle = cellStyle; + cell.SetCellValue(item.ProEngineeringNum);//分部分项码 + + cell = row.CreateCell(10); + cell.CellStyle = cellStyle; + cell.SetCellValue(item.DivisionLevel.HasValue ? item.DivisionLevel.ToString() : "");//级别 + + i++; + } + // 第三步:写入文件流 + using (FileStream stream = new FileStream(newUrl, FileMode.Create, FileAccess.Write)) + { + workbook.Write(stream); + workbook.Close(); + } + string fileName = Path.GetFileName(newUrl); + FileInfo info = new FileInfo(newUrl); + long fileSize = info.Length; + Response.Clear(); + Response.ContentType = "application/x-zip-compressed"; + Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8)); + Response.AddHeader("Content-Length", fileSize.ToString()); + Response.TransmitFile(newUrl, 0, fileSize); + Response.Flush(); + Response.Close(); + File.Delete(newUrl); + } + else + { + Alert.ShowInTop("当前无记录,无法导出!", MessageBoxIcon.Warning); + } + } + #endregion + + /// + /// 单位工程下拉选择 + /// + /// + /// + protected void drpUnitWork_SelectedIndexChanged(object sender, EventArgs e) + { + this.drpBranchEngineering.Items.Clear(); + if (this.drpUnitWork.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpUnitWork.SelectedValue)) + { + var q = (from x in Funs.DB.View_WBS_DivisionDivide + where x.ProjectId == this.CurrUser.LoginProjectId + && x.UnitWorkId == this.drpUnitWork.SelectedValue + && x.ParentId==null + select new + { + x.DivisionId, + x.BranchEngineeringName + }).Distinct().ToList(); + this.drpBranchEngineering.DataTextField = "BranchEngineeringName"; + this.drpBranchEngineering.DataValueField = "DivisionId"; + this.drpBranchEngineering.DataSource = q; + this.drpBranchEngineering.DataBind(); + Funs.FineUIPleaseSelect(this.drpBranchEngineering); + this.drpBranchEngineering.SelectedIndex = 0; + } + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideList.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideList.aspx.designer.cs new file mode 100644 index 00000000..41c0e431 --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionDivideList.aspx.designer.cs @@ -0,0 +1,105 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.CQMS.WBS.Control { + + + public partial class DivisionDivideList { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpUnitWork 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitWork; + + /// + /// drpBranchEngineering 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpBranchEngineering; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + } +} diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx index b4aa1f10..625106c4 100644 --- a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx @@ -24,7 +24,7 @@ - + <%----%> diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx.cs index ff2e5723..9466a4a0 100644 --- a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx.cs @@ -74,10 +74,10 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// /// 搜索 /// - protected void btnSearch_Click(object sender, EventArgs e) - { - DataBrid(); - } + //protected void btnSearch_Click(object sender, EventArgs e) + //{ + // DataBrid(); + //} /// /// 删除 @@ -100,7 +100,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control } /// - /// 新增 + /// 新增分部工程 /// protected void btnAdd_Click(object sender, EventArgs e) { diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx.designer.cs index 500d3aa7..f6b955a8 100644 --- a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjects.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.CQMS.WBS.Control -{ - - - public partial class DivisionSubProjects - { - +namespace FineUIPro.Web.CQMS.WBS.Control { + + + public partial class DivisionSubProjects { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -49,7 +47,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar1 控件。 /// @@ -58,16 +56,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - - /// - /// btnSearch 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSearch; - + /// /// btnAdd 控件。 /// @@ -76,7 +65,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnAdd; - + /// /// btnParentAdd 控件。 /// @@ -85,7 +74,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnParentAdd; - + /// /// btnEdit 控件。 /// @@ -94,7 +83,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnEdit; - + /// /// btnDelete 控件。 /// @@ -103,7 +92,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnDelete; - + /// /// Window1 控件。 /// @@ -112,7 +101,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Menu1 控件。 /// @@ -121,7 +110,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuModify 控件。 /// @@ -130,7 +119,7 @@ namespace FineUIPro.Web.CQMS.WBS.Control /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuModify; - + /// /// btnMenuParentAdd 控件。 /// diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsEdit.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsEdit.aspx index 9bdae739..c8328d35 100644 --- a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsEdit.aspx @@ -71,7 +71,7 @@ - + diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNew.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNew.aspx new file mode 100644 index 00000000..6c0fa7c8 --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNew.aspx @@ -0,0 +1,82 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DivisionSubProjectsNew.aspx.cs" Inherits="FineUIPro.Web.CQMS.WBS.Control.DivisionSubProjectsNew" %> + + + + + + + 分部分项工程数据库 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + --%> + <%----%> + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNew.aspx.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNew.aspx.cs new file mode 100644 index 00000000..77345482 --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNew.aspx.cs @@ -0,0 +1,232 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; + +namespace FineUIPro.Web.CQMS.WBS.Control +{ + public partial class DivisionSubProjectsNew : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + BindGrid(); + } + } + + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select * from(select a.DivisionId,a.ProjectId,a.ParentId,a.DivisionLevel,a.BranchEngineeringCode,a.BranchEngineeringName,a.SubBranchEngineeringName,a.ProEngineeringCode,a.ProEngineeringName,a.ProEngineeringNum,a.Remark,a.AddUser,a.OperateTime,a.Sort,a.Status from Division_SubProjects as a where isnull(a.ProjectId,'')='' "; + string strSql1 = @"select a.DivisionId,a.ProjectId,a.ParentId,a.DivisionLevel,a.BranchEngineeringCode,a.BranchEngineeringName,a.SubBranchEngineeringName,a.ProEngineeringCode,a.ProEngineeringName,a.ProEngineeringNum,a.Remark,a.AddUser,a.OperateTime,a.Sort,a.Status from Division_SubProjects as a inner join Base_Project as b on a.ProjectId=b.ProjectId where a.ProjectId=@ProjectId "; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + SqlParameter[] parameter = listStr.ToArray(); + var zxsql = strSql + " union all " + strSql1 + " ) as t order by t.BranchEngineeringCode,t.Sort,t.DivisionLevel,t.ProEngineeringNum asc"; + DataTable tb = SQLHelper.GetDataTableRunText(zxsql, parameter); + Grid1.DataSource = tb; + Grid1.DataBind(); + } + #endregion + + #region 删除 + /// + /// 行点击 事件 + /// + protected void Grid1_RowCommand(object sender, GridCommandEventArgs e) + { + if (e.CommandName == "Delete") + { + string rowID = e.RowID; + if (!string.IsNullOrEmpty(rowID)) + { + BLL.SubProjectsService.DeleteSubProjectsById(rowID); + BindGrid(); + ShowNotify("删除成功!", MessageBoxIcon.Success); + } + } + } + + /// + /// 删除 + /// + protected void btnDelete_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("至少选择一条数据!", MessageBoxIcon.Warning); + return; + } + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + if (!string.IsNullOrEmpty(rowID)) + { + BLL.SubProjectsService.DeleteSubProjectsById(rowID); + } + } + BindGrid(); + ShowNotify("删除成功!", MessageBoxIcon.Success); + } + #endregion + + #region 新增 + /// + /// 新增分部工程 + /// + protected void btnAdd_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DivisionSubProjectsNewEdit.aspx?type=1", "新增 - "))); + } + + /// + /// 新增分项工程 + /// + /// + /// + protected void btnParentAdd_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条数据!", MessageBoxIcon.Warning); + return; + } + var sub = BLL.SubProjectsService.GetSubProjectsById(this.Grid1.SelectedRowID); + if (sub!=null) + { + if (!string.IsNullOrEmpty(sub.ProEngineeringName)) + { + Alert.ShowInTop("分项工程下不能新增!", MessageBoxIcon.Warning); + return; + } + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DivisionSubProjectsNewEdit.aspx?ParentId={0}&&type=2", this.Grid1.SelectedRowID, "新增分项工程 - "))); + } + #endregion + + #region 编辑 + /// + /// 编辑 + /// + protected void btnEdit_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条数据!", MessageBoxIcon.Warning); + return; + } + var rowId = this.Grid1.SelectedRowID; + var division = BLL.SubProjectsService.GetSubProjectsById(rowId); + if (division != null) + { + string type = string.Empty; + if (!string.IsNullOrEmpty(division.SubBranchEngineeringName)) + { + type = "1";//子分部工程 + } + else if (!string.IsNullOrEmpty(division.ProEngineeringName)) + { + type = "2";//分项工程 + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DivisionSubProjectsNewEdit.aspx?DivisionId={0}&ParentId={1}&type={2}", rowId, division.ParentId, type, "新增分项工程 - "))); + } + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭 + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 右击新增子单位工程 + /// + /// 右击新增子单位工程 + /// + protected void btnMenuParentAdd_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请选择一条数据!", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DivisionSubProjectsNewEdit.aspx?ParentId={0}&&type=1", this.Grid1.SelectedRowID, "新增子分部工程 - "))); + } + #endregion + + #region 行选择事件 + /// + /// 行选择事件 + /// + /// + /// + protected void Grid1_RowSelect(object sender, GridRowSelectEventArgs e) + { + string rowid = e.RowID.ToString(); + if (!string.IsNullOrEmpty(rowid)) + { + var sub = BLL.SubProjectsService.GetSubProjectsById(rowid); + if (sub != null) + { + if (!string.IsNullOrEmpty(sub.ParentId)) + { + this.btnMenuParentAdd.Hidden = true; + } + else + { + this.btnMenuParentAdd.Hidden = false; + } + } + } + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DivisionSubProjectsMenuId); + if (buttonList.Count > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + this.btnAdd.Hidden = false; + this.btnMenuParentAdd.Hidden = false; + this.btnParentAdd.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + this.btnEdit.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnDelete.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNew.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNew.aspx.designer.cs new file mode 100644 index 00000000..d8300afb --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNew.aspx.designer.cs @@ -0,0 +1,123 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.CQMS.WBS.Control { + + + public partial class DivisionSubProjectsNew { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnAdd 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAdd; + + /// + /// btnParentAdd 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnParentAdd; + + /// + /// btnEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnEdit; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuParentAdd 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuParentAdd; + } +} diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNewEdit.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNewEdit.aspx new file mode 100644 index 00000000..5ae4fc58 --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNewEdit.aspx @@ -0,0 +1,81 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DivisionSubProjectsNewEdit.aspx.cs" Inherits="FineUIPro.Web.CQMS.WBS.Control.DivisionSubProjectsNewEdit" %> + + + + + + + 编辑分部分项工程 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNewEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNewEdit.aspx.cs new file mode 100644 index 00000000..75832afa --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNewEdit.aspx.cs @@ -0,0 +1,344 @@ +using BLL; +using System; + +namespace FineUIPro.Web.CQMS.WBS.Control +{ + public partial class DivisionSubProjectsNewEdit :PageBase + { + #region 定义变量 + /// + /// 主键 + /// + public string DivisionId + { + get + { + return (string)ViewState["DivisionId"]; + } + set + { + ViewState["DivisionId"] = value; + } + } + + /// + /// 上级Id + /// + public string ParentId + { + get + { + return (string)ViewState["ParentId"]; + } + set + { + ViewState["ParentId"] = value; + } + } + + /// + /// 1-分部,2-分项 + /// + public string Type + { + get + { + return (string)ViewState["Type"]; + } + set + { + ViewState["Type"] = value; + } + } + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + this.Type = Request.Params["type"]; + this.DivisionId = Request.Params["DivisionId"]; + this.ParentId = Request.Params["ParentId"]; + if (!string.IsNullOrEmpty(this.ParentId)) + { + Model.Division_SubProjects subProjects = BLL.SubProjectsService.GetSubProjectsById(this.ParentId); + if (subProjects != null) + { + this.txtBranchEngineeringCode.Text = subProjects.BranchEngineeringCode; + this.txtBranchEngineeringName.Text = subProjects.BranchEngineeringName; + + if (this.Type == "1")//子分部工程 + { + this.txtSubBranchEngineeringName.Required = true; + this.txtSubBranchEngineeringName.ShowRedStar = true; + + if (!string.IsNullOrEmpty(this.DivisionId)) + { + var divis = BLL.SubProjectsService.GetSubProjectsById(this.DivisionId); + if (divis != null) + { + this.txtSubBranchEngineeringName.Text = divis.SubBranchEngineeringName; + this.txtSort.Text = divis.Sort.HasValue ? divis.Sort.ToString() : ""; + this.txtRemark.Text = divis.Remark; + } + } + else + { + //自动获取排序号 + int sort = BLL.SubProjectsService.GetSubProjectsByProjectId(this.CurrUser.LoginProjectId); + if (sort > 0) + { + this.txtSort.Text = (sort + 1).ToString(); + } + } + } + else if (this.Type == "2")//分项工程 + { + this.txtSubBranchEngineeringName.Required = true; + this.txtSubBranchEngineeringName.ShowRedStar = true; + this.txtProEngineeringName.Required = true; + this.txtProEngineeringName.ShowRedStar = true; + this.txtProEngineeringCode.Required = true; + this.txtProEngineeringCode.ShowRedStar = true; + this.txtProEngineeringNum.Required = true; + this.txtProEngineeringNum.ShowRedStar = true; + + var sub = BLL.SubProjectsService.GetSubProjectsById(subProjects.ParentId); + if (sub != null) + { + this.txtBranchEngineeringName.Text = sub.BranchEngineeringName; + } + this.txtSubBranchEngineeringName.Text = subProjects.SubBranchEngineeringName; + if (!string.IsNullOrEmpty(this.DivisionId)) + { + var divis = BLL.SubProjectsService.GetSubProjectsById(this.DivisionId); + if (divis != null) + { + this.txtProEngineeringName.Text = divis.ProEngineeringName; + this.txtProEngineeringCode.Text = divis.ProEngineeringCode; + this.txtProEngineeringNum.Text = divis.ProEngineeringNum; + this.txtSort.Text = divis.Sort.HasValue ? divis.Sort.ToString() : ""; + this.txtRemark.Text = divis.Remark; + } + } + else + { + //自动获取排序号 + int sort = BLL.SubProjectsService.GetSubProjectsByProjectId(this.CurrUser.LoginProjectId); + if (sort > 0) + { + this.txtSort.Text = (sort + 1).ToString(); + } + } + } + } + } + else //分部工程 + { + if (!string.IsNullOrEmpty(this.DivisionId)) + { + Model.Division_SubProjects subProjects = BLL.SubProjectsService.GetSubProjectsById(this.DivisionId); + if (subProjects != null) + { + this.txtBranchEngineeringCode.Text = subProjects.BranchEngineeringCode; + this.txtBranchEngineeringName.Text = subProjects.BranchEngineeringName; + this.txtRemark.Text = subProjects.Remark; + this.txtSort.Text = subProjects.Sort.HasValue ? subProjects.Sort.ToString() : ""; + } + } + else + { + //自动获取排序号 + int sort = BLL.SubProjectsService.GetSubProjectsByProjectId(this.CurrUser.LoginProjectId); + if (sort > 0) + { + this.txtSort.Text = (sort + 1).ToString(); + } + else + { + this.txtSort.Text = "1"; + } + } + } + if (!string.IsNullOrEmpty(this.ParentId)) + { + this.txtBranchEngineeringCode.Readonly = true; + this.txtBranchEngineeringName.Readonly = true; + if (this.Type == "1")//子分部工程 + { + this.Panel1.Hidden = true; + this.childBra.Hidden = false; + } + else if (this.Type == "2")//分项工程 + { + var pare = BLL.SubProjectsService.GetSubProjectsById(this.ParentId); + if (pare != null) + { + if (!string.IsNullOrEmpty(pare.ParentId)) + { + this.childBra.Hidden = false; + this.txtSubBranchEngineeringName.Readonly = true; + } + else + { + this.childBra.Hidden = true; + } + } + this.Panel1.Hidden = false; + } + } + else + { + this.Panel1.Hidden = true; + } + } + } + #endregion + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + Model.Division_SubProjects newSubProjects = new Model.Division_SubProjects(); + newSubProjects.ProjectId = this.CurrUser.LoginProjectId; + newSubProjects.BranchEngineeringCode = this.txtBranchEngineeringCode.Text.Trim(); + newSubProjects.Remark = this.txtRemark.Text.Trim(); + newSubProjects.AddUser = this.CurrUser.UserId; + newSubProjects.OperateTime = DateTime.Now; + newSubProjects.Sort = Funs.GetNewInt(this.txtSort.Text.Trim()); + if (!string.IsNullOrEmpty(this.ParentId)) + { + newSubProjects.ParentId = this.ParentId; + if (this.Type == "1")//子分部工程 + { + newSubProjects.SubBranchEngineeringName = this.txtSubBranchEngineeringName.Text.Trim(); + if (!string.IsNullOrEmpty(this.DivisionId)) + { + var div = BLL.SubProjectsService.GetSubProjectsById(this.DivisionId); + if(div!=null) + { + newSubProjects.DivisionLevel = div.DivisionLevel; + } + newSubProjects.DivisionId = this.DivisionId; + BLL.SubProjectsService.UpdateSubProjects(newSubProjects); + } + else + { + //var sub = BLL.SubProjectsService.GetSubProjectsById(this.ParentId); + //if (sub.DivisionLevel == 1) + //{ + newSubProjects.DivisionLevel = 2; + //} + newSubProjects.ProEngineeringName = this.txtProEngineeringName.Text.Trim(); + newSubProjects.DivisionId = SQLHelper.GetNewID(typeof(Model.Division_SubProjects)); + this.DivisionId = newSubProjects.DivisionId; + BLL.SubProjectsService.AddSubProjects(newSubProjects); + } + } + else if (this.Type == "2")//分项工程 + { + newSubProjects.ProEngineeringName = this.txtProEngineeringName.Text.Trim(); + newSubProjects.ProEngineeringCode = this.txtProEngineeringCode.Text.Trim(); + newSubProjects.ProEngineeringNum = this.txtProEngineeringNum.Text.Trim(); + + if (!string.IsNullOrEmpty(this.DivisionId)) + { + var div = BLL.SubProjectsService.GetSubProjectsById(this.DivisionId); + if (div != null) + { + newSubProjects.DivisionLevel = div.DivisionLevel; + } + newSubProjects.DivisionId = this.DivisionId; + BLL.SubProjectsService.UpdateSubProjects(newSubProjects); + } + else + { + //var sub = BLL.SubProjectsService.GetSubProjectsById(this.ParentId); + //if (sub.DivisionLevel == 1) + //{ + // newSubProjects.DivisionLevel = 2; + //} + //else if (sub.DivisionLevel==2) + //{ + newSubProjects.DivisionLevel = 3; + //} + newSubProjects.DivisionId = SQLHelper.GetNewID(typeof(Model.Division_SubProjects)); + this.DivisionId = newSubProjects.DivisionId; + BLL.SubProjectsService.AddSubProjects(newSubProjects); + } + } + } + else //分部工程 + { + newSubProjects.BranchEngineeringName = this.txtBranchEngineeringName.Text.Trim(); + newSubProjects.DivisionLevel = 1; + newSubProjects.ProEngineeringCode = "00"; + newSubProjects.ProEngineeringNum = newSubProjects.BranchEngineeringCode + "00"; + if (!string.IsNullOrEmpty(this.DivisionId)) + { + newSubProjects.DivisionId = this.DivisionId; + BLL.SubProjectsService.UpdateSubProjects(newSubProjects); + } + else + { + newSubProjects.DivisionId = SQLHelper.GetNewID(typeof(Model.Division_SubProjects)); + this.DivisionId = newSubProjects.DivisionId; + BLL.SubProjectsService.AddSubProjects(newSubProjects); + } + } + ShowNotify("保存成功!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + #endregion + + #region 分项工程编号触发事件 + /// + /// 分项工程编号触发事件 + /// + /// + /// + protected void txtProEngineeringCode_TextChanged(object sender, EventArgs e) + { + this.txtProEngineeringNum.Text = string.Empty; + if (!string.IsNullOrEmpty(this.txtBranchEngineeringCode.Text.Trim())&&!string.IsNullOrEmpty(this.txtProEngineeringCode.Text.Trim())) + { + this.txtProEngineeringNum.Text = this.txtBranchEngineeringCode.Text.Trim() + this.txtProEngineeringCode.Text.Trim(); + } + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DivisionSubProjectsMenuId); + if (buttonList.Count > 0) + { + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnSave.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNewEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNewEdit.aspx.designer.cs new file mode 100644 index 00000000..b5981711 --- /dev/null +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/DivisionSubProjectsNewEdit.aspx.designer.cs @@ -0,0 +1,159 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.CQMS.WBS.Control { + + + public partial class DivisionSubProjectsNewEdit { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtBranchEngineeringCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBranchEngineeringCode; + + /// + /// txtBranchEngineeringName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtBranchEngineeringName; + + /// + /// childBra 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.FormRow childBra; + + /// + /// txtSubBranchEngineeringName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSubBranchEngineeringName; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// Form2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form Form2; + + /// + /// txtProEngineeringName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProEngineeringName; + + /// + /// txtProEngineeringCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProEngineeringCode; + + /// + /// txtProEngineeringNum 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProEngineeringNum; + + /// + /// txtSort 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtSort; + + /// + /// txtRemark 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtRemark; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + } +} diff --git a/SGGL/FineUIPro.Web/CQMS/WBS/Control/PointCroppingEdit.aspx b/SGGL/FineUIPro.Web/CQMS/WBS/Control/PointCroppingEdit.aspx index 471f4cd7..07750bb8 100644 --- a/SGGL/FineUIPro.Web/CQMS/WBS/Control/PointCroppingEdit.aspx +++ b/SGGL/FineUIPro.Web/CQMS/WBS/Control/PointCroppingEdit.aspx @@ -99,7 +99,7 @@ - + @@ -107,7 +107,7 @@ - + diff --git a/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx index 70b9c3a5..3a1d757b 100644 --- a/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx +++ b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx @@ -16,7 +16,7 @@ ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch"> - - - + + + @@ -62,6 +62,10 @@ + + listStr = new List(); + List listStrSum = new List(); + //strSql = @"select TrainRecord.TrainTypeId,TrainRecord.TrainingId, + // TrainRecord.TrainTitle, + // Project.ProjectId, + // Project.ProjectCode, + // Project.ProjectName, + // TrainRecord.TrainStartDate, + // TrainRecord.TrainEndDate, + // TrainRecord.TrainPersonNum, + // UnitName= STUFF((SELECT ',' + UnitName FROM dbo.Base_Unit where PATINDEX('%,' + RTRIM(UnitId) + ',%',',' +TrainRecord.UnitIds + ',')>0 FOR XML PATH('')), 1, 1,'') + // from EduTrain_TrainRecord AS TrainRecord + // LEFT JOIN Base_TrainType AS TrainType ON TrainRecord.TrainTypeId=TrainType.TrainTypeId + // LEFT JOIN Base_Project AS Project ON TrainRecord.ProjectId=Project.ProjectId + // WHERE 1=1 "; - strSql = @"select TrainRecord.TrainingId,TrainRecord.TrainTitle,TrainType.TrainTypeName,Project.ProjectId,Project.ProjectCode,Project.ProjectName - ,TrainRecord.TrainStartDate,TrainRecord.TrainEndDate,TrainRecord.TrainPersonNum,TrainRecord.UnitIds - ,UnitName= STUFF((SELECT ',' + UnitName FROM dbo.Base_Unit where PATINDEX('%,' + RTRIM(UnitId) + ',%',',' +TrainRecord.UnitIds + ',')>0 FOR XML PATH('')), 1, 1,'') - from EduTrain_TrainRecord AS TrainRecord - LEFT JOIN Base_TrainType AS TrainType ON TrainRecord.TrainTypeId=TrainType.TrainTypeId - LEFT JOIN Base_Project AS Project ON TrainRecord.ProjectId=Project.ProjectId - WHERE 1=1 "; + //strSql += " AND TrainRecord.TrainTypeId =@TrainType"; + //listStr.Add(new SqlParameter("@TrainType", this.rbType.SelectedValue)); - strSql += " AND TrainType.TrainType =@TrainType"; - listStr.Add(new SqlParameter("@TrainType", this.rbType.SelectedValue)); + //当前页数 + int pageIndex = Grid1.PageIndex + 1; + //每页显示条数 + int pageSize = Grid1.PageSize; + strSql = @"select*from( + select ROW_NUMBER() OVER(Order by ProjectCode desc) AS RowNumber, + * from ( + select + '本系统' as Ttype, + TrainRecord.TrainTypeId, + TrainRecord.TrainingId, + TrainRecord.TrainTitle, + Project.ProjectId, + Project.ProjectCode, + Project.ProjectName, + TrainRecord.TrainStartDate, + TrainRecord.TrainEndDate, + TrainRecord.TrainPersonNum, + UnitName= STUFF((SELECT ',' + UnitName FROM dbo.Base_Unit where PATINDEX('%,' + RTRIM(UnitId) + ',%',',' +TrainRecord.UnitIds + ',')>0 FOR XML PATH('')), 1, 1,'') + from EduTrain_TrainRecord AS TrainRecord + LEFT JOIN Base_TrainType AS TrainType ON TrainRecord.TrainTypeId=TrainType.TrainTypeId + LEFT JOIN Base_Project AS Project ON TrainRecord.ProjectId=Project.ProjectId + + UNION ALL + + select + '博晟' as Ttype, + TrainType as TrainTypeId, + Id as TrainingId, + RecordName as TrainTitle, + Project.ProjectId, + Project.ProjectCode, + Project.ProjectName, + TrainStartDate, + TrainEndDate, + PersonCount as TrainPersonNum, + TrainDepart as UnitName + From Bo_Sheng_Train F + LEFT JOIN Base_Project AS Project ON F.ProjectId=Project.ProjectId + )f WHERE 1=1 "; + + #region 总数 + var strSqlSum = @"select Count(*)as allCount from( + select ROW_NUMBER() OVER(Order by ProjectCode desc) AS RowNumber, + * from ( + select + '1' as Ttype, + TrainRecord.TrainTypeId, + TrainRecord.TrainingId, + TrainRecord.TrainTitle, + Project.ProjectId, + Project.ProjectCode, + Project.ProjectName, + TrainRecord.TrainStartDate, + TrainRecord.TrainEndDate, + TrainRecord.TrainPersonNum, + UnitName= STUFF((SELECT ',' + UnitName FROM dbo.Base_Unit where PATINDEX('%,' + RTRIM(UnitId) + ',%',',' +TrainRecord.UnitIds + ',')>0 FOR XML PATH('')), 1, 1,'') + from EduTrain_TrainRecord AS TrainRecord + LEFT JOIN Base_TrainType AS TrainType ON TrainRecord.TrainTypeId=TrainType.TrainTypeId + LEFT JOIN Base_Project AS Project ON TrainRecord.ProjectId=Project.ProjectId + + UNION ALL + + select + '博晟' as Ttype, + TrainType as TrainTypeId, + Id as TrainingId, + RecordName as TrainTitle, + Project.ProjectId, + Project.ProjectCode, + Project.ProjectName, + TrainStartDate, + TrainEndDate, + PersonCount as TrainPersonNum, + TrainDepart as UnitName + From Bo_Sheng_Train F + LEFT JOIN Base_Project AS Project ON F.ProjectId=Project.ProjectId + )f WHERE 1=1"; + + #endregion if (this.drpProject.SelectedValue != Const._Null) { - strSql += " AND TrainRecord.ProjectId = @ProjectId"; + strSql += " AND ProjectId = @ProjectId"; listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue)); + + strSqlSum += " AND ProjectId = @ProjectId"; + listStrSum.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue)); } if (!string.IsNullOrEmpty(this.txtStartTime.Text)) { - strSql += " AND TrainRecord.TrainEndDate >=@StartTime"; + strSql += " AND TrainStartDate >=@StartTime"; listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text)); + + strSqlSum += " AND TrainStartDate >=@StartTime"; + listStrSum.Add(new SqlParameter("@StartTime", this.txtStartTime.Text)); } if (!string.IsNullOrEmpty(this.txtEndTime.Text)) { - strSql += " AND TrainRecord.TrainEndDate <=@EndTime"; + strSql += " AND TrainStartDate <=@EndTime"; listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text)); + + strSqlSum += " AND TrainStartDate <=@EndTime"; + listStrSum.Add(new SqlParameter("@EndTime", this.txtStartTime.Text)); } + if (!string.IsNullOrEmpty(this.rbType.SelectedValue)) + { + strSql += " And ( TrainTypeId='" + rbType.SelectedValue + "' or "; + + strSqlSum+= " And ( TrainTypeId='" + rbType.SelectedValue + "' or "; + if (rbType.SelectedValue == "dfb6a37e-4412-4ba9-ad59-3bc505bc21f7") + { + strSql += " TrainTypeId like '%入场%' ) "; + + strSqlSum += " TrainTypeId like '%入场%' ) "; + } + else if (rbType.SelectedValue == "c1a513bb-a547-45b0-944d-b0dd88f06f82") + { + strSql += " TrainTypeId like '%其他%' ) "; + strSqlSum += " TrainTypeId like '%其他%' ) "; + } + else { + strSql += " TrainTypeId like '%专项%' ) "; + strSqlSum += " TrainTypeId like '%专项%' ) "; + } + } + + strSql += " ) b where b.RowNumber BETWEEN(@pageIndex-1)*@pageSize + 1 and @pageIndex*@pageSize order by RowNumber asc"; + strSqlSum+= " ) b "; + + listStr.Add(new SqlParameter("@pageIndex", pageIndex)); + listStr.Add(new SqlParameter("@pageSize", pageSize)); + + SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - Grid1.RecordCount = tb.Rows.Count; - var table = this.GetPagedDataTable(Grid1, tb); - Grid1.DataSource = table; + #region 总数 + DataTable tbSum = SQLHelper.GetDataTableRunText(strSqlSum, listStrSum.ToArray()); + Grid1.RecordCount = Convert.ToInt32(tbSum.Rows[0]["allcount"].ToString()); + #endregion + + + Grid1.DataSource = tb; Grid1.DataBind(); } #endregion @@ -78,6 +207,7 @@ namespace FineUIPro.Web.DataShow /// protected void TextBox_TextChanged(object sender, EventArgs e) { + Grid1.PageIndex = 0; this.BindGrid(); } #endregion @@ -147,8 +277,11 @@ namespace FineUIPro.Web.DataShow Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning); return; } - - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/EduTrain/TrainRecordView.aspx?TrainingId={0}", Grid1.SelectedRowID, "查看 - "))); + var tType= Grid1.SelectedRow.DataKeys[1].ToString(); + if (tType!="博晟") + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../HSSE/EduTrain/TrainRecordView.aspx?TrainingId={0}", Grid1.SelectedRowID, "查看 - "))); + } } #endregion diff --git a/SGGL/FineUIPro.Web/DocManage/DocManage.aspx.cs b/SGGL/FineUIPro.Web/DocManage/DocManage.aspx.cs index 2aa68430..99586708 100644 --- a/SGGL/FineUIPro.Web/DocManage/DocManage.aspx.cs +++ b/SGGL/FineUIPro.Web/DocManage/DocManage.aspx.cs @@ -60,10 +60,26 @@ namespace FineUIPro.Web.DocManage } } + /// + /// 类型 + /// + public string classify + { + get + { + return (string)ViewState["classify"]; + } + set + { + ViewState["classify"] = value; + } + } + protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { + classify = Request.Params["classify"]; UnitService.GetUnit(drpSendUnit, CurrUser.LoginProjectId, true); UnitService.GetUnit(drpReceivUnit, CurrUser.LoginProjectId, true); UserService.InitUserDropDownList(drpCompileMan, CurrUser.LoginProjectId, true); @@ -74,6 +90,10 @@ namespace FineUIPro.Web.DocManage ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); btnNew.OnClientClick = Window1.GetShowReference("DocManageEdit.aspx") + "return false;"; GetButtonPower(); + if (classify != "0") + { + btnNew.Hidden = true; + } BindData(); } @@ -141,6 +161,29 @@ namespace FineUIPro.Web.DocManage strSql += " AND doc.AcceptMan like @AcceptMan"; listStr.Add(new SqlParameter("@AcceptMan", "%" + drpAcceptMan.SelectedValue + "%")); } + var uid = CurrUser.UserId; + //我创建的 + if (classify == "0") + { + strSql += " AND doc.CompileMan ='" + uid + "' "; + } + //待我处理 + else if (classify == "1") + { + strSql += " AND (doc.State ='1' and doc.AcceptMan like'%" + uid + "%' )"; + } + //我已处理 + else if (classify == "2") + { + strSql += " AND (doc.State ='2' and doc.AcceptMan like'%" + uid + "%' )"; + } + //我参与的 + else if (classify == "3") + { + strSql += " AND doc.CopyMan like'%" + uid + "%' "; + } + + SqlParameter[] parameter = listStr.ToArray(); diff --git a/SGGL/FineUIPro.Web/DocManage/DocManageEdit.aspx b/SGGL/FineUIPro.Web/DocManage/DocManageEdit.aspx index c9063f06..9ea9bb66 100644 --- a/SGGL/FineUIPro.Web/DocManage/DocManageEdit.aspx +++ b/SGGL/FineUIPro.Web/DocManage/DocManageEdit.aspx @@ -162,7 +162,7 @@ - + diff --git a/SGGL/FineUIPro.Web/DocManage/DocManageView.aspx b/SGGL/FineUIPro.Web/DocManage/DocManageView.aspx index 370cf330..4ede017e 100644 --- a/SGGL/FineUIPro.Web/DocManage/DocManageView.aspx +++ b/SGGL/FineUIPro.Web/DocManage/DocManageView.aspx @@ -94,6 +94,11 @@ + + + + + arr.Contains(t.UserId)).Select(t => t.UserName).ToList(); + if (data.Count > 0) + return string.Join(",", data); + return null; + + } + protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) @@ -82,6 +92,14 @@ namespace FineUIPro.Web.DocManage { State = Const.Doc_State_0; } + + if (!string.IsNullOrEmpty(doc.CopyMan)) + { + txtCopyMan.Text = GetUserNames(doc.CopyMan); + } + + + BindGrid(); if (!string.IsNullOrEmpty(Type) && Type == "notice") { diff --git a/SGGL/FineUIPro.Web/DocManage/DocManageView.aspx.designer.cs b/SGGL/FineUIPro.Web/DocManage/DocManageView.aspx.designer.cs index 5a1cc6a6..e4f30f05 100644 --- a/SGGL/FineUIPro.Web/DocManage/DocManageView.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/DocManage/DocManageView.aspx.designer.cs @@ -140,6 +140,15 @@ namespace FineUIPro.Web.DocManage /// protected global::FineUIPro.TextBox txtFinishTime; + /// + /// txtCopyMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCopyMan; + /// /// txtDocContent 控件。 /// diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt deleted file mode 100644 index d5ff0428..00000000 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ /dev/null @@ -1,282 +0,0 @@ - -错误信息开始=====> -错误类型:SqlException -错误信息:无法绑定由多个部分组成的标识符 "D.UnitWorkId"。 -错误堆栈: - 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) - 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) - 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) - 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) - 在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() - 在 System.Data.SqlClient.SqlDataReader.get_MetaData() - 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) - 在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) - 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) - 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) - 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) - 在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) - 在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) - 在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) - 在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) - 在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) - 在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\SQLHelper.cs:行号 311 - 在 FineUIPro.Web.CQMS.ProcessControl.InspectionNotice.BindGrid() 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\CQMS\ProcessControl\InspectionNotice.aspx.cs:行号 83 - 在 FineUIPro.Web.CQMS.ProcessControl.InspectionNotice.btnSearch_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\CQMS\ProcessControl\InspectionNotice.aspx.cs:行号 135 - 在 FineUIPro.Button.OnClick(EventArgs e) - 在 (Button , EventArgs ) - 在 FineUIPro.Button.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/02/2024 10:32:29 -出错文件:http://localhost:8579/CQMS/ProcessControl/InspectionNotice.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/02/2024 10:32:29 - - -错误信息开始=====> -错误类型:SqlException -错误信息:列名 'NextNum' 无效。 -错误堆栈: - 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) - 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) - 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) - 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) - 在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() - 在 System.Data.SqlClient.SqlDataReader.get_MetaData() - 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) - 在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) - 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) - 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) - 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) - 在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) - 在 System.Data.Common.DbCommand.ExecuteReader() - 在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) - 在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) - 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) - 在 System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable.GetEnumerator() - 在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) - 在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) - 在 FineUIPro.Web.common.mainProject2.GetJD() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\mainProject2.aspx.cs:行号 720 - 在 FineUIPro.Web.common.mainProject2.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\mainProject2.aspx.cs:行号 113 - 在 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) -出错时间:06/25/2024 17:08:52 -出错文件:http://localhost:8579/common/mainProject2.aspx -IP地址:::1 -操作人员:JT - -出错时间:06/25/2024 17:08:52 - - -错误信息开始=====> -错误类型:SqlException -错误信息:参数化查询 '(@ProjectId nvarchar(4000))SELECT NEWID() AS ID, CardNo,PersonNa' 需要参数 '@ProjectId',但未提供该参数。 -错误堆栈: - 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) - 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) - 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) - 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) - 在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() - 在 System.Data.SqlClient.SqlDataReader.get_MetaData() - 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) - 在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) - 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) - 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) - 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) - 在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) - 在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) - 在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) - 在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) - 在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) - 在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\SQLHelper.cs:行号 311 - 在 FineUIPro.Web.HSSE.EduTrain.TrainFind.BindGrid() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\HSSE\EduTrain\TrainFind.aspx.cs:行号 116 - 在 FineUIPro.Web.HSSE.EduTrain.TrainFind.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\HSSE\EduTrain\TrainFind.aspx.cs:行号 59 - 在 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/03/2024 15:38:17 -出错文件:http://localhost:8579/HSSE/EduTrain/TrainFind.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/03/2024 15:38:17 - - -错误信息开始=====> -错误类型:FormatException -错误信息:输入字符串的格式不正确。 -错误堆栈: - 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) - 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) - 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) - 在 System.Convert.ToInt32(Object value) - 在 FineUIPro.RenderField.DSVurKNBLhHEBGjRDehgsQmnHqGTA(GridRow ) - 在 (GridColumn , GridRow ) - 在 FineUIPro.GridRow.JKAqhrYRKGjUrputGryVTdIrcyJN() - 在 (GridRow ) - 在 FineUIPro.Grid.JKAqhrYRKGjUrputGryVTdIrcyJN(Int32 , Object ) - 在 (Grid , Int32 , Object ) - 在 FineUIPro.Grid.AYqoKqSqsgZakIKkWuWxQURnixDO(IEnumerable , Boolean ) - 在 (Grid , IEnumerable , Boolean ) - 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData) - 在 (Grid , Boolean ) - 在 FineUIPro.Grid.DataBind() - 在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.GridBind() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 34 - 在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.btnSearch_Click(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 39 - 在 FineUIPro.Button.OnClick(EventArgs e) - 在 (Button , EventArgs ) - 在 FineUIPro.Button.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/03/2024 15:53:12 -出错文件:http://localhost:8579/BoSheng/BoPersonTrainRecord.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/03/2024 15:53:12 - - -错误信息开始=====> -错误类型:FormatException -错误信息:输入字符串的格式不正确。 -错误堆栈: - 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) - 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) - 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) - 在 System.Convert.ToInt32(Object value) - 在 FineUIPro.RenderField.DSVurKNBLhHEBGjRDehgsQmnHqGTA(GridRow ) - 在 (GridColumn , GridRow ) - 在 FineUIPro.GridRow.JKAqhrYRKGjUrputGryVTdIrcyJN() - 在 (GridRow ) - 在 FineUIPro.Grid.JKAqhrYRKGjUrputGryVTdIrcyJN(Int32 , Object ) - 在 (Grid , Int32 , Object ) - 在 FineUIPro.Grid.AYqoKqSqsgZakIKkWuWxQURnixDO(IEnumerable , Boolean ) - 在 (Grid , IEnumerable , Boolean ) - 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData) - 在 (Grid , Boolean ) - 在 FineUIPro.Grid.DataBind() - 在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.GridBind() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 34 - 在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 22 - 在 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/03/2024 15:53:47 -出错文件:http://localhost:8579/BoSheng/BoPersonTrainRecord.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/03/2024 15:53:47 - - -错误信息开始=====> -错误类型:FormatException -错误信息:输入字符串的格式不正确。 -错误堆栈: - 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) - 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) - 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) - 在 System.Convert.ToInt32(Object value) - 在 FineUIPro.RenderField.DSVurKNBLhHEBGjRDehgsQmnHqGTA(GridRow ) - 在 (GridColumn , GridRow ) - 在 FineUIPro.GridRow.JKAqhrYRKGjUrputGryVTdIrcyJN() - 在 (GridRow ) - 在 FineUIPro.Grid.JKAqhrYRKGjUrputGryVTdIrcyJN(Int32 , Object ) - 在 (Grid , Int32 , Object ) - 在 FineUIPro.Grid.AYqoKqSqsgZakIKkWuWxQURnixDO(IEnumerable , Boolean ) - 在 (Grid , IEnumerable , Boolean ) - 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData) - 在 (Grid , Boolean ) - 在 FineUIPro.Grid.DataBind() - 在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.GridBind() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 34 - 在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 22 - 在 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/03/2024 15:54:12 -出错文件:http://localhost:8579/BoSheng/BoPersonTrainRecord.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/03/2024 15:54:12 - - -错误信息开始=====> -错误类型:FormatException -错误信息:输入字符串的格式不正确。 -错误堆栈: - 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) - 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) - 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) - 在 System.Convert.ToInt32(Object value) - 在 FineUIPro.RenderField.DSVurKNBLhHEBGjRDehgsQmnHqGTA(GridRow ) - 在 (GridColumn , GridRow ) - 在 FineUIPro.GridRow.JKAqhrYRKGjUrputGryVTdIrcyJN() - 在 (GridRow ) - 在 FineUIPro.Grid.JKAqhrYRKGjUrputGryVTdIrcyJN(Int32 , Object ) - 在 (Grid , Int32 , Object ) - 在 FineUIPro.Grid.AYqoKqSqsgZakIKkWuWxQURnixDO(IEnumerable , Boolean ) - 在 (Grid , IEnumerable , Boolean ) - 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData) - 在 (Grid , Boolean ) - 在 FineUIPro.Grid.DataBind() - 在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.GridBind() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 34 - 在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 22 - 在 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/03/2024 15:54:41 -出错文件:http://localhost:8579/BoSheng/BoPersonTrainRecord.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/03/2024 15:54:41 - - -错误信息开始=====> -错误类型:FormatException -错误信息:输入字符串的格式不正确。 -错误堆栈: - 在 System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) - 在 System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) - 在 System.String.System.IConvertible.ToInt32(IFormatProvider provider) - 在 System.Convert.ToInt32(Object value) - 在 FineUIPro.RenderField.DSVurKNBLhHEBGjRDehgsQmnHqGTA(GridRow ) - 在 (GridColumn , GridRow ) - 在 FineUIPro.GridRow.JKAqhrYRKGjUrputGryVTdIrcyJN() - 在 (GridRow ) - 在 FineUIPro.Grid.JKAqhrYRKGjUrputGryVTdIrcyJN(Int32 , Object ) - 在 (Grid , Int32 , Object ) - 在 FineUIPro.Grid.AYqoKqSqsgZakIKkWuWxQURnixDO(IEnumerable , Boolean ) - 在 (Grid , IEnumerable , Boolean ) - 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData) - 在 (Grid , Boolean ) - 在 FineUIPro.Grid.DataBind() - 在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.GridBind() 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 34 - 在 FineUIPro.Web.BoSheng.BoPersonTrainRecord.Page_Load(Object sender, EventArgs e) 位置 D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\BoSheng\BoPersonTrainRecord.aspx.cs:行号 22 - 在 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/03/2024 15:55:36 -出错文件:http://localhost:8579/BoSheng/BoPersonTrainRecord.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/03/2024 15:55:36 - diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/Instrumentation导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/Instrumentation导入模板.xls index ffd0af3e..f4490857 100644 Binary files a/SGGL/FineUIPro.Web/File/Excel/DataIn/Instrumentation导入模板.xls and b/SGGL/FineUIPro.Web/File/Excel/DataIn/Instrumentation导入模板.xls differ diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/Instrumentation导入模板(旧).xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/Instrumentation导入模板(旧).xls new file mode 100644 index 00000000..45cf4ca9 Binary files /dev/null and b/SGGL/FineUIPro.Web/File/Excel/DataIn/Instrumentation导入模板(旧).xls differ diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/Piping导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/Piping导入模板.xls index 5d30839f..48132ef0 100644 Binary files a/SGGL/FineUIPro.Web/File/Excel/DataIn/Piping导入模板.xls and b/SGGL/FineUIPro.Web/File/Excel/DataIn/Piping导入模板.xls differ diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/StaticEquipment导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/StaticEquipment导入模板.xls index 53bc3cda..50260a8f 100644 Binary files a/SGGL/FineUIPro.Web/File/Excel/DataIn/StaticEquipment导入模板.xls and b/SGGL/FineUIPro.Web/File/Excel/DataIn/StaticEquipment导入模板.xls differ diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/单位分部分项工程划分导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/单位分部分项工程划分导入模板.xls new file mode 100644 index 00000000..a1d0bb5d Binary files /dev/null and b/SGGL/FineUIPro.Web/File/Excel/DataIn/单位分部分项工程划分导入模板.xls differ diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/机具报验导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/机具报验导入模板.xls index 3ba4c985..c61e5f4a 100644 Binary files a/SGGL/FineUIPro.Web/File/Excel/DataIn/机具报验导入模板.xls and b/SGGL/FineUIPro.Web/File/Excel/DataIn/机具报验导入模板.xls differ diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index fec7f569..7209e7e3 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -12,7 +12,7 @@ Properties FineUIPro.Web FineUIPro.Web - v4.6.1 + v4.6.2 true @@ -65,7 +65,7 @@ False - ..\..\..\..\DepCode\reference-bll\Reference BLL\Apache.NMS.dll + bin\Apache.NMS.dll ..\packages\Apache.NMS.ActiveMQ.1.7.2\lib\net40\Apache.NMS.ActiveMQ.dll @@ -100,11 +100,12 @@ ..\packages\Microsoft.Office.Interop.Word.15.0.4797.1004\lib\net20\Microsoft.Office.Interop.Word.dll True - - False + + ..\FineUIPro\Reference BLL\Microsoft.QualityTools.Testing.Fakes.dll - - ..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll + + False + bin\Newtonsoft.Json.dll ..\packages\NPOI.2.5.5\lib\net45\NPOI.dll @@ -207,6 +208,7 @@ + @@ -603,8 +605,13 @@ + + + + + @@ -1388,7 +1395,6 @@ - @@ -1446,6 +1452,7 @@ + @@ -1598,6 +1605,7 @@ + @@ -2156,6 +2164,8 @@ + + @@ -2176,6 +2186,8 @@ + + @@ -2280,8 +2292,6 @@ - - @@ -2338,7 +2348,6 @@ - @@ -2394,7 +2403,6 @@ - @@ -3056,7 +3064,6 @@ - @@ -6383,6 +6390,13 @@ OnlineEditing.aspx + + OnlineEditingPrivate.aspx + ASPXCodeBehind + + + OnlineEditingPrivate.aspx + player.aspx ASPXCodeBehind @@ -8637,6 +8651,27 @@ ControlPoint.aspx + + DivisionDivideAndCrop.aspx + ASPXCodeBehind + + + DivisionDivideAndCrop.aspx + + + DivisionDivideAndCropDataIn.aspx + ASPXCodeBehind + + + DivisionDivideAndCropDataIn.aspx + + + DivisionDivideList.aspx + ASPXCodeBehind + + + DivisionDivideList.aspx + DivisionSubProjects.aspx ASPXCodeBehind @@ -8651,6 +8686,20 @@ DivisionSubProjectsEdit.aspx + + DivisionSubProjectsNew.aspx + ASPXCodeBehind + + + DivisionSubProjectsNew.aspx + + + DivisionSubProjectsNewEdit.aspx + ASPXCodeBehind + + + DivisionSubProjectsNewEdit.aspx + PointCropping.aspx ASPXCodeBehind @@ -14240,6 +14289,13 @@ RectificationMeasureSet.aspx + + WbsManager.aspx + ASPXCodeBehind + + + WbsManager.aspx + WBSCompleteAudit.aspx ASPXCodeBehind @@ -15304,6 +15360,13 @@ ProjectUser.aspx + + ProjectUserContact.aspx + ASPXCodeBehind + + + ProjectUserContact.aspx + ProjectUserSave.aspx ASPXCodeBehind @@ -18552,6 +18615,20 @@ AccidentCauseReportSave.aspx + + ActionWorkLedger.aspx + ASPXCodeBehind + + + ActionWorkLedger.aspx + + + ActionWorkLedgerAdd.aspx + ASPXCodeBehind + + + ActionWorkLedgerAdd.aspx + AnalyseHiddenDanger.aspx ASPXCodeBehind @@ -18692,6 +18769,20 @@ SafetyBriefingEdit.aspx + + SafetyProductionEvaluation.aspx + ASPXCodeBehind + + + SafetyProductionEvaluation.aspx + + + SafetyProductionEvaluationAdd.aspx + ASPXCodeBehind + + + SafetyProductionEvaluationAdd.aspx + SafetyQuarterlyReport.aspx ASPXCodeBehind @@ -19169,9 +19260,6 @@ TestRunPerformanceStandardEdit.aspx - - - @@ -19179,6 +19267,7 @@ + diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user deleted file mode 100644 index 63722353..00000000 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user +++ /dev/null @@ -1,39 +0,0 @@ - - - - Debug|Any CPU - true - false - - - - - - ShowAllFiles - D:\数据\诺必达\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Properties\PublishProfiles\FolderProfile1.pubxml - - - - - - Login.aspx - SpecificPage - True - False - False - False - - - - - - - - - True - True - - - - - \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx index 36337fc5..8685edd5 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx +++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx @@ -118,7 +118,7 @@ - + @@ -517,31 +517,31 @@ + NoDecimal="true" NoNegative="true" MinValue="0" runat="server" AutoPostBack="true" OnTextChanged="Zy_TextChanged"/> + NoDecimal="true" NoNegative="true" MinValue="0" runat="server" AutoPostBack="true" OnTextChanged="Zy_TextChanged"/> + NoDecimal="true" NoNegative="true" MinValue="0" runat="server" AutoPostBack="true" OnTextChanged="Zy_TextChanged"/> + NoDecimal="true" NoNegative="true" MinValue="0" runat="server" AutoPostBack="true" OnTextChanged="Zy_TextChanged"/> + NoDecimal="true" NoNegative="true" MinValue="0" runat="server" AutoPostBack="true" OnTextChanged="Zy_TextChanged"/> + NoDecimal="true" NoNegative="true" MinValue="0" runat="server" AutoPostBack="true" OnTextChanged="Zy_TextChanged"/> + NoDecimal="true" NoNegative="true" MinValue="0" runat="server" AutoPostBack="true" OnTextChanged="Zy_TextChanged"/> + NoDecimal="true" NoNegative="true" MinValue="0" runat="server" AutoPostBack="true" OnTextChanged="Zy_TextChanged"/> @@ -798,6 +798,7 @@ + @@ -817,6 +818,10 @@ + + @@ -835,6 +840,11 @@ + + + @@ -843,8 +853,12 @@ + + + + @@ -1464,4 +1478,33 @@ me.updateCellValue(rowId, 'TotalCheckNum', parseInt(totalCheckNum) + (parseInt(yearCheckNum) - parseInt(yearCheckNum1))); } } + + //5.1 修改本月费用 更改累计费用 + function ongvFiveExpenseC(event, value, params) { + var me = this, columnId = params.columnId, rowId = params.rowId; + + //修改本月五环数,累计值变化 + if (columnId === 'PlanCostMonth') { + //原始本月 + var planCostMonth1 = me.getCellValue(rowId, 'PlanCostMonth1'); + //本月 + var planCostMonth = me.getCellValue(rowId, 'PlanCostMonth'); + + //年度 + var planCostYear = me.getCellValue(rowId, 'PlanCostYear'); + + me.updateCellValue(rowId, 'PlanCostMonth1', planCostMonth); + me.updateCellValue(rowId, 'PlanCostYear', Number(planCostYear) - Number(planCostMonth1) + Number(planCostMonth)); + } else if (columnId === 'ActualCostMonth') { + //原始本月 + var actualCostMonth1 = me.getCellValue(rowId, 'ActualCostMonth1'); + //本月 + var actualCostMonth = me.getCellValue(rowId, 'ActualCostMonth'); + //年度 + var actualCostYear = me.getCellValue(rowId, 'ActualCostYear'); + + me.updateCellValue(rowId, 'ActualCostMonth1', actualCostMonth); + me.updateCellValue(rowId, 'ActualCostYear', Number(actualCostYear) - Number(actualCostMonth1) + Number(actualCostMonth)); + } + } diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.cs index 07217b0f..a5db550f 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCEdit.aspx.cs @@ -198,6 +198,15 @@ namespace FineUIPro.Web.HSSE.Manager { this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", model.EndDate); } + + startTime = Convert.ToDateTime(txtStartDate.Text); + endTime = Convert.ToDateTime(txtEndDate.Text); + + yearStartTime = Convert.ToDateTime(startTime.ToString("yyyy-01-01")); + if (project.StartDate != null) + { + projectStartTime = Convert.ToDateTime(project.StartDate); + } } AddOrUpdate = "update"; @@ -361,6 +370,8 @@ namespace FineUIPro.Web.HSSE.Manager #endregion #region 6.1未遂事件统计 + try + { var attemptedModel = db.Manager_Attempted.FirstOrDefault(x => x.MonthReportId == MonthReportId); if (attemptedModel != null) { @@ -370,15 +381,29 @@ namespace FineUIPro.Web.HSSE.Manager nbFbsYearNum.Text = attemptedModel.FbsYearNum.ToString(); nbProNum.Text = attemptedModel.ProNum.ToString(); } - #endregion + else { + GetAttempted(); + } + #endregion - #region 6.1 2 本月伤害事故统计 - injuryAccidents = BLL.InjuryAccidentCService.GetInjuryAccidentCByMonthReportId(this.MonthReportId); - if (injuryAccidents.Count > 0) + #region 6.1 2 本月伤害事故统计 + injuryAccidents = BLL.InjuryAccidentCService.GetInjuryAccidentCByMonthReportId(this.MonthReportId); + if (injuryAccidents.Count > 0) + { + this.gvInjuryAccident.DataSource = injuryAccidents; + this.gvInjuryAccident.DataBind(); + OutputSummaryData(); + } + else { + GetInjuryAccident(); + //GetAccidentReportsByAccidentTime + } + + } + catch (Exception) { - this.gvInjuryAccident.DataSource = injuryAccidents; - this.gvInjuryAccident.DataBind(); - OutputSummaryData(); + + throw; } #endregion @@ -1762,6 +1787,11 @@ namespace FineUIPro.Web.HSSE.Manager } #region 2 人力投入情况 + public class spckDtp { + public string IdentityCard { get; set; } + public string UnitId { get; set; } + } + /// /// 显示月报告人员投入情况 /// @@ -1775,8 +1805,13 @@ namespace FineUIPro.Web.HSSE.Manager int totalSumPersonNum = 0;//总部 int totalSumOutPersonNum = 0;//外聘 int totalHSEPersonNum = 0; + var unitlist = db.SitePerson_Person.Where(x => x.ProjectId == ProjectId); var spckList = db.SitePerson_Checking.Where(x => x.IntoOutTime >= startTime - && x.IntoOutTime <= endTime && x.ProjectId == ProjectId && x.IntoOut == "1"); + && x.IntoOutTime <= endTime && x.ProjectId == ProjectId && x.IntoOut == "1").Select(x=>new spckDtp{ + IdentityCard=x.IdentityCard, + UnitId= unitlist.FirstOrDefault(y=>y.IdentityCard==x.IdentityCard).UnitId + }); + if (units.Count() > 0) { foreach (Model.Project_ProjectUnit u in units) @@ -1790,12 +1825,11 @@ namespace FineUIPro.Web.HSSE.Manager }; //本部本月人数,本年考勤人数除当前月份,取平均数 //年度 - var yearList = spckList.Where(x => x.UnitId == u.UnitId).ToList().Select(x => new hseDayItem() + var yearList = spckList.Where(x => x.UnitId == u.UnitId).Select(x => new hseDayItem() { IdentityCard = x.IdentityCard, - IntoOutTime = getShortTime(x.IntoOutTime) - }).GroupBy(x => new { x.IdentityCard}) - .ToList(); + //IntoOutTime = getShortTime(x.IntoOutTime) + }).GroupBy(x => new { x.IdentityCard}); personSort.SumPersonNum = yearList.Count(); @@ -1985,6 +2019,12 @@ namespace FineUIPro.Web.HSSE.Manager #endregion #region HSE培训 + public class Bosheng { + public string TrainType { get; set; } + + public decimal TrainPeriod { get; set; } + } + /// /// 显示月报告HSE培训情况 /// @@ -2009,7 +2049,8 @@ namespace FineUIPro.Web.HSSE.Manager trainSort.TrainType = item.TrainTypeName; if (listTrain.Count > 0) { - trainSort.TeachHour = listTrain.Where(x => x.TrainTypeId == item.TrainTypeId).Sum(x => x.TeachHour); + trainSort.TeachHour = 0; + //trainSort.TeachHour = listTrain.Where(x => x.TrainTypeId == item.TrainTypeId).Sum(x => x.TeachHour); trainSort.PersonNum = listTrain.Where(x => x.TrainTypeId == item.TrainTypeId).Sum(x => x.TrainPersonNum); } else @@ -2026,7 +2067,21 @@ namespace FineUIPro.Web.HSSE.Manager trainSort.PersonNum += listBosheng.Where(x => x.TrainType.Contains("入场")).Sum(x=>x.PersonCount); Func funDelegate = CustomCount; decimal numSum = 0; - trainSort.TeachHour += listBosheng.Where(x => x.TrainType.Contains("入场")).Sum(x => funDelegate(x.TrainPeriod, numSum)); + var listB = listBosheng.Where(x => x.TrainType.Contains("入场")).Select(x => new Bosheng + { + TrainType = x.TrainType, + TrainPeriod = Convert.ToDecimal(x.TrainPeriod) + }); + var model = listB.Where(x => x.TrainType.Contains("入场")).OrderByDescending(x => x.TrainPeriod).FirstOrDefault(); + if (model != null) + { + trainSort.TeachHour += model.TrainPeriod; + } + else { + trainSort.TeachHour = 0; + } + + } else if (item.TrainTypeId == "c1a513bb-a547-45b0-944d-b0dd88f06f82") { @@ -2034,14 +2089,41 @@ namespace FineUIPro.Web.HSSE.Manager trainSort.PersonNum += listBosheng.Where(x => x.TrainType.Contains("其他")).Sum(x => x.PersonCount); Func funDelegate = CustomCount; decimal numSum = 0; - trainSort.TeachHour += listBosheng.Where(x => x.TrainType.Contains("其他")).Sum(x => funDelegate(x.TrainPeriod, numSum)); + var listB = listBosheng.Where(x => x.TrainType.Contains("其他")).Select(x => new Bosheng { + TrainType = x.TrainType, + TrainPeriod = Convert.ToDecimal(x.TrainPeriod) + }); + + var model = listB.Where(x => x.TrainType.Contains("其他")).OrderByDescending(x => x.TrainPeriod).FirstOrDefault(); + if (model != null) + { + trainSort.TeachHour += model.TrainPeriod; + } + else + { + trainSort.TeachHour = 0; + } } else { //专项 trainSort.PersonNum += listBosheng.Where(x => x.TrainType.Contains("专项")).Sum(x => x.PersonCount); - Func funDelegate = CustomCount; - decimal numSum = 0; - trainSort.TeachHour += listBosheng.Where(x => x.TrainType.Contains("专项")).Sum(x => funDelegate(x.TrainPeriod, numSum)); + var listB = listBosheng.Where(x => x.TrainType.Contains("专项")).Select(x => new Bosheng + { + TrainType = x.TrainType, + TrainPeriod = Convert.ToDecimal(x.TrainPeriod) + }); + var model = listB.Where(x => x.TrainType.Contains("专项")).OrderByDescending(x => x.TrainPeriod).FirstOrDefault(); + if (model != null) + { + trainSort.TeachHour += model.TrainPeriod; + } + else + { + trainSort.TeachHour = 0; + } + //Func funDelegate = CustomCount; + //decimal numSum = 0; + //trainSort.TeachHour += listBosheng.Where(x => x.TrainType.Contains("专项")).Max(x => funDelegate(x.TrainPeriod, numSum)); } } @@ -3226,6 +3308,34 @@ namespace FineUIPro.Web.HSSE.Manager } #endregion + /// + /// 4.4修改数量自动修改本月和累计 + /// + /// + /// + protected void Zy_TextChanged(object sender, EventArgs e) { + if (!string.IsNullOrEmpty(nbFireWorkCount.Text)&&!string.IsNullOrEmpty(nbBreakGroundCount.Text)&& + !string.IsNullOrEmpty(nbLimitedSpaceCount.Text) && !string.IsNullOrEmpty(nbElectricityCount.Text) && + !string.IsNullOrEmpty(nbHeightWorkCount.Text) && !string.IsNullOrEmpty(nbRadialWork.Text) && + !string.IsNullOrEmpty(nbLiftingWorkCount.Text) && !string.IsNullOrEmpty(nbNightWork.Text) ) + { + + var number1 = Convert.ToInt32(nbFireWorkCount.Text); + var number2 = Convert.ToInt32(nbBreakGroundCount.Text); + var number3 = Convert.ToInt32(nbLimitedSpaceCount.Text); + var number4 = Convert.ToInt32(nbElectricityCount.Text); + var number5 = Convert.ToInt32(nbHeightWorkCount.Text); + var number6 = Convert.ToInt32(nbRadialWork.Text); + var number7 = Convert.ToInt32(nbLiftingWorkCount.Text); + var number8 = Convert.ToInt32(nbNightWork.Text); + + //作业累计 + nbProCount.Text = (Convert.ToInt32(nbProCount.Text) - Convert.ToInt32(nbMonthCount.Text) + + number1 + number2 + number3 + number4 + number5 + number6 + number7 + number8).ToString(); + nbYearCount.Text= (Convert.ToInt32(nbYearCount.Text) - Convert.ToInt32(nbMonthCount.Text) + + number1 + number2 + number3 + number4 + number5 + number6 + number7 + number8).ToString(); + nbMonthCount.Text = ( number1 + number2 + number3 + number4 + number5 + number6 + number7 + number8).ToString(); + }} } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCNew.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCNew.aspx.cs index 75e3ba0e..a11ae058 100644 --- a/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCNew.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/Manager/ManagerMonthCNew.aspx.cs @@ -537,7 +537,7 @@ namespace FineUIPro.Web.HSSE.Manager var urlHz = startDate.ToString("yyyyMMdd") + "-" + endDate.ToString("yyyyMMdd"); - newUrl = uploadfilepath.Replace("项目安全月报", pModel.ShortName + "项目安全月报(" + model.MonthReportCode + ")" + urlHz); + newUrl = uploadfilepath.Replace("项目安全月报", pModel.ShortName + "项目HSE月报(" + model.MonthReportCode + ")" + urlHz); if (File.Exists(newUrl)) { diff --git a/SGGL/FineUIPro.Web/JDGL/Progress/WbsManager.aspx b/SGGL/FineUIPro.Web/JDGL/Progress/WbsManager.aspx new file mode 100644 index 00000000..70385dc8 --- /dev/null +++ b/SGGL/FineUIPro.Web/JDGL/Progress/WbsManager.aspx @@ -0,0 +1,223 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WbsManager.aspx.cs" Inherits="FineUIPro.Web.JDGL.Progress.WbsManager" %> + + + + + + + 费用项裁剪 + + + +
+ + < + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + + + + + + + + + + + --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/JDGL/Progress/WbsManager.aspx.cs b/SGGL/FineUIPro.Web/JDGL/Progress/WbsManager.aspx.cs new file mode 100644 index 00000000..36d2b9fb --- /dev/null +++ b/SGGL/FineUIPro.Web/JDGL/Progress/WbsManager.aspx.cs @@ -0,0 +1,277 @@ +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.JDGL.Progress +{ + public partial class WbsManager : PageBase + { + #region 页面加载 + /// + /// 页面加载 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + InitTreeMenu(); + } + } + + private void InitTreeMenu() { + + } + #endregion + + #region 树节点展开 + /// + /// 树节点展开 + /// + /// + /// + protected void trWBS_NodeExpand(object sender, TreeNodeEventArgs e) { + + } + #endregion + + #region Tree点击事件 + /// + /// Tree点击事件 + /// + /// + /// + protected void trWBS_NodeCommand(object sender, TreeCommandEventArgs e) + { + + } + #endregion + + #region 关闭窗口 + /// + /// 关闭窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + ShowNotify("保存成功!", MessageBoxIcon.Success); + + //getWBSSet(); + } + + /// + /// 关闭窗口 + /// + /// + /// + protected void Window2_Close(object sender, WindowCloseEventArgs e) + { + ShowNotify("拷贝成功!", MessageBoxIcon.Success); + + } + + /// + /// 关闭窗口 + /// + /// + /// + protected void Window3_Close(object sender, WindowCloseEventArgs e) + { + ShowNotify("保存成功!", MessageBoxIcon.Success); + + + } + #endregion + + #region 保存事件 + /// + /// 保存 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (Grid1.Rows.Count > 0) + { + JArray mergedData = Grid1.GetMergedData(); + + bool isPass = true; + if (isPass) + { + foreach (var item in this.Grid1.SelectedRowIDArray) + { + Model.WBS_CostControl costControl = BLL.CostControlService.GetCostControlByCostControlId(item); + + } + + foreach (JObject mergedRow in mergedData) + { + JObject values = mergedRow.Value("values"); + string costControlId = values.Value("CostControlId"); + //string totalNum = values.Value("TotalNum"); + //string realPrice = values.Value("RealPrice"); + //string planPrice = values.Value("PlanPrice"); + Model.WBS_CostControl costControl = BLL.CostControlService.GetCostControlByCostControlId(costControlId); + if (this.Grid1.SelectedRowIDArray.Contains(costControlId)) + { + costControl.IsSelected = true; + } + else + { + costControl.IsSelected = false; + } + BLL.CostControlService.UpdateCostControl(costControl); + } + } + BindGrid(); + } + Alert.ShowInTop("保存成功!", MessageBoxIcon.Success); + } + #endregion + + #region 绑定数据 + + private string upStartDate = string.Empty; + private string upEndDate = string.Empty; + protected void Grid1_RowDataBound(object sender, GridRowEventArgs e) + { + string id = e.RowID; + } + + /// + /// 绑定数据 + /// + /// + /// + protected void Grid1_FilterChange(object sender, EventArgs e) + { + BindGrid(); + } + + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + + /// + /// Grid1排序 + /// + /// + /// + protected void Grid1_Sort(object sender, GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + + /// + /// 分页下拉选择事件 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + + /// + /// 加载Grid + /// + private void BindGrid() + { + + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.WBSSetAuditMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + + this.btnAdd.Hidden = false; + //this.btnMenuDetail.Hidden = false; + //this.btnMenuWeekDetail.Hidden = false; + //this.btnMenuCopy2.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + this.btnMenuModify.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnSave.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + //if (buttonList.Contains(BLL.Const.BtnAuditing)) + //{ + // this.btnMenuAudit.Hidden = false; + //} + } + } + #endregion + + #region 增加费用项 + /// + /// 增加费控项 + /// + /// + /// + protected void btnAdd_Click(object sender, EventArgs e) { + if (!string.IsNullOrEmpty(trWBS.SelectedNodeID)) + { + this.hdSelectId.Text = this.trWBS.SelectedNodeID; + Model.Wbs_WbsSet wbsSet = BLL.WbsSetService.GetWbsSetByWbsSetId(this.trWBS.SelectedNodeID); + if (wbsSet != null) + { + var list = BLL.WbsSetService.GetWbsSetsBySuperWbsSetId(this.trWBS.SelectedNodeID); + if (list.Count == 0) + { + string openUrl = String.Format("CostControlEdit.aspx?operating=add&Id={0}", trWBS.SelectedNodeID, "增加 - "); + PageContext.RegisterStartupScript(Window3.GetShowReference(openUrl)); + } + else + { + ShowNotify("请选择工作项节点进行增加!", MessageBoxIcon.Warning); + } + } + else + { + ShowNotify("请选择工作项节点进行增加!", MessageBoxIcon.Warning); + } + } + else + { + ShowNotify("请选择树节点!", MessageBoxIcon.Warning); + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/JDGL/Progress/WbsManager.aspx.designer.cs b/SGGL/FineUIPro.Web/JDGL/Progress/WbsManager.aspx.designer.cs new file mode 100644 index 00000000..b27caf94 --- /dev/null +++ b/SGGL/FineUIPro.Web/JDGL/Progress/WbsManager.aspx.designer.cs @@ -0,0 +1,215 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JDGL.Progress +{ + + + public partial class WbsManager + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelLeftRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelLeftRegion; + + /// + /// trWBS 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tree trWBS; + + /// + /// hdSelectId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdSelectId; + + /// + /// hdType 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdType; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnAdd 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAdd; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// ToolbarSeparator1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Window3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window3; + + /// + /// Window4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window4; + + /// + /// Menu2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu2; + + /// + /// btnMenuModify 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuModify; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXList.aspx b/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXList.aspx index c10017ff..96f63939 100644 --- a/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXList.aspx +++ b/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXList.aspx @@ -103,18 +103,16 @@ + FieldType="String" HeaderText="跟踪人" HeaderTextAlign="Center" TextAlign="Left" > + FieldType="String" HeaderText="责任人" HeaderTextAlign="Center" TextAlign="Left"> - - + <%-- diff --git a/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXList.aspx.cs b/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXList.aspx.cs index f9435c0a..3d2b7a8b 100644 --- a/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXList.aspx.cs +++ b/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXList.aspx.cs @@ -12,6 +12,21 @@ namespace FineUIPro.Web.PZHGL.GJSX { public partial class GJSXList : PageBase { + /// + /// 类型 + /// + public string classify + { + get + { + return (string)ViewState["classify"]; + } + set + { + ViewState["classify"] = value; + } + } + /// /// 加载页面 /// @@ -21,9 +36,14 @@ namespace FineUIPro.Web.PZHGL.GJSX { if (!IsPostBack) { + classify = Request.Params["classify"]; Funs.DropDownPageSize(this.ddlPageSize); ////权限按钮方法 this.GetButtonPower(); + if (classify != "0") + { + btnNew.Hidden = true; + } this.btnNew.OnClientClick = Window1.GetShowReference("GJSXListEdit.aspx?EditType=add") + "return false;"; if (this.CurrUser != null && this.CurrUser.PageSize.HasValue) { @@ -42,7 +62,33 @@ namespace FineUIPro.Web.PZHGL.GJSX private void BindGrid() { - string strSql = ""; + string strSql = @"select + a.GJSXID + ,a.ProjectId + ,a.detail + ,a.Userid + ,b.username + ,a.createDate + ,User_ReceiveID = STUFF((SELECT ',' + p2.UserName FROM dbo.Sys_User as p2 where PATINDEX('%,' + RTRIM(p2.UserId) + ',%', ',' + a.User_ReceiveID + ',') > 0 FOR XML PATH('')), 1, 1,'') + , CNProfessionalId = STUFF((SELECT ',' + Base_CNProfessional.ProfessionalName FROM dbo.Base_CNProfessional where PATINDEX('%,' + RTRIM(Base_CNProfessional.CNProfessionalId) + ',%', ',' + a.CNProfessional_ID + ',') > 0 FOR XML PATH('')), 1, 1,'') + ,Base_Project.ProjectName + ,Base_Unit.unitname + ,a.CloseDate + ,case a.state when 2 then '正在进行' when 3 then '待关闭' when 0 then '已关闭' when 1 then '开放' end as state + ,QuestionTypeName = STUFF((SELECT ',' + Base_QuestionType.QuestionTypeName FROM dbo.Base_QuestionType where PATINDEX('%,' + RTRIM(Base_QuestionType.QuestionTypeID) + ',%', ',' + a.QuestionTypeID + ',') > 0 FOR XML PATH('')), 1, 1,'') + ,a.IsManypeople + ,a.CompleteDate + ,a.AttachUrl + ,user_Acceptance = STUFF((SELECT ',' + p2.UserName FROM dbo.Sys_User as p2 where PATINDEX('%,' + RTRIM(p2.UserId) + ',%', ',' + a.user_Acceptance + ',') > 0 FOR XML PATH('')), 1, 1,'') + from GJSX as a left join Sys_User as b on a.UserId = b.UserId + + left join[dbo].[Base_Project] on a.ProjectId = Base_Project.ProjectId + + left join[dbo].[Base_Unit] on a.UnitId = Base_Unit.UnitId + + left join[dbo].[Base_QuestionType] on a.QuestionTypeID = Base_QuestionType.QuestionTypeID + + where a.ProjectId = @ProjectId"; List listStr = new List(); if (!string.IsNullOrEmpty(Request.Params["projectId"])) ///是否文件柜查看页面传项目值 @@ -53,11 +99,32 @@ namespace FineUIPro.Web.PZHGL.GJSX { listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); } - - listStr.Add(new SqlParameter("@sql_where", strSql)); + var uid = CurrUser.UserId; + //listStr.Add(new SqlParameter("@sql_where", strSql)); + //我创建的 + if (classify=="0") + { + strSql += " AND a.Userid='" + uid + "' "; + } + //待我处理 + else if (classify == "1") + { + strSql += " AND (a.state ='2' and a.User_Acceptance like'%"+ uid + "%' ) or (a.state ='3' and (a.Userid like'%" + uid + "%' or a.User_ReceiveID like'%" + uid + "%' ))"; + } + //我已处理 + else if (classify == "2") + { + strSql += " AND (a.state ='0' and (a.Userid like'%" + uid + "%' or a.User_ReceiveID like'%" + uid + "%' ))"; + } + //我参与的 + else if (classify == "3") + { + strSql += " AND a.CsUsers like'%" + uid + "%' "; + } SqlParameter[] parameter = listStr.ToArray(); - DataTable tb = SQLHelper.GetDataTableRunProc("Sp_GJSX_getlist", parameter); + + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; var table = this.GetPagedDataTable(Grid1, tb); Grid1.DataSource = table; @@ -221,7 +288,18 @@ namespace FineUIPro.Web.PZHGL.GJSX return; } string Id = Grid1.SelectedRowID; - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("GJSXListEdit.aspx?EditType=Edit&Id={0}", Id, "编辑 - "))); + var gjsx = BLL.GJSXService.GetGJSXById(Id); + //必须是责任人、提出人、跟踪人才能修改 + if (gjsx.User_Acceptance.Contains(this.CurrUser.UserId) + || gjsx.UserID.Contains(this.CurrUser.UserId) || + gjsx.User_ReceiveID.Contains(this.CurrUser.UserId)) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("GJSXListEdit.aspx?EditType=Edit&Id={0}", Id, "编辑 - "))); + } + else { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("GJSXListEdit.aspx?EditType=See&Id={0}", Id),"查看 - ")); + } + } #region 判断是否可删除 diff --git a/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXListEdit.aspx b/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXListEdit.aspx index 26d6919a..3bbc5a23 100644 --- a/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXListEdit.aspx +++ b/SGGL/FineUIPro.Web/PZHGL/GJSX/GJSXListEdit.aspx @@ -7,6 +7,9 @@ 编辑员工 <%-- --%> +
@@ -49,18 +52,52 @@ - + - - + + + + + + + + + - + <%-- @@ -68,17 +105,17 @@ - <%-- - --%> + - + --%> @@ -92,24 +129,36 @@ - + - + <%-- - + --%> + + + + + + + +
+ + + + + + + diff --git a/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.cs b/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.cs index 299ff39e..f02f2c5e 100644 --- a/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.cs +++ b/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.cs @@ -1048,6 +1048,18 @@ namespace FineUIPro.Web.SysManage { txtCallBackapiurl.Text = sysSet3.ConstValue; } + var sysSet4 = (from x in db.Sys_Const where x.ConstText == "IsUseLoaclService" select x).ToList().FirstOrDefault(); + if (sysSet4 != null) + { + if (sysSet4.ConstValue=="1") + { + ckIsUseLoaclService .Checked=true; + } + else + { + ckIsUseLoaclService.Checked = false; + } + } } protected void OnlineMenuSetSave_OnClick(object sender, EventArgs e) { @@ -1115,6 +1127,36 @@ namespace FineUIPro.Web.SysManage Funs.DB.Sys_Const.InsertOnSubmit(sysSet3); Funs.DB.SubmitChanges(); } + Model.Sys_Const sysSet4 = db.Sys_Const.FirstOrDefault(x => x.ConstText == "IsUseLoaclService"); + if (sysSet4 != null) + { + if (ckIsUseLoaclService.Checked) + { + sysSet4.ConstValue ="1"; + } + else + { + sysSet4.ConstValue = "0"; + } + + db.SubmitChanges(); + } + else + { + sysSet4 = new Model.Sys_Const(); + if (ckIsUseLoaclService.Checked) + { + sysSet4.ConstValue = "1"; + } + else + { + sysSet4.ConstValue = "0"; + } + sysSet4.ConstText = "IsUseLoaclService"; + sysSet4.ID = SQLHelper.GetNewID(); + Funs.DB.Sys_Const.InsertOnSubmit(sysSet4); + Funs.DB.SubmitChanges(); + } ShowNotify("保存成功!", MessageBoxIcon.Success); } #endregion diff --git a/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.designer.cs b/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.designer.cs index 2a80b251..5246388d 100644 --- a/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/SysManage/SysConstSet.aspx.designer.cs @@ -869,6 +869,15 @@ namespace FineUIPro.Web.SysManage /// protected global::FineUIPro.TextBox txtCallBackapiurl; + /// + /// ckIsUseLoaclService 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.CheckBox ckIsUseLoaclService; + /// /// Toolbar5 控件。 /// diff --git a/SGGL/FineUIPro.Web/TestRun/BeforeTestRun/DeviceRun.aspx b/SGGL/FineUIPro.Web/TestRun/BeforeTestRun/DeviceRun.aspx index 12b849a4..e41a5c8b 100644 --- a/SGGL/FineUIPro.Web/TestRun/BeforeTestRun/DeviceRun.aspx +++ b/SGGL/FineUIPro.Web/TestRun/BeforeTestRun/DeviceRun.aspx @@ -15,7 +15,7 @@ runat="server" EnableCollapse="true" DataKeyNames="PreRunId,ParentId,PreRunLevel" EnableTree="true" TreeColumn="PreRunName" DataIDField="PreRunId" AllowPaging="true" DataParentIDField="ParentId" OnRowDataBound="Grid1_RowDataBound" AllowCellEditing="false" ClicksToEdit="1" OnRowCommand="Grid1_RowCommand" - EnableMultiSelect="false" EnableCheckBoxSelect="true" ExpandAllTreeNodes="true"> + EnableMultiSelect="true" EnableCheckBoxSelect="true" ExpandAllTreeNodes="true"> diff --git a/SGGL/FineUIPro.Web/TestRun/DriverProgress.aspx.cs b/SGGL/FineUIPro.Web/TestRun/DriverProgress.aspx.cs index 1c7eaacd..3590e1dd 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverProgress.aspx.cs +++ b/SGGL/FineUIPro.Web/TestRun/DriverProgress.aspx.cs @@ -182,7 +182,7 @@ namespace FineUIPro.Web.TestRun string id = Grid1.DataKeys[e.RowIndex][0].ToString(); if (e.CommandName == "AttachUrl") { - PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/TestRun/DriverProgress&menuId={1}", id, BLL.Const.DriverProgressMenuId))); + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/TestRun/DriverProgress&menuId={1}", id, BLL.Const.DriverProgressMenuId))); } } #endregion diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSchemeEdit.aspx.cs b/SGGL/FineUIPro.Web/TestRun/DriverSchemeEdit.aspx.cs index 951ff6d7..bb05428f 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSchemeEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/TestRun/DriverSchemeEdit.aspx.cs @@ -151,8 +151,8 @@ namespace FineUIPro.Web.TestRun options.Hidden = true; optio.Hidden = true; plApprove2.Hidden = true; - txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", - "dbo.Solution_TestRunConstructSolution", "Code", CurrUser.LoginProjectId); + //txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", + // "dbo.Solution_TestRunConstructSolution", "Code", CurrUser.LoginProjectId); this.txtSolutionType.Text = TestRunConstructSolutionService.ConvertSolutionType(Request.Params["SolutionType"]); this.hdSolutionType.Text = Request.Params["SolutionType"]; TestRunConstructSolutionService.Init(drpHandleType, Const.TestRunConstructSolution_Compile, false); diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx index f85d259d..d7f7e6e4 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx @@ -18,16 +18,16 @@ - + + OnSelectedIndexChanged="ddlDateType_SelectedIndexChanged" Width="120px" LabelWidth="100px"> + OnSelectedIndexChanged="drpChartType_SelectedIndexChanged" Width="120px" LabelWidth="100px"> <%-- @@ -94,8 +94,6 @@ - - @@ -221,18 +219,19 @@ TitleToolTip="图形"> - + + @@ -244,6 +243,7 @@ + @@ -253,6 +253,7 @@ + @@ -262,6 +263,7 @@ + @@ -271,6 +273,7 @@ + diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.cs index 52de22e5..8f67f4ca 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.cs @@ -18,17 +18,17 @@ namespace FineUIPro.Web.Transfer.Chart { if (!IsPostBack) { - ddlSystemNo.Hidden = true; + ddlSubSysNo.Hidden = true; ddlDateType.Hidden = true; drpChartType.Hidden = true; BtnAnalyse.Hidden = true; - var systemNos = Funs.DB.Transfer_PunchlistFrom.Where(x => x.ProjectId == this.CurrUser.LoginProjectId).GroupBy(p => new { p.System_No }).Select(p => new { System_No = p.Key.System_No }).ToList(); + var systemNos = Funs.DB.Transfer_PunchlistFrom.Where(x => x.ProjectId == this.CurrUser.LoginProjectId).GroupBy(p => new { p.Sub_Sys_No }).Select(p => new { SubSysNo = p.Key.Sub_Sys_No }).ToList(); int indexRow = 1; - ddlSystemNo.Items.Insert(0, new FineUIPro.ListItem("ALL", "")); + ddlSubSysNo.Items.Insert(0, new FineUIPro.ListItem("ALL", "")); foreach (var t in systemNos) { - ddlSystemNo.Items.Insert(indexRow, new FineUIPro.ListItem(t.System_No, t.System_No)); + ddlSubSysNo.Items.Insert(indexRow, new FineUIPro.ListItem(t.SubSysNo, t.SubSysNo)); indexRow++; } AnalyseData(); @@ -62,13 +62,13 @@ namespace FineUIPro.Web.Transfer.Chart ///
private void AnalyseData() { - string _systemNo = ddlSystemNo.SelectedValue; + string _systemNo = ddlSubSysNo.SelectedValue; if (_systemNo == null) _systemNo = ""; _systemNo = _systemNo.Trim(); //_systemNo为空则查全部 var forms = from x in Funs.DB.Transfer_PunchlistFrom - where x.ProjectId == this.CurrUser.LoginProjectId && (x.System_No == _systemNo || _systemNo == "") + where x.ProjectId == this.CurrUser.LoginProjectId && (x.Sub_Sys_No == _systemNo || _systemNo == "") select x; string _dateType = ddlDateType.SelectedValue; @@ -79,7 +79,7 @@ namespace FineUIPro.Web.Transfer.Chart { #region 加载尾项完成统计表(30天以内) var nowDate = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd")); - for (var i = nowDate.AddDays(-30); i <= nowDate; i=i.AddDays(1)) + for (var i = nowDate.AddDays(-30); i <= nowDate; i = i.AddDays(1)) { //i是日期 @@ -87,7 +87,7 @@ namespace FineUIPro.Web.Transfer.Chart DateTime startTime = Convert.ToDateTime(i.ToString("yyyy-MM-dd") + " 00:00:00"); DateTime endTime = Convert.ToDateTime(i.ToString("yyyy-MM-dd") + " 23:59:59"); //当天计划完成量 - var dtjhwcl= forms.Where(x => x.Required_Date >= startTime && x.Required_Date <= endTime).Count(); + var dtjhwcl = forms.Where(x => x.Required_Date >= startTime && x.Required_Date <= endTime).Count(); wcl1 += "'" + dtjhwcl + "',"; //当天实际完成量 var dtsjwcl = forms.Where(x => x.Actual_Date >= startTime && x.Actual_Date <= endTime).Count(); @@ -96,12 +96,12 @@ namespace FineUIPro.Web.Transfer.Chart var ljjhwcl = forms.Where(x => x.Required_Date <= endTime).Count(); wcl3 += "'" + ljjhwcl + "',"; //累计实际完成量 - var ljsjwcl= forms.Where(x => x.Actual_Date <= endTime).Count(); + var ljsjwcl = forms.Where(x => x.Actual_Date <= endTime).Count(); wcl4 += "'" + ljsjwcl + "',"; - AllxDate += "'"+ d + "',"; + AllxDate += "'" + d + "',"; } - if (AllxDate.Length>0) + if (AllxDate.Length > 0) { AllxDate = AllxDate.Substring(0, AllxDate.Length - 1); wcl1 = wcl1.Substring(0, wcl1.Length - 1); @@ -239,7 +239,7 @@ namespace FineUIPro.Web.Transfer.Chart ///
/// /// - protected void ddlSystemNo_SelectedIndexChanged(object sender, EventArgs e) + protected void ddlSubSysNo_SelectedIndexChanged(object sender, EventArgs e) { this.AnalyseData(); BindGrid1(); @@ -322,15 +322,15 @@ namespace FineUIPro.Web.Transfer.Chart { List listStr = new List(); string _systemNo = string.Empty; - _systemNo = ddlSystemNo.SelectedValue; + _systemNo = ddlSubSysNo.SelectedValue; StringBuilder strSql = new StringBuilder(""); strSql.AppendLine(" IF OBJECT_ID('tempdb..#AllPunchlistFromSortTemp1') IS NOT NULL drop table #AllPunchlistFromSortTemp1; "); strSql.AppendLine(" IF OBJECT_ID('tempdb..#PunchlistFromSortTemp1') IS NOT NULL drop table #PunchlistFromSortTemp1; "); strSql.AppendLine(" select * INTO #AllPunchlistFromSortTemp1 from Transfer_PunchlistFrom(NOLOCK) where ProjectId=@ProjectId "); if (!string.IsNullOrWhiteSpace(_systemNo)) { - strSql.AppendLine(" AND System_No=@System_No "); - listStr.Add(new SqlParameter("@System_No", _systemNo)); + strSql.AppendLine(" AND Sub_Sys_No=@SubSysNo "); + listStr.Add(new SqlParameter("@SubSysNo", _systemNo)); } strSql.AppendLine(@" select Disc, cast(0 as decimal(18, 2)) Cat_A_Count, @@ -403,7 +403,7 @@ namespace FineUIPro.Web.Transfer.Chart cat_C_Count += Convert.ToInt32(row["Cat_C_Count"]); cat_D_Count += Convert.ToInt32(row["Cat_D_Count"]); // - Cat_A_Countf+= Convert.ToInt32(row["Cat_A_Countf"]); + Cat_A_Countf += Convert.ToInt32(row["Cat_A_Countf"]); Cat_A_CountWUH += Convert.ToInt32(row["Cat_A_CountWUH"]); Cat_A_CountBASF += Convert.ToInt32(row["Cat_A_CountBASF"]); @@ -465,15 +465,15 @@ namespace FineUIPro.Web.Transfer.Chart { List listStr = new List(); string _systemNo = string.Empty; - _systemNo = ddlSystemNo.SelectedValue; + _systemNo = ddlSubSysNo.SelectedValue; StringBuilder strSql = new StringBuilder(""); strSql.AppendLine(" IF OBJECT_ID('tempdb..#AllPunchlistFromSortTemp2') IS NOT NULL drop table #AllPunchlistFromSortTemp2; "); strSql.AppendLine(" IF OBJECT_ID('tempdb..#PunchlistFromSortTemp2') IS NOT NULL drop table #PunchlistFromSortTemp2; "); strSql.AppendLine(" select * INTO #AllPunchlistFromSortTemp2 from Transfer_PunchlistFrom(NOLOCK) where ProjectId=@ProjectId "); if (!string.IsNullOrWhiteSpace(_systemNo)) { - strSql.AppendLine(" AND System_No=@System_No "); - listStr.Add(new SqlParameter("@System_No", _systemNo)); + strSql.AppendLine(" AND Sub_Sys_No=@SubSysNo "); + listStr.Add(new SqlParameter("@SubSysNo", _systemNo)); } strSql.AppendLine(@" select Action_By, cast(0 as decimal(18, 2)) Cat_A_Count, @@ -604,9 +604,9 @@ namespace FineUIPro.Web.Transfer.Chart protected void TabStrip1_TabIndexChanged(object sender, EventArgs e) { - if (TabStrip1.ActiveTabIndex ==0) + if (TabStrip1.ActiveTabIndex == 0) { - ddlSystemNo.Hidden = true; + ddlSubSysNo.Hidden = true; ddlDateType.Hidden = true; drpChartType.Hidden = true; BtnAnalyse.Hidden = true; @@ -614,7 +614,7 @@ namespace FineUIPro.Web.Transfer.Chart } else if (TabStrip1.ActiveTabIndex == 2) { - ddlSystemNo.Hidden = false; + ddlSubSysNo.Hidden = false; ddlDateType.Hidden = true; drpChartType.Hidden = true; BtnAnalyse.Hidden = false; @@ -622,7 +622,7 @@ namespace FineUIPro.Web.Transfer.Chart } else if (TabStrip1.ActiveTabIndex == 3) { - ddlSystemNo.Hidden = false; + ddlSubSysNo.Hidden = false; ddlDateType.Hidden = true; drpChartType.Hidden = true; BtnAnalyse.Hidden = false; @@ -632,13 +632,14 @@ namespace FineUIPro.Web.Transfer.Chart { ddlDateType.Hidden = true; drpChartType.Hidden = true; - ddlSystemNo.Hidden = true; + ddlSubSysNo.Hidden = true; BtnAnalyse.Hidden = false; BindGrid3(); } - else { + else + { this.AnalyseData(); - ddlSystemNo.Hidden = false; + ddlSubSysNo.Hidden = false; ddlDateType.Hidden = false; drpChartType.Hidden = false; BtnAnalyse.Hidden = false; @@ -657,65 +658,72 @@ namespace FineUIPro.Web.Transfer.Chart strSql.AppendLine("IF OBJECT_ID('tempdb..#PunchlistFromProgressTemp') IS NOT NULL drop table #PunchlistFromProgressTemp; "); strSql.AppendLine(" select * INTO #AllPunchlistFromProgressTemp from Transfer_PunchlistFrom(NOLOCK) where ProjectId=@ProjectId "); - //strSql.AppendLine(" select System_No,count(System_No) SystemNoCount,cast(0 as decimal(18,2)) ActualDateCount "); + //strSql.AppendLine(" select Sub_Sys_No,count(Sub_Sys_No) SystemNoCount,cast(0 as decimal(18,2)) ActualDateCount "); //strSql.AppendLine(" ,cast(0 as decimal(18,2)) ClearedByCount,cast(0 as decimal(18,2)) ConfirmedByCount,cast(0 as decimal(18,2)) VerifiedByCount "); - //strSql.AppendLine(" INTO #PunchlistFromProgressTemp from #AllPunchlistFromProgressTemp where ProjectId = @ProjectId group by System_No "); - //strSql.AppendLine(" update a set a.ActualDateCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Actual_Date,'')<>'') "); - //strSql.AppendLine(" ,a.ClearedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Cleared_By,'')<>'') "); - //strSql.AppendLine(" ,a.ConfirmedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Confirmed_By,'')<>'') "); - //strSql.AppendLine(" ,a.VerifiedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND isnull(b.Verified_By,'')<>'') "); + //strSql.AppendLine(" INTO #PunchlistFromProgressTemp from #AllPunchlistFromProgressTemp where ProjectId = @ProjectId group by Sub_Sys_No "); + //strSql.AppendLine(" update a set a.ActualDateCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND isnull(b.Actual_Date,'')<>'') "); + //strSql.AppendLine(" ,a.ClearedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND isnull(b.Cleared_By,'')<>'') "); + //strSql.AppendLine(" ,a.ConfirmedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND isnull(b.Confirmed_By,'')<>'') "); + //strSql.AppendLine(" ,a.VerifiedByCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND isnull(b.Verified_By,'')<>'') "); - strSql.AppendLine(@" select System_No, + strSql.AppendLine(@" select Sub_Sys_No, cast(0 as decimal(18, 2)) Cat_A_Count, - cast(0 as decimal(18, 2)) Cat_A_Countf, cast(0 as decimal(18, 2)) Cat_A_CountWUH, cast(0 as decimal(18, 2)) Cat_A_CountBASF, + cast(0 as decimal(18, 2)) Cat_A_Countf,cast(0 as decimal(18, 2)) Cat_A_CountPercent, cast(0 as decimal(18, 2)) Cat_A_CountWUH, cast(0 as decimal(18, 2)) Cat_A_CountBASF, cast(0 as decimal(18, 2)) Cat_B_Count, - cast(0 as decimal(18, 2)) Cat_B_Countf, cast(0 as decimal(18, 2)) Cat_B_CountWUH, cast(0 as decimal(18, 2)) Cat_B_CountBASF, + cast(0 as decimal(18, 2)) Cat_B_Countf,cast(0 as decimal(18, 2)) Cat_B_CountPercent, cast(0 as decimal(18, 2)) Cat_B_CountWUH, cast(0 as decimal(18, 2)) Cat_B_CountBASF, cast(0 as decimal(18, 2)) Cat_C_Count, - cast(0 as decimal(18, 2)) Cat_C_Countf, cast(0 as decimal(18, 2)) Cat_C_CountWUH, cast(0 as decimal(18, 2)) Cat_C_CountBASF, + cast(0 as decimal(18, 2)) Cat_C_Countf,cast(0 as decimal(18, 2)) Cat_C_CountPercent, cast(0 as decimal(18, 2)) Cat_C_CountWUH, cast(0 as decimal(18, 2)) Cat_C_CountBASF, cast(0 as decimal(18, 2)) Cat_D_Count, - cast(0 as decimal(18, 2)) Cat_D_Countf, cast(0 as decimal(18, 2)) Cat_D_CountWUH, cast(0 as decimal(18, 2)) Cat_D_CountBASF, - cast(0 as decimal(18, 2)) allCount, cast(0 as decimal(18, 2)) allfinshedCount, cast(0 as decimal(18, 2)) allWUH, cast(0 as decimal(18, 2)) allBASF + cast(0 as decimal(18, 2)) Cat_D_Countf,cast(0 as decimal(18, 2)) Cat_D_CountPercent, cast(0 as decimal(18, 2)) Cat_D_CountWUH, cast(0 as decimal(18, 2)) Cat_D_CountBASF, + cast(0 as decimal(18, 2)) allCount,cast(0 as decimal(18, 2)) allfinshedCount,cast(0 as decimal(18, 2)) allCountPercent,cast(0 as decimal(18, 2)) allWUH, cast(0 as decimal(18, 2)) allBASF INTO #PunchlistFromProgressTemp - from #AllPunchlistFromProgressTemp Group by System_No; "); + from #AllPunchlistFromProgressTemp Group by Sub_Sys_No; "); strSql.AppendLine(@" update a set - allCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No), - allfinshedCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No and (b.Required_Date is not null or b.Required_Date!='')), - allWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No and (b.Confirmed_Date is not null or b.Confirmed_Date!='')), - allBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No and (b.Verified_Date is not null or b.Verified_Date!='')), + allCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No), + allfinshedCount=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No and (b.Required_Date is not null or b.Required_Date!='')), + allWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No and (b.Confirmed_Date is not null or b.Confirmed_Date!='')), + allBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No and (b.Verified_Date is not null or b.Verified_Date!='')), - a.Cat_A_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a')), + a.Cat_A_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a')), - a.Cat_A_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Required_Date is not null or b.Required_Date!='')), - a.Cat_A_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')), - a.Cat_A_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Verified_Date is not null or b.Verified_Date!='')) + a.Cat_A_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Required_Date is not null or b.Required_Date!='')), + a.Cat_A_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')), + a.Cat_A_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='A' or isnull(b.Cat,'')='a') and (b.Verified_Date is not null or b.Verified_Date!='')) - ,a.Cat_B_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b')) , + ,a.Cat_B_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b')) , - a.Cat_B_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Required_Date is not null or b.Required_Date!='')), - a.Cat_B_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')), - a.Cat_B_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Verified_Date is not null or b.Verified_Date!='')) + a.Cat_B_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Required_Date is not null or b.Required_Date!='')), + a.Cat_B_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')), + a.Cat_B_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='B' or isnull(b.Cat,'')='b') and (b.Verified_Date is not null or b.Verified_Date!='')) - ,a.Cat_C_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c')) , + ,a.Cat_C_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c')) , - a.Cat_C_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Required_Date is not null or b.Required_Date!='')), - a.Cat_C_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')), - a.Cat_C_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Verified_Date is not null or b.Verified_Date!='')) + a.Cat_C_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Required_Date is not null or b.Required_Date!='')), + a.Cat_C_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')), + a.Cat_C_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='C' or isnull(b.Cat,'')='c') and (b.Verified_Date is not null or b.Verified_Date!='')) - ,a.Cat_D_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d')) , - a.Cat_D_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Required_Date is not null or b.Required_Date!='')), - a.Cat_D_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')), - a.Cat_D_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.System_No=b.System_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Verified_Date is not null or b.Verified_Date!='')) + ,a.Cat_D_Count=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d')) , + a.Cat_D_Countf=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Required_Date is not null or b.Required_Date!='')), + a.Cat_D_CountWUH=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Confirmed_Date is not null or b.Confirmed_Date!='')), + a.Cat_D_CountBASF=(select count(1) from #AllPunchlistFromProgressTemp b where a.Sub_Sys_No=b.Sub_Sys_No AND (isnull(b.Cat,'')='D' or isnull(b.Cat,'')='d') and (b.Verified_Date is not null or b.Verified_Date!='')) from #PunchlistFromProgressTemp a;"); - + strSql.AppendLine(@" update a set + a.Cat_A_CountPercent=(case ISNULL(a.Cat_A_Count,0) when 0 then 0 else CONVERT(DECIMAL(10,2),100*(ISNULL(a.Cat_A_Countf,0)*1.0/ISNULL(a.Cat_A_Count,0))) end ), + a.Cat_B_CountPercent=(case ISNULL(a.Cat_B_Count,0) when 0 then 0 else CONVERT(DECIMAL(10,2),100*(ISNULL(a.Cat_B_Countf,0)*1.0/ISNULL(a.Cat_B_Count,0))) end ), + a.Cat_C_CountPercent=(case ISNULL(a.Cat_C_Count,0) when 0 then 0 else CONVERT(DECIMAL(10,2),100*(ISNULL(a.Cat_C_Countf,0)*1.0/ISNULL(a.Cat_C_Count,0))) end ), + a.Cat_D_CountPercent=(case ISNULL(a.Cat_D_Count,0) when 0 then 0 else CONVERT(DECIMAL(10,2),100*(ISNULL(a.Cat_D_Countf,0)*1.0/ISNULL(a.Cat_D_Count,0))) end ), + a.allCountPercent=(case ISNULL(a.allCount,0) when 0 then 0 else CONVERT(DECIMAL(10,2),100*(ISNULL(a.allfinshedCount,0)*1.0/ISNULL(a.allCount,0))) end ) + from #PunchlistFromProgressTemp a; "); + strSql.AppendLine(" select * from #PunchlistFromProgressTemp "); List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); - strSql.AppendLine(" order by System_No "); + strSql.AppendLine(" order by Sub_Sys_No "); SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql.ToString(), parameter); Grid3.RecordCount = tb.Rows.Count; @@ -734,13 +742,14 @@ namespace FineUIPro.Web.Transfer.Chart Cat_C_Countf = 0, Cat_C_CountWUH = 0, Cat_C_CountBASF = 0, Cat_D_Countf = 0, Cat_D_CountWUH = 0, Cat_D_CountBASF = 0, allCount = 0, allfinshedCount = 0, allWUH = 0, allBASF = 0; + foreach (DataRow row in tb.Rows) { cat_A_Count += Convert.ToInt32(row["Cat_A_Count"]); cat_B_Count += Convert.ToInt32(row["Cat_B_Count"]); cat_C_Count += Convert.ToInt32(row["Cat_C_Count"]); cat_D_Count += Convert.ToInt32(row["Cat_D_Count"]); - // + Cat_A_Countf += Convert.ToInt32(row["Cat_A_Countf"]); Cat_A_CountWUH += Convert.ToInt32(row["Cat_A_CountWUH"]); Cat_A_CountBASF += Convert.ToInt32(row["Cat_A_CountBASF"]); @@ -763,36 +772,51 @@ namespace FineUIPro.Web.Transfer.Chart allBASF += Convert.ToInt32(row["allBASF"]); } + //var Cat_A_CountPercent = 100 * ((float)Cat_A_Countf / (float)cat_A_Count); + //var Cat_B_CountPercent = 100 * ((float)Cat_B_Countf / (float)cat_B_Count); + //var Cat_C_CountPercent = 100 * ((float)Cat_C_Countf / (float)cat_C_Count); + //var Cat_D_CountPercent = 100 * ((float)Cat_D_Countf / (float)cat_D_Count); + //var allCountPercent = 100 * ((float)allfinshedCount / (float)allCount); + + var Cat_A_CountPercent = Cat_A_Countf > 0 && cat_A_Count > 0 ? 100 * ((decimal)(Cat_A_Countf / cat_A_Count)) : 0; + var Cat_B_CountPercent = Cat_B_Countf > 0 && cat_B_Count > 0 ? 100 * ((decimal)(Cat_B_Countf / cat_B_Count)) : 0; + var Cat_C_CountPercent = Cat_C_Countf > 0 && cat_C_Count > 0 ? 100 * ((decimal)(Cat_C_Countf / cat_C_Count)) : 0; + var Cat_D_CountPercent = Cat_D_Countf > 0 && cat_D_Count > 0 ? 100 * ((decimal)(Cat_D_Countf / cat_D_Count)) : 0; + var allCountPercent = allfinshedCount > 0 && allCount > 0 ? 100 * ((decimal)(allfinshedCount / allCount)) : 0; JObject summary = new JObject(); - summary.Add("System_No", "合计"); + summary.Add("SubSysNo", "合计"); summary.Add("Cat_A_Count", cat_A_Count.ToString()); summary.Add("Cat_B_Count", cat_B_Count.ToString()); summary.Add("Cat_C_Count", cat_C_Count.ToString()); summary.Add("Cat_D_Count", cat_D_Count.ToString()); summary.Add("Cat_A_Countf", Cat_A_Countf.ToString()); + summary.Add("Cat_A_CountPercent", Cat_A_CountPercent.ToString("F2")); summary.Add("Cat_A_CountWUH", Cat_A_CountWUH.ToString()); summary.Add("Cat_A_CountBASF", Cat_A_CountBASF.ToString()); summary.Add("Cat_B_Countf", Cat_B_Countf.ToString()); + summary.Add("Cat_B_CountPercent", Cat_B_CountPercent.ToString("F2")); summary.Add("Cat_B_CountWUH", Cat_B_CountWUH.ToString()); summary.Add("Cat_B_CountBASF", Cat_B_CountBASF.ToString()); summary.Add("Cat_C_Countf", Cat_C_Countf.ToString()); + summary.Add("Cat_C_CountPercent", Cat_C_CountPercent.ToString("F2")); summary.Add("Cat_C_CountWUH", Cat_C_CountWUH.ToString()); summary.Add("Cat_C_CountBASF", Cat_C_CountBASF.ToString()); summary.Add("Cat_D_Countf", Cat_D_Countf.ToString()); + summary.Add("Cat_D_CountPercent", Cat_D_CountPercent.ToString("F2")); summary.Add("Cat_D_CountWUH", Cat_D_CountWUH.ToString()); summary.Add("Cat_D_CountBASF", Cat_D_CountBASF.ToString()); summary.Add("allCount", allCount.ToString()); summary.Add("allfinshedCount", allfinshedCount.ToString()); + summary.Add("allCountPercent", allCountPercent.ToString("F2")); summary.Add("allWUH", allWUH.ToString()); summary.Add("allBASF", allBASF.ToString()); - Grid3.SummaryData = summary; } diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.designer.cs index 242da888..d8aff7bd 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/Chart/PunchlistFromChartNew.aspx.designer.cs @@ -51,13 +51,13 @@ namespace FineUIPro.Web.Transfer.Chart protected global::FineUIPro.Form Form2; /// - /// ddlSystemNo 控件。 + /// ddlSubSysNo 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.DropDownList ddlSystemNo; + protected global::FineUIPro.DropDownList ddlSubSysNo; /// /// ddlDateType 控件。 diff --git a/SGGL/FineUIPro.Web/Transfer/Chart/Systemstatus.aspx b/SGGL/FineUIPro.Web/Transfer/Chart/Systemstatus.aspx index 9fdbb1db..4251ea7c 100644 --- a/SGGL/FineUIPro.Web/Transfer/Chart/Systemstatus.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Chart/Systemstatus.aspx @@ -12,149 +12,175 @@ - - + - + - - + + - - - + + + - - - + + - + - + - <%-- --%> - + - + FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" EnableLock="true" Locked="true" /> - + FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" EnableLock="true" Locked="true" /> - + FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" EnableLock="true" Locked="true" /> - - - + + + - + - - + - - - + + - - - + - - - + + - - - + - - - + + - - - + - - - + + - - - + - - - + + - - - + - - - + + - - - + - + <%-- + + + + + + + + --%> + + + + + + + + + + + + <%-- @@ -162,26 +188,34 @@ - - + --%> - - - - + + + + - + - + + + + - + <%-- @@ -192,7 +226,7 @@ - + --%> - + <%-- @@ -211,7 +245,7 @@ - + --%> - + FieldType="String" /> - + FieldType="String" /> - + FieldType="String" /> - + FieldType="String" /> - + + FieldType="String" /> - - + + - - + + @@ -257,19 +291,19 @@ - + - + - - - + + - + - \ No newline at end of file + diff --git a/SGGL/FineUIPro.Web/Transfer/LHCSystemList.aspx.cs b/SGGL/FineUIPro.Web/Transfer/LHCSystemList.aspx.cs index 7a8f8ea5..efb55a78 100644 --- a/SGGL/FineUIPro.Web/Transfer/LHCSystemList.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/LHCSystemList.aspx.cs @@ -32,8 +32,8 @@ namespace FineUIPro.Web.Transfer { if (!IsPostBack) { - Type= Request.Params["Type"]; - if (Type=="1") + Type = Request.Params["Type"]; + if (Type == "1") { var a = Grid1; Grid1.Columns[4].Hidden = false; @@ -41,7 +41,7 @@ namespace FineUIPro.Web.Transfer GetButtonPower(); BindGrid(); - btnNew.OnClientClick = Window1.GetShowReference("LHCSystemListEdit.aspx?Type="+Type) + "return false;"; + btnNew.OnClientClick = Window1.GetShowReference("LHCSystemListEdit.aspx?Type=" + Type) + "return false;"; } } @@ -59,8 +59,8 @@ namespace FineUIPro.Web.Transfer return; } string id = Grid1.SelectedRowID; - - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LHCSystemListEdit.aspx?Id={0}&Type={1}", id,Type, "编辑 - "))); + + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LHCSystemListEdit.aspx?Id={0}&Type={1}", id, Type, "编辑 - "))); } #endregion @@ -221,10 +221,52 @@ namespace FineUIPro.Web.Transfer /// protected void btnImport_Click(object sender, EventArgs e) { - PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("LHCSystemListDataIn.aspx?Type="+Type, "导入 - "))); + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("LHCSystemListDataIn.aspx?Type=" + Type, "导入 - "))); } #endregion + #region 导出 + + /// + /// 导出 + /// + /// + /// + protected void btnOut_Click(object sender, EventArgs e) + { + Response.ClearContent(); + string filename = Funs.GetNewFileName(); + Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode($"{(Type == "1" ? "非" : "")}工艺清单" + filename, System.Text.Encoding.UTF8) + ".xls"); + Response.ContentType = "application/excel"; + Response.ContentEncoding = System.Text.Encoding.UTF8; + this.Grid1.PageSize = 100000; + this.BindGrid(); + Response.Write(GetGridTableHtml(Grid1)); + Response.End(); + } + + #endregion + + #region 清空数据 + + /// + /// 清空数据 + /// + /// + /// + protected void btnClear_Click(object sender, EventArgs e) + { + var ProjectId = this.CurrUser.LoginProjectId; + if (!string.IsNullOrWhiteSpace(ProjectId)) + { + string strSql = $"delete from Transfer_LHCSystemList where ProjectId = '{ProjectId}' and Type = '{Type}';"; + BLL.SQLHelper.ExecutSql(strSql); + BindGrid(); + } + } + + #endregion + #region 获取按钮权限 /// /// 获取按钮权限 @@ -242,8 +284,9 @@ namespace FineUIPro.Web.Transfer { menuId = BLL.Const.Transfer_LHCSystemListMenuId0; } - else { - menuId= BLL.Const.Transfer_LHCSystemListMenuId1; + else + { + menuId = BLL.Const.Transfer_LHCSystemListMenuId1; } var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, menuId); @@ -252,6 +295,7 @@ namespace FineUIPro.Web.Transfer if (buttonList.Contains(BLL.Const.BtnDelete)) { this.btnMenuDel.Hidden = false; + this.btnClear.Hidden = false; } if (buttonList.Contains(BLL.Const.BtnSave)) { diff --git a/SGGL/FineUIPro.Web/Transfer/LHCSystemList.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/LHCSystemList.aspx.designer.cs index e1eface1..a8cc65f7 100644 --- a/SGGL/FineUIPro.Web/Transfer/LHCSystemList.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/LHCSystemList.aspx.designer.cs @@ -95,6 +95,15 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.Button btnNew; + /// + /// btnClear 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClear; + /// /// btnImport 控件。 /// @@ -104,6 +113,15 @@ namespace FineUIPro.Web.Transfer /// protected global::FineUIPro.Button btnImport; + /// + /// btnOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOut; + /// /// ToolbarText1 控件。 /// diff --git a/SGGL/FineUIPro.Web/Transfer/Piping.aspx b/SGGL/FineUIPro.Web/Transfer/Piping.aspx index 260ce638..0bcbfefc 100644 --- a/SGGL/FineUIPro.Web/Transfer/Piping.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Piping.aspx @@ -12,64 +12,68 @@ - + - + - + - + <%----%> + - - - - + + + + - + + + - - + + + - - + + - + + HeaderTextAlign="Center" MinWidth="230px"> - + - - + + - + + HeaderTextAlign="Center" Width="90px"> - + HeaderTextAlign="Center" MinWidth="180px"> - + <%-- @@ -96,7 +100,7 @@ --%> - + <%-- @@ -110,9 +114,9 @@ HeaderTextAlign="Center" Width="120px"> - + --%> - + <%-- @@ -126,17 +130,53 @@ HeaderTextAlign="Center" Width="150px"> + --%> + + + + + + + + + + - + + + + + + + + + + + + + + + + + - - + + - - + + @@ -146,13 +186,13 @@ - + - + - - + + - + diff --git a/SGGL/FineUIPro.Web/ZHGL/Environmental/EnergyReport.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/Environmental/EnergyReport.aspx.cs index abad4c6f..a71cd23c 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Environmental/EnergyReport.aspx.cs +++ b/SGGL/FineUIPro.Web/ZHGL/Environmental/EnergyReport.aspx.cs @@ -86,35 +86,35 @@ namespace FineUIPro.Web.ZHGL.Environmental var businessCategorys = EnergyreportItemService.GetItems("Template"); //之前月度合计值集合 List reportItems = BLL.EnergyreportItemService.GetItems(report.EnergyReportId); - List newItemList = new List(); - foreach (var item in reportItems) - { - Model.Environmental_EnergyReportItem newItem = new Model.Environmental_EnergyReportItem(); - newItem.EnergyReportItemId = item.EnergyReportItemId; - newItem.EnergyReportId = item.EnergyReportId; - newItem.SortIndex = item.SortIndex; - newItem.BusinessCategory = item.BusinessCategory; - newItem.Throughput_BasePeriod = item.Throughput_BasePeriod; - newItem.Throughput_LastPeriod = item.Throughput_LastPeriod; - newItem.Throughput_ThisPeriod = item.Throughput_ThisPeriod; - newItem.Throughput_UnitOfMeasurement = item.Throughput_UnitOfMeasurement; - newItem.Yield_BasePeriod = item.Yield_BasePeriod; - newItem.Yield_LastPeriod = item.Yield_LastPeriod; - newItem.Yield_ThisPeriod = item.Yield_ThisPeriod; - newItem.Yield_UnitOfMeasurement = item.Yield_UnitOfMeasurement; - newItem.OutputValue_BasePeriod = item.OutputValue_BasePeriod; - newItem.OutputValue_LastYear = item.OutputValue_LastYear; - newItem.OutputValue_ThisYear = item.OutputValue_ThisYear; - newItem.OperationScale_BasePeriod = item.OperationScale_BasePeriod; - newItem.OperationScale_LastYear = item.OperationScale_LastYear; - newItem.OperationScale_ThisYear = item.OperationScale_ThisYear; - newItem.OperationScale_UnitOfMeasurement = item.OperationScale_UnitOfMeasurement; - newItem.ServiceOperatingIncome_BasePeriod = item.ServiceOperatingIncome_BasePeriod; - newItem.ServiceOperatingIncome_LastYear = item.ServiceOperatingIncome_LastYear; - newItem.ServiceOperatingIncome_ThisYear = item.ServiceOperatingIncome_ThisYear; - newItemList.Add(item); - } - Grid1.DataSource = newItemList; + //List newItemList = new List(); + //foreach (var item in reportItems) + //{ + // Model.Environmental_EnergyReportItem newItem = new Model.Environmental_EnergyReportItem(); + // newItem.EnergyReportItemId = item.EnergyReportItemId; + // newItem.EnergyReportId = item.EnergyReportId; + // newItem.SortIndex = item.SortIndex; + // newItem.BusinessCategory = item.BusinessCategory; + // newItem.Throughput_BasePeriod = item.Throughput_BasePeriod; + // newItem.Throughput_LastPeriod = item.Throughput_LastPeriod; + // newItem.Throughput_ThisPeriod = item.Throughput_ThisPeriod; + // newItem.Throughput_UnitOfMeasurement = item.Throughput_UnitOfMeasurement; + // newItem.Yield_BasePeriod = item.Yield_BasePeriod; + // newItem.Yield_LastPeriod = item.Yield_LastPeriod; + // newItem.Yield_ThisPeriod = item.Yield_ThisPeriod; + // newItem.Yield_UnitOfMeasurement = item.Yield_UnitOfMeasurement; + // newItem.OutputValue_BasePeriod = item.OutputValue_BasePeriod; + // newItem.OutputValue_LastYear = item.OutputValue_LastYear; + // newItem.OutputValue_ThisYear = item.OutputValue_ThisYear; + // newItem.OperationScale_BasePeriod = item.OperationScale_BasePeriod; + // newItem.OperationScale_LastYear = item.OperationScale_LastYear; + // newItem.OperationScale_ThisYear = item.OperationScale_ThisYear; + // newItem.OperationScale_UnitOfMeasurement = item.OperationScale_UnitOfMeasurement; + // newItem.ServiceOperatingIncome_BasePeriod = item.ServiceOperatingIncome_BasePeriod; + // newItem.ServiceOperatingIncome_LastYear = item.ServiceOperatingIncome_LastYear; + // newItem.ServiceOperatingIncome_ThisYear = item.ServiceOperatingIncome_ThisYear; + // newItemList.Add(item); + //} + Grid1.DataSource = reportItems; Grid1.DataBind(); } else diff --git a/SGGL/FineUIPro.Web/ZHGL/Environmental/EnergyReportSave.aspx b/SGGL/FineUIPro.Web/ZHGL/Environmental/EnergyReportSave.aspx index 7c96db24..748535a4 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Environmental/EnergyReportSave.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Environmental/EnergyReportSave.aspx @@ -48,8 +48,9 @@ + EnableHeaderMenu="false" Height="700px"> + @@ -191,6 +192,12 @@ + + + + @@ -209,7 +216,7 @@ ValidateForms="SimpleForm1" OnClick="btnCopy_Click" Hidden="true"> --%> - /// /// - protected decimal CountAqrgs(DateTime? d1 = null, DateTime? d2 = null) + protected decimal CountAqrgs(DateTime? d1 = null, DateTime? d2 = null,string[] pids =null) { decimal cout1 = 0; @@ -171,7 +288,12 @@ namespace FineUIPro.Web.common var getAllPersonInOutList = from x in Funs.DB.SitePerson_PersonInOutNumber select x; - if (getAllPersonInOutList.Count() > 0) + if (pids != null) { + getAllPersonInOutList = from x in Funs.DB.SitePerson_PersonInOutNumber + where pids.Contains(x.ProjectId) + select x; + } + if (getAllPersonInOutList.Count() > 0) { if (datetime1.HasValue) { @@ -196,6 +318,18 @@ namespace FineUIPro.Web.common where y.ProjectState == Const.ProjectState_1 select x; + if (pids!=null) + { + getD1 = from x in Funs.DB.Accident_AccidentHandle + join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId + where pids.Contains(x.ProjectId) + select x; + getD2 = from x in Funs.DB.Accident_AccidentReport + join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId + where pids.Contains(x.ProjectId) + select x; + } + if (datetime1.HasValue) { getD1 = getD1.Where(x => x.AccidentDate >= datetime1); @@ -542,10 +676,10 @@ namespace FineUIPro.Web.common /// /// /// - protected int Count3() + protected int Count3(string[] pids) { int cout1 = 0; - cout1 = Funs.DB.Solution_LargerHazard.Where(x => x.States == Const.State_2).Count(); + cout1 = Funs.DB.Solution_LargerHazard.Where(x => x.States == Const.State_2 && pids.Contains(x.ProjectId)).Count(); return cout1; } #endregion @@ -561,20 +695,48 @@ namespace FineUIPro.Web.common protected string zgzglDataValue; protected void getZlwt() { - zlallNumber = (from x in Funs.DB.Check_CheckControl - where x.CheckDate <= DateTime.Now - select x).Count().ToString(); - var num2 = (from x in Funs.DB.Check_CheckControl - where x.CheckDate <= DateTime.Now && x.State == "7" - select x).Count(); - zlfinishNumber = num2.ToString(); - var num3 = (from x in Funs.DB.Check_CheckControl - where x.CheckDate <= DateTime.Now && x.State != "7" - select x).Count(); + if (pids == null) + { + zlallNumber = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now + select x).Count().ToString(); - var zgl = String.Format("{0:N2}", 100.0 * num2 / (num2 + num3)); - zlzgl = zgl.ToString(); - zgzglDataValue = (100 - (100.0 * num2 / (num2 + num3))).ToString(); + var num2 = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.State == "7" + select x).Count(); + + zlfinishNumber = num2.ToString(); + var num3 = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.State != "7" + select x).Count(); + + var zgl = String.Format("{0:N2}", 100.0 * num2 / (num2 + num3)); + + zlzgl = zgl.ToString(); + + zgzglDataValue = (100 - (100.0 * num2 / (num2 + num3))).ToString(); + } + else { + zlallNumber = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && pids.Contains(x.ProjectId) + select x).Count().ToString(); + + var num2 = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.State == "7" && pids.Contains(x.ProjectId) + select x).Count(); + + zlfinishNumber = num2.ToString(); + var num3 = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.State != "7" && pids.Contains(x.ProjectId) + select x).Count(); + + var zgl = String.Format("{0:N2}", 100.0 * num2 / (num2 + num3)); + + zlzgl = zgl.ToString(); + + zgzglDataValue = (100 - (100.0 * num2 / (num2 + num3))).ToString(); + } + } #endregion @@ -586,19 +748,39 @@ namespace FineUIPro.Web.common protected string zggjzglDataValue; protected void getZlgj() { - var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement - select x).Count(); - //Check_JointCheck - zlgjallNumber = num1.ToString(); + if (pids == null) + { + var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement + select x).Count(); + //Check_JointCheck + zlgjallNumber = num1.ToString(); - var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement - where x.IsOnceQualified == true - select x).Count(); - zlgjfinishNumber = num2.ToString(); + var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.IsOnceQualified == true + select x).Count(); + zlgjfinishNumber = num2.ToString(); - var zgl = String.Format("{0:N2}", 100.0 * num2 / num1); - zlgjzgl = zgl.ToString(); - zggjzglDataValue = (100 - (100.0 * num2 / num1)).ToString(); + var zgl = String.Format("{0:N2}", 100.0 * num2 / num1); + zlgjzgl = zgl.ToString(); + zggjzglDataValue = (100 - (100.0 * num2 / num1)).ToString(); + } + else { + var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement + where pids.Contains(x.ProjectId) + select x).Count(); + //Check_JointCheck + zlgjallNumber = num1.ToString(); + + var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.IsOnceQualified == true && pids.Contains(x.ProjectId) + select x).Count(); + zlgjfinishNumber = num2.ToString(); + + var zgl = String.Format("{0:N2}", 100.0 * num2 / num1); + zlgjzgl = zgl.ToString(); + zggjzglDataValue = (100 - (100.0 * num2 / num1)).ToString(); + } + } #endregion @@ -617,6 +799,10 @@ namespace FineUIPro.Web.common double result = 0; Model.SGGLDB db = Funs.DB; var ndtLists = from x in db.ProcessControl_NondestructiveTest_New where x.ProfessionalName == "工艺管道" select x; + if (pids!=null) + { + ndtLists = from x in db.ProcessControl_NondestructiveTest_New where x.ProfessionalName == "工艺管道" && pids.Contains(x.ProjectId) select x; + } decimal a = 0, b = 0; if (ndtLists.Count() > 0) { @@ -673,30 +859,61 @@ namespace FineUIPro.Web.common protected string gjsxZdl = "0"; protected void getGjsx() { - //Check_JointCheck - var znum = (from x in Funs.DB.GJSX - select x).Count(); - divGjsxzj.InnerHtml = znum.ToString(); + if (pids == null) + { + //Check_JointCheck + var znum = (from x in Funs.DB.GJSX + select x).Count(); + divGjsxzj.InnerHtml = znum.ToString(); - //到期应完成 - var dqnum = (from x in Funs.DB.GJSX - where x.CompleteDate <= DateTime.Now - select x).Count().ToString(); - divGjsxdq.InnerHtml = dqnum; + //到期应完成 + var dqnum = (from x in Funs.DB.GJSX + where x.CompleteDate <= DateTime.Now + select x).Count().ToString(); + divGjsxdq.InnerHtml = dqnum; - //未准点完成 - var wzdnum = (from x in Funs.DB.GJSX - where x.CompleteDate <= DateTime.Now - && x.State != "0" - select x).Count().ToString(); - divGjsxwzd.InnerHtml = wzdnum; + //未准点完成 + var wzdnum = (from x in Funs.DB.GJSX + where x.CompleteDate <= DateTime.Now + && x.State != "0" + select x).Count().ToString(); + divGjsxwzd.InnerHtml = wzdnum; - //准点率,已完成/总数*100 - var ywcnum = (from x in Funs.DB.GJSX - where x.CompleteDate <= DateTime.Now - && x.State == "0" - select x).Count(); - gjsxZdl = Math.Round((100.0 * ywcnum / znum), 2).ToString(); + //准点率,已完成/总数*100 + var ywcnum = (from x in Funs.DB.GJSX + where x.CompleteDate <= DateTime.Now + && x.State == "0" + select x).Count(); + gjsxZdl = Math.Round((100.0 * ywcnum / znum), 2).ToString(); + } + else { + //Check_JointCheck + var znum = (from x in Funs.DB.GJSX + where pids.Contains(x.ProjectId) + select x).Count(); + divGjsxzj.InnerHtml = znum.ToString(); + + //到期应完成 + var dqnum = (from x in Funs.DB.GJSX + where x.CompleteDate <= DateTime.Now && pids.Contains(x.ProjectId) + select x).Count().ToString(); + divGjsxdq.InnerHtml = dqnum; + + //未准点完成 + var wzdnum = (from x in Funs.DB.GJSX + where x.CompleteDate <= DateTime.Now + && x.State != "0" && pids.Contains(x.ProjectId) + select x).Count().ToString(); + divGjsxwzd.InnerHtml = wzdnum; + + //准点率,已完成/总数*100 + var ywcnum = (from x in Funs.DB.GJSX + where x.CompleteDate <= DateTime.Now + && x.State == "0" && pids.Contains(x.ProjectId) + select x).Count(); + gjsxZdl = Math.Round((100.0 * ywcnum / znum), 2).ToString(); + } + } #endregion @@ -706,7 +923,14 @@ namespace FineUIPro.Web.common { int AllCount = 0; int MCount = 0; - var getallin = APIPageDataService.getPersonNumByCompany(DateTime.Now); + var getallin = new List(); + if (pids == null) + { + getallin = APIPageDataService.getPersonNumByCompany(DateTime.Now); + } + else { + getallin = APIPageDataService.getPersonNumByCompany(DateTime.Now,pids); + } AllCount = getallin.Count(); if (AllCount > 0) { @@ -727,7 +951,16 @@ namespace FineUIPro.Web.common protected string ProjectPersonMc; private void getProjectSitePerson() { - var list = Funs.DB.Base_Project.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null)).ToList(); + var list = new List(); + if (pids == null) + { + list= Funs.DB.Base_Project.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null)).ToList(); + } + else { + list = Funs.DB.Base_Project.Where(x => pids.Contains(x.ProjectId)).ToList(); + } + + foreach (var item in list) { ProjectPersonMc += "'" + item.ShortName + "',"; @@ -743,14 +976,25 @@ namespace FineUIPro.Web.common protected string ProjectMc; protected void getJd() { - var list = Funs.DB.Base_Project.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null) && x.Progress != null).ToList(); - foreach (var item in list) + var list = new List(); + if (pids == null) { - ProjectJd += "'" + item.Progress.Value.ToString("0.##") + "',"; - ProjectMc += "'" + item.ShortName + "',"; + list = Funs.DB.Base_Project.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null) && x.Progress != null).ToList(); } - ProjectJd = ProjectJd.TrimEnd(','); - ProjectMc = ProjectMc.TrimEnd(','); + else { + list = Funs.DB.Base_Project.Where(x => pids.Contains(x.ProjectId) && x.Progress != null).ToList(); + } + if (list.Count>0) + { + foreach (var item in list) + { + ProjectJd += "'" + item.Progress.Value.ToString("0.##") + "',"; + ProjectMc += "'" + item.ShortName + "',"; + } + ProjectJd = ProjectJd.TrimEnd(','); + ProjectMc = ProjectMc.TrimEnd(','); + } + } #endregion @@ -767,22 +1011,42 @@ namespace FineUIPro.Web.common /// 获取隐患整改闭环项 ///
/// - public static int GetGeneralClosedNum() + public int GetGeneralClosedNum() { - int result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + int result = 0; + if (pids==null) + { + result = (from x in Funs.DB.HSSE_Hazard_HazardRegister where x.States == "3" select x).Count(); + } + else { + result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.States == "3" && pids.Contains(x.ProjectId) + select x).Count(); + } + return result; } /// /// 获取隐患未整改完成项 /// /// - public static int GetGeneralNotClosedNum() + public int GetGeneralNotClosedNum() { - int result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + int result = 0; + if (pids == null) + { + result = (from x in Funs.DB.HSSE_Hazard_HazardRegister where x.States != "3" select x).Count(); + } + else { + result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.States != "3" && pids.Contains(x.ProjectId) + select x).Count(); + } + return result; } #endregion @@ -797,7 +1061,15 @@ namespace FineUIPro.Web.common { //项目 - var list = Funs.DB.Base_Project.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null)).ToList(); + var list = new List(); + if (pids == null) + { + list = Funs.DB.Base_Project.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null) && x.Progress != null).ToList(); + } + else + { + list = Funs.DB.Base_Project.Where(x => pids.Contains(x.ProjectId) && x.Progress != null).ToList(); + } var PipelinList = Funs.DB.CLGL_PipelineMaterialSumList.Where(x => x.Type == "M"); var SbclList = Funs.DB.CLGL_ContractListSum.Where(x => x.C1 == "设备"); foreach (var item in list) @@ -920,13 +1192,25 @@ namespace FineUIPro.Web.common /// 获取未遂事件数 ///
/// - public static int GetNearMissNum() + private int GetNearMissNum() { - var result = (from x in Funs.DB.Accident_AccidentPersonRecord - join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId - where x.IsAttempt == "1" && x.CompileDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Accident_AccidentPersonRecord + join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId + where x.IsAttempt == "1" && x.CompileDate > Const.DtmarkTime + select x).Count(); + return result; + } + else { + var result = (from x in Funs.DB.Accident_AccidentPersonRecord + join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId + where x.IsAttempt == "1" && x.CompileDate > Const.DtmarkTime + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/main_new0.aspx b/SGGL/FineUIPro.Web/common/main_new0.aspx index 3cf81a61..18da8bca 100644 --- a/SGGL/FineUIPro.Web/common/main_new0.aspx +++ b/SGGL/FineUIPro.Web/common/main_new0.aspx @@ -217,14 +217,14 @@ -
+
隐患排查治理数据
一般隐患 重大隐患
-
+
diff --git a/SGGL/FineUIPro.Web/common/main_new0.aspx.cs b/SGGL/FineUIPro.Web/common/main_new0.aspx.cs index d05b42a8..7758e0f3 100644 --- a/SGGL/FineUIPro.Web/common/main_new0.aspx.cs +++ b/SGGL/FineUIPro.Web/common/main_new0.aspx.cs @@ -16,6 +16,10 @@ namespace FineUIPro.Web.common { public static List LargerHazard = new List(); + /// + /// 公司级项目筛选 + /// + public string[] pids { get; set; } //页面加载 protected void Page_Load(object sender, EventArgs e) { @@ -24,24 +28,33 @@ namespace FineUIPro.Web.common //安监人员数据 //企业总部总监人数 Model.SGGLDB db = Funs.DB; + if (!string.IsNullOrEmpty(CurrUser.CompanyProjectId)) + { + pids = CurrUser.CompanyProjectId.Split(','); + } + else + { + //加载所有在建项目的数据 + var pidArray = Funs.DB.Base_Project.Where(x => x.ProjectState == "1").Select(x => x.ProjectId).ToArray(); + if (pidArray.Length > 0) + { + pids = pidArray; + } + } + var unitId = string.Empty; var thisUnit = CommonService.GetIsThisUnit(); if (thisUnit != null) unitId = thisUnit.UnitId; div_qyzbzjrs.InnerHtml = (from x in db.Person_CompanyBranchPerson where x.IsOnJob == true && x.WorkPostId == Const.WorkPost_HSSEDirector && x.UnitId == unitId select x).Count().ToString(); - div_qyzbrs1.InnerHtml = (from x in db.SitePerson_Person - where x.IsUsed == true && x.WorkPostId == Const.WorkPost_HSSEDirector - select x).Count().ToString(); + //企业总部专职人数 div_qyzbzzrs.InnerHtml = (from x in db.Person_CompanyBranchPerson join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId where x.IsOnJob == true && y.IsHsse == true && x.UnitId == unitId select x).Count().ToString(); - div_qyzbzzrs1.InnerHtml = (from x in db.SitePerson_Person - join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId - where x.IsUsed == true && y.IsHsse == true - select x).Count().ToString(); + //分支机构总监人数 div_fzjgzjrs.InnerHtml = (from x in db.Person_CompanyBranchPerson where x.IsOnJob == true && x.WorkPostId == Const.WorkPost_HSSEDirector && x.UnitId != unitId @@ -51,25 +64,29 @@ namespace FineUIPro.Web.common join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId where x.IsOnJob == true && y.IsHsse == true && x.UnitId != unitId select x).Count().ToString(); - //企业总部参建人数 - div_qyzbcjrs.InnerHtml = (from x in db.SitePerson_Person where x.IsUsed == true select x).Count().ToString(); + + if (pids == null) + { + //项目总监 + div_xmrs.InnerHtml = (from x in db.SitePerson_Person + where x.WorkPostId == Const.WorkPost_HSSEDirector && x.IsUsed == true + select x).Count().ToString(); + div_qyzbrs1.InnerHtml = div_xmrs.InnerHtml; + //项目专职 + div_xmzzrs.InnerHtml = (from x in db.SitePerson_Person + join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId + where y.IsHsse == true && x.IsUsed == true + select x).Count().ToString(); + div_qyzbzzrs1.InnerHtml = div_xmzzrs.InnerHtml; + //项目参建 + div_xmcjrs.InnerHtml = (from x in db.SitePerson_Person + where x.IsUsed == true + select x).Count().ToString(); - //项目总监 - div_xmrs.InnerHtml = (from x in db.SitePerson_Person - where x.WorkPostId == Const.WorkPost_HSSEDirector && x.IsUsed == true - select x).Count().ToString(); - //项目专职 - div_xmzzrs.InnerHtml = (from x in db.SitePerson_Person - join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId - where y.IsHsse == true && x.IsUsed == true - select x).Count().ToString(); - //项目参建 - div_xmcjrs.InnerHtml = (from x in db.SitePerson_Person - where x.IsUsed == true - select x).Count().ToString(); - - //注安师 - var ZasSql = @"SELECT Person.ProjectId,Project.ProjectCode,Project.ProjectName,Unit.UnitId,Unit.UnitId,Unit.UnitName, + //企业总部参建人数 + div_qyzbcjrs.InnerHtml = div_xmcjrs.InnerHtml; + //注安师 + var ZasSql = @"SELECT Person.ProjectId,Project.ProjectCode,Project.ProjectName,Unit.UnitId,Unit.UnitId,Unit.UnitName, Person.PersonName,Person.PersonId,Person.IdentityCard,Person.Sex,Person.WorkPostId,WorkPost.WorkPostName,Person.Telephone ,(CASE WHEN Sex=2 THEN '女' WHEN Sex=1 THEN '男' ELSE '' END) AS SexStr FROM SitePerson_Person AS Person @@ -79,11 +96,56 @@ namespace FineUIPro.Web.common WHERE IsUsed=1 AND InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) AND (SELECT COUNT(*) FROM QualityAudit_PersonQuality AS Q LEFT JOIN Base_Certificate AS Cer ON Q.CertificateId =Cer.CertificateId WHERE Q.PersonId = Person.PersonId AND IsRegisterHSSE =1) > 0"; - List listStr = new List(); - SqlParameter[] parameter = listStr.ToArray(); - DataTable tb = SQLHelper.GetDataTableRunText(ZasSql, parameter); + List listStr = new List(); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(ZasSql, parameter); - div_zasrs.InnerHtml = tb.Rows.Count.ToString(); + div_zasrs.InnerHtml = tb.Rows.Count.ToString(); + } + else { + //项目总监 + div_xmrs.InnerHtml = (from x in db.SitePerson_Person + where x.WorkPostId == Const.WorkPost_HSSEDirector && x.IsUsed == true + && pids.Contains(x.ProjectId) + select x).Count().ToString(); + //项目专职 + div_xmzzrs.InnerHtml = (from x in db.SitePerson_Person + join y in db.Base_WorkPost on x.WorkPostId equals y.WorkPostId + where y.IsHsse == true && x.IsUsed == true + && pids.Contains(x.ProjectId) + select x).Count().ToString(); + //项目参建 + div_xmcjrs.InnerHtml = (from x in db.SitePerson_Person + where x.IsUsed == true + && pids.Contains(x.ProjectId) + select x).Count().ToString(); + + string s1 = string.Format("'{0}'", String.Join(",", pids).Replace(",", "','")); + + //注安师 + var ZasSql = @"SELECT Person.ProjectId,Project.ProjectCode,Project.ProjectName,Unit.UnitId,Unit.UnitId,Unit.UnitName, + Person.PersonName,Person.PersonId,Person.IdentityCard,Person.Sex,Person.WorkPostId,WorkPost.WorkPostName,Person.Telephone + ,(CASE WHEN Sex=2 THEN '女' WHEN Sex=1 THEN '男' ELSE '' END) AS SexStr + FROM SitePerson_Person AS Person + LEFT JOIN Base_Project AS Project ON Person.ProjectId =Project.ProjectId + LEFT JOIN Base_Unit AS Unit ON Person.UnitId =Unit.UnitId + LEFT JOIN Base_WorkPost AS WorkPost ON Person.WorkPostId =WorkPost.WorkPostId + WHERE IsUsed=1 AND InTime <=GETDATE() AND (OutTime IS NULL OR OutTime > GETDATE()) + AND (SELECT COUNT(*) FROM QualityAudit_PersonQuality AS Q LEFT JOIN Base_Certificate AS Cer ON Q.CertificateId + =Cer.CertificateId WHERE Q.PersonId = Person.PersonId AND IsRegisterHSSE =1) > 0 and Person.ProjectId in (" + s1 + ")"; + List listStr = new List(); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(ZasSql, parameter); + + div_zasrs.InnerHtml = tb.Rows.Count.ToString(); + + div_qyzbrs1.InnerHtml = div_xmrs.InnerHtml; + div_qyzbzzrs1.InnerHtml = div_xmzzrs.InnerHtml; + div_qyzbcjrs.InnerHtml = div_xmcjrs.InnerHtml; + } + + + //项目信息 getProjectInfo(); @@ -107,16 +169,32 @@ namespace FineUIPro.Web.common protected void getProjectInfo() { Model.SGGLDB db = Funs.DB; - var list = db.Base_Project; - //在建项目 - div_zjxm.InnerHtml = list.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null)).Count().ToString(); - //停工项目 - div_tgxm.InnerHtml = list.Where(x => (x.ProjectState == Const.ProjectState_2 || x.ProjectState == null)).Count().ToString(); - //在施危大工程 - div_wdxm.InnerHtml = db.Solution_LargerHazard.Where(x => x.States == Const.State_2).Count().ToString(); - //安全工时数 - //int wHours = Funs.DB.SitePerson_PersonInOutNumber.Max(x => x.WorkHours) ?? 0; - this.div_safeworktime.InnerHtml = Count3().ToString().Split('.')[0]; + if (pids == null) + { + var list = db.Base_Project; + //在建项目 + div_zjxm.InnerHtml = list.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null)).Count().ToString(); + //停工项目 + div_tgxm.InnerHtml = list.Where(x => (x.ProjectState == Const.ProjectState_2 || x.ProjectState == null)).Count().ToString(); + //在施危大工程 + div_wdxm.InnerHtml = db.Solution_LargerHazard.Where(x => x.States == Const.State_2).Count().ToString(); + //安全工时数 + //int wHours = Funs.DB.SitePerson_PersonInOutNumber.Max(x => x.WorkHours) ?? 0; + this.div_safeworktime.InnerHtml = Count3().ToString().Split('.')[0]; + } + else { + var list = db.Base_Project.Where(x=>pids.Contains(x.ProjectId)); + //在建项目 + div_zjxm.InnerHtml = list.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null)).Count().ToString(); + //停工项目 + div_tgxm.InnerHtml = list.Where(x => (x.ProjectState == Const.ProjectState_2 || x.ProjectState == null)).Count().ToString(); + //在施危大工程 + div_wdxm.InnerHtml = db.Solution_LargerHazard.Where(x => x.States == Const.State_2 && pids.Contains(x.ProjectId)).Count().ToString(); + //安全工时数 + //int wHours = Funs.DB.SitePerson_PersonInOutNumber.Max(x => x.WorkHours) ?? 0; + this.div_safeworktime.InnerHtml = Count3().ToString().Split('.')[0]; + } + } #endregion #region 安全人工时穿透数据 @@ -129,36 +207,73 @@ namespace FineUIPro.Web.common { Model.SGGLDB db = Funs.DB; decimal cout1 = 0; - var getAllPersonInOutList = from x in db.SitePerson_PersonInOutNumber - select x; - if (getAllPersonInOutList.Count() > 0) + if (pids == null) { + var getAllPersonInOutList = from x in db.SitePerson_PersonInOutNumber + select x; if (getAllPersonInOutList.Count() > 0) { - cout1 = getAllPersonInOutList.Sum(x => (long)x.WorkHours); + if (getAllPersonInOutList.Count() > 0) + { + cout1 = getAllPersonInOutList.Sum(x => (long)x.WorkHours); + } + } + + var getD1 = from x in db.Accident_AccidentHandle + join y in db.Base_Project on x.ProjectId equals y.ProjectId + where y.ProjectState == Const.ProjectState_1 + select x; + var getD2 = from x in db.Accident_AccidentReport + join y in db.Base_Project on x.ProjectId equals y.ProjectId + where y.ProjectState == Const.ProjectState_1 + select x; + + + + + if (getD1.Count() > 0) + { + cout1 = cout1 - getD1.Sum(x => x.WorkHoursLoss ?? 0); + } + if (getD2.Count() > 0) + { + cout1 = cout1 - getD2.Sum(x => x.WorkingHoursLoss ?? 0); } } + else { + var getAllPersonInOutList = from x in db.SitePerson_PersonInOutNumber + where pids.Contains(x.ProjectId) + select x; + if (getAllPersonInOutList.Count() > 0) + { + if (getAllPersonInOutList.Count() > 0) + { + cout1 = getAllPersonInOutList.Sum(x => (long)x.WorkHours); + } + } - var getD1 = from x in db.Accident_AccidentHandle - join y in db.Base_Project on x.ProjectId equals y.ProjectId - where y.ProjectState == Const.ProjectState_1 - select x; - var getD2 = from x in db.Accident_AccidentReport - join y in db.Base_Project on x.ProjectId equals y.ProjectId - where y.ProjectState == Const.ProjectState_1 - select x; + var getD1 = from x in db.Accident_AccidentHandle + join y in db.Base_Project on x.ProjectId equals y.ProjectId + where pids.Contains(x.ProjectId) + select x; + var getD2 = from x in db.Accident_AccidentReport + join y in db.Base_Project on x.ProjectId equals y.ProjectId + where pids.Contains(x.ProjectId) + select x; - if (getD1.Count() > 0) - { - cout1 = cout1 - getD1.Sum(x => x.WorkHoursLoss ?? 0); - } - if (getD2.Count() > 0) - { - cout1 = cout1 - getD2.Sum(x => x.WorkingHoursLoss ?? 0); + if (getD1.Count() > 0) + { + cout1 = cout1 - getD1.Sum(x => x.WorkHoursLoss ?? 0); + } + if (getD2.Count() > 0) + { + cout1 = cout1 - getD2.Sum(x => x.WorkingHoursLoss ?? 0); + } } + return cout1; } @@ -178,14 +293,20 @@ namespace FineUIPro.Web.common protected void getProjectYh() { Model.SGGLDB db = Funs.DB; - var list = db.Base_Project.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null)).ToList(); + var list = new List(); + if (pids != null) + { + list = db.Base_Project.Where(x => pids.Contains(x.ProjectId)).ToList(); + } + else { + list = db.Base_Project.Where(x => (x.ProjectState == Const.ProjectState_1 || x.ProjectState == null)).ToList(); + } var hazardRegisters = from x in db.HSSE_Hazard_HazardRegister select x; if (list.Count > 0) { foreach (var item in list) { yhXmmc += "'" + item.ShortName + "',"; - //一般 allYhYb += "'" + ((from x in hazardRegisters @@ -234,13 +355,30 @@ namespace FineUIPro.Web.common div_qyawh.InnerHtml = HSSEData_HSSEService.GetSafetyCommitteeMeetingNum().ToString(); //企业专题 div_qyzt.InnerHtml = HSSEData_HSSEService.GetEnterpriseTopicsMeetingNum().ToString(); - //项目安全领导小组 - div_xmaqldxz.InnerHtml = Funs.DB.Meeting_SafetyLeaderGroupMeeting.Where(x => x.CompileDate > Const.DtmarkTime).Count().ToString(); - //项目安全例会 - DateTime date = DateTime.Now; - div_xmalh.InnerHtml = ((from x in Funs.DB.Meeting_WeekMeeting where x.WeekMeetingDate.Value.Year == date.Year && x.WeekMeetingDate.Value.Month == date.Month && x.WeekMeetingDate.Value.Day == date.Day select x).Count() - + (from x in Funs.DB.Meeting_MonthMeeting where x.MonthMeetingDate.Value.Year == date.Year && x.MonthMeetingDate.Value.Month == date.Month && x.MonthMeetingDate.Value.Day == date.Day select x).Count()).ToString(); + if (pids == null) + { + //项目安全领导小组 + div_xmaqldxz.InnerHtml = Funs.DB.Meeting_SafetyLeaderGroupMeeting.Where(x => x.CompileDate > Const.DtmarkTime).Count().ToString(); + //项目安全例会 + DateTime date = DateTime.Now; + div_xmalh.InnerHtml = ((from x in Funs.DB.Meeting_WeekMeeting where x.WeekMeetingDate.Value.Year == date.Year && x.WeekMeetingDate.Value.Month == date.Month && x.WeekMeetingDate.Value.Day == date.Day select x).Count() + + (from x in Funs.DB.Meeting_MonthMeeting where x.MonthMeetingDate.Value.Year == date.Year && x.MonthMeetingDate.Value.Month == date.Month && x.MonthMeetingDate.Value.Day == date.Day select x).Count()).ToString(); + } + else { + + //项目安全领导小组 + div_xmaqldxz.InnerHtml = Funs.DB.Meeting_SafetyLeaderGroupMeeting.Where(x => x.CompileDate > Const.DtmarkTime + && pids.Contains(x.ProjectId) ).Count().ToString(); + //项目安全例会 + DateTime date = DateTime.Now; + div_xmalh.InnerHtml = ((from x in Funs.DB.Meeting_WeekMeeting where x.WeekMeetingDate.Value.Year == date.Year && x.WeekMeetingDate.Value.Month == date.Month && x.WeekMeetingDate.Value.Day == date.Day + && pids.Contains(x.ProjectId) + select x).Count() + + (from x in Funs.DB.Meeting_MonthMeeting where x.MonthMeetingDate.Value.Year == date.Year && x.MonthMeetingDate.Value.Month == date.Month && x.MonthMeetingDate.Value.Day == date.Day + && pids.Contains(x.ProjectId) + select x).Count()).ToString(); + } } #endregion @@ -249,72 +387,135 @@ namespace FineUIPro.Web.common /// 获取费用使用(万元) ///
/// - public static int GetCostUse() + public int GetCostUse() { - var result = 0; - var costs = (from x in Funs.DB.CostGoods_CostSmallDetailItem - join y in Funs.DB.CostGoods_CostSmallDetail - on x.CostSmallDetailId equals y.CostSmallDetailId - where y.CompileDate > Const.DtmarkTime - select x.CostMoney ?? 0).ToList().Sum(); - result = Funs.GetNewIntOrZero(costs.ToString().Split('.')[0]); - return result; + if (pids==null) + { + var result = 0; + var costs = (from x in Funs.DB.CostGoods_CostSmallDetailItem + join y in Funs.DB.CostGoods_CostSmallDetail + on x.CostSmallDetailId equals y.CostSmallDetailId + where y.CompileDate > Const.DtmarkTime + select x.CostMoney ?? 0).ToList().Sum(); + result = Funs.GetNewIntOrZero(costs.ToString().Split('.')[0]); + return result; + } + else + { + var result = 0; + var costs = (from x in Funs.DB.CostGoods_CostSmallDetailItem + join y in Funs.DB.CostGoods_CostSmallDetail + on x.CostSmallDetailId equals y.CostSmallDetailId + where y.CompileDate > Const.DtmarkTime && pids.Contains(y.ProjectId) + select x.CostMoney ?? 0).ToList().Sum(); + result = Funs.GetNewIntOrZero(costs.ToString().Split('.')[0]); + return result; + } } /// /// 获取施工机具在用数 /// /// - public static int GetUseEquipmentNum() + public int GetUseEquipmentNum() { - var result = (from x in Funs.DB.InApproveManager_EquipmentInItem - join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId - where x.IsUsed == true - select x).Count() + + if (pids == null) + { + var result = (from x in Funs.DB.InApproveManager_EquipmentInItem + join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId + where x.IsUsed == true + select x).Count() + (from x in Funs.DB.InApproveManager_GeneralEquipmentInItem join y in Funs.DB.InApproveManager_GeneralEquipmentIn on x.GeneralEquipmentInId equals y .GeneralEquipmentInId where x.IsUsed == true select x).Count(); - return result; + return result; + } + else + { + var result = (from x in Funs.DB.InApproveManager_EquipmentInItem + join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId + where x.IsUsed == true && pids.Contains(y.ProjectId) + select x).Count() + + (from x in Funs.DB.InApproveManager_GeneralEquipmentInItem + join y in Funs.DB.InApproveManager_GeneralEquipmentIn on x.GeneralEquipmentInId equals y + .GeneralEquipmentInId + where x.IsUsed == true && pids.Contains(y.ProjectId) + select x).Count(); + return result; + } } /// /// 获取施工机具特种设备数 /// /// - public static int GetSpecialEquipmentNum() + public int GetSpecialEquipmentNum() { - var result = (from x in Funs.DB.InApproveManager_EquipmentInItem - join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId - where x.IsUsed == true - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.InApproveManager_EquipmentInItem + join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId + where x.IsUsed == true + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.InApproveManager_EquipmentInItem + join y in Funs.DB.InApproveManager_EquipmentIn on x.EquipmentInId equals y.EquipmentInId + where x.IsUsed == true && pids.Contains(y.ProjectId) + select x).Count(); + return result; + } } /// /// 获取作业许可项数 /// /// - public static int GetLicensesNum() + public int GetLicensesNum() { - var result = (from x in Funs.DB.License_LicenseManager - where x.IsHighRisk == true && x.CompileDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.License_LicenseManager + where x.IsHighRisk == true && x.CompileDate > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.License_LicenseManager + where x.IsHighRisk == true && x.CompileDate > Const.DtmarkTime + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取作业许可关闭项数 /// /// - public static int GetLicensesCloseNum() + public int GetLicensesCloseNum() { - var result = (from x in Funs.DB.License_LicenseManager - where x.IsHighRisk == true && x.WorkStates == "3" && - x.CompileDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.License_LicenseManager + where x.IsHighRisk == true && x.WorkStates == "3" && + x.CompileDate > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.License_LicenseManager + where x.IsHighRisk == true && x.WorkStates == "3" && + x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } #endregion @@ -322,33 +523,56 @@ namespace FineUIPro.Web.common /// 获取一般隐患整改闭环项 /// /// - public static int GetGeneralClosedNum() + public int GetGeneralClosedNum() { - var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister - where x.Risk_Level == "一般" && x.States == "3" && - x.CheckTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids==null) + { + var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.Risk_Level == "一般" && x.States == "3" && + x.CheckTime > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.Risk_Level == "一般" && x.States == "3" && + x.CheckTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } + } /// /// 获取一般隐患未整改完成项 /// /// - public static int GetGeneralNotClosedNum() + public int GetGeneralNotClosedNum() { - var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister - where x.Risk_Level == "一般" && x.States != "3" && - x.CheckTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.Risk_Level == "一般" && x.States != "3" && + x.CheckTime > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.Risk_Level == "一般" && x.States != "3" && + x.CheckTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 一般整改率 /// /// - public static string GetGeneralZgl() + public string GetGeneralZgl() { var num1 = Math.Round(100.0 * GetGeneralClosedNum() / (GetGeneralClosedNum() + GetGeneralNotClosedNum()), 0).ToString(); return num1; @@ -358,33 +582,55 @@ namespace FineUIPro.Web.common /// 获取重大隐患整改闭环项 /// /// - public static int GetMajorClosedNum() + public int GetMajorClosedNum() { - var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister - where x.Risk_Level == "重大" && x.States == "3" && - x.CheckTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.Risk_Level == "重大" && x.States == "3" && + x.CheckTime > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.Risk_Level == "重大" && x.States == "3" && + x.CheckTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取重大隐患未整改完成项 /// /// - public static int GetMajorNotClosedNum() + public int GetMajorNotClosedNum() { - var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister - where x.Risk_Level == "重大" && x.States != "3" && - x.CheckTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.Risk_Level == "重大" && x.States != "3" && + x.CheckTime > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.Risk_Level == "重大" && x.States != "3" && + x.CheckTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 重大整改率 /// /// - public static string GetMajorZgl() + public string GetMajorZgl() { var num1 = Math.Round(100.0 * GetMajorClosedNum() / (GetMajorClosedNum() + GetMajorNotClosedNum()), 0).ToString(); if (num1 == "NaN") num1 = "0"; @@ -398,9 +644,16 @@ namespace FineUIPro.Web.common /// 获取企业负责人带班检查次数 /// /// - public static int GetCompanyLeadShiftCheckNum() + public int GetCompanyLeadShiftCheckNum() { - return HSSEData_HSSEService.GetCompanyLeadShiftCheckNum(); + if (pids == null) + { + return HSSEData_HSSEService.GetCompanyLeadShiftCheckNum(); + } + else { + return HSSEData_HSSEService.GetCompanyLeadShiftCheckNum(pids); + } + } @@ -409,54 +662,92 @@ namespace FineUIPro.Web.common /// 获取企业综合检查次数 /// /// - public static int GetCompanyComprehensiveCheckNum() + public int GetCompanyComprehensiveCheckNum() { - return HSSEData_HSSEService.GetCompanyComprehensiveCheckNum(); + if (pids == null) + return HSSEData_HSSEService.GetCompanyComprehensiveCheckNum(); + else + return HSSEData_HSSEService.GetCompanyComprehensiveCheckNum(pids); } /// /// 获取企业专项检查次数 /// /// - public static int GetCompanySpecialCheckNum() + public int GetCompanySpecialCheckNum() { - return HSSEData_HSSEService.GetCompanySpecialCheckNum(); + if (pids == null) + return HSSEData_HSSEService.GetCompanySpecialCheckNum(); + else + return HSSEData_HSSEService.GetCompanySpecialCheckNum(pids); } /// /// 获取项目负责人带班检查次数 /// /// - public static int GetProjectLeadShiftCheckNum() + public int GetProjectLeadShiftCheckNum() { - var result = (from x in Funs.DB.Check_ProjectLeaderCheck - where x.CompileDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Check_ProjectLeaderCheck + where x.CompileDate > Const.DtmarkTime + select x).Count(); + return result; + } + else { + var result = (from x in Funs.DB.Check_ProjectLeaderCheck + where x.CompileDate > Const.DtmarkTime + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } + } /// /// 获取项目专项检查次数 /// /// - public static int GetProjectSpecialCheckNum() + public int GetProjectSpecialCheckNum() { - var result = (from x in Funs.DB.Check_CheckSpecial - where x.CheckTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Check_CheckSpecial + where x.CheckTime > Const.DtmarkTime + select x).Count(); + return result; + } + else { + var result = (from x in Funs.DB.Check_CheckSpecial + where x.CheckTime > Const.DtmarkTime + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } + } /// /// 获取项目专业检查次数 /// /// - public static int GetProjectMajorCheckNum() + public int GetProjectMajorCheckNum() { - var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister - where x.CheckTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.CheckTime > Const.DtmarkTime + select x).Count(); + return result; + } + else { + var result = (from x in Funs.DB.HSSE_Hazard_HazardRegister + where x.CheckTime > Const.DtmarkTime + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } #endregion @@ -465,74 +756,135 @@ namespace FineUIPro.Web.common /// 获取未遂事件数 /// /// - public static int GetNearMissNum() + public int GetNearMissNum() { - var result = (from x in Funs.DB.Accident_AccidentPersonRecord - join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId - where x.IsAttempt == "1" && x.CompileDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Accident_AccidentPersonRecord + join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId + where x.IsAttempt == "1" && x.CompileDate > Const.DtmarkTime + select x).Count(); + return result; + } + else { + var result = (from x in Funs.DB.Accident_AccidentPersonRecord + join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId + where x.IsAttempt == "1" && x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } + } /// /// 获取可记录事件数 /// /// - public static int GetRecordableEventNum() + public int GetRecordableEventNum() { - var result = (from x in Funs.DB.Accident_AccidentPersonRecord - join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId - where x.CompileDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Accident_AccidentPersonRecord + join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId + where x.CompileDate > Const.DtmarkTime + select x).Count(); + return result; + } + else { + var result = (from x in Funs.DB.Accident_AccidentPersonRecord + join y in Funs.DB.Base_AccidentType on x.AccidentTypeId equals y.AccidentTypeId + where x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } + } /// /// 获取一般事故数 /// /// - public static int GetGeneralAccidentNum() + public int GetGeneralAccidentNum() { - var result = (from x in Funs.DB.Accident_AccidentReport - where x.AccidentDegree == "1" && x.CompileDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Accident_AccidentReport + where x.AccidentDegree == "1" && x.CompileDate > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Accident_AccidentReport + where x.AccidentDegree == "1" && x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取较大事故数 /// /// - public static int GetMajorAccidentNum() + public int GetMajorAccidentNum() { - var result = (from x in Funs.DB.Accident_AccidentReport - where x.AccidentDegree == "2" && x.CompileDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Accident_AccidentReport + where x.AccidentDegree == "2" && x.CompileDate > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Accident_AccidentReport + where x.AccidentDegree == "2" && x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取重大事故数 /// /// - public static int GetSeriousAccidentNum() + public int GetSeriousAccidentNum() { - var result = (from x in Funs.DB.Accident_AccidentReport - where x.AccidentDegree == "3" && x.CompileDate > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Accident_AccidentReport + where x.AccidentDegree == "3" && x.CompileDate > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Accident_AccidentReport + where x.AccidentDegree == "3" && x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取特别重大事故数 /// /// - public static int GetSpecialSeriousAccidentNum() + public int GetSpecialSeriousAccidentNum() { - var result = (from x in Funs.DB.Accident_AccidentReport + if (pids == null) { + var result = (from x in Funs.DB.Accident_AccidentReport where x.AccidentDegree == "4" select x).Count(); - return result; + return result; + } + else + { + var result = (from x in Funs.DB.Accident_AccidentReport + where x.AccidentDegree == "4" && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } #endregion @@ -541,66 +893,125 @@ namespace FineUIPro.Web.common /// 获取企业级综合预案数 /// /// - public static int GetCompanyComprehensivePlanNum() + public int GetCompanyComprehensivePlanNum() { - var result = (from x in Funs.DB.Emergency_EmergencyList_Unit - join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId - where y.EmergencyTypeName.Contains("综合") && x.CompileDate > Const.DtmarkTime - select x).Count() + + if (pids == null) + { + var result = (from x in Funs.DB.Emergency_EmergencyList_Unit + join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId + where y.EmergencyTypeName.Contains("综合") && x.CompileDate > Const.DtmarkTime + select x).Count() + (from x in Funs.DB.Emergency_EmergencyList join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId where y.EmergencyTypeName.Contains("综合") && x.CompileDate > Const.DtmarkTime select x).Count(); - return result; + return result; + } + else + { + var result = (from x in Funs.DB.Emergency_EmergencyList_Unit + join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId + where y.EmergencyTypeName.Contains("综合") && x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count() + + (from x in Funs.DB.Emergency_EmergencyList + join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId + where y.EmergencyTypeName.Contains("综合") && x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + + } } /// /// 获取企业级专项预案数 /// /// - public static int GetCompanySpecialPlanNum() + public int GetCompanySpecialPlanNum() { - var result = (from x in Funs.DB.Emergency_EmergencyList_Unit - join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId - where y.EmergencyTypeName.Contains("专项") && x.CompileDate > Const.DtmarkTime - select x).Count() + + if (pids == null) + { + var result = (from x in Funs.DB.Emergency_EmergencyList_Unit + join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId + where y.EmergencyTypeName.Contains("专项") && x.CompileDate > Const.DtmarkTime + select x).Count() + (from x in Funs.DB.Emergency_EmergencyList join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId where y.EmergencyTypeName.Contains("专项") && x.CompileDate > Const.DtmarkTime select x).Count(); - return result; + return result; + } + else + { + var result = (from x in Funs.DB.Emergency_EmergencyList_Unit + join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId + where y.EmergencyTypeName.Contains("专项") && x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count() + + (from x in Funs.DB.Emergency_EmergencyList + join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId + where y.EmergencyTypeName.Contains("专项") && x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取企业级现场处置预案 /// /// - public static int GetCompanyOnSiteDisposalPlan() + public int GetCompanyOnSiteDisposalPlan() { - var result = (from x in Funs.DB.Emergency_EmergencyList_Unit - join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId - where y.EmergencyTypeName.Contains("现场处置") && x.CompileDate > Const.DtmarkTime - select x).Count() + + if (pids == null) + { + var result = (from x in Funs.DB.Emergency_EmergencyList_Unit + join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId + where y.EmergencyTypeName.Contains("现场处置") && x.CompileDate > Const.DtmarkTime + select x).Count() + (from x in Funs.DB.Emergency_EmergencyList join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId where y.EmergencyTypeName.Contains("现场处置") && x.CompileDate > Const.DtmarkTime select x).Count(); - return result; + return result; + } + else + { + var result = (from x in Funs.DB.Emergency_EmergencyList_Unit + join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId + where y.EmergencyTypeName.Contains("现场处置") && x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count() + + (from x in Funs.DB.Emergency_EmergencyList + join y in Funs.DB.Base_EmergencyType on x.EmergencyTypeId equals y.EmergencyTypeId + where y.EmergencyTypeName.Contains("现场处置") && x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取企业级演练次数 /// /// - public static int GetCompanyDrillNum() + public int GetCompanyDrillNum() { - var result = (from x in Funs.DB.Emergency_DrillRecordList_Unit - where x.CompileDate > Const.DtmarkTime - select x).Count() + + if (pids == null) + { + var result = (from x in Funs.DB.Emergency_DrillRecordList_Unit + where x.CompileDate > Const.DtmarkTime + select x).Count() + (from x in Funs.DB.Emergency_DrillRecordList where x.CompileDate > Const.DtmarkTime select x).Count(); - return result; + return result; + } + else + { + var result = (from x in Funs.DB.Emergency_DrillRecordList_Unit + where x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count() + + (from x in Funs.DB.Emergency_DrillRecordList + where x.CompileDate > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } #endregion @@ -609,42 +1020,79 @@ namespace FineUIPro.Web.common /// 获取三级安全教育培训数 /// /// - public static int GetSafeTrainNum() + public int GetSafeTrainNum() { - var result = (from x in Funs.DB.EduTrain_TrainRecordDetail - join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId - join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId - where y.TrainType == "1" - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.EduTrain_TrainRecordDetail + join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId + join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId + where y.TrainType == "1" + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.EduTrain_TrainRecordDetail + join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId + join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId + where y.TrainType == "1" && pids.Contains(z.ProjectId) + select x).Count(); + return result; + + } } /// /// 获取专项培训数 /// /// - public static int GetSpecialTrainNum() + public int GetSpecialTrainNum() { - var result = (from x in Funs.DB.EduTrain_TrainRecordDetail - join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId - join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId - where y.TrainType == "2" - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.EduTrain_TrainRecordDetail + join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId + join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId + where y.TrainType == "2" + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.EduTrain_TrainRecordDetail + join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId + join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId + where y.TrainType == "2" && pids.Contains(z.ProjectId) + select x).Count(); + return result; + } } /// /// 获取特种作业培训数 /// /// - public static int GetSpecialOperationTrainNum() + public int GetSpecialOperationTrainNum() { - var result = (from x in Funs.DB.EduTrain_TrainRecordDetail - join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId - join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId - where y.TrainType == "3" - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.EduTrain_TrainRecordDetail + join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId + join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId + where y.TrainType == "3" + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.EduTrain_TrainRecordDetail + join z in Funs.DB.EduTrain_TrainRecord on x.TrainingId equals z.TrainingId + join y in Funs.DB.Base_TrainType on z.TrainTypeId equals y.TrainTypeId + where y.TrainType == "3" && pids.Contains(z.ProjectId) + select x).Count(); + return result; + } } #endregion @@ -653,52 +1101,99 @@ namespace FineUIPro.Web.common /// 获取一般风险数 /// /// - public static int GetGeneralRiskNum() + public int GetGeneralRiskNum() { - var result = (from x in Funs.DB.Hazard_HazardSelectedItem - join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId - where y.RiskLevel == 2 && (x.IsStart == true || x.State == "1") - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Hazard_HazardSelectedItem + join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId + where y.RiskLevel == 2 && (x.IsStart == true || x.State == "1") + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Hazard_HazardSelectedItem + join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId + where y.RiskLevel == 2 && (x.IsStart == true || x.State == "1") + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取低风险数 /// /// - public static int GetLowRiskNum() + public int GetLowRiskNum() { - var result = (from x in Funs.DB.Hazard_HazardSelectedItem - join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId - where y.RiskLevel == 1 && (x.IsStart == true || x.State == "1") - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Hazard_HazardSelectedItem + join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId + where y.RiskLevel == 1 && (x.IsStart == true || x.State == "1") + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Hazard_HazardSelectedItem + join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId + where y.RiskLevel == 1 && (x.IsStart == true || x.State == "1") + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取中风险数 /// /// - public static int GetMediumRiskNum() + public int GetMediumRiskNum() { - var result = (from x in Funs.DB.Hazard_HazardSelectedItem - join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId - where y.RiskLevel == 3 && (x.IsStart == true || x.State == "1") - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Hazard_HazardSelectedItem + join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId + where y.RiskLevel == 3 && (x.IsStart == true || x.State == "1") + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Hazard_HazardSelectedItem + join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId + where y.RiskLevel == 3 && (x.IsStart == true || x.State == "1") + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取高风险数 /// /// - public static int GetHighRiskNum() + public int GetHighRiskNum() { - var result = (from x in Funs.DB.Hazard_HazardSelectedItem - join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId - where y.RiskLevel == 4 && (x.IsStart == true || x.State == "1") - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Hazard_HazardSelectedItem + join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId + where y.RiskLevel == 4 && (x.IsStart == true || x.State == "1") + select x).Count(); + return result; + } + else { + var result = (from x in Funs.DB.Hazard_HazardSelectedItem + join y in Funs.DB.Base_RiskLevel on x.HazardLevel equals y.RiskLevelId + where y.RiskLevel == 4 && (x.IsStart == true || x.State == "1") + && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } #endregion @@ -707,103 +1202,190 @@ namespace FineUIPro.Web.common /// 获取危大工程审批完成数 /// /// - public static int GetCompletedNum() + public int GetCompletedNum() { - var result = (from x in Funs.DB.Solution_LargerHazard - where x.States != "0" && x.IsSuperLargerHazard == false && - x.RecordTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States != "0" && x.IsSuperLargerHazard == false && + x.RecordTime > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States != "0" && x.IsSuperLargerHazard == false && + x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取危大工程培训人次数 /// /// - public static int GetTrainPersonNum() + public int GetTrainPersonNum() { - var result = (from x in Funs.DB.Solution_LargerHazard - where x.IsSuperLargerHazard == false && x.RecordTime > Const.DtmarkTime - select x.TrainPersonNum).ToList().Sum(x => x.Value); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.IsSuperLargerHazard == false && x.RecordTime > Const.DtmarkTime + select x.TrainPersonNum).ToList().Sum(x => x.Value); + return result; + } + else + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.IsSuperLargerHazard == false && x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x.TrainPersonNum).ToList().Sum(x => x.Value); + return result; + } } /// /// 获取危大工程施工个数 /// /// - public static int GetConstructionNum() + public int GetConstructionNum() { - var result = (from x in Funs.DB.Solution_LargerHazard - where x.States == "2" && x.IsSuperLargerHazard == false && - x.RecordTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States == "2" && x.IsSuperLargerHazard == false && + x.RecordTime > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States == "2" && x.IsSuperLargerHazard == false && + x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取危大工程完工个数 /// /// - public static int GetFinishedNum() + public int GetFinishedNum() { - var result = (from x in Funs.DB.Solution_LargerHazard - where x.States == "3" && x.IsSuperLargerHazard == false && - x.RecordTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States == "3" && x.IsSuperLargerHazard == false && + x.RecordTime > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States == "3" && x.IsSuperLargerHazard == false && + x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取超危大工程审批完成数 /// /// - public static int GetSuperCompletedNum() + public int GetSuperCompletedNum() { - var result = (from x in Funs.DB.Solution_LargerHazard - where x.States != "0" && x.IsSuperLargerHazard == true && - x.RecordTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States != "0" && x.IsSuperLargerHazard == true && + x.RecordTime > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States != "0" && x.IsSuperLargerHazard == true && + x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取超危大工程培训人次数 /// /// - public static int GetSuperTrainPersonNum() + public int GetSuperTrainPersonNum() { - var result = + if (pids == null) + { + var result = (from x in Funs.DB.Solution_LargerHazard where x.IsSuperLargerHazard == true && x.RecordTime > Const.DtmarkTime select x.TrainPersonNum).ToList().Sum(x => x.Value); - return result; + return result; + } + else + { + var result = + (from x in Funs.DB.Solution_LargerHazard + where x.IsSuperLargerHazard == true && x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x.TrainPersonNum).ToList().Sum(x => x.Value); + return result; + } } /// /// 获取超危大工程施工个数 /// /// - public static int GetSuperConstructionNum() + public int GetSuperConstructionNum() { - var result = (from x in Funs.DB.Solution_LargerHazard - where x.States == "2" && x.IsSuperLargerHazard == true && - x.RecordTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States == "2" && x.IsSuperLargerHazard == true && + x.RecordTime > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States == "2" && x.IsSuperLargerHazard == true && + x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取超危大工程完工个数 /// /// - public static int GetSuperFinishedNum() + public int GetSuperFinishedNum() { - var result = (from x in Funs.DB.Solution_LargerHazard - where x.States == "3" && x.IsSuperLargerHazard == true && - x.RecordTime > Const.DtmarkTime - select x).Count(); - return result; + if (pids == null) + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States == "3" && x.IsSuperLargerHazard == true && + x.RecordTime > Const.DtmarkTime + select x).Count(); + return result; + } + else + { + var result = (from x in Funs.DB.Solution_LargerHazard + where x.States == "3" && x.IsSuperLargerHazard == true && + x.RecordTime > Const.DtmarkTime && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } #endregion } diff --git a/SGGL/FineUIPro.Web/common/main_new1.aspx.cs b/SGGL/FineUIPro.Web/common/main_new1.aspx.cs index 3ffd8ad4..eddc0f93 100644 --- a/SGGL/FineUIPro.Web/common/main_new1.aspx.cs +++ b/SGGL/FineUIPro.Web/common/main_new1.aspx.cs @@ -18,6 +18,12 @@ namespace FineUIPro.Web.common protected string hjallNumber = "0"; protected string hjfinishNumber = "0"; protected string hjzgl = "0"; + + /// + /// 公司级项目筛选 + /// + public string[] pids { get; set; } + /// /// 页面加载 /// @@ -27,6 +33,20 @@ namespace FineUIPro.Web.common { if (!IsPostBack) { + if (!string.IsNullOrEmpty(CurrUser.CompanyProjectId)) + { + pids = CurrUser.CompanyProjectId.Split(','); + } + else + { + //加载所有在建项目的数据 + var pidArray = Funs.DB.Base_Project.Where(x => x.ProjectState == "1").Select(x => x.ProjectId).ToArray(); + if (pidArray.Length > 0) + { + pids = pidArray; + } + } + ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_1, false); if (this.drpProject.Items.Count > 0) { @@ -121,78 +141,139 @@ namespace FineUIPro.Web.common /// 获取项目部人数 /// /// - public static int GetProjectPersonNum() + public int GetProjectPersonNum() { - int result = (from x in Funs.DB.SitePerson_Person - join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId - where y.IsCQMS == true && x.IsUsed == true - select x).Count(); - return result; + if (pids == null) + { + int result = (from x in Funs.DB.SitePerson_Person + join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId + where y.IsCQMS == true && x.IsUsed == true + select x).Count(); + return result; + } + else { + int result = (from x in Funs.DB.SitePerson_Person + join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId + where y.IsCQMS == true && x.IsUsed == true && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } + } /// /// 获取在用计量器具数 /// /// - public static int GetUseNum() + public int GetUseNum() { - int result = (from x in Funs.DB.Comprehensive_InspectionMachine - where x.IsOnSite == true && x.InspectionType.Contains("计量") - select x).Count(); - return result; + if (pids == null) + { + int result = (from x in Funs.DB.Comprehensive_InspectionMachine + where x.IsOnSite == true && x.InspectionType.Contains("计量") + select x).Count(); + return result; + } + else { + int result = (from x in Funs.DB.Comprehensive_InspectionMachine + where x.IsOnSite == true && x.InspectionType.Contains("计量") && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } + } /// /// 获取校准合格数 /// /// - public static int GetOKNum() + public int GetOKNum() { - int result = (from x in Funs.DB.Comprehensive_InspectionMachine - where x.IsOnSite == true && x.InspectionType.Contains("计量") && x.IsCheckOK == true - select x).Count(); - return result; + if (pids == null) + { + int result = (from x in Funs.DB.Comprehensive_InspectionMachine + where x.IsOnSite == true && x.InspectionType.Contains("计量") && x.IsCheckOK == true + select x).Count(); + return result; + } + else { + int result = (from x in Funs.DB.Comprehensive_InspectionMachine + where x.IsOnSite == true && x.InspectionType.Contains("计量") && x.IsCheckOK == true && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 机械预警 /// /// - public static int GetJxyjNum() + public int GetJxyjNum() { - int result = 0; - //机具报验的到期提醒和过期提醒记录数加一起 - //机具报验的到期提醒数 - //var num1 = Funs.DB.Comprehensive_InspectionMachine.Where(x => x.IsOnSite == true && DateTime.Now < x.NextTestDate - // && ((DateTime)x.NextTestDate).AddDays(-15) < DateTime.Now).Count(); - //过期提醒记录数 - var num2 = Funs.DB.Comprehensive_InspectionMachine.Where(x => x.IsOnSite == true && x.NextTestDate < DateTime.Now).Count(); - //result = num1 + num2; - result = num2; - return result; + if (pids == null) + { + int result = 0; + //机具报验的到期提醒和过期提醒记录数加一起 + //机具报验的到期提醒数 + //var num1 = Funs.DB.Comprehensive_InspectionMachine.Where(x => x.IsOnSite == true && DateTime.Now < x.NextTestDate + // && ((DateTime)x.NextTestDate).AddDays(-15) < DateTime.Now).Count(); + //过期提醒记录数 + var num2 = Funs.DB.Comprehensive_InspectionMachine.Where(x => x.IsOnSite == true && x.NextTestDate < DateTime.Now).Count(); + //result = num1 + num2; + result = num2; + return result; + } + else { + int result = 0; + //过期提醒记录数 + var num2 = Funs.DB.Comprehensive_InspectionMachine.Where(x => x.IsOnSite == true && x.NextTestDate < DateTime.Now + && pids.Contains(x.ProjectId)).Count(); + //result = num1 + num2; + result = num2; + return result; + } } /// /// 获取质量培训人次数 /// /// - public static int GetTrainPersonNum() + public int GetTrainPersonNum() { - int result = (from x in Funs.DB.Comprehensive_InspectionPerson - where x.IsTrain == true - select x).Count(); - return result; + if (pids == null) + { + int result = (from x in Funs.DB.Comprehensive_InspectionPerson + where x.IsTrain == true + select x).Count(); + return result; + } + else { + int result = (from x in Funs.DB.Comprehensive_InspectionPerson + where x.IsTrain == true && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取技术交底人次数 /// /// - public static int GetTechnicalDisclosePersonNum() + public int GetTechnicalDisclosePersonNum() { - var result = (from x in Funs.DB.Comprehensive_DesignDetails - select x.JoinPersonNum ?? 0).ToList().Sum(); - var q = Funs.GetNewIntOrZero(result.ToString()); - return q; + if (pids == null) + { + var result = (from x in Funs.DB.Comprehensive_DesignDetails + select x.JoinPersonNum ?? 0).ToList().Sum(); + var q = Funs.GetNewIntOrZero(result.ToString()); + return q; + } + else { + var result = (from x in Funs.DB.Comprehensive_DesignDetails + where pids.Contains(x.ProjectId) + select x.JoinPersonNum ?? 0).ToList().Sum(); + var q = Funs.GetNewIntOrZero(result.ToString()); + return q; + } } /// @@ -200,13 +281,26 @@ namespace FineUIPro.Web.common /// private void getEarlyWarningCounts() { - int allCount = 0; - var getPersonQualitys = from x in Funs.DB.Comprehensive_InspectionPerson - where x.ValidityDate.HasValue && x.ValidityDate < DateTime.Now && x.IsOnSite == true - select x; - //// 预警人数 - allCount = getPersonQualitys.Count(); - this.spanQualityChartAnalysis.InnerHtml = allCount.ToString(); + if (pids == null) + { + int allCount = 0; + var getPersonQualitys = from x in Funs.DB.Comprehensive_InspectionPerson + where x.ValidityDate.HasValue && x.ValidityDate < DateTime.Now && x.IsOnSite == true + select x; + //// 预警人数 + allCount = getPersonQualitys.Count(); + this.spanQualityChartAnalysis.InnerHtml = allCount.ToString(); + + } + else { + int allCount = 0; + var getPersonQualitys = from x in Funs.DB.Comprehensive_InspectionPerson + where x.ValidityDate.HasValue && x.ValidityDate < DateTime.Now && x.IsOnSite == true && pids.Contains(x.ProjectId) + select x; + //// 预警人数 + allCount = getPersonQualitys.Count(); + this.spanQualityChartAnalysis.InnerHtml = allCount.ToString(); + } } #region 质量验收数据 @@ -214,48 +308,73 @@ namespace FineUIPro.Web.common /// 共检总数 /// /// - public static int getAllInspectionManagement() + public int getAllInspectionManagement() { - int result = 0; - ; - //统计所给时间段的全部数量 - //List managementListSunNumber = - // BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate( - // null, null, DateTime.Parse("2001-01-01"), DateTime.Now, false); - var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement - select x).Count(); - result = num1; - //int result = (from x in Funs.DB.Check_CheckControl - // where x.CheckDate <= DateTime.Now && x.State == "7" - // select x).Count(); - return result; + if (pids == null) + { + int result = 0; + //统计所给时间段的全部数量 + //List managementListSunNumber = + // BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate( + // null, null, DateTime.Parse("2001-01-01"), DateTime.Now, false); + var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement + select x).Count(); + result = num1; + //int result = (from x in Funs.DB.Check_CheckControl + // where x.CheckDate <= DateTime.Now && x.State == "7" + // select x).Count(); + return result; + } + else { + int result = 0; + var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement + where pids.Contains(x.ProjectId) + select x).Count(); + result = num1; + + return result; + } } /// /// 次合格数量 /// /// - public static int getIsOnceInspectionManagement() + public int getIsOnceInspectionManagement() { - int result = 0; - //统计所给时间段的合格数量 - //List managementListOneNumber = - // BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate( - // null, null, DateTime.Parse("2001-01-01"), DateTime.Now, true); - var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement - where x.IsOnceQualified == true - select x).Count(); - result = num2; + if (pids == null) + { + int result = 0; + //统计所给时间段的合格数量 + //List managementListOneNumber = + // BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate( + // null, null, DateTime.Parse("2001-01-01"), DateTime.Now, true); + var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.IsOnceQualified == true + select x).Count(); + result = num2; - //int result = (from x in Funs.DB.Check_CheckControl - // where x.CheckDate <= DateTime.Now && x.State != "7" - // select x).Count(); - return result; + //int result = (from x in Funs.DB.Check_CheckControl + // where x.CheckDate <= DateTime.Now && x.State != "7" + // select x).Count(); + return result; + } + else { + int result = 0; + + var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.IsOnceQualified == true && pids.Contains(x.ProjectId) + select x).Count(); + result = num2; + + + return result; + } } /// /// 整改率 /// /// - public static string GetInspectionManagementZgl() + public string GetInspectionManagementZgl() { string zgl = String.Format("{0:N2}", 100.0 * getIsOnceInspectionManagement() / getAllInspectionManagement()); return zgl + "%"; @@ -269,30 +388,48 @@ namespace FineUIPro.Web.common /// 获取整改完成数 /// /// - public static int GetProblemCompletedNum() + public int GetProblemCompletedNum() { - int result = (from x in Funs.DB.Check_CheckControl - where x.CheckDate <= DateTime.Now && x.State == "7" - select x).Count(); - return result; + if (pids == null) + { + int result = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.State == "7" + select x).Count(); + return result; + } + else { + int result = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.State == "7" && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取未整改数 /// /// - public static int GetProblemNotCompletedNum() + public int GetProblemNotCompletedNum() { - int result = (from x in Funs.DB.Check_CheckControl - where x.CheckDate <= DateTime.Now && x.State != "7" - select x).Count(); - return result; + if (pids == null) + { + int result = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.State != "7" + select x).Count(); + return result; + } + else { + int result = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && x.State != "7" && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 整改率 /// /// - public static string GetProblemZgl() + public string GetProblemZgl() { string zgl = String.Format("{0:N2}", 100.0 * GetProblemCompletedNum() / (GetProblemCompletedNum() + GetProblemNotCompletedNum())); return zgl + "%"; @@ -316,12 +453,21 @@ namespace FineUIPro.Web.common /// 获取问题个数 /// /// - public static int GetProblemNum() + public int GetProblemNum() { - int result = (from x in Funs.DB.Check_CheckControl - where x.CheckDate <= DateTime.Now - select x).Count(); - return result; + if (pids == null) + { + int result = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now + select x).Count(); + return result; + } + else { + int result = (from x in Funs.DB.Check_CheckControl + where x.CheckDate <= DateTime.Now && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } #endregion @@ -329,114 +475,216 @@ namespace FineUIPro.Web.common /// 获取焊工总数 /// /// - public static int GetWelderNum() + public int GetWelderNum() { - int result = (from x in Funs.DB.BS_Welder - where x.WED_IfOnGuard == true - select x).Count(); - return result; + if (pids == null) + { + int result = (from x in Funs.DB.BS_Welder + where x.WED_IfOnGuard == true + select x).Count(); + return result; + } + else + { + int result = (from x in Funs.DB.BS_Welder + where x.WED_IfOnGuard == true && pids.Contains(x.ProjectId) + select x).Count(); + return result; + } } /// /// 获取总达因数 /// /// - public static int GetTotalDineNum() + public int GetTotalDineNum() { - int result = 0; - var getD1 = from x in Funs.DB.HJGL_FL_TotalQuantity - select x; - if (getD1.Count() > 0) + if (pids == null) { - foreach (var item in getD1) + int result = 0; + var getD1 = from x in Funs.DB.HJGL_FL_TotalQuantity + select x; + if (getD1.Count() > 0) { - result += Funs.GetNewIntOrZero(item.TotalWeldQuantity.Split('.')[0]); + foreach (var item in getD1) + { + result += Funs.GetNewIntOrZero(item.TotalWeldQuantity.Split('.')[0]); + } } + else + { + var getD2 = (from x in Funs.DB.HJGL_FL_Data + orderby x.CompileDate descending + select x).FirstOrDefault(); + if (getD2 != null) + { + result = Funs.GetNewIntOrZero(getD2.TotalWeldQuantity.Split('.')[0]); + } + } + return result; } else { - var getD2 = (from x in Funs.DB.HJGL_FL_Data - orderby x.CompileDate descending - select x).FirstOrDefault(); - if (getD2 != null) + int result = 0; + var getD1 = from x in Funs.DB.HJGL_FL_TotalQuantity + where pids.Contains(x.ProjectId) + select x; + if (getD1.Count() > 0) { - result = Funs.GetNewIntOrZero(getD2.TotalWeldQuantity.Split('.')[0]); + foreach (var item in getD1) + { + result += Funs.GetNewIntOrZero(item.TotalWeldQuantity.Split('.')[0]); + } } + else + { + var getD2 = (from x in Funs.DB.HJGL_FL_Data + where pids.Contains(x.ProjectId) + orderby x.CompileDate descending + select x).FirstOrDefault(); + if (getD2 != null) + { + result = Funs.GetNewIntOrZero(getD2.TotalWeldQuantity.Split('.')[0]); + } + } + return result; } - return result; } /// /// 获取完成达因数 /// /// - public static int GetCompleteDineNum() + public int GetCompleteDineNum() { - int result = 0; - - var getD1 = from x in Funs.DB.HJGL_FL_TotalQuantity - - select x; - if (getD1.Count() > 0) + if (pids == null) { - foreach (var item in getD1) - { - result += Funs.GetNewIntOrZero(item.TotalCompleted.Split('.')[0]); - } - } - else - { - var getD2 = (from x in Funs.DB.HJGL_FL_Data - orderby x.CompileDate descending - select x).FirstOrDefault(); - if (getD2 != null) - { - result = Funs.GetNewIntOrZero(getD2.TotalCompleted.Split('.')[0]); - } + int result = 0; + var getD1 = from x in Funs.DB.HJGL_FL_TotalQuantity + + select x; + if (getD1.Count() > 0) + { + foreach (var item in getD1) + { + result += Funs.GetNewIntOrZero(item.TotalCompleted.Split('.')[0]); + } + } + else + { + var getD2 = (from x in Funs.DB.HJGL_FL_Data + orderby x.CompileDate descending + select x).FirstOrDefault(); + if (getD2 != null) + { + result = Funs.GetNewIntOrZero(getD2.TotalCompleted.Split('.')[0]); + } + + } + return result; + } + else { + int result = 0; + + var getD1 = from x in Funs.DB.HJGL_FL_TotalQuantity + where pids.Contains(x.ProjectId) + select x; + if (getD1.Count() > 0) + { + foreach (var item in getD1) + { + result += Funs.GetNewIntOrZero(item.TotalCompleted.Split('.')[0]); + } + } + else + { + var getD2 = (from x in Funs.DB.HJGL_FL_Data + where pids.Contains(x.ProjectId) + orderby x.CompileDate descending + select x).FirstOrDefault(); + if (getD2 != null) + { + result = Funs.GetNewIntOrZero(getD2.TotalCompleted.Split('.')[0]); + } + + } + return result; } - return result; } /// /// 获取总片数 /// /// - public static int GetTotalFilmNum() + public int GetTotalFilmNum() { - //int result = Convert.ToInt32((from x in Funs.DB.CH_CheckItem - // join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID - // select x.CHT_TotalFilm).ToList().Sum()); - int result = 0; - - var getD2 = (from x in Funs.DB.HJGL_FL_Data - orderby x.CompileDate descending - select x).FirstOrDefault(); - if (getD2 != null) + if (pids == null) { - result = Funs.GetNewIntOrZero(getD2.OneTimeFilmAmount.Split('.')[0]); + //int result = Convert.ToInt32((from x in Funs.DB.CH_CheckItem + // join y in Funs.DB.CH_Check on x.CHT_CheckID equals y.CHT_CheckID + // select x.CHT_TotalFilm).ToList().Sum()); + int result = 0; + + var getD2 = (from x in Funs.DB.HJGL_FL_Data + orderby x.CompileDate descending + select x).FirstOrDefault(); + if (getD2 != null) + { + result = Funs.GetNewIntOrZero(getD2.OneTimeFilmAmount.Split('.')[0]); + } + return result; + } + else + { + int result = 0; + + var getD2 = (from x in Funs.DB.HJGL_FL_Data + where pids.Contains(x.ProjectId) + orderby x.CompileDate descending + select x).FirstOrDefault(); + if (getD2 != null) + { + result = Funs.GetNewIntOrZero(getD2.OneTimeFilmAmount.Split('.')[0]); + } + return result; } - return result; } /// /// 获取合格片数 /// /// - public static int GetOKFilmNum() + public int GetOKFilmNum() { - int result = 0; - var getD2 = (from x in Funs.DB.HJGL_FL_Data - orderby x.CompileDate descending - select x).FirstOrDefault(); - if (getD2 != null) + if (pids == null) { - result = Funs.GetNewIntOrZero(getD2.OneTimeFilmQualifiedAmount.Split('.')[0]); + int result = 0; + var getD2 = (from x in Funs.DB.HJGL_FL_Data + orderby x.CompileDate descending + select x).FirstOrDefault(); + if (getD2 != null) + { + result = Funs.GetNewIntOrZero(getD2.OneTimeFilmQualifiedAmount.Split('.')[0]); + } + return result; + } + else + { + int result = 0; + var getD2 = (from x in Funs.DB.HJGL_FL_Data + where pids.Contains(x.ProjectId) + orderby x.CompileDate descending + select x).FirstOrDefault(); + if (getD2 != null) + { + result = Funs.GetNewIntOrZero(getD2.OneTimeFilmQualifiedAmount.Split('.')[0]); + } + return result; } - return result; } /// /// 一次拍片合格率 /// /// - public static string GetOKFilmHgl() + public string GetOKFilmHgl() { string zgl = "0"; if (GetOKFilmNum() > 0) @@ -459,38 +707,114 @@ namespace FineUIPro.Web.common private void getInspectionManagementInfo() { - var q = (from x in Funs.DB.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId && x.CNProfessionalId != BLL.Const.CNProfessionalHSEId orderby x.SortIndex select x).ToList(); - foreach (var item in q) + if (this.CurrUser.UserId == BLL.Const.hfnbdId) { - //获取专业 - InspectionManagementZy += "'" + item.ProfessionalName + "',"; - //根据专业获取总计 - //var num1 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail - // join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId - // where y.CNProfessionalId == item.CNProfessionalId - // select x).ToList().Count; - var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement - where x.CNProfessionalId == item.CNProfessionalId - select x).Count(); - InspectionManagementSumCount += "'" + num1 + "',"; + //var q=(from x in Funs.DB.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId && x.CNProfessionalId != BLL.Const.CNProfessionalHSEId orderby x.SortIndex select x).ToList(); + var q = (from x in Funs.DB.Control_PointCropping where x.ParentId == null || x.ParentId == "" orderby x.OperateTime select x).ToList(); - //根据专业获取合格数 - //var num2 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail - // join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId - // where y.CNProfessionalId == item.CNProfessionalId && y.IsOnceQualified==true - // select x).ToList().Count; - var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement - where x.CNProfessionalId == item.CNProfessionalId && x.IsOnceQualified == true - select x).Count(); - InspectionManagementOkCount += "'" + num2 + "',"; - //一次验收合格率 - var hgl = "0"; - if (num1 > 0) + foreach (var item in q) { - hgl += String.Format("{0:N2}", 100.0 * num2 / num1); + //获取专业 + InspectionManagementZy += "'" + item.DetectionItems + "',"; + //根据专业获取总计 + //var num1 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail + // join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId + // where y.CNProfessionalId == item.CNProfessionalId + // select x).ToList().Count; + var num1 = 0; + var num2 = 0; + if (pids == null) + { + num1 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.CNProfessionalId == item.ControlId + select x).Count(); + num2 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.CNProfessionalId == item.ControlId && x.IsOnceQualified == true + select x).Count(); + } + else + { + num1 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.CNProfessionalId == item.ControlId && pids.Contains(x.ProjectId) + select x).Count(); + num2 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.CNProfessionalId == item.ControlId && x.IsOnceQualified == true && pids.Contains(x.ProjectId) + select x).Count(); + } + + + InspectionManagementSumCount += "'" + num1 + "',"; + + //根据专业获取合格数 + //var num2 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail + // join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId + // where y.CNProfessionalId == item.CNProfessionalId && y.IsOnceQualified==true + // select x).ToList().Count; + + InspectionManagementOkCount += "'" + num2 + "',"; + + //一次验收合格率 + var hgl = "0"; + if (num1 > 0) + { + hgl += String.Format("{0:N2}", 100.0 * num2 / num1); + } + InspectionManagementOneOkCount += "'" + hgl + "',"; + } + } + else + { + var q = (from x in Funs.DB.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId && x.CNProfessionalId != BLL.Const.CNProfessionalHSEId orderby x.SortIndex select x).ToList(); + + foreach (var item in q) + { + //获取专业 + InspectionManagementZy += "'" + item.ProfessionalName + "',"; + //根据专业获取总计 + //var num1 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail + // join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId + // where y.CNProfessionalId == item.CNProfessionalId + // select x).ToList().Count; + var num1 = 0; + var num2 = 0; + if (pids == null) + { + num1 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.CNProfessionalId == item.CNProfessionalId + select x).Count(); + num2 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.CNProfessionalId == item.CNProfessionalId && x.IsOnceQualified == true + select x).Count(); + } + else + { + num1 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.CNProfessionalId == item.CNProfessionalId && pids.Contains(x.ProjectId) + select x).Count(); + num2 = (from x in Funs.DB.ProcessControl_InspectionManagement + where x.CNProfessionalId == item.CNProfessionalId && x.IsOnceQualified == true && pids.Contains(x.ProjectId) + select x).Count(); + } + + InspectionManagementSumCount += "'" + num1 + "',"; + + //根据专业获取合格数 + //var num2 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail + // join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId + // where y.CNProfessionalId == item.CNProfessionalId && y.IsOnceQualified==true + // select x).ToList().Count; + + InspectionManagementOkCount += "'" + num2 + "',"; + + //一次验收合格率 + var hgl = "0"; + if (num1 > 0) + { + hgl += String.Format("{0:N2}", 100.0 * num2 / num1); + } + InspectionManagementOneOkCount += "'" + hgl + "',"; } - InspectionManagementOneOkCount += "'" + hgl + "',"; } InspectionManagementZy = InspectionManagementZy.TrimEnd(','); InspectionManagementSumCount = InspectionManagementSumCount.TrimEnd(','); @@ -514,29 +838,56 @@ namespace FineUIPro.Web.common protected string ncrCount; private void getNcrInfo() { - //闭环项 有完成日期的 - //var num1 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.CompleteDate != null).Count(); - //var num2 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.CompleteDate == null).Count(); - var num1 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.ImplementationFrontState == "已闭合").Count(); - var num2 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.ImplementationFrontState == "整改中").Count(); - ncrZgbhx = num1.ToString(); - ncrwZgbhx = num2.ToString(); - if ((num1 + num2) > 0) + if (pids==null) { - ncrZgl = String.Format("{0:N2}", 100.0 * num1 / (num1 + num2)) + "%"; - } + //闭环项 有完成日期的 + //var num1 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.CompleteDate != null).Count(); + //var num2 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.CompleteDate == null).Count(); + var num1 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.ImplementationFrontState == "已闭合").Count(); + var num2 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.ImplementationFrontState == "整改中").Count(); + ncrZgbhx = num1.ToString(); + ncrwZgbhx = num2.ToString(); + if ((num1 + num2) > 0) + { + ncrZgl = String.Format("{0:N2}", 100.0 * num1 / (num1 + num2)) + "%"; + } - //加载专业 - var list = (from x in Funs.DB.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId && x.CNProfessionalId!=BLL.Const.CNProfessionalHSEId orderby x.SortIndex select x).ToList(); - foreach (var item in list) - { - ncrZy += "'" + item.ProfessionalName + "',"; - //根据专业加载数据量 - var num3 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.CNProfessionalId == item.CNProfessionalId).Count(); - ncrCount += "'" + num3 + "',"; + //加载专业 + var list = (from x in Funs.DB.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId && x.CNProfessionalId != BLL.Const.CNProfessionalHSEId orderby x.SortIndex select x).ToList(); + foreach (var item in list) + { + ncrZy += "'" + item.ProfessionalName + "',"; + //根据专业加载数据量 + var num3 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.CNProfessionalId == item.CNProfessionalId).Count(); + ncrCount += "'" + num3 + "',"; + } + ncrZy = ncrZy.TrimEnd(','); + ncrCount = ncrCount.TrimEnd(','); } - ncrZy = ncrZy.TrimEnd(','); - ncrCount = ncrCount.TrimEnd(','); + else + { + var num1 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.ImplementationFrontState == "已闭合" && pids.Contains(x.ProjectId)).Count(); + var num2 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.ImplementationFrontState == "整改中" && pids.Contains(x.ProjectId)).Count(); + ncrZgbhx = num1.ToString(); + ncrwZgbhx = num2.ToString(); + if ((num1 + num2) > 0) + { + ncrZgl = String.Format("{0:N2}", 100.0 * num1 / (num1 + num2)) + "%"; + } + + //加载专业 + var list = (from x in Funs.DB.Base_CNProfessional where x.CNProfessionalId != BLL.Const.CNProfessionalConstructId && x.CNProfessionalId != BLL.Const.CNProfessionalHSEId orderby x.SortIndex select x).ToList(); + foreach (var item in list) + { + ncrZy += "'" + item.ProfessionalName + "',"; + //根据专业加载数据量 + var num3 = Funs.DB.Comprehensive_NCRManagement.Where(x => x.CNProfessionalId == item.CNProfessionalId && pids.Contains(x.ProjectId)).Count(); + ncrCount += "'" + num3 + "',"; + } + ncrZy = ncrZy.TrimEnd(','); + ncrCount = ncrCount.TrimEnd(','); + } + } #endregion diff --git a/SGGL/FineUIPro.Web/index.aspx b/SGGL/FineUIPro.Web/index.aspx index 508fb88c..dd8ae329 100644 --- a/SGGL/FineUIPro.Web/index.aspx +++ b/SGGL/FineUIPro.Web/index.aspx @@ -43,13 +43,7 @@ background-color: transparent !important; } - .projcet-select { - float: left; - height: 40px; - flex: 1; - display: flex; - justify-content: flex-end; - } + .bgbtn { /*background-image: url(../res/images/login.png) !important;*/ @@ -168,20 +162,130 @@ .bgbtn_head { display: inline-block; position: absolute; - width: 40%; + width: 96%; height: 50%; - left: 30%; + left: 2%; top: 0; background: none !important; border: none !important; padding: 0 !important; } - .f-btn .f-btn-text{ - color: #fff; + + .f-btn .f-btn-text { + color: #fff; + } + + .n-btns-r .n-btn-l-act { + background-image: url(./res/images/03.png) !important; + } + + @@ -196,88 +300,151 @@