diff --git a/.vs/SGGL_SeDin/v17/.wsuo b/.vs/SGGL_SeDin/v17/.wsuo
index fb4f7890..761316d1 100644
Binary files a/.vs/SGGL_SeDin/v17/.wsuo and b/.vs/SGGL_SeDin/v17/.wsuo differ
diff --git a/DataBase/版本日志/SGGLDB_V2023-06-06.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-06.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-06-06.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-06.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-06-06修改明细.txt b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-06修改明细.txt
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-06-06修改明细.txt
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-06修改明细.txt
diff --git a/DataBase/版本日志/SGGLDB_V2023-06-12.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-12.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-06-12.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-12.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-06-13.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-13.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-06-13.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-13.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-06-13修改明细.txt b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-13修改明细.txt
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-06-13修改明细.txt
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-13修改明细.txt
diff --git a/DataBase/版本日志/SGGLDB_V2023-06-14.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-14.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-06-14.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-14.sql
diff --git a/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-16.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-16.sql
new file mode 100644
index 00000000..76d39302
--- /dev/null
+++ b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-16.sql
@@ -0,0 +1,196 @@
+UPDATE Sys_Menu SET Url='SmartSite/EquipmentManage.aspx?Type=D' WHERE MenuId='B972AE90-D40C-44E0-9A90-7B47B2A3399B'
+GO
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('641B763D-0C0D-4E52-8803-2E5743328A1F','B972AE90-D40C-44E0-9A90-7B47B2A3399B','',1)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('DDE12996-0920-4BE9-A8EB-EB9CB1C7FB2F','B972AE90-D40C-44E0-9A90-7B47B2A3399B','',2)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('8DD3B631-750C-4E0D-AAE0-0B05586C3490','B972AE90-D40C-44E0-9A90-7B47B2A3399B','ɾ',3)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('EC0C885F-163C-4D3B-A301-8FF2C291F8D1','B972AE90-D40C-44E0-9A90-7B47B2A3399B','',4)
+GO
+
+UPDATE Sys_Menu SET Url='SmartSite/EquipmentManage.aspx?Type=M' WHERE MenuId='908325CA-A50A-456D-8A7F-E193C629F2F9'
+GO
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('26FC28FB-C3F2-44B5-8CF6-8AF2E153F2DF','908325CA-A50A-456D-8A7F-E193C629F2F9','',1)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('D5D95624-334C-489A-AE3B-A746D024C5A5','908325CA-A50A-456D-8A7F-E193C629F2F9','',2)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('9CB845F6-42BA-4297-91BD-1233CDB97112','908325CA-A50A-456D-8A7F-E193C629F2F9','ɾ',3)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('37C274EC-A2E2-4517-AB33-EDC4C36AC43D','908325CA-A50A-456D-8A7F-E193C629F2F9','',4)
+GO
+
+UPDATE Sys_Menu SET Url='SmartSite/EquipmentManage.aspx?Type=E' WHERE MenuId='E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E'
+GO
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('78439D40-B0DC-4BE2-B361-DF3B77F4D0E8','E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E','',1)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('3D0BC556-300A-4558-BFE8-4ABFF2A66473','E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E','',2)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('373C9D29-445D-4973-B6F6-19621D5BD4B5','E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E','ɾ',3)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('A07E64A2-4318-4E26-8F84-5A086D72EE9C','E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E','',4)
+GO
+
+CREATE TABLE [dbo].[SmartSite_Equipment](
+ [EquipmentId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [Type] [varchar](2) NULL,
+ [EquipmentName] [nvarchar](200) NULL,
+ [EquipmentModel] [nvarchar](200) NULL,
+ [Number] [int] NULL,
+ [RunningState] [nvarchar](50) NULL,
+ [Supplier] [nvarchar](500) NULL,
+ [SupplierMan] [nvarchar](50) NULL,
+ [SupplierTel] [nvarchar](50) NULL,
+ CONSTRAINT [PK_SmartSite_Equipment] PRIMARY KEY CLUSTERED
+(
+ [EquipmentId] 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].[SmartSite_Equipment] WITH CHECK ADD CONSTRAINT [FK_SmartSite_Equipment_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[SmartSite_Equipment] CHECK CONSTRAINT [FK_SmartSite_Equipment_Base_Project]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'豸ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_Equipment', @level2type=N'COLUMN',@level2name=N'EquipmentId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_Equipment', @level2type=N'COLUMN',@level2name=N'ProjectId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͣDŽMƵE⣩' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_Equipment', @level2type=N'COLUMN',@level2name=N'Type'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'豸' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_Equipment', @level2type=N'COLUMN',@level2name=N'EquipmentName'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'豸ͺ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_Equipment', @level2type=N'COLUMN',@level2name=N'EquipmentModel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'״̬' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_Equipment', @level2type=N'COLUMN',@level2name=N'RunningState'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_Equipment', @level2type=N'COLUMN',@level2name=N'Supplier'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۺϵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_Equipment', @level2type=N'COLUMN',@level2name=N'SupplierMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۺϵ绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_Equipment', @level2type=N'COLUMN',@level2name=N'SupplierTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'豸ǻ۹أ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_Equipment'
+GO
+
+
+INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+VALUES('C126F42A-09B0-43D1-8DCF-9EA049B800A8','Ž豸','SmartSite/SoftManage.aspx?Type=D',10,'5D9BD2EC-8CF4-4579-91B9-786EBB0ADD12','Menu_SmartSite',1,1,1)
+GO
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('C1945F59-AD5E-4301-9538-67511D0EB0EC','C126F42A-09B0-43D1-8DCF-9EA049B800A8','',1)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('68776A89-A250-4188-99B2-9CD1B3FB7E28','C126F42A-09B0-43D1-8DCF-9EA049B800A8','',2)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('79E96D30-B45F-47F5-8F1C-5E3FF009783C','C126F42A-09B0-43D1-8DCF-9EA049B800A8','ɾ',3)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('066CA266-027D-4E74-8F7C-8AFB4F4C9602','C126F42A-09B0-43D1-8DCF-9EA049B800A8','',4)
+GO
+
+INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+VALUES('9F95F836-E10C-4EFD-B436-5C9D1658BAED','豸','SmartSite/SoftManage.aspx?Type=M',20,'5D9BD2EC-8CF4-4579-91B9-786EBB0ADD12','Menu_SmartSite',1,1,1)
+GO
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('49057FC3-538A-4142-B192-D305B0CEF4A2','9F95F836-E10C-4EFD-B436-5C9D1658BAED','',1)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('379D1D1F-CDC1-4C6D-AD3A-CE2186888C0A','9F95F836-E10C-4EFD-B436-5C9D1658BAED','',2)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('AE6803C9-6923-481B-9CE5-AE85AC06B345','9F95F836-E10C-4EFD-B436-5C9D1658BAED','ɾ',3)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('08F57065-5251-4EF4-B7D5-EA5C04056BB0','9F95F836-E10C-4EFD-B436-5C9D1658BAED','',4)
+GO
+
+INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+VALUES('834EE5EA-3DDA-49E1-A951-825392893E85','豸','SmartSite/SoftManage.aspx?Type=E',30,'5D9BD2EC-8CF4-4579-91B9-786EBB0ADD12','Menu_SmartSite',1,1,1)
+GO
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('23EC254E-F074-426B-B105-3AB919416CE1','834EE5EA-3DDA-49E1-A951-825392893E85','',1)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('6E414A46-C07B-4780-9D83-1B1993A87229','834EE5EA-3DDA-49E1-A951-825392893E85','',2)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('C6A9D2D7-6A56-4508-9A3E-90986F57C125','834EE5EA-3DDA-49E1-A951-825392893E85','ɾ',3)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('AC37EA29-3A1B-4272-9994-ED7AC19970B7','834EE5EA-3DDA-49E1-A951-825392893E85','',4)
+GO
+
+CREATE TABLE [dbo].[SmartSite_EquipmentSoft](
+ [EquipmentSoftId] [nvarchar](50) NOT NULL,
+ [EquipmentId] [nvarchar](50) NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [Type] [varchar](2) NULL,
+ [EquipmentSoftName] [nvarchar](200) NULL,
+ [EquipmentSoftModel] [nvarchar](200) NULL,
+ [Number] [int] NULL,
+ [RunningState] [nvarchar](50) NULL,
+ [Supplier] [nvarchar](500) NULL,
+ [SupplierMan] [nvarchar](50) NULL,
+ [SupplierTel] [nvarchar](50) NULL,
+ CONSTRAINT [PK_SmartSite_EquipmentSoft] PRIMARY KEY CLUSTERED
+(
+ [EquipmentSoftId] 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].[SmartSite_EquipmentSoft] WITH CHECK ADD CONSTRAINT [FK_SmartSite_EquipmentSoft_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[SmartSite_EquipmentSoft] CHECK CONSTRAINT [FK_SmartSite_EquipmentSoft_Base_Project]
+GO
+
+ALTER TABLE [dbo].[SmartSite_EquipmentSoft] WITH CHECK ADD CONSTRAINT [FK_SmartSite_EquipmentSoft_SmartSite_Equipment] FOREIGN KEY([EquipmentId])
+REFERENCES [dbo].[SmartSite_Equipment] ([EquipmentId])
+GO
+
+ALTER TABLE [dbo].[SmartSite_EquipmentSoft] CHECK CONSTRAINT [FK_SmartSite_EquipmentSoft_SmartSite_Equipment]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'豸ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_EquipmentSoft', @level2type=N'COLUMN',@level2name=N'EquipmentSoftId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_EquipmentSoft', @level2type=N'COLUMN',@level2name=N'EquipmentId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_EquipmentSoft', @level2type=N'COLUMN',@level2name=N'ProjectId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ͣ1Ž2Ƶ3⣩' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_EquipmentSoft', @level2type=N'COLUMN',@level2name=N'Type'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_EquipmentSoft', @level2type=N'COLUMN',@level2name=N'EquipmentSoftName'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'汾' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_EquipmentSoft', @level2type=N'COLUMN',@level2name=N'EquipmentSoftModel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'״̬' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_EquipmentSoft', @level2type=N'COLUMN',@level2name=N'RunningState'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_EquipmentSoft', @level2type=N'COLUMN',@level2name=N'Supplier'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۺϵ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_EquipmentSoft', @level2type=N'COLUMN',@level2name=N'SupplierMan'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ۺϵ绰' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_EquipmentSoft', @level2type=N'COLUMN',@level2name=N'SupplierTel'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'豸ǻ۹أ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SmartSite_EquipmentSoft'
+GO
diff --git a/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-16修改明细.txt b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-16修改明细.txt
new file mode 100644
index 00000000..a9946fa5
--- /dev/null
+++ b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-06-16修改明细.txt
@@ -0,0 +1,5 @@
+--ADD BY YangHongwei 2023-06-16
+1、新增设备管理(门禁、监控、环境监测)页面
+2、新增设备软件管理(门禁、监控、环境监测)页面
+3、优化费用管理模块。
+--END
\ No newline at end of file
diff --git a/DataBase/菜单初始化脚本/0-6智慧工地(Menu_SmartSite).sql b/DataBase/菜单初始化脚本/0-6智慧工地(Menu_SmartSite).sql
index ed68da0f..dd9a247d 100644
--- a/DataBase/菜单初始化脚本/0-6智慧工地(Menu_SmartSite).sql
+++ b/DataBase/菜单初始化脚本/0-6智慧工地(Menu_SmartSite).sql
@@ -14,20 +14,91 @@ GO
VALUES('15F04E9B-5893-4401-B864-BCDF7D67D13D','豸','',10,'C2C9C4BD-B10B-46AD-9468-66EF063517CF','Menu_SmartSite',1,0,1)
GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
- VALUES('B972AE90-D40C-44E0-9A90-7B47B2A3399B','Ž豸','',10,'15F04E9B-5893-4401-B864-BCDF7D67D13D','Menu_SmartSite',1,1,1)
+ VALUES('B972AE90-D40C-44E0-9A90-7B47B2A3399B','Ž豸','SmartSite/EquipmentManage.aspx?Type=D',10,'15F04E9B-5893-4401-B864-BCDF7D67D13D','Menu_SmartSite',1,1,1)
GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('641B763D-0C0D-4E52-8803-2E5743328A1F','B972AE90-D40C-44E0-9A90-7B47B2A3399B','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('DDE12996-0920-4BE9-A8EB-EB9CB1C7FB2F','B972AE90-D40C-44E0-9A90-7B47B2A3399B','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('8DD3B631-750C-4E0D-AAE0-0B05586C3490','B972AE90-D40C-44E0-9A90-7B47B2A3399B','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('EC0C885F-163C-4D3B-A301-8FF2C291F8D1','B972AE90-D40C-44E0-9A90-7B47B2A3399B','',4)
+ GO
+
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
- VALUES('908325CA-A50A-456D-8A7F-E193C629F2F9','豸','',20,'15F04E9B-5893-4401-B864-BCDF7D67D13D','Menu_SmartSite',1,1,1)
+ VALUES('908325CA-A50A-456D-8A7F-E193C629F2F9','豸','SmartSite/EquipmentManage.aspx?Type=M',20,'15F04E9B-5893-4401-B864-BCDF7D67D13D','Menu_SmartSite',1,1,1)
GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('26FC28FB-C3F2-44B5-8CF6-8AF2E153F2DF','908325CA-A50A-456D-8A7F-E193C629F2F9','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D5D95624-334C-489A-AE3B-A746D024C5A5','908325CA-A50A-456D-8A7F-E193C629F2F9','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('9CB845F6-42BA-4297-91BD-1233CDB97112','908325CA-A50A-456D-8A7F-E193C629F2F9','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('37C274EC-A2E2-4517-AB33-EDC4C36AC43D','908325CA-A50A-456D-8A7F-E193C629F2F9','',4)
+ GO
+
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
- VALUES('E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E','豸','',30,'15F04E9B-5893-4401-B864-BCDF7D67D13D','Menu_SmartSite',1,1,1)
+ VALUES('E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E','豸','SmartSite/EquipmentManage.aspx?Type=E',30,'15F04E9B-5893-4401-B864-BCDF7D67D13D','Menu_SmartSite',1,1,1)
GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('78439D40-B0DC-4BE2-B361-DF3B77F4D0E8','E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('3D0BC556-300A-4558-BFE8-4ABFF2A66473','E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('373C9D29-445D-4973-B6F6-19621D5BD4B5','E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('A07E64A2-4318-4E26-8F84-5A086D72EE9C','E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E','',4)
+ GO
+
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('04A361BF-BFC5-4D23-BF3C-3E5472D94A55','Ԥչ','',40,'15F04E9B-5893-4401-B864-BCDF7D67D13D','Menu_SmartSite',1,1,1)
GO
+
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('5D9BD2EC-8CF4-4579-91B9-786EBB0ADD12','','',20,'C2C9C4BD-B10B-46AD-9468-66EF063517CF','Menu_SmartSite',1,0,1)
GO
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('C126F42A-09B0-43D1-8DCF-9EA049B800A8','Ž豸','SmartSite/SoftManage.aspx?Type=D',10,'5D9BD2EC-8CF4-4579-91B9-786EBB0ADD12','Menu_SmartSite',1,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('C1945F59-AD5E-4301-9538-67511D0EB0EC','C126F42A-09B0-43D1-8DCF-9EA049B800A8','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('68776A89-A250-4188-99B2-9CD1B3FB7E28','C126F42A-09B0-43D1-8DCF-9EA049B800A8','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('79E96D30-B45F-47F5-8F1C-5E3FF009783C','C126F42A-09B0-43D1-8DCF-9EA049B800A8','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('066CA266-027D-4E74-8F7C-8AFB4F4C9602','C126F42A-09B0-43D1-8DCF-9EA049B800A8','',4)
+ GO
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('9F95F836-E10C-4EFD-B436-5C9D1658BAED','豸','SmartSite/SoftManage.aspx?Type=M',20,'5D9BD2EC-8CF4-4579-91B9-786EBB0ADD12','Menu_SmartSite',1,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('49057FC3-538A-4142-B192-D305B0CEF4A2','9F95F836-E10C-4EFD-B436-5C9D1658BAED','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('379D1D1F-CDC1-4C6D-AD3A-CE2186888C0A','9F95F836-E10C-4EFD-B436-5C9D1658BAED','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('AE6803C9-6923-481B-9CE5-AE85AC06B345','9F95F836-E10C-4EFD-B436-5C9D1658BAED','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('08F57065-5251-4EF4-B7D5-EA5C04056BB0','9F95F836-E10C-4EFD-B436-5C9D1658BAED','',4)
+ GO
+
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('834EE5EA-3DDA-49E1-A951-825392893E85','豸','SmartSite/SoftManage.aspx?Type=E',30,'5D9BD2EC-8CF4-4579-91B9-786EBB0ADD12','Menu_SmartSite',1,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('23EC254E-F074-426B-B105-3AB919416CE1','834EE5EA-3DDA-49E1-A951-825392893E85','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('6E414A46-C07B-4780-9D83-1B1993A87229','834EE5EA-3DDA-49E1-A951-825392893E85','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('C6A9D2D7-6A56-4508-9A3E-90986F57C125','834EE5EA-3DDA-49E1-A951-825392893E85','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('AC37EA29-3A1B-4272-9994-ED7AC19970B7','834EE5EA-3DDA-49E1-A951-825392893E85','',4)
+ GO
+
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('C724ADE0-F445-40C7-9B33-560809A1DBFE','ݽӿڹ','',30,'C2C9C4BD-B10B-46AD-9468-66EF063517CF','Menu_SmartSite',1,0,1)
GO
diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj
index a2f00b44..8d1969fe 100644
--- a/SGGL/BLL/BLL.csproj
+++ b/SGGL/BLL/BLL.csproj
@@ -629,6 +629,8 @@
Reference.svcmap
+
+
diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs
index 5cb82257..f5e2fc5d 100644
--- a/SGGL/BLL/Common/Const.cs
+++ b/SGGL/BLL/Common/Const.cs
@@ -194,6 +194,10 @@
///
public const string UnitId_SEDIN = "d72a27c9-4ba9-41c5-ab0b-c010409f20f2";
///
+ /// 集团公司单位id
+ ///
+ public const string UnitId_CNCEC = "722090d1-b5de-4c3c-a4f7-14f308161a3b";
+ ///
/// 赛鼎
///
public const string AppID_SEDIN = "wxee9d14366730ae44";
@@ -699,8 +703,6 @@
///
public const string Menu_Notice = "Menu_Notice";
-
-
/*项目*/
///
/// 项目设置
@@ -3016,6 +3018,39 @@
#endregion
#endregion
+ #region 智慧工地
+ ///
+ /// 门禁设备管理
+ ///
+ public const string EquipmentManageDMenuId = "B972AE90-D40C-44E0-9A90-7B47B2A3399B";
+
+ ///
+ /// 监控设备管理
+ ///
+ public const string EquipmentManageMMenuId = "908325CA-A50A-456D-8A7F-E193C629F2F9";
+
+ ///
+ /// 环境设备管理
+ ///
+ public const string EquipmentManageEMenuId = "E2C18D81-264E-4BAB-BCFC-DCB0DCFD582E";
+
+ ///
+ /// 门禁设备管理
+ ///
+ public const string SoftManageDMenuId = "C126F42A-09B0-43D1-8DCF-9EA049B800A8";
+
+ ///
+ /// 监控设备管理
+ ///
+ public const string SoftManageMMenuId = "9F95F836-E10C-4EFD-B436-5C9D1658BAED";
+
+ ///
+ /// 环境设备管理
+ ///
+ public const string SoftManageEMenuId = "834EE5EA-3DDA-49E1-A951-825392893E85";
+
+ #endregion
+
#endregion
#region 项目级菜单
diff --git a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs
index b7822e9e..eb3b4973 100644
--- a/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs
+++ b/SGGL/BLL/HSSE/SitePerson/SitePerson_PersonService.cs
@@ -781,17 +781,25 @@ namespace BLL
}
else
{
- var getPersons = db.Person_Persons.FirstOrDefault(x => x.IdentityCard == newPerson.IdentityCard);
- if (getPersons != null && (!getPersons.MultiProject.HasValue || getPersons.MultiProject == false))
+ var getDatePItem = db.SitePerson_PersonItem.FirstOrDefault(x => x.ProjectId == person.ProjectId && x.IdentityCard == person.IdentityCard && x.OutTime .HasValue && x.OutTime < person.InTime);
+ if (getDatePItem != null)
{
- var getdate = newPerson.InTime.HasValue ? newPerson.InTime.Value.AddDays(-1) : DateTime.Now;
- var getPersonItems = db.SitePerson_PersonItem.Where(x => x.PersonId == newPerson.PersonId && x.ProjectId != newPerson.ProjectId && !x.OutTime.HasValue);
- foreach(var item in getPersonItems)
- {
- item.OutTime = getdate;
- db.SubmitChanges();
- }
+ setPersonItemInOut = true;
}
+ else
+ {
+ var getPersons = db.Person_Persons.FirstOrDefault(x => x.IdentityCard == newPerson.IdentityCard);
+ if (getPersons != null && (!getPersons.MultiProject.HasValue || getPersons.MultiProject == false))
+ {
+ var getdate = newPerson.InTime.HasValue ? newPerson.InTime.Value.AddDays(-1) : DateTime.Now;
+ var getPersonItems = db.SitePerson_PersonItem.Where(x => x.PersonId == newPerson.PersonId && x.ProjectId != newPerson.ProjectId && !x.OutTime.HasValue);
+ foreach (var item in getPersonItems)
+ {
+ item.OutTime = getdate;
+ db.SubmitChanges();
+ }
+ }
+ }
}
}
if (setPersonItemInOut)
diff --git a/SGGL/BLL/ProjectData/ProjectService.cs b/SGGL/BLL/ProjectData/ProjectService.cs
index 5fc6aadc..a74ab175 100644
--- a/SGGL/BLL/ProjectData/ProjectService.cs
+++ b/SGGL/BLL/ProjectData/ProjectService.cs
@@ -356,7 +356,7 @@
}
}
- #region 项目表下拉框
+ #region 项目表下拉框 --施工项目
///
/// 项目表下拉框
///
@@ -364,6 +364,7 @@
/// 是否显示请选择
public static void InitProjectDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
{
+ dropName.Items.Clear();
dropName.DataValueField = "ProjectId";
dropName.DataTextField = "ProjectName";
dropName.DataSource = BLL.ProjectService.GetProjectWorkList();
@@ -381,6 +382,7 @@
/// 是否显示请选择
public static void InitProjectShortNameDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
{
+ dropName.Items.Clear();
dropName.DataValueField = "ProjectId";
dropName.DataTextField = "ShortName";
dropName.DataSource = BLL.ProjectService.GetProjectWorkList();
@@ -392,7 +394,7 @@
}
///
- /// 项目表下拉框
+ /// 项目表下拉框 --所有项目
///
/// 下拉框名字
/// 是否显示请选择
@@ -422,6 +424,7 @@
///
public static void InitAllProjectShortNameDropDownList(FineUIPro.DropDownList dropName, string userId, bool isShowPlease)
{
+ dropName.Items.Clear();
dropName.DataValueField = "ProjectId";
dropName.DataTextField = "ShortName";
var projectlist = GetProjectByUserIdDropDownList(userId);
@@ -444,6 +447,7 @@
/// 是否显示请选择
public static void InitProjectByProjectTypeDropDownList(FineUIPro.DropDownList dropName, string projectType, bool isShowPlease)
{
+ dropName.Items.Clear();
dropName.DataValueField = "ProjectId";
dropName.DataTextField = "ProjectName";
var projectlist = BLL.ProjectService.GetProjectByProjectTypeDropDownList(projectType);
diff --git a/SGGL/BLL/ProjectData/ProjectUnitService.cs b/SGGL/BLL/ProjectData/ProjectUnitService.cs
index 23eb78cf..bc03d2d0 100644
--- a/SGGL/BLL/ProjectData/ProjectUnitService.cs
+++ b/SGGL/BLL/ProjectData/ProjectUnitService.cs
@@ -133,7 +133,7 @@
var pUnit = Funs.DB.Project_ProjectUnit.FirstOrDefault(e => e.ProjectId == projectId && e.UnitId == unitId);
if (pUnit != null)
{
- if (pUnit.UnitType == Const.ProjectUnitType_2 || pUnit.UnitType == Const.ProjectUnitType_0)
+ if (pUnit.UnitType == Const.ProjectUnitType_2 || pUnit.UnitType == Const.ProjectUnitType_6 || pUnit.UnitType == Const.ProjectUnitType_0)
{
isShow = true;
}
diff --git a/SGGL/BLL/SmartSite/EquipmentService.cs b/SGGL/BLL/SmartSite/EquipmentService.cs
new file mode 100644
index 00000000..374fe59d
--- /dev/null
+++ b/SGGL/BLL/SmartSite/EquipmentService.cs
@@ -0,0 +1,130 @@
+using System.Collections.Generic;
+using System.Linq;
+
+namespace BLL
+{
+ ///
+ /// 设备管理
+ ///
+ public static class EquipmentService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+ ///
+ /// 根据主键获取设备管理
+ ///
+ ///
+ ///
+ public static Model.SmartSite_Equipment GetEquipmentByEquipmentId(string EquipmentId)
+ {
+ return Funs.DB.SmartSite_Equipment.FirstOrDefault(e => e.EquipmentId == EquipmentId);
+ }
+
+ ///
+ /// 获取设备管理名称是否存在
+ ///
+ /// 设备管理id
+ /// 名称
+ /// 是否存在
+ public static bool IsExistEquipment(string EquipmentId, string EquipmentName)
+ {
+ bool isExist = false;
+ var role = Funs.DB.SmartSite_Equipment.FirstOrDefault(x => x.EquipmentName == EquipmentName && x.EquipmentId != EquipmentId);
+ if (role != null)
+ {
+ isExist = true;
+ }
+ return isExist;
+ }
+
+ ///
+ /// 添加设备管理
+ ///
+ ///
+ public static void AddEquipment(Model.SmartSite_Equipment Equipment)
+ {
+ Model.SmartSite_Equipment newEquipment = new Model.SmartSite_Equipment
+ {
+ EquipmentId = Equipment.EquipmentId,
+ ProjectId = Equipment.ProjectId,
+ Type = Equipment.Type,
+ EquipmentName = Equipment.EquipmentName,
+ EquipmentModel = Equipment.EquipmentModel,
+ Number = Equipment.Number,
+ RunningState = Equipment.RunningState,
+ Supplier = Equipment.Supplier,
+ SupplierMan = Equipment.SupplierMan,
+ SupplierTel = Equipment.SupplierTel,
+ };
+ Funs.DB.SmartSite_Equipment.InsertOnSubmit(newEquipment);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改设备管理
+ ///
+ ///
+ public static void UpdateEquipment(Model.SmartSite_Equipment Equipment)
+ {
+ Model.SmartSite_Equipment newEquipment = Funs.DB.SmartSite_Equipment.FirstOrDefault(e => e.EquipmentId == Equipment.EquipmentId);
+ if (newEquipment != null)
+ {
+ newEquipment.Type = Equipment.Type;
+ newEquipment.EquipmentName = Equipment.EquipmentName;
+ newEquipment.EquipmentModel = Equipment.EquipmentModel;
+ newEquipment.Number = Equipment.Number;
+ newEquipment.RunningState = Equipment.RunningState;
+ newEquipment.Supplier = Equipment.Supplier;
+ newEquipment.SupplierMan = Equipment.SupplierMan;
+ newEquipment.SupplierTel = Equipment.SupplierTel;
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除设备管理
+ ///
+ ///
+ public static void DeleteEquipmentById(string EquipmentId)
+ {
+ Model.SmartSite_Equipment Equipment = Funs.DB.SmartSite_Equipment.FirstOrDefault(e => e.EquipmentId == EquipmentId);
+ if (Equipment != null)
+ {
+ Funs.DB.SmartSite_Equipment.DeleteOnSubmit(Equipment);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据部门Id获取设备管理下拉选择项
+ ///
+ ///
+ ///
+ public static List GetEquipmentList(string projectId, string type)
+ {
+ return (from x in Funs.DB.SmartSite_Equipment
+ where x.ProjectId == projectId && x.Type == type
+ orderby x.EquipmentName
+ select x).ToList();
+ }
+
+ #region 设备管理表下拉框
+ ///
+ /// 设备管理表下拉框
+ ///
+ /// 下拉框名字
+ /// 是否显示请选择
+ public static void InitEquipmentDropDownList(FineUIPro.DropDownList dropName, string projectId, string type, bool isShowPlease)
+ {
+ dropName.DataValueField = "EquipmentId";
+ dropName.DataTextField = "Equipment";
+ dropName.DataSource = BLL.EquipmentService.GetEquipmentList(projectId, type);
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+ #endregion
+ }
+}
diff --git a/SGGL/BLL/SmartSite/EquipmentSoftService.cs b/SGGL/BLL/SmartSite/EquipmentSoftService.cs
new file mode 100644
index 00000000..19084553
--- /dev/null
+++ b/SGGL/BLL/SmartSite/EquipmentSoftService.cs
@@ -0,0 +1,131 @@
+using System.Collections.Generic;
+using System.Linq;
+
+namespace BLL
+{
+ ///
+ /// 软件管理
+ ///
+ public static class EquipmentSoftService
+ {
+ public static Model.SGGLDB db = Funs.DB;
+
+ ///
+ /// 根据主键获取软件管理
+ ///
+ ///
+ ///
+ public static Model.SmartSite_EquipmentSoft GetEquipmentSoftByEquipmentSoftId(string EquipmentSoftId)
+ {
+ return Funs.DB.SmartSite_EquipmentSoft.FirstOrDefault(e => e.EquipmentSoftId == EquipmentSoftId);
+ }
+
+ ///
+ /// 获取软件管理名称是否存在
+ ///
+ /// 软件管理id
+ /// 名称
+ /// 是否存在
+ public static bool IsExistEquipmentSoft(string EquipmentSoftId, string EquipmentSoftName)
+ {
+ bool isExist = false;
+ var role = Funs.DB.SmartSite_EquipmentSoft.FirstOrDefault(x => x.EquipmentSoftName == EquipmentSoftName && x.EquipmentSoftId != EquipmentSoftId);
+ if (role != null)
+ {
+ isExist = true;
+ }
+ return isExist;
+ }
+
+ ///
+ /// 添加软件管理
+ ///
+ ///
+ public static void AddEquipmentSoft(Model.SmartSite_EquipmentSoft EquipmentSoft)
+ {
+ Model.SmartSite_EquipmentSoft newEquipmentSoft = new Model.SmartSite_EquipmentSoft
+ {
+ EquipmentSoftId = EquipmentSoft.EquipmentSoftId,
+ ProjectId = EquipmentSoft.ProjectId,
+ EquipmentId = EquipmentSoft.EquipmentId,
+ Type = EquipmentSoft.Type,
+ EquipmentSoftName = EquipmentSoft.EquipmentSoftName,
+ EquipmentSoftModel = EquipmentSoft.EquipmentSoftModel,
+ Number = EquipmentSoft.Number,
+ RunningState = EquipmentSoft.RunningState,
+ Supplier = EquipmentSoft.Supplier,
+ SupplierMan = EquipmentSoft.SupplierMan,
+ SupplierTel = EquipmentSoft.SupplierTel,
+ };
+ Funs.DB.SmartSite_EquipmentSoft.InsertOnSubmit(newEquipmentSoft);
+ Funs.DB.SubmitChanges();
+ }
+
+ ///
+ /// 修改软件管理
+ ///
+ ///
+ public static void UpdateEquipmentSoft(Model.SmartSite_EquipmentSoft EquipmentSoft)
+ {
+ Model.SmartSite_EquipmentSoft newEquipmentSoft = Funs.DB.SmartSite_EquipmentSoft.FirstOrDefault(e => e.EquipmentSoftId == EquipmentSoft.EquipmentSoftId);
+ if (newEquipmentSoft != null)
+ {
+ newEquipmentSoft.EquipmentId = EquipmentSoft.EquipmentId;
+ newEquipmentSoft.EquipmentSoftName = EquipmentSoft.EquipmentSoftName;
+ newEquipmentSoft.EquipmentSoftModel = EquipmentSoft.EquipmentSoftModel;
+ newEquipmentSoft.Number = EquipmentSoft.Number;
+ newEquipmentSoft.RunningState = EquipmentSoft.RunningState;
+ newEquipmentSoft.Supplier = EquipmentSoft.Supplier;
+ newEquipmentSoft.SupplierMan = EquipmentSoft.SupplierMan;
+ newEquipmentSoft.SupplierTel = EquipmentSoft.SupplierTel;
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据主键删除软件管理
+ ///
+ ///
+ public static void DeleteEquipmentSoftById(string EquipmentSoftId)
+ {
+ Model.SmartSite_EquipmentSoft EquipmentSoft = Funs.DB.SmartSite_EquipmentSoft.FirstOrDefault(e => e.EquipmentSoftId == EquipmentSoftId);
+ if (EquipmentSoft != null)
+ {
+ Funs.DB.SmartSite_EquipmentSoft.DeleteOnSubmit(EquipmentSoft);
+ Funs.DB.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据部门Id获取软件管理下拉选择项
+ ///
+ ///
+ ///
+ public static List GetEquipmentSoftList(string projectId, string type)
+ {
+ return (from x in Funs.DB.SmartSite_EquipmentSoft
+ where x.ProjectId == projectId && x.Type == type
+ orderby x.EquipmentSoftName
+ select x).ToList();
+ }
+
+ #region 软件管理表下拉框
+ ///
+ /// 软件管理表下拉框
+ ///
+ /// 下拉框名字
+ /// 是否显示请选择
+ public static void InitEquipmentSoftDropDownList(FineUIPro.DropDownList dropName, string projectId, string type, bool isShowPlease)
+ {
+ dropName.DataValueField = "EquipmentSoftId";
+ dropName.DataTextField = "EquipmentSoft";
+ dropName.DataSource = BLL.EquipmentSoftService.GetEquipmentSoftList(projectId, type);
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+ #endregion
+ }
+}
diff --git a/SGGL/BLL/SysManage/UnitService.cs b/SGGL/BLL/SysManage/UnitService.cs
index b5cfae88..a4bb89e0 100644
--- a/SGGL/BLL/SysManage/UnitService.cs
+++ b/SGGL/BLL/SysManage/UnitService.cs
@@ -473,23 +473,6 @@ namespace BLL
Funs.FineUIPleaseSelect(dropName);
}
}
-
- ///
- /// 根据单位类型获取单位表下拉框
- ///
- /// 下拉框名字
- /// 是否显示请选择
- public static void InitUnitNameByProjectIdUnitTypeDropDownList(FineUIPro.DropDownList dropName, string projectId, string unitType, bool isShowPlease)
- {
- dropName.DataValueField = "UnitName";
- dropName.DataTextField = "UnitName";
- dropName.DataSource = BLL.UnitService.GetUnitByProjectIdUnitTypeList(projectId, unitType);
- dropName.DataBind();
- if (isShowPlease)
- {
- Funs.FineUIPleaseSelect(dropName);
- }
- }
#endregion
///
@@ -579,22 +562,6 @@ namespace BLL
}
}
- ///
- /// 单位表下拉框
- ///
- /// 下拉框名字
- /// 是否显示请选择
- public static void GetUnit(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
- {
- dropName.DataValueField = "UnitId";
- dropName.DataTextField = "UnitName";
- dropName.DataSource = GetUnitByProjectIdList(projectId);
- dropName.DataBind();
- if (isShowPlease)
- {
- Funs.FineUIPleaseSelect(dropName);
- }
- }
public static void GetALLUnit(FineUIPro.DropDownList dropName, bool isShowPlease)
{
dropName.DataValueField = "UnitId";
@@ -657,6 +624,21 @@ namespace BLL
}
}
+ public static void InitSeDinAndCNCECUnitDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
+ {
+ dropName.Items.Clear();
+ dropName.DataValueField = "UnitId";
+ dropName.DataTextField = "UnitName";
+ dropName.DataSource = (from x in Funs.DB.Base_Unit
+ where x.UnitId==Const.UnitId_SEDIN || x.UnitId == Const.UnitId_CNCEC
+ select x).OrderByDescending(x => x.UnitCode).ToList();
+ dropName.DataBind();
+ if (isShowPlease)
+ {
+ Funs.FineUIPleaseSelect(dropName);
+ }
+ }
+
#region 根据多单位ID得到单位名称字符串
///
/// 根据多单位ID得到单位名称字符串
@@ -712,7 +694,7 @@ namespace BLL
///
///
///
- public static void InitUnitDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
+ public static void InitMainOrSubUnitDownList(FineUIPro.DropDownList dropName, string projectId, bool isShowPlease)
{
dropName.DataValueField = "Value";
dropName.DataTextField = "Text";
diff --git a/SGGL/FineUIPro.Web/CQMS/Check/EditTechnicalContactList.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/EditTechnicalContactList.aspx.cs
index 5977a5ef..44f4d020 100644
--- a/SGGL/FineUIPro.Web/CQMS/Check/EditTechnicalContactList.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Check/EditTechnicalContactList.aspx.cs
@@ -69,7 +69,7 @@ namespace FineUIPro.Web.CQMS.Check
if (!IsPostBack)
{
- UnitService.GetUnit(drpProposeUnit, CurrUser.LoginProjectId, false);
+ UnitService.InitUnitDropDownList(drpProposeUnit, CurrUser.LoginProjectId, false);
var unitWork = UnitWorkService.GetUnitWorkLists(CurrUser.LoginProjectId);
var unitWorks = from x in unitWork
select
diff --git a/SGGL/FineUIPro.Web/CQMS/Check/SpotCheck.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/SpotCheck.aspx.cs
index 6f1cc559..b9405ee7 100644
--- a/SGGL/FineUIPro.Web/CQMS/Check/SpotCheck.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Check/SpotCheck.aspx.cs
@@ -57,7 +57,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
- UnitService.GetUnit(drpUnit, CurrUser.LoginProjectId, true);
+ UnitService.InitUnitDropDownList(drpUnit, CurrUser.LoginProjectId, true);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
btnNew.OnClientClick = Window1.GetShowReference("EditSpotCheck.aspx") + "return false;";
GetButtonPower();
diff --git a/SGGL/FineUIPro.Web/CQMS/Check/SpotCheckFile.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/SpotCheckFile.aspx.cs
index b5a077d3..ada00ed3 100644
--- a/SGGL/FineUIPro.Web/CQMS/Check/SpotCheckFile.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Check/SpotCheckFile.aspx.cs
@@ -30,7 +30,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
- UnitService.GetUnit(drpUnit, CurrUser.LoginProjectId, true);
+ UnitService.InitUnitDropDownList(drpUnit, CurrUser.LoginProjectId, true);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
BindData();
diff --git a/SGGL/FineUIPro.Web/CQMS/Check/SpotDataCheck.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/SpotDataCheck.aspx.cs
index f39f3a33..adf5b3a3 100644
--- a/SGGL/FineUIPro.Web/CQMS/Check/SpotDataCheck.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Check/SpotDataCheck.aspx.cs
@@ -49,7 +49,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
- UnitService.GetUnit(drpUnit, CurrUser.LoginProjectId, true);
+ UnitService.InitUnitDropDownList(drpUnit, CurrUser.LoginProjectId, true);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
GetButtonPower();
BindData();
diff --git a/SGGL/FineUIPro.Web/CQMS/Check/TechnicalContactList.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/TechnicalContactList.aspx.cs
index 853e1253..1553fc35 100644
--- a/SGGL/FineUIPro.Web/CQMS/Check/TechnicalContactList.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Check/TechnicalContactList.aspx.cs
@@ -58,7 +58,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
- UnitService.GetUnit(drpProposeUnit, CurrUser.LoginProjectId, true);
+ UnitService.InitUnitDropDownList(drpProposeUnit, CurrUser.LoginProjectId, true);
Funs.FineUIPleaseSelect(this.drpContactListType);
Funs.FineUIPleaseSelect(this.drpIsReply);
Funs.FineUIPleaseSelect(this.drpState);
diff --git a/SGGL/FineUIPro.Web/CQMS/Check/TechnicalContactListFile.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/TechnicalContactListFile.aspx.cs
index 5627baab..07c05f33 100644
--- a/SGGL/FineUIPro.Web/CQMS/Check/TechnicalContactListFile.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Check/TechnicalContactListFile.aspx.cs
@@ -29,7 +29,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
- UnitService.GetUnit(drpProposeUnit, CurrUser.LoginProjectId, true);
+ UnitService.InitUnitDropDownList(drpProposeUnit, CurrUser.LoginProjectId, true);
Funs.FineUIPleaseSelect(this.drpContactListType);
Funs.FineUIPleaseSelect(this.drpIsReply);
UnitWorkService.InitUnitWorkDownList(drpUnitWork, this.CurrUser.LoginProjectId, true);
diff --git a/SGGL/FineUIPro.Web/CQMS/Check/WorkContactFile.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Check/WorkContactFile.aspx.cs
index cdd0f662..3a0467fd 100644
--- a/SGGL/FineUIPro.Web/CQMS/Check/WorkContactFile.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Check/WorkContactFile.aspx.cs
@@ -30,7 +30,7 @@ namespace FineUIPro.Web.CQMS.Check
{
if (!IsPostBack)
{
- UnitService.GetUnit(drpProposeUnit, CurrUser.LoginProjectId, true);
+ UnitService.InitUnitDropDownList(drpProposeUnit, CurrUser.LoginProjectId, true);
Funs.FineUIPleaseSelect(this.drpIsReply);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
BindGrid();
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTest.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTest.aspx.cs
index 00ceb9fd..464d54b1 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTest.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTest.aspx.cs
@@ -28,7 +28,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
btnNew.OnClientClick = Window1.GetShowReference("ConstructionTestEdit.aspx") + "return false;";
GetButtonPower();
BindGrid();
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTestEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTestEdit.aspx.cs
index 19bed248..d4a68c88 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTestEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTestEdit.aspx.cs
@@ -46,8 +46,8 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
- BLL.UnitService.GetUnit(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.ConstructionTestTypeService.InitConstructionTestType(this.drpConstructionTestType, true);
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpWitness, this.CurrUser.LoginProjectId, string.Empty, string.Empty, true);
ConstructionTestId = Request.Params["ConstructionTestId"];
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTestView.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTestView.aspx.cs
index 7a4aaf3e..3e0b661e 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTestView.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/ConstructionTestView.aspx.cs
@@ -46,8 +46,8 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
- BLL.UnitService.GetUnit(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.ConstructionTestTypeService.InitConstructionTestType(this.drpConstructionTestType, true);
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpWitness, this.CurrUser.LoginProjectId, string.Empty, string.Empty, true);
ConstructionTestId = Request.Params["ConstructionTestId"];
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/Equipment.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/Equipment.aspx.cs
index 2cbf9f10..31819f0a 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/Equipment.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/Equipment.aspx.cs
@@ -28,7 +28,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
btnNew.OnClientClick = Window1.GetShowReference("EquipmentEdit.aspx") + "return false;";
GetButtonPower();
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/EquipmentEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/EquipmentEdit.aspx.cs
index 83c4350b..2a2d661a 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/EquipmentEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/EquipmentEdit.aspx.cs
@@ -25,7 +25,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string EquipmentId = Request.Params["EquipmentId"];
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/EquipmentSearch.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/EquipmentSearch.aspx.cs
index a58c2797..d4840f86 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/EquipmentSearch.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/EquipmentSearch.aspx.cs
@@ -34,7 +34,7 @@ namespace FineUIPro.Web.CQMS.Material
{
this.ProjectId = this.CurrUser.LoginProjectId;
list = new List();
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
if (!string.IsNullOrEmpty(this.CurrUser.UnitId))
{
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/EquipmentView.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/EquipmentView.aspx.cs
index 9a406811..87597997 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/EquipmentView.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/EquipmentView.aspx.cs
@@ -25,7 +25,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string EquipmentId = Request.Params["EquipmentId"];
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/Inspection.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/Inspection.aspx.cs
index 704c59f7..3765d7d2 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/Inspection.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/Inspection.aspx.cs
@@ -40,7 +40,7 @@ namespace FineUIPro.Web.CQMS.Material
this.ProjectId = this.CurrUser.LoginProjectId;
//权限按钮方法
GetButtonPower();
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
Funs.FineUIPleaseSelect(this.drpState);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/InspectionEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/InspectionEdit.aspx.cs
index 738e1717..e7701c1b 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/InspectionEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/InspectionEdit.aspx.cs
@@ -46,7 +46,7 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
InspectionId = Request.Params["InspectionId"];
this.HideOptions.Hidden = true;
this.rblIsAgree.Hidden = true;
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/InspectionView.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/InspectionView.aspx.cs
index 8272adb5..46806684 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/InspectionView.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/InspectionView.aspx.cs
@@ -46,7 +46,7 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
InspectionId = Request.Params["InspectionId"];
if (!string.IsNullOrEmpty(InspectionId))
{
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/Material.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/Material.aspx.cs
index 3aa8649f..aef8dbd1 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/Material.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/Material.aspx.cs
@@ -28,7 +28,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
btnNew.OnClientClick = Window1.GetShowReference("MaterialEdit.aspx") + "return false;";
GetButtonPower();
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/MaterialEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/MaterialEdit.aspx.cs
index 9ac662f8..63dc5523 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/MaterialEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/MaterialEdit.aspx.cs
@@ -25,7 +25,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string MaterialId = Request.Params["MaterialId"];
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/MaterialSearch.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/MaterialSearch.aspx.cs
index ae8f9d23..33a61df3 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/MaterialSearch.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/MaterialSearch.aspx.cs
@@ -34,7 +34,7 @@ namespace FineUIPro.Web.CQMS.Material
{
this.ProjectId = this.CurrUser.LoginProjectId;
list = new List();
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
if (!string.IsNullOrEmpty(this.CurrUser.UnitId))
{
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/MaterialTest.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/MaterialTest.aspx.cs
index bcdc9b42..29955203 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/MaterialTest.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/MaterialTest.aspx.cs
@@ -28,7 +28,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
btnNew.OnClientClick = Window1.GetShowReference("MaterialTestEdit.aspx") + "return false;";
GetButtonPower();
BindGrid();
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/MaterialTestEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/MaterialTestEdit.aspx.cs
index 3224f62d..907f00d1 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/MaterialTestEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/MaterialTestEdit.aspx.cs
@@ -46,8 +46,8 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
- BLL.UnitService.GetUnit(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.MaterialTypeService.InitMaterialType(this.drpMaterialType, true);
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpWitness, this.CurrUser.LoginProjectId, string.Empty, string.Empty, true);
MaterialTestId = Request.Params["MaterialTestId"];
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/MaterialTestView.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/MaterialTestView.aspx.cs
index 8c0aa513..dca1e1fe 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/MaterialTestView.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/MaterialTestView.aspx.cs
@@ -46,8 +46,8 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
- BLL.UnitService.GetUnit(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpCheckUnit, this.CurrUser.LoginProjectId, true);
BLL.MaterialTypeService.InitMaterialType(this.drpMaterialType, true);
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpWitness, this.CurrUser.LoginProjectId, string.Empty, string.Empty, true);
MaterialTestId = Request.Params["MaterialTestId"];
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/MaterialView.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/MaterialView.aspx.cs
index 1591d4c0..1596139f 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/MaterialView.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/MaterialView.aspx.cs
@@ -24,7 +24,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string MaterialId = Request.Params["MaterialId"];
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervision.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervision.aspx.cs
index ad16a07d..62d06e16 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervision.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervision.aspx.cs
@@ -28,7 +28,7 @@ namespace FineUIPro.Web.CQMS.Material
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
btnNew.OnClientClick = Window1.GetShowReference("NoticeAndSupervisionEdit.aspx") + "return false;";
GetButtonPower();
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervisionEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervisionEdit.aspx.cs
index 9e9ee67c..37d5425f 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervisionEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervisionEdit.aspx.cs
@@ -46,7 +46,7 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.CurrUser.LoginProjectId, true);
BLL.NoticeAndSupervisionTypeService.InitNoticeAndSupervisionType(this.drpNoticeAndSupervisionType, true);
NoticeAndSupervisionId = Request.Params["NoticeAndSupervisionId"];
diff --git a/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervisionView.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervisionView.aspx.cs
index 9d13f8c5..ccff6879 100644
--- a/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervisionView.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Material/NoticeAndSupervisionView.aspx.cs
@@ -46,7 +46,7 @@ namespace FineUIPro.Web.CQMS.Material
{
if (!IsPostBack)
{
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.CurrUser.LoginProjectId, true);
BLL.NoticeAndSupervisionTypeService.InitNoticeAndSupervisionType(this.drpNoticeAndSupervisionType, true);
NoticeAndSupervisionId = Request.Params["NoticeAndSupervisionId"];
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx.cs
index b233634d..084942b0 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingEdit.aspx.cs
@@ -49,7 +49,7 @@ namespace FineUIPro.Web.CQMS.Meeting
MeetingId = Request.Params["MeetingId"];
this.drpHandleType.DataTextField = "Text";
this.drpHandleType.DataValueField = "Value";
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
this.HideOptions.Hidden = true;
this.rblIsAgree.Hidden = true;
BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpAttentPerson, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx.cs
index ff854b75..ac93262d 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/MonthMeetingView.aspx.cs
@@ -47,7 +47,7 @@ namespace FineUIPro.Web.CQMS.Meeting
if (!IsPostBack)
{
MeetingId = Request.Params["MeetingId"];
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpAttentPerson, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
if (!string.IsNullOrEmpty(MeetingId))
{
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx.cs
index bb6d42f6..f04dc421 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingEdit.aspx.cs
@@ -49,7 +49,7 @@ namespace FineUIPro.Web.CQMS.Meeting
MeetingId = Request.Params["MeetingId"];
this.drpHandleType.DataTextField = "Text";
this.drpHandleType.DataValueField = "Value";
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
this.HideOptions.Hidden = true;
this.rblIsAgree.Hidden = true;
BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpAttentPerson, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
diff --git a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx.cs
index 33a68a11..b130b235 100644
--- a/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Meeting/SpecialMeetingView.aspx.cs
@@ -47,7 +47,7 @@ namespace FineUIPro.Web.CQMS.Meeting
if (!IsPostBack)
{
MeetingId = Request.Params["MeetingId"];
- BLL.UnitService.GetUnit(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
BLL.SitePerson_PersonService.InitProjectUserListByProjectUnitTypeDropDownList(this.drpAttentPerson, this.CurrUser.LoginProjectId, Const.ProjectUnitType_1 + "," + Const.ProjectUnitType_2, true);
if (!string.IsNullOrEmpty(MeetingId))
{
diff --git a/SGGL/FineUIPro.Web/CQMS/Unqualified/AddWorkContactFinalFile.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Unqualified/AddWorkContactFinalFile.aspx.cs
index 33d6bde3..6b8ce9d3 100644
--- a/SGGL/FineUIPro.Web/CQMS/Unqualified/AddWorkContactFinalFile.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Unqualified/AddWorkContactFinalFile.aspx.cs
@@ -35,7 +35,7 @@ namespace FineUIPro.Web.CQMS.Unqualified
{
if (!IsPostBack)
{
- UnitService.GetUnit(drpUnit, CurrUser.LoginProjectId, false);
+ UnitService.InitUnitDropDownList(drpUnit, CurrUser.LoginProjectId, false);
//主送单位
gvMainSendUnit.DataSource = UnitService.GetUnitByProjectIdList(CurrUser.LoginProjectId);
gvMainSendUnit.DataBind();
diff --git a/SGGL/FineUIPro.Web/CQMS/Unqualified/ContactList.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Unqualified/ContactList.aspx.cs
index 3494df16..7830a0a3 100644
--- a/SGGL/FineUIPro.Web/CQMS/Unqualified/ContactList.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Unqualified/ContactList.aspx.cs
@@ -58,7 +58,7 @@ namespace FineUIPro.Web.CQMS.Unqualified
{
if (!IsPostBack)
{
- UnitService.GetUnit(drpProposeUnit, CurrUser.LoginProjectId, true);
+ UnitService.InitUnitDropDownList(drpProposeUnit, CurrUser.LoginProjectId, true);
Funs.FineUIPleaseSelect(this.drpIsReply);
Funs.FineUIPleaseSelect(this.drpState);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
diff --git a/SGGL/FineUIPro.Web/CQMS/Unqualified/EditWorkContact.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Unqualified/EditWorkContact.aspx.cs
index f5abf56c..0413cdfe 100644
--- a/SGGL/FineUIPro.Web/CQMS/Unqualified/EditWorkContact.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Unqualified/EditWorkContact.aspx.cs
@@ -53,7 +53,7 @@ namespace FineUIPro.Web.CQMS.Unqualified
{
if (!IsPostBack)
{
- UnitService.GetUnit(drpUnit, CurrUser.LoginProjectId, false);
+ UnitService.InitUnitDropDownList(drpUnit, CurrUser.LoginProjectId, false);
//主送单位
gvMainSendUnit.DataSource = UnitService.GetUnitByProjectIdList(CurrUser.LoginProjectId);
gvMainSendUnit.DataBind();
diff --git a/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx b/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx
index 3915cddf..dabc1087 100644
--- a/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx
+++ b/SGGL/FineUIPro.Web/File/Fastreport/组件打印.frx
@@ -1,5 +1,5 @@
-
+
using System;
using System.Collections;
using System.Collections.Generic;
@@ -99,7 +99,7 @@ namespace FastReport
}
-
+
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 3028b72f..346b8211 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1502,6 +1502,10 @@
+
+
+
+
@@ -12879,6 +12883,34 @@
SafetyBriefingEdit.aspx
+
+ SoftManage.aspx
+ ASPXCodeBehind
+
+
+ SoftManage.aspx
+
+
+ EquipmentManage.aspx
+ ASPXCodeBehind
+
+
+ EquipmentManage.aspx
+
+
+ SoftManageEdit.aspx
+ ASPXCodeBehind
+
+
+ SoftManageEdit.aspx
+
+
+ EquipmentManageEdit.aspx
+ ASPXCodeBehind
+
+
+ EquipmentManageEdit.aspx
+
CustomQuery.aspx
ASPXCodeBehind
@@ -13887,7 +13919,7 @@
True
0
/
- http://localhost:8667/
+ http://localhost:1773/
False
False
diff --git a/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx b/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx
index 8f3de89e..f9c5698c 100644
--- a/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx
+++ b/SGGL/FineUIPro.Web/HJGL/DataImport/MaterialInformation.aspx
@@ -72,7 +72,10 @@
EmptyText="输入查询条件" AutoPostBack="true" OnTextChanged="txtWeldJointCode_TextChanged"
Width="240px" LabelWidth="80px" LabelAlign="Right">
--%>
-
+
+
<%----%>
-
@@ -158,7 +161,7 @@
protected global::FineUIPro.Toolbar Toolbar3;
+ ///
+ /// txtMaterialCode2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMaterialCode2;
+
///
/// ToolbarFill1 控件。
///
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/MaterialManageEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/MaterialManageEdit.aspx.cs
index 778d2855..f806f826 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/MaterialManageEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/MaterialManageEdit.aspx.cs
@@ -25,7 +25,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string MaterialId = Request.Params["MaterialId"];
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/MaterialManageView.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/MaterialManageView.aspx.cs
index 0cbe922c..fcc38030 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/MaterialManageView.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/MaterialManageView.aspx.cs
@@ -24,7 +24,7 @@ namespace FineUIPro.Web.HJGL.PreDesign
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
- BLL.UnitService.GetUnit(this.drpUnit, this.ProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.MainItemService.InitMainItemDownList(drpMainItem, this.ProjectId, true);
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
string MaterialId = Request.Params["MaterialId"];
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx
index 39ae4b60..07f612ac 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipeline.aspx
@@ -131,8 +131,8 @@
-
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipelineQRCodeIn.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipelineQRCodeIn.aspx.cs
index 2e091215..5d6167cc 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipelineQRCodeIn.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PrePipelineQRCodeIn.aspx.cs
@@ -356,11 +356,11 @@ namespace FineUIPro.Web.HJGL.PreDesign
{
Model.HJGL_Pipeline_ComponentJoint hJGL_Pipeline_ComponentJoint = new Model.HJGL_Pipeline_ComponentJoint();
hJGL_Pipeline_ComponentJoint.Id = SQLHelper.GetNewID();
- ComponetJoint.PipelineComponentCode = item.PipelineComponentCode;
- ComponetJoint.PipelineComponentId = item.PipelineComponentId;
- ComponetJoint.WeldJointCode = joint.WeldJointCode;
- ComponetJoint.WeldJointId=joint.WeldJointId;
- HJGL_PipelineComponentjointService.AddHJGL_Pipeline_ComponentJoint(ComponetJoint);
+ hJGL_Pipeline_ComponentJoint.PipelineComponentCode = item.PipelineComponentCode;
+ hJGL_Pipeline_ComponentJoint.PipelineComponentId = item.PipelineComponentId;
+ hJGL_Pipeline_ComponentJoint.WeldJointCode = joint.WeldJointCode;
+ hJGL_Pipeline_ComponentJoint.WeldJointId=joint.WeldJointId;
+ HJGL_PipelineComponentjointService.AddHJGL_Pipeline_ComponentJoint(hJGL_Pipeline_ComponentJoint);
}
diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineMatIn.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineMatIn.aspx.cs
index acfad345..66b72644 100644
--- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineMatIn.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineMatIn.aspx.cs
@@ -1,4 +1,5 @@
using BLL;
+using MiniExcelLibs;
using Model;
using System;
using System.Collections.Generic;
@@ -325,6 +326,142 @@ namespace FineUIPro.Web.HJGL.WeldingManage
responeData.message = errorInfos;
}
+ return responeData;
+ }
+ private Model.ResponeData AddDatasetToSQL(List pds, int count)
+ {
+ Model.ResponeData responeData = new Model.ResponeData();
+ List result = new List();
+
+ if (count < 4)
+ {
+ responeData.code = 0;
+ responeData.message = "导入Excel格式错误!Excel只有" + count.ToString().Trim() + "列";
+ return responeData;
+ }
+ if (pds.Count > 0 && pds != null)
+ {
+
+ for (int i = 1; i < pds.Count; i++)
+ {
+ HJGL_PipeLineMat item = new HJGL_PipeLineMat();
+
+ #region 数据验证和赋值
+
+
+ string unitworkId = string.Empty;
+ unitworkId = Request.Params["UnitWorkId"];
+ string PipeArea = string.Empty;//管线划分 1工厂预制 2现场施工
+
+ if (pds[i].A != null && !string.IsNullOrEmpty(pds[i].A.ToString()))
+ {
+ string pipelineCode = pds[i].A.ToString();
+ var pipeline = from x in Funs.DB.HJGL_Pipeline where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == unitworkId && x.PipelineCode == pipelineCode select x;
+ if (pipeline.Count() > 0)
+ {
+ item.PipelineId = pipeline.First().PipelineId;
+ PipeArea = pipeline.First().PipeArea;
+ }
+ else
+ {
+ result.Add("不存在此管线号-" + pds[i].A.ToString());
+
+ }
+
+ }
+ else
+ {
+ result.Add((i + 2) + "Line, [管线号] 不能为空");
+ }
+
+
+ if (pds[i].C != null && !string.IsNullOrEmpty(pds[i].C.ToString()))
+ {
+ string materialCode = pds[i].C.ToString();
+ var lib = from x in Funs.DB.HJGL_MaterialCodeLib where x.MaterialCode == materialCode select x;
+ if (lib.Count() > 0)
+ {
+ item.MaterialCode = pds[i].C.ToString();
+ }
+ else
+ {
+ result.Add("不存在此材料编码-" + pds[i].C.ToString());
+
+ }
+
+ }
+ else
+ {
+ result.Add((i + 2) + "Line, [材料编码] 不能为空");
+ }
+
+ if (pds[i].D != null && !string.IsNullOrEmpty(pds[i].D.ToString()))
+ {
+ try
+ {
+ var number = Funs.GetNewDecimal(pds[i].D.ToString());
+ item.Number = number;
+ }
+ catch (Exception)
+ {
+ result.Add("第" + (i + 2).ToString() + "行," + "数量格式输入有误");
+ }
+
+ }
+ else
+ {
+ result.Add((i + 2) + "Line, [数量] 不能为空");
+ }
+
+ if (PipeArea == "1")
+ {
+ if (pds[i].B != null && !string.IsNullOrEmpty(pds[i].B.ToString()))
+ {
+ item.PrefabricatedComponents = pds[i].B.ToString();
+
+ }
+ else
+ {
+ result.Add((i + 2) + "Line, [预制组件] 不能为空");
+ }
+ }
+ var model = matList.Where(x => x.PipelineId == item.PipelineId && x.MaterialCode == item.MaterialCode && x.PrefabricatedComponents == item.PrefabricatedComponents);
+ if (model.Count() == 0)
+ {
+ matList.Add(item);
+
+ }
+
+ #endregion
+ }
+
+ if (result.Count > 0)
+ {
+ matList.Clear();
+ // result = result.Substring(0, result.LastIndexOf("|"));
+ errorInfos = string.Join("|", result.Distinct());
+ //Alert alert = new Alert();
+ //alert.Message = result;
+ //alert.Target = Target.Self;
+ //alert.Show();
+ responeData.code = 0;
+ responeData.message = errorInfos;
+ }
+ else
+ {
+ errorInfos = string.Empty;
+
+
+ }
+
+ }
+ else
+ {
+ responeData.code = 0;
+ responeData.message = "导入数据为空!";
+ }
+
+
return responeData;
}
#endregion
@@ -344,7 +481,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
return;
}
string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower();
- if (IsXls != ".xls" && IsXls != ".xlsx")
+ if (IsXls != ".xlsx")
{
ShowNotify("只能选择Excel文件!", MessageBoxIcon.Warning);
return;
@@ -365,26 +502,14 @@ namespace FineUIPro.Web.HJGL.WeldingManage
//文件上传服务器后的名称
string fileName = rootPath + initPath + this.hdFileName.Text;
//读取Excel
- DataSet ds = NPOIHelper.ExcelToDataSet(fileName, out errorInfos, true);
-
- //验证Excel读取是否有误
- if (!string.IsNullOrEmpty(errorInfos))
- {
- Alert alert = new Alert
- {
- Message = errorInfos,
- Target = Target.Self
- };
- alert.Show();
- //ShowNotify(errorInfos, MessageBoxIcon.Warning);
- return;
- }
- var reposedata= AddDatasetToSQL(ds.Tables[0], 4);
+ var ds = MiniExcel.Query(fileName).ToList();
+ var columns = MiniExcel.GetColumns(fileName);
+ var cnt = columns.Count;
+ var reposedata = AddDatasetToSQL(ds, cnt);
if (reposedata.code == 1)
{
State = (int)ButtonState.Import;
ShowNotify("审核完成请点击导入");
-
}
else
{
@@ -394,7 +519,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
Target = Target.Self
};
alert.Show();
- //ShowNotify(reposedata.message);
+ //ShowNotify(reposedata.message);
}
}
#region 导入
@@ -532,7 +657,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
foreach (var item in matList)
{
var pipeLineMat = from x in Funs.DB.HJGL_PipeLineMat where x.MaterialCode == item.MaterialCode && x.PipelineId == item.PipelineId &&x.PrefabricatedComponents==item.PrefabricatedComponents select x;
- if (pipeLineMat.Count() == 0)
+ if (pipeLineMat.Count() == 0|| pipeLineMat==null)
{
item.PipeLineMatId = SQLHelper.GetNewID(typeof(Model.HJGL_PipeLineMat));
BLL.PipelineMatService.AddPipeLineMat(item);
diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialEdit.aspx.cs
index 79bac991..b9593049 100644
--- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecialEdit.aspx.cs
@@ -139,7 +139,7 @@ namespace FineUIPro.Web.HSSE.Check
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpPartInPersons, this.ProjectId, null, null, true);
ConstValue.InitConstNameDropDownList(this.drpHandleStep, ConstValue.Group_HandleStep, true);
///责任单位
- UnitService.InitUnitNameByProjectIdUnitTypeDropDownList(this.drpWorkUnit, this.ProjectId, Const.ProjectUnitType_2, false);
+ UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpWorkUnit, this.ProjectId, Const.ProjectUnitType_2, false);
///单位工程
UnitWorkService.InitUnitWorkNameDropDownList(this.drpCheckArea, this.ProjectId, false);
}
diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/CostSummary.aspx.cs b/SGGL/FineUIPro.Web/HSSE/CostGoods/CostSummary.aspx.cs
index 5cb907a0..8d58f331 100644
--- a/SGGL/FineUIPro.Web/HSSE/CostGoods/CostSummary.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/CostSummary.aspx.cs
@@ -219,7 +219,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
var getCostManageItem = from x in Funs.DB.CostGoods_CostManageItem
join y in Funs.DB.CostGoods_CostManage on x.CostManageId equals y.CostManageId
- where y.ProjectId == this.ProjectId && (unitId == null || y.UnitId == unitId)
+ where y.ProjectId == this.ProjectId && (unitId == null || y.UnitId == unitId) && y.States==Const.State_2
select new { x.CostManageId, x.CostManageItemId, Year = y.CostManageDate.Value.Year, x.SupCostTypeId, x.CostTypeId, x.PriceMoney };
foreach (var item in getType)
diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/CostSummaryUnit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/CostGoods/CostSummaryUnit.aspx.cs
index db38c001..ea8eb445 100644
--- a/SGGL/FineUIPro.Web/HSSE/CostGoods/CostSummaryUnit.aspx.cs
+++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/CostSummaryUnit.aspx.cs
@@ -231,7 +231,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
var getCostManageItem = from x in Funs.DB.CostGoods_CostManageItem
join y in Funs.DB.CostGoods_CostManage on x.CostManageId equals y.CostManageId
- where y.ProjectId == this.ProjectId && (!year.HasValue || y.CostManageDate.Value.Year == year)
+ where y.ProjectId == this.ProjectId && (!year.HasValue || y.CostManageDate.Value.Year == year) && y.States == Const.State_2
select new { x.CostManageId, x.CostManageItemId, y.UnitId, Year = y.CostManageDate.Value.Year, x.SupCostTypeId, x.CostTypeId, x.PriceMoney };
var getType = (from x in getDetail select new { x.SupSortIndex, x.SortIndex, x.CostType }).Distinct();
diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckNotice.aspx b/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckNotice.aspx
index 9b4bc73c..09f439a3 100644
--- a/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckNotice.aspx
+++ b/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckNotice.aspx
@@ -153,10 +153,6 @@
SortField="CheckPostName" FieldType="String" HeaderText="工作组职务"
HeaderTextAlign="Center" TextAlign="Left">
-
-
diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckNoticeEdit.aspx.cs b/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckNoticeEdit.aspx.cs
index e765a26e..6216aa92 100644
--- a/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckNoticeEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckNoticeEdit.aspx.cs
@@ -36,7 +36,7 @@ namespace FineUIPro.Web.OfficeCheck.Check
this.GetButtonPower();
BLL.ProjectService.InitAllProjectDropDownList(this.drpSubjectProject, true);
- BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitSeDinAndCNCECUnitDropDownList(this.drpUnit, false);
this.CheckNoticeId = Request.Params["CheckNoticeId"];
if (!string.IsNullOrEmpty(this.CheckNoticeId))
diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckTeamEdit.aspx b/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckTeamEdit.aspx
index 2537aa87..c1566f44 100644
--- a/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckTeamEdit.aspx
+++ b/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckTeamEdit.aspx
@@ -24,7 +24,8 @@
-
+
@@ -52,10 +53,10 @@
-
+
-
+
diff --git a/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckTeamEdit.aspx.cs b/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckTeamEdit.aspx.cs
index 1583e75c..8d16b2e9 100644
--- a/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckTeamEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/OfficeCheck/Check/CheckTeamEdit.aspx.cs
@@ -50,7 +50,7 @@ namespace FineUIPro.Web.OfficeCheck.Check
this.CheckNoticeId = Request.Params["CheckNoticeId"];
this.CheckTeamId = Request.Params["CheckTeamId"];
- BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, true);
+ BLL.UnitService.InitUnitDropDownList(this.drpUnit, null, true);
if (!string.IsNullOrEmpty(this.CheckTeamId))
{
diff --git a/SGGL/FineUIPro.Web/Person/PersonEdit.aspx b/SGGL/FineUIPro.Web/Person/PersonEdit.aspx
index 45de5e80..277658c8 100644
--- a/SGGL/FineUIPro.Web/Person/PersonEdit.aspx
+++ b/SGGL/FineUIPro.Web/Person/PersonEdit.aspx
@@ -95,7 +95,7 @@
-
+
@@ -440,6 +440,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ private void getInitGridQuarterCheck()
+ {
+ Funs.DropDownPageSize(this.ddlPageSizeGridQuarterCheck);
+ BindGridQuarterCheck();
+ }
+
+ #region 绑定数据
+ ///
+ /// 绑定数据
+ ///
+ private void BindGridQuarterCheck()
+ {
+ string strSql = @"select QuarterCheckId, QuarterCheckName, C.UserId, C.ProjectId,
+ StartTime,EndTime,State,R.RoleName,P.ProjectName,(case when c.State ='1' then '考核结束' else '正在考核' end) as StateName
+ from [dbo].[Person_QuarterCheck] C
+ left join Sys_Role R on C.RoleId=R.RoleId
+ left join Base_Project P on C.ProjectId=P.ProjectId
+ where 1=1 ";
+ List listStr = new List();
+ if (this.CurrUser.PersonId != BLL.Const.sysglyId && this.CurrUser.PersonId != BLL.Const.hfnbdId)
+ {
+ strSql += " AND C.UserId=@UserId ";
+ listStr.Add(new SqlParameter("@UserId", this.PersonId));
+ }
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ GridQuarterCheck.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(GridQuarterCheck, tb);
+ GridQuarterCheck.DataSource = table;
+ GridQuarterCheck.DataBind();
+ }
+ #endregion
+
+ #region gv字段转换
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected string ConvertGrade(object QuarterCheckId)
+ {
+ decimal grade = 0;
+ if (!string.IsNullOrEmpty(QuarterCheckId.ToString()))
+ {
+ var list = BLL.Person_QuarterCheckItemService.GetCheckItemListById(QuarterCheckId.ToString());
+ foreach (var item in list)
+ {
+ if (item.Grade != null)
+ {
+ grade += item.Grade.Value * item.StandardGrade.Value / 100;
+ }
+ }
+
+ }
+ return grade.ToString("0.##");
+ }
+ #endregion
+
+ #region 分页
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ protected void GridQuarterCheck_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGridQuarterCheck();
+ }
+
+ ///
+ /// 分页显示条数下拉框
+ ///
+ ///
+ ///
+ protected void ddlPageSizeGridQuarterCheck_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ GridQuarterCheck.PageSize = Convert.ToInt32(ddlPageSizeGridQuarterCheck.SelectedValue);
+ BindGridQuarterCheck();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void GridQuarterCheck_Sort(object sender, FineUIPro.GridSortEventArgs e)
+ {
+ BindGridQuarterCheck();
+ }
+ #endregion
+
+ ///
+ /// 双击事件
+ ///
+ ///
+ ///
+ protected void GridQuarterCheck_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ this.EditDataQuarterCheck();
+ }
+ protected void btnQuarterCheckEdit_Click(object sender, EventArgs e)
+ {
+ this.EditDataQuarterCheck();
+ }
+
+ ///
+ /// 编辑数据方法
+ ///
+ private void EditDataQuarterCheck()
+ {
+ if (GridQuarterCheck.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInParent("请至少选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DepartPersonCheckingView.aspx?QuarterCheckId={0}", GridQuarterCheck.SelectedRowID, "编辑 - ")));
+ }
+
+ #endregion
+
#region 员工责任书
///
///
diff --git a/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.designer.cs
index a04c2581..9236313a 100644
--- a/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.designer.cs
@@ -779,6 +779,60 @@ namespace FineUIPro.Web.Person
///
protected global::FineUIPro.DropDownList ddlPageSizeGridTrain;
+ ///
+ /// QuarterCheck 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Tab QuarterCheck;
+
+ ///
+ /// GridQuarterCheck 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid GridQuarterCheck;
+
+ ///
+ /// lbGrade 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lbGrade;
+
+ ///
+ /// ToolbarSeparator5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator5;
+
+ ///
+ /// ToolbarText5 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText5;
+
+ ///
+ /// ddlPageSizeGridQuarterCheck 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSizeGridQuarterCheck;
+
///
/// Duty 控件。
///
@@ -977,6 +1031,24 @@ namespace FineUIPro.Web.Person
///
protected global::FineUIPro.MenuButton btnDutyEdit;
+ ///
+ /// MenuQuarterCheck 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu MenuQuarterCheck;
+
+ ///
+ /// btnQuarterCheckEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnQuarterCheckEdit;
+
///
/// MenuInOut 控件。
///
diff --git a/SGGL/FineUIPro.Web/Person/PersonView.aspx b/SGGL/FineUIPro.Web/Person/PersonView.aspx
index fd46bc7b..dd615666 100644
--- a/SGGL/FineUIPro.Web/Person/PersonView.aspx
+++ b/SGGL/FineUIPro.Web/Person/PersonView.aspx
@@ -259,7 +259,7 @@
SortField="SendDate" ForceFit="true" EnableColumnLines="true" BoxFlex="1" PageSize="10"
SortDirection="DESC" OnSort="GridCertificate_Sort" AllowPaging="true" IsDatabasePaging="true"
OnPageIndexChange="GridCertificate_PageIndexChange" EnableTextSelection="True"
- EnableRowDoubleClickEvent="true" OnRowDoubleClick="GridCertificate_RowDoubleClick">
+ EnableRowDoubleClickEvent="true" OnRowDoubleClick="GridCertificate_RowDoubleClick">
@@ -284,7 +284,7 @@
-
@@ -313,7 +313,7 @@
SortField="TrainDate" ForceFit="true" EnableColumnLines="true" BoxFlex="1" PageSize="10"
SortDirection="DESC" OnSort="GridTrain_Sort" AllowPaging="true" IsDatabasePaging="true"
OnPageIndexChange="GridTrain_PageIndexChange" EnableTextSelection="True"
- EnableRowDoubleClickEvent="true" OnRowDoubleClick="GridTrain_RowDoubleClick">
+ EnableRowDoubleClickEvent="true" OnRowDoubleClick="GridTrain_RowDoubleClick">
@@ -345,6 +345,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ EnableRowDoubleClickEvent="true" OnRowDoubleClick="GridInOut_RowDoubleClick">
@@ -449,6 +497,11 @@
runat="server" Text="查看" Icon="Find">
+