From fa5239c1aa008fb16fd119bf300826a61e2c3b39 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Thu, 25 Jan 2024 17:03:42 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/BLL.csproj | 5 ++- .../ThoughtWorks.QRCode.Fakes.dll | Bin 150528 -> 150528 bytes .../ThoughtWorks.QRCode.Fakes.messages | 30 +++++++++--------- SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user | 2 +- SGGL/FineUIPro.Web/Web.config | 2 +- SGGL/SgManager.AI/SgManager.AI.csproj | 5 ++- SGGL/WebAPI/WebAPI.csproj.user | 2 +- 7 files changed, 22 insertions(+), 24 deletions(-) diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 1a5fbae2..3262f056 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -44,9 +44,8 @@ latest - - False - bin\Debug\Apache.NMS.ActiveMQ.dll + + ..\..\..\SGGL_CWCEC\SGGL\BLL\bin\Debug\Apache.NMS.ActiveMQ.dll False diff --git a/SGGL/FineUIPro.Web/FakesAssemblies/ThoughtWorks.QRCode.Fakes.dll b/SGGL/FineUIPro.Web/FakesAssemblies/ThoughtWorks.QRCode.Fakes.dll index b45bb54b80f312efe6e43f6b916478ff340de640..561f26adb0adeccf79c500f6f1b8ba148e857a0e 100644 GIT binary patch delta 125 zcmZpe!Pzi_b3zA8t<0v>#-6P`j0w*K=G=S3qw!~|&kBbSPG&C4w(WnOF@A~B0V!bs z0wy4qVPs(7NMd5(aA9Hy3U&#;(@-?$wbm|=*<~}`Pw@LUO_yuyCvGCjSIrrwi?b!b38RM529gq?R zAYcMw8Ab*MjwB`q4i_edpkS9^WB;p9CR=bjt(<=K?XQ3vz0+k}m=w8!-Q9iSox`17 Uou>!7FkPN#z_ne)mFW%}07+FW^Z)<= diff --git a/SGGL/FineUIPro.Web/FakesAssemblies/ThoughtWorks.QRCode.Fakes.messages b/SGGL/FineUIPro.Web/FakesAssemblies/ThoughtWorks.QRCode.Fakes.messages index 4290c17a..1f18a040 100644 --- a/SGGL/FineUIPro.Web/FakesAssemblies/ThoughtWorks.QRCode.Fakes.messages +++ b/SGGL/FineUIPro.Web/FakesAssemblies/ThoughtWorks.QRCode.Fakes.messages @@ -1,15 +1,15 @@ -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Properties.Resources 生成存根: 类型对 exported or assembly(ThoughtWorks.QRCode.Fakes) 不可见。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Reader.Pattern.AlignmentPattern 生成存根: 类型没有系列可见的构造函数。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Util.Color_Fields 生成存根: 类型是一个值类型。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Reader.Pattern.FinderPattern 生成存根: 类型没有系列可见的构造函数。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 {09D8BC6E-02EC-4FA4-99BD-B668F38E6DC6} 生成存根: 类型不受支持,因为存在内部限制。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Util.DebugCanvas 生成填充码: 类型是一个接口。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Geom.SamplingGrid+AreaGrid 生成填充码: 类型对 exported or assembly(ThoughtWorks.QRCode.Fakes) 不可见。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.QRCodeDecoder+DecodeResult 生成填充码: 类型对 exported or assembly(ThoughtWorks.QRCode.Fakes) 不可见。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Data.QRCodeImage 生成填充码: 类型是一个接口。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Properties.Resources 生成填充码: 类型对 exported or assembly(ThoughtWorks.QRCode.Fakes) 不可见。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Reader.QRCodeImageReader+ModulePitch 生成填充码: 类型对 exported or assembly(ThoughtWorks.QRCode.Fakes) 不可见。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.QRCodeEncoder+ENCODE_MODE 生成填充码: 类型是一个枚举。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.QRCodeEncoder+ERROR_CORRECTION 生成填充码: 类型是一个枚举。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Util.Color 生成填充码: 类型是一个接口。 -E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 {09D8BC6E-02EC-4FA4-99BD-B668F38E6DC6} 生成填充码: 类型不受支持,因为存在内部限制。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Properties.Resources 生成存根: 类型对 exported or assembly(ThoughtWorks.QRCode.Fakes) 不可见。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Reader.Pattern.AlignmentPattern 生成存根: 类型没有系列可见的构造函数。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Util.Color_Fields 生成存根: 类型是一个值类型。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Reader.Pattern.FinderPattern 生成存根: 类型没有系列可见的构造函数。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 {09D8BC6E-02EC-4FA4-99BD-B668F38E6DC6} 生成存根: 类型不受支持,因为存在内部限制。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Util.DebugCanvas 生成填充码: 类型是一个接口。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Geom.SamplingGrid+AreaGrid 生成填充码: 类型对 exported or assembly(ThoughtWorks.QRCode.Fakes) 不可见。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.QRCodeDecoder+DecodeResult 生成填充码: 类型对 exported or assembly(ThoughtWorks.QRCode.Fakes) 不可见。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Data.QRCodeImage 生成填充码: 类型是一个接口。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Properties.Resources 生成填充码: 类型对 exported or assembly(ThoughtWorks.QRCode.Fakes) 不可见。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Reader.QRCodeImageReader+ModulePitch 生成填充码: 类型对 exported or assembly(ThoughtWorks.QRCode.Fakes) 不可见。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.QRCodeEncoder+ENCODE_MODE 生成填充码: 类型是一个枚举。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.QRCodeEncoder+ERROR_CORRECTION 生成填充码: 类型是一个枚举。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 ThoughtWorks.QRCode.Codec.Util.Color 生成填充码: 类型是一个接口。 +E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Fakes\ThoughtWorks.QRCode.fakes : warning : 无法为 {09D8BC6E-02EC-4FA4-99BD-B668F38E6DC6} 生成填充码: 类型不受支持,因为存在内部限制。 diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user index 5c318055..c78536b4 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU true false diff --git a/SGGL/FineUIPro.Web/Web.config b/SGGL/FineUIPro.Web/Web.config index 37de607d..f2c2e849 100644 --- a/SGGL/FineUIPro.Web/Web.config +++ b/SGGL/FineUIPro.Web/Web.config @@ -76,7 +76,7 @@ - + diff --git a/SGGL/SgManager.AI/SgManager.AI.csproj b/SGGL/SgManager.AI/SgManager.AI.csproj index 417aa6e4..bbe7f573 100644 --- a/SGGL/SgManager.AI/SgManager.AI.csproj +++ b/SGGL/SgManager.AI/SgManager.AI.csproj @@ -34,9 +34,8 @@ ..\packages\Baidu.AI.4.15.9\lib\net45\AipSdk.dll - - False - bin\Debug\AOP.Common.dll + + ..\..\..\SGGL_CWCEC\SGGL\SgManager.AI\bin\Debug\AOP.Common.dll ..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll diff --git a/SGGL/WebAPI/WebAPI.csproj.user b/SGGL/WebAPI/WebAPI.csproj.user index 6bc24ada..4edb5e0f 100644 --- a/SGGL/WebAPI/WebAPI.csproj.user +++ b/SGGL/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU true From 78d69f040a00bc02aa13e6ee35960b49f0110ab0 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Fri, 26 Jan 2024 09:43:00 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1-13移交管理(Menu_Transfer).sql | 161 +++ SGGL/BLL/Common/Const.cs | 4 + SGGL/FineUIPro.Web/ErrLog.txt | 77 ++ .../TestRun/DriverRun/DriverRunPlan.aspx | 4 +- SGGL/FineUIPro.Web/common/Menu_TestRun.xml | 10 +- SGGL/FineUIPro.Web/common/Menu_Transfer.xml | 16 + SGGL/FineUIPro.Web/indexProject.aspx | 86 +- SGGL/FineUIPro.Web/indexProject.aspx.cs | 5 + .../indexProject.aspx.designer.cs | 957 +++++++++--------- 9 files changed, 802 insertions(+), 518 deletions(-) create mode 100644 DataBase/菜单初始化脚本/1-13移交管理(Menu_Transfer).sql create mode 100644 SGGL/FineUIPro.Web/common/Menu_Transfer.xml diff --git a/DataBase/菜单初始化脚本/1-13移交管理(Menu_Transfer).sql b/DataBase/菜单初始化脚本/1-13移交管理(Menu_Transfer).sql new file mode 100644 index 00000000..6a324c30 --- /dev/null +++ b/DataBase/菜单初始化脚本/1-13移交管理(Menu_Transfer).sql @@ -0,0 +1,161 @@ +--delete from Sys_ButtonToMenu where MenuId in (select MenuId from Sys_Menu where MenuType='Menu_Transfer') +--go +--delete from Sys_Menu where MenuType='Menu_Transfer' +--go +/****ƽ******/ + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('48545C6A-9D10-47F4-810F-DAB0CFCD5BF9','Project Set up','Transfer/ProjectSetup.aspx',10,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('6E970072-9DFC-40CE-A3A6-9F5A015FEA22','48545C6A-9D10-47F4-810F-DAB0CFCD5BF9','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('39235E4D-19FB-46B8-BB7A-4BC5E3F1AB6A','48545C6A-9D10-47F4-810F-DAB0CFCD5BF9','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('E1D85DB5-8707-47DF-9EB3-93A2A99C75EA','48545C6A-9D10-47F4-810F-DAB0CFCD5BF9','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('E5CDF4A0-82B2-4DEA-B268-0F5D3301A445','48545C6A-9D10-47F4-810F-DAB0CFCD5BF9','',4) + GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('D94C1BA4-9DFD-4514-AE12-6F886C5D8C9B','Piping','Transfer/Piping.aspx',20,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('AD0B5CEF-B899-457C-ACF8-A67B4DEF878A','D94C1BA4-9DFD-4514-AE12-6F886C5D8C9B','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('70EED055-CC6A-4865-8B2E-114C35E82E39','D94C1BA4-9DFD-4514-AE12-6F886C5D8C9B','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('5FEE485E-6467-4E46-96A3-6BBA9E6F1286','D94C1BA4-9DFD-4514-AE12-6F886C5D8C9B','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('A7261F8E-0125-44AE-AF83-BDA183449AD8','D94C1BA4-9DFD-4514-AE12-6F886C5D8C9B','',4) + GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('982F746C-084C-445C-9AE8-8C37BDFE7994','Static Equipment','Transfer/StaticEquipment.aspx',30,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('E2741AC7-5C4C-4139-88CD-12222DC2A4E3','982F746C-084C-445C-9AE8-8C37BDFE7994','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('60049873-F545-41B3-8B08-0DEA553F81FA','982F746C-084C-445C-9AE8-8C37BDFE7994','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('44481C00-0BF4-4EE3-AFC3-411A4F5B881C','982F746C-084C-445C-9AE8-8C37BDFE7994','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('FD7E6267-969E-4901-8049-450C2880872F','982F746C-084C-445C-9AE8-8C37BDFE7994','',4) + GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('7E2FB5F9-FB99-4455-B68F-460F1F9A2676','Rotating Equipment','Transfer/RotatingEquipment.aspx',40,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('B09F73C4-167E-4804-9B20-1C7E7ABA96DB','7E2FB5F9-FB99-4455-B68F-460F1F9A2676','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('D5F7C2ED-05D9-43DA-81A9-0034B50AD7DB','7E2FB5F9-FB99-4455-B68F-460F1F9A2676','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('757A58C3-D376-4F19-ACB6-565F5B015DA0','7E2FB5F9-FB99-4455-B68F-460F1F9A2676','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('F6EB21B0-E7AD-41E5-BDE2-1DC0CE4CEDD4','7E2FB5F9-FB99-4455-B68F-460F1F9A2676','',4) + GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('88F51059-55B4-4CD5-A38C-36404E5029F6','Instrumentation','Transfer/Instrumentation.aspx',50,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('889D04B0-5F40-468E-BE65-ED9B576EF313','88F51059-55B4-4CD5-A38C-36404E5029F6','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('C91D3869-B79E-4454-8C1B-2B1301FC56C5','88F51059-55B4-4CD5-A38C-36404E5029F6','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('08A02910-BF88-4B9F-A8CB-D54706E81184','88F51059-55B4-4CD5-A38C-36404E5029F6','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('CEA055B3-9520-456C-8D70-8C820D51BBBE','88F51059-55B4-4CD5-A38C-36404E5029F6','',4) + GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('296E75D2-192A-4D1F-8471-DD34263F8691','Electrical','Transfer/Electrical.aspx',60,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('9CF430F0-596E-4BCC-943E-FE799DF72C72','296E75D2-192A-4D1F-8471-DD34263F8691','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('AAA49312-75D0-44FE-AD32-3DA1880FD450','296E75D2-192A-4D1F-8471-DD34263F8691','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('62C002B0-7389-49CD-9352-B83405957158','296E75D2-192A-4D1F-8471-DD34263F8691','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('EA70F6FF-580A-4B34-952D-E73CD600FDDC','296E75D2-192A-4D1F-8471-DD34263F8691','',4) + GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('95C39F86-C060-452E-BA37-D891C466A39B','Civil Structure','Transfer/CivilStructure.aspx',70,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('CC878775-8A81-4CA5-985F-FB98F395BA80','95C39F86-C060-452E-BA37-D891C466A39B','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('40EB1B73-264C-4D13-BD78-8459BC095BAC','95C39F86-C060-452E-BA37-D891C466A39B','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('E01E66DA-0D6E-4C21-83FA-BDBE3C7AEF6D','95C39F86-C060-452E-BA37-D891C466A39B','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('9CEF63B4-B30E-4649-836C-FC1FCDEA2BE3','95C39F86-C060-452E-BA37-D891C466A39B','',4) + GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('794E64E2-FDD2-4B7D-8408-F7FB06F9C92A','Firefighting','Transfer/Firefighting.aspx',80,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('F3047B05-5EAB-4790-B3BE-7CAF33518A3E','794E64E2-FDD2-4B7D-8408-F7FB06F9C92A','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('4EAD0DCD-2E73-4E0F-BA98-0FFFB92BEDB1','794E64E2-FDD2-4B7D-8408-F7FB06F9C92A','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('76104629-1A9C-4608-BDE7-4BE57DE3984D','794E64E2-FDD2-4B7D-8408-F7FB06F9C92A','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('3A4C20E2-8CEF-43C2-BDA6-445C1409B32F','794E64E2-FDD2-4B7D-8408-F7FB06F9C92A','',4) + GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('58FFBD80-ACB9-4830-A18A-E025D9600D94','Telecom','Transfer/Telecom.aspx',90,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('902C9E46-B643-4A66-90D1-E21E62F8EF58','58FFBD80-ACB9-4830-A18A-E025D9600D94','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('B88B8F80-DAC2-4B23-931F-01AD574B1792','58FFBD80-ACB9-4830-A18A-E025D9600D94','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('D21FDD31-16CB-4092-AD70-7E850816014B','58FFBD80-ACB9-4830-A18A-E025D9600D94','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('63834C81-A947-4314-94B4-B000B5BB7844','58FFBD80-ACB9-4830-A18A-E025D9600D94','',4) + GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('95295BF7-FB51-480D-9902-6ADA4E8427FC','Plumbing','Transfer/Plumbing.aspx',100,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('DEE3945E-8B3D-41B5-B44F-9B0D9F18839E','95295BF7-FB51-480D-9902-6ADA4E8427FC','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('13D22364-0BF2-4A1D-8174-31853C0525EC','95295BF7-FB51-480D-9902-6ADA4E8427FC','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('9BB59439-4DF9-4FCC-80DA-7653F4D60333','95295BF7-FB51-480D-9902-6ADA4E8427FC','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('B3932022-EAFD-40A6-B39A-581B6E5B8E65','95295BF7-FB51-480D-9902-6ADA4E8427FC','',4) + GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('05442049-1310-45B1-9D3D-CAAE759D8F3E','HVAC','Transfer/HVAC.aspx',110,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('AF3AC8AB-7BE5-4ED2-9718-AE64410A653B','05442049-1310-45B1-9D3D-CAAE759D8F3E','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('B4AA5DC3-7790-4975-988F-D521175655E1','05442049-1310-45B1-9D3D-CAAE759D8F3E','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('87048E37-3EF0-4DD5-B1BF-5A752136A3EB','05442049-1310-45B1-9D3D-CAAE759D8F3E','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('D4F571DD-C656-46DF-B70B-A242A2B4CB6E','05442049-1310-45B1-9D3D-CAAE759D8F3E','',4) + GO + +INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) +VALUES('016903B1-3B86-4CF5-AFF8-FF8BE389BEE5','HVAC','Transfer/HVAC.aspx',120,'0','Menu_Transfer',0,1,1) +GO + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('1C032535-64B2-4E4C-95CF-E58547017E14','016903B1-3B86-4CF5-AFF8-FF8BE389BEE5','',1) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('DA7C63D5-771A-4B95-993D-6051A306A301','016903B1-3B86-4CF5-AFF8-FF8BE389BEE5','޸',2) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('CF082A4F-D87C-4DC7-AFE0-70880D94F840','016903B1-3B86-4CF5-AFF8-FF8BE389BEE5','ɾ',3) + INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) + VALUES('18C8F0AF-C903-462C-989F-0B30D1B2F75C','016903B1-3B86-4CF5-AFF8-FF8BE389BEE5','',4) + GO \ No newline at end of file diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 73775511..23bf1692 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -735,6 +735,10 @@ namespace BLL /// public const string Menu_TestRun = "Menu_TestRun"; /// + /// 移交管理 + /// + public const string Menu_Transfer = "Menu_Transfer"; + /// /// 关键事项 /// public const string Menu_PGJSX = "Menu_PGJSX"; diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index 81484d31..8a012bf1 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -236,3 +236,80 @@ IP地址:::1 出错时间:01/25/2024 12:39:51 出错时间:01/25/2024 12:39:51 + +错误信息开始=====> +错误类型:FileNotFoundException +错误信息:未能找到文件“E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\Menu_Transfer.xml”。 +错误堆栈: + 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) + 在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) + 在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) + 在 System.Web.UI.Control.OpenFileAndGetDependency(VirtualPath virtualPath, String physicalPath, CacheDependency& dependency) + 在 System.Web.UI.WebControls.XmlDataSource.GetReader(String path, String content, CacheDependency& cacheDependency) + 在 System.Web.UI.WebControls.XmlDataSource.PopulateXmlDocument(XmlDocument document, CacheDependency& dataCacheDependency, CacheDependency& transformCacheDependency) + 在 System.Web.UI.WebControls.XmlDataSource.GetXmlDocument() + 在 FineUIPro.Web.indexProject.InitTreeMenu() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 102 + 在 FineUIPro.Web.indexProject.MenuSwitchMethod(String type) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 728 + 在 FineUIPro.Web.indexProject.btnTransfer_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 786 + 在 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) +出错时间:01/26/2024 09:14:17 +出错文件:http://localhost:8579/indexProject.aspx?projectId=05a4f675-0caa-4e9e-b171-fc2b7d7ba025 +IP地址:::1 +操作人员:JT + +出错时间:01/26/2024 09:14:17 + + +错误信息开始=====> +错误类型:FileNotFoundException +错误信息:未能找到文件“E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\Menu_Transfer.xml”。 +错误堆栈: + 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) + 在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) + 在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) + 在 System.Web.UI.Control.OpenFileAndGetDependency(VirtualPath virtualPath, String physicalPath, CacheDependency& dependency) + 在 System.Web.UI.WebControls.XmlDataSource.GetReader(String path, String content, CacheDependency& cacheDependency) + 在 System.Web.UI.WebControls.XmlDataSource.PopulateXmlDocument(XmlDocument document, CacheDependency& dataCacheDependency, CacheDependency& transformCacheDependency) + 在 System.Web.UI.WebControls.XmlDataSource.GetXmlDocument() + 在 FineUIPro.Web.indexProject.InitTreeMenu() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 102 + 在 FineUIPro.Web.indexProject.MenuSwitchMethod(String type) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 728 + 在 FineUIPro.Web.indexProject.btnTransfer_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 786 + 在 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) +出错时间:01/26/2024 09:14:20 +出错文件:http://localhost:8579/indexProject.aspx?projectId=05a4f675-0caa-4e9e-b171-fc2b7d7ba025 +IP地址:::1 +操作人员:JT + +出错时间:01/26/2024 09:14:20 + + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/common/mainMenu_Transfer.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/26/2024 09:42:36 +出错文件:http://localhost:8579/common/mainMenu_Transfer.aspx +IP地址:::1 + +出错时间:01/26/2024 09:42:36 + diff --git a/SGGL/FineUIPro.Web/TestRun/DriverRun/DriverRunPlan.aspx b/SGGL/FineUIPro.Web/TestRun/DriverRun/DriverRunPlan.aspx index 60048874..6ae89297 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverRun/DriverRunPlan.aspx +++ b/SGGL/FineUIPro.Web/TestRun/DriverRun/DriverRunPlan.aspx @@ -9,9 +9,9 @@
- + + ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch"> - - - + + + + - @@ -65,9 +65,11 @@ + + diff --git a/SGGL/FineUIPro.Web/common/Menu_Transfer.xml b/SGGL/FineUIPro.Web/common/Menu_Transfer.xml new file mode 100644 index 00000000..80c38b9a --- /dev/null +++ b/SGGL/FineUIPro.Web/common/Menu_Transfer.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/indexProject.aspx b/SGGL/FineUIPro.Web/indexProject.aspx index 4436757e..35c42e74 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx +++ b/SGGL/FineUIPro.Web/indexProject.aspx @@ -188,8 +188,8 @@ .login-icon { } - /*头部按钮样式*/ - .bgbtn_head{ + /*头部按钮样式*/ + .bgbtn_head { display: inline-block; position: absolute; width: 40%; @@ -201,18 +201,18 @@ padding: 0 !important; } - .y_image_default{ - cursor:pointer + .y_image_default { + cursor: pointer } + .y_navbars { align-items: center !important; cursor: pointer; } .f-panel-body .f-field { - margin-bottom: 0px!important; -} - + margin-bottom: 0px !important; + } @@ -240,37 +240,37 @@
中国五环工程有限公司智慧施工管理信息系统(项目级) - + EnableDefaultState="true" EnableDefaultCorner="false" ID="Button21"> +
-
+
帮助
-
+
个人
-
+
设置 + EnablePostBack="true" EnableDefaultState="true" EnableDefaultCorner="false" ID="btnProjectSet" OnClientClick="parent.removeActiveTab();"> +
- <%--
帮助
--%> -
+ <%--
帮助
--%> +
退出 + EnablePostBack="false" EnableDefaultState="true" EnableDefaultCorner="false" ID="Button18"> + + + +
全屏
@@ -282,6 +282,7 @@
焊接管理
材料管理
试车管理
+
移交管理
关键事项
视频监控
现场考勤
@@ -408,8 +409,8 @@ EnableMaximize="true" EnableResize="false"> @@ -433,6 +434,9 @@ + @@ -449,10 +453,10 @@ EnablePostBack="true" EnableDefaultState="true" EnableDefaultCorner="false" OnClientClick="parent.removeActiveTab();" Hidden="true"> @@ -477,23 +481,24 @@ var btnHJGLClientID = '<%= btnHJGL.ClientID %>'; var btnCLGLClientID = '<%= btnCLGL.ClientID %>'; var btnTestRunClientID = '<%= btnTestRun.ClientID %>'; + var btnTransferClientID = '<%= btnTransfer.ClientID %>'; var btnPGJSXClientID = '<%= btnPGJSX.ClientID %>'; var btnDigitalSiteClientID = '<%= btnDigitalSite.ClientID %>'; var btnPDigDataClientID = '<%= btnPDigData.ClientID %>'; var btnOpinionClientID = '<%= btnOpinion.ClientID %>'; - var btnDocClientID = '<%= btnDoc.ClientID %>'; + var btnDocClientID = '<%= btnDoc.ClientID %>'; function ProjectZJClick() { F(ProjectZJClientID).click(); } function ProjectTGClick() { F(ProjectTGClientID).click(); - + } function ProjectJGClick() { F(ProjectJGClientID).click(); - + } function CQMSClick() { @@ -538,6 +543,13 @@ $item.attr('style', ";display:block !important;") } + function TransferClick() { + parent.removeActiveTab(); + F(btnTransferClientID).click(); + var $item = $('.f-tabstrip-header') + $item.attr('style', ";display:block !important;") + } + function PGJSXClick() { parent.removeActiveTab(); F(btnPGJSXClientID).click(); @@ -582,11 +594,11 @@ $item.attr('style', ";display:block !important;") } - function DocClick() { + function DocClick() { parent.removeActiveTab(); - F(btnDocClientID).click(); - var $item = $('.f-tabstrip-header') - $item.attr('style', ";display:block !important;") + F(btnDocClientID).click(); + var $item = $('.f-tabstrip-header') + $item.attr('style', ";display:block !important;") } // 展开左侧面板 @@ -869,7 +881,7 @@ var $item = $('.f-tabstrip-header') $item.attr('style', ";display:block !important;") }); - + $(".up-wrap-ul").click(function () { var $item = $('.f-tabstrip-header') $item.attr('style', ";display:block !important;") diff --git a/SGGL/FineUIPro.Web/indexProject.aspx.cs b/SGGL/FineUIPro.Web/indexProject.aspx.cs index 87a7d086..db315f2d 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx.cs +++ b/SGGL/FineUIPro.Web/indexProject.aspx.cs @@ -781,6 +781,11 @@ namespace FineUIPro.Web this.MenuSwitchMethod(Const.Menu_TestRun); } + protected void btnTransfer_Click(object sender, EventArgs e) + { + this.MenuSwitchMethod(Const.Menu_Transfer); + } + protected void btnPGJSX_Click(object sender, EventArgs e) { this.MenuSwitchMethod(Const.Menu_PGJSX); diff --git a/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs b/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs index e68a85cd..fee189ab 100644 --- a/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/indexProject.aspx.designer.cs @@ -7,479 +7,486 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web -{ - - - public partial class indexProject - { - - /// - /// form1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.HtmlControls.HtmlForm form1; - - /// - /// PageManager1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.PageManager PageManager1; - - /// - /// Panel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Panel Panel1; - - /// - /// topPanel 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel topPanel; - - /// - /// ContentPanel1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.ContentPanel ContentPanel1; - - /// - /// drpProject 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpProject; - - /// - /// Button21 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button Button21; - - /// - /// btnHelp 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnHelp; - - /// - /// btnPersonal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnPersonal; - - /// - /// btnProjectSet 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnProjectSet; - - /// - /// Button18 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button Button18; - - /// - /// leftPanel 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Panel leftPanel; - - /// - /// leftPanelToolCollapse 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Tool leftPanelToolCollapse; - - /// - /// leftPanelToolGear 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Tool leftPanelToolGear; - - /// - /// btnExpandAll 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnExpandAll; - - /// - /// btnCollapseAll 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton btnCollapseAll; - - /// - /// MenuMode 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton MenuMode; - - /// - /// MenuModeNormal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuCheckBox MenuModeNormal; - - /// - /// MenuModeCompact 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuCheckBox MenuModeCompact; - - /// - /// MenuModeLarge 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuCheckBox MenuModeLarge; - - /// - /// MenuStyle 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton MenuStyle; - - /// - /// MenuStyleTree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuCheckBox MenuStyleTree; - - /// - /// MenuStyleMiniModeTree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuCheckBox MenuStyleMiniModeTree; - - /// - /// MenuStylePlainTree 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuCheckBox MenuStylePlainTree; - - /// - /// MenuLang 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuButton MenuLang; - - /// - /// MenuLangZHCN 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.MenuCheckBox MenuLangZHCN; - - /// - /// mainTabStrip 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TabStrip mainTabStrip; - - /// - /// Tab1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Tab Tab1; - - /// - /// toolRefresh 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Tool toolRefresh; - - /// - /// toolNewWindow 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Tool toolNewWindow; - - /// - /// toolMaximize 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Tool toolMaximize; - - /// - /// toolSignOut 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Tool toolSignOut; - - /// - /// windowCustomQuery 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Window windowCustomQuery; - - /// - /// WindowAtt 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Window WindowAtt; - - /// - /// XmlDataSource1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::System.Web.UI.WebControls.XmlDataSource XmlDataSource1; - - /// - /// ProjectZJ 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button ProjectZJ; - - /// - /// ProjectTG 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button ProjectTG; - - /// - /// ProjectJG 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button ProjectJG; - - /// - /// btnCQMS 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnCQMS; - - /// - /// btnHSSE 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnHSSE; - - /// - /// btnJDGL 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnJDGL; - - /// - /// btnHJGL 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnHJGL; - - /// - /// btnCLGL 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnCLGL; - - /// - /// btnTestRun 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnTestRun; - - /// - /// btnPGJSX 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnPGJSX; - - /// - /// btnDigitalSite 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnDigitalSite; - - /// - /// btnPDigData 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnPDigData; - - /// - /// btnOpinion 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnOpinion; - - /// - /// btnDoc 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnDoc; - - /// - /// SimpleForm1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.SimpleForm SimpleForm1; - - /// - /// hfProjectCode 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.HiddenField hfProjectCode; - - /// - /// hfMonitorPW 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.HiddenField hfMonitorPW; - } +namespace FineUIPro.Web { + + + public partial class indexProject { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// topPanel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel topPanel; + + /// + /// ContentPanel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ContentPanel ContentPanel1; + + /// + /// drpProject 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProject; + + /// + /// Button21 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button21; + + /// + /// btnHelp 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnHelp; + + /// + /// btnPersonal 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPersonal; + + /// + /// btnProjectSet 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnProjectSet; + + /// + /// Button18 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button18; + + /// + /// leftPanel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel leftPanel; + + /// + /// leftPanelToolCollapse 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tool leftPanelToolCollapse; + + /// + /// leftPanelToolGear 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tool leftPanelToolGear; + + /// + /// btnExpandAll 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnExpandAll; + + /// + /// btnCollapseAll 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnCollapseAll; + + /// + /// MenuMode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton MenuMode; + + /// + /// MenuModeNormal 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuCheckBox MenuModeNormal; + + /// + /// MenuModeCompact 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuCheckBox MenuModeCompact; + + /// + /// MenuModeLarge 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuCheckBox MenuModeLarge; + + /// + /// MenuStyle 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton MenuStyle; + + /// + /// MenuStyleTree 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuCheckBox MenuStyleTree; + + /// + /// MenuStyleMiniModeTree 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuCheckBox MenuStyleMiniModeTree; + + /// + /// MenuStylePlainTree 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuCheckBox MenuStylePlainTree; + + /// + /// MenuLang 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton MenuLang; + + /// + /// MenuLangZHCN 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuCheckBox MenuLangZHCN; + + /// + /// mainTabStrip 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TabStrip mainTabStrip; + + /// + /// Tab1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tab Tab1; + + /// + /// toolRefresh 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tool toolRefresh; + + /// + /// toolNewWindow 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tool toolNewWindow; + + /// + /// toolMaximize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tool toolMaximize; + + /// + /// toolSignOut 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tool toolSignOut; + + /// + /// windowCustomQuery 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window windowCustomQuery; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + + /// + /// XmlDataSource1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.XmlDataSource XmlDataSource1; + + /// + /// ProjectZJ 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button ProjectZJ; + + /// + /// ProjectTG 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button ProjectTG; + + /// + /// ProjectJG 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button ProjectJG; + + /// + /// btnCQMS 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnCQMS; + + /// + /// btnHSSE 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnHSSE; + + /// + /// btnJDGL 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnJDGL; + + /// + /// btnHJGL 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnHJGL; + + /// + /// btnCLGL 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnCLGL; + + /// + /// btnTestRun 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnTestRun; + + /// + /// btnTransfer 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnTransfer; + + /// + /// btnPGJSX 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPGJSX; + + /// + /// btnDigitalSite 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDigitalSite; + + /// + /// btnPDigData 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPDigData; + + /// + /// btnOpinion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnOpinion; + + /// + /// btnDoc 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDoc; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.SimpleForm SimpleForm1; + + /// + /// hfProjectCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hfProjectCode; + + /// + /// hfMonitorPW 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hfMonitorPW; + } } From 7509bd1d475dd6dabf4fe62ba2b4df1ba3455e64 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Fri, 26 Jan 2024 09:59:11 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/BLL.csproj | 1 + SGGL/BLL/Transfer/ProjectSetupService.cs | 12 ++++++ SGGL/FineUIPro.Web/ErrLog.txt | 42 +++++++++++++++++++ SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 16 +++++++ SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx | 16 +++++++ .../Transfer/ProjectSetup.aspx.cs | 17 ++++++++ .../Transfer/ProjectSetup.aspx.designer.cs | 26 ++++++++++++ .../common/mainMenu_Transfer.aspx | 16 +++++++ .../common/mainMenu_Transfer.aspx.cs | 17 ++++++++ .../common/mainMenu_Transfer.aspx.designer.cs | 26 ++++++++++++ 10 files changed, 189 insertions(+) create mode 100644 SGGL/BLL/Transfer/ProjectSetupService.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx create mode 100644 SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx.cs create mode 100644 SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx.designer.cs diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index 3262f056..e8e85809 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -767,6 +767,7 @@ + diff --git a/SGGL/BLL/Transfer/ProjectSetupService.cs b/SGGL/BLL/Transfer/ProjectSetupService.cs new file mode 100644 index 00000000..8a8e3a26 --- /dev/null +++ b/SGGL/BLL/Transfer/ProjectSetupService.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL.Transfer +{ + class ProjectSetupService + { + } +} diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index 8a012bf1..9b1ca355 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -313,3 +313,45 @@ IP地址:::1 出错时间:01/26/2024 09:42:36 + +错误信息开始=====> +错误类型:HttpException +错误信息:文件“/common/mainMenu_Transfer.aspx”不存在。 +错误堆栈: + 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) + 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) + 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) + 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) + 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path) + 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) + 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +出错时间:01/26/2024 09:47:07 +出错文件:http://localhost:8579/common/mainMenu_Transfer.aspx +IP地址:::1 + +出错时间:01/26/2024 09:47:07 + + +错误信息开始=====> +错误类型:HttpParseException +错误信息:未能加载类型“FineUIPro.Web.common.mainMenu_Transfer”。 +错误堆栈: + 在 System.Web.UI.TemplateParser.ProcessException(Exception ex) + 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) + 在 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) +----错误类型:HttpException +----错误信息: +----未能加载类型“FineUIPro.Web.common.mainMenu_Transfer”。 +----错误堆栈: + 在 System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) + 在 System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) + 在 System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) +出错时间:01/26/2024 09:47:58 +出错文件:http://localhost:8579/common/mainMenu_Transfer.aspx +IP地址:::1 + +出错时间:01/26/2024 09:47:58 + diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index eeddcae4..f4d327e2 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -334,6 +334,7 @@ + @@ -1825,6 +1826,7 @@ + @@ -6745,6 +6747,13 @@ mainMenu_HSSE.aspx + + mainMenu_Transfer.aspx + ASPXCodeBehind + + + mainMenu_Transfer.aspx + mainProject0.aspx ASPXCodeBehind @@ -16289,6 +16298,13 @@ TestRunRecordUploadList.aspx + + ProjectSetup.aspx + ASPXCodeBehind + + + ProjectSetup.aspx + Video.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx new file mode 100644 index 00000000..5ce31af8 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectSetup.aspx.cs" Inherits="FineUIPro.Web.Transfer.ProjectSetup" %> + + + + + + + + + +
+
+
+
+ + diff --git a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs new file mode 100644 index 00000000..1ef011d5 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.Transfer +{ + public partial class ProjectSetup : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs new file mode 100644 index 00000000..a594cc44 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class ProjectSetup + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +} diff --git a/SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx b/SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx new file mode 100644 index 00000000..ad361978 --- /dev/null +++ b/SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mainMenu_Transfer.aspx.cs" Inherits="FineUIPro.Web.common.mainMenu_Transfer" %> + + + + + + + + + +
+
+
+
+ + diff --git a/SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx.cs b/SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx.cs new file mode 100644 index 00000000..cf9c0ce1 --- /dev/null +++ b/SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.common +{ + public partial class mainMenu_Transfer : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx.designer.cs b/SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx.designer.cs new file mode 100644 index 00000000..644020ca --- /dev/null +++ b/SGGL/FineUIPro.Web/common/mainMenu_Transfer.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 此代码由工具生成。 +// +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.common +{ + + + public partial class mainMenu_Transfer + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + } +} From 7f7dbbbc5842c3484177d212e7009683c024595c Mon Sep 17 00:00:00 2001 From: panhf <754998852@qq.com> Date: Fri, 26 Jan 2024 10:12:57 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E7=A7=BB=E4=BA=A4=E7=AE=A1=E7=90=865-8?= =?UTF-8?q?=E8=A1=A8=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql diff --git a/DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql b/DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql new file mode 100644 index 00000000..30e27e2f --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql @@ -0,0 +1,71 @@ +CREATE TABLE [dbo].[Instrumentation]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [INSTRUMENTATION] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Instrumentation] 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 + +CREATE TABLE [dbo].[Electrical]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [ELECTRICAL] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Electrical] 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 + +CREATE TABLE [dbo].[Civil_Structure]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NOT NULL, + [Civil_Structure] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Civil_Structure] 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 + +CREATE TABLE [dbo].[Firefighting]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [Firefighting] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Firefighting] 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 \ No newline at end of file From 3777a0ff0812bbd99aec97974c82735d3b18f303 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Fri, 26 Jan 2024 10:14:03 +0800 Subject: [PATCH 05/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../版本日志/SGGLDB_WH_2024-01-26-gaofei.sql | 29 ++ SGGL/Model/Model.cs | 419 +++++++++++++++++- 2 files changed, 443 insertions(+), 5 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql diff --git a/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql b/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql new file mode 100644 index 00000000..8c172a4e --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql @@ -0,0 +1,29 @@ + +CREATE TABLE [dbo].[Transfer_ProjectSetup]( + [ProjectSetupId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [SN] [nvarchar](50) NULL, + [PlantNo] [nvarchar](50) NULL, + [PlantName] [nvarchar](200) NULL, + [CommissioningSystem] [nvarchar](50) NULL, + [CommissioningCodeDescription] [nvarchar](50) NULL, + [SubCommissioningSystem] [nvarchar](50) NULL, + [SubCommissioningCodeDescription] [nvarchar](50) NULL, + [DescriptionArea] [nvarchar](50) NULL, + [TurnoverSystemSequenceNumber] [nvarchar](50) NULL, + [Description] [nvarchar](50) NULL, + [TurnoverCode] [nvarchar](50) NULL, + [TurnoverDescription] [nvarchar](50) NULL, + [Remark] [nvarchar](200) NULL, + CONSTRAINT [PK_Transfer_ProjectSetup] PRIMARY KEY CLUSTERED +( + [ProjectSetupId] 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'ProjectSetup' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Transfer_ProjectSetup' +GO + + diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 547fd56e..7d78db9f 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -22,7 +22,7 @@ namespace Model using System; - public partial class SGGLDB : System.Data.Linq.DataContext + public partial class SGGLDB_WH : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); @@ -2333,6 +2333,9 @@ namespace Model partial void InsertTraining_TrainTestDBItem(Training_TrainTestDBItem instance); partial void UpdateTraining_TrainTestDBItem(Training_TrainTestDBItem instance); partial void DeleteTraining_TrainTestDBItem(Training_TrainTestDBItem instance); + partial void InsertTransfer_ProjectSetup(Transfer_ProjectSetup instance); + partial void UpdateTransfer_ProjectSetup(Transfer_ProjectSetup instance); + partial void DeleteTransfer_ProjectSetup(Transfer_ProjectSetup instance); partial void InsertUnqualified_WorkContact(Unqualified_WorkContact instance); partial void UpdateUnqualified_WorkContact(Unqualified_WorkContact instance); partial void DeleteUnqualified_WorkContact(Unqualified_WorkContact instance); @@ -2488,25 +2491,25 @@ namespace Model partial void DeleteZHGL_WorkHandoverDetail(ZHGL_WorkHandoverDetail instance); #endregion - public SGGLDB(string connection) : + public SGGLDB_WH(string connection) : base(connection, mappingSource) { OnCreated(); } - public SGGLDB(System.Data.IDbConnection connection) : + public SGGLDB_WH(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } - public SGGLDB(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : + public SGGLDB_WH(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } - public SGGLDB(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : + public SGGLDB_WH(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); @@ -8672,6 +8675,14 @@ namespace Model } } + public System.Data.Linq.Table Transfer_ProjectSetup + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Unqualified_WorkContact { get @@ -367721,6 +367732,404 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_ProjectSetup")] + public partial class Transfer_ProjectSetup : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ProjectSetupId; + + private string _ProjectId; + + private string _SN; + + private string _PlantNo; + + private string _PlantName; + + private string _CommissioningSystem; + + private string _CommissioningCodeDescription; + + private string _SubCommissioningSystem; + + private string _SubCommissioningCodeDescription; + + private string _DescriptionArea; + + private string _TurnoverSystemSequenceNumber; + + private string _Description; + + private string _TurnoverCode; + + private string _TurnoverDescription; + + private string _Remark; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnProjectSetupIdChanging(string value); + partial void OnProjectSetupIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSNChanging(string value); + partial void OnSNChanged(); + partial void OnPlantNoChanging(string value); + partial void OnPlantNoChanged(); + partial void OnPlantNameChanging(string value); + partial void OnPlantNameChanged(); + partial void OnCommissioningSystemChanging(string value); + partial void OnCommissioningSystemChanged(); + partial void OnCommissioningCodeDescriptionChanging(string value); + partial void OnCommissioningCodeDescriptionChanged(); + partial void OnSubCommissioningSystemChanging(string value); + partial void OnSubCommissioningSystemChanged(); + partial void OnSubCommissioningCodeDescriptionChanging(string value); + partial void OnSubCommissioningCodeDescriptionChanged(); + partial void OnDescriptionAreaChanging(string value); + partial void OnDescriptionAreaChanged(); + partial void OnTurnoverSystemSequenceNumberChanging(string value); + partial void OnTurnoverSystemSequenceNumberChanged(); + partial void OnDescriptionChanging(string value); + partial void OnDescriptionChanged(); + partial void OnTurnoverCodeChanging(string value); + partial void OnTurnoverCodeChanged(); + partial void OnTurnoverDescriptionChanging(string value); + partial void OnTurnoverDescriptionChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + #endregion + + public Transfer_ProjectSetup() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSetupId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ProjectSetupId + { + get + { + return this._ProjectSetupId; + } + set + { + if ((this._ProjectSetupId != value)) + { + this.OnProjectSetupIdChanging(value); + this.SendPropertyChanging(); + this._ProjectSetupId = value; + this.SendPropertyChanged("ProjectSetupId"); + this.OnProjectSetupIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SN", DbType="NVarChar(50)")] + public string SN + { + get + { + return this._SN; + } + set + { + if ((this._SN != value)) + { + this.OnSNChanging(value); + this.SendPropertyChanging(); + this._SN = value; + this.SendPropertyChanged("SN"); + this.OnSNChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlantNo", DbType="NVarChar(50)")] + public string PlantNo + { + get + { + return this._PlantNo; + } + set + { + if ((this._PlantNo != value)) + { + this.OnPlantNoChanging(value); + this.SendPropertyChanging(); + this._PlantNo = value; + this.SendPropertyChanged("PlantNo"); + this.OnPlantNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlantName", DbType="NVarChar(200)")] + public string PlantName + { + get + { + return this._PlantName; + } + set + { + if ((this._PlantName != value)) + { + this.OnPlantNameChanging(value); + this.SendPropertyChanging(); + this._PlantName = value; + this.SendPropertyChanged("PlantName"); + this.OnPlantNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CommissioningSystem", DbType="NVarChar(50)")] + public string CommissioningSystem + { + get + { + return this._CommissioningSystem; + } + set + { + if ((this._CommissioningSystem != value)) + { + this.OnCommissioningSystemChanging(value); + this.SendPropertyChanging(); + this._CommissioningSystem = value; + this.SendPropertyChanged("CommissioningSystem"); + this.OnCommissioningSystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CommissioningCodeDescription", DbType="NVarChar(50)")] + public string CommissioningCodeDescription + { + get + { + return this._CommissioningCodeDescription; + } + set + { + if ((this._CommissioningCodeDescription != value)) + { + this.OnCommissioningCodeDescriptionChanging(value); + this.SendPropertyChanging(); + this._CommissioningCodeDescription = value; + this.SendPropertyChanged("CommissioningCodeDescription"); + this.OnCommissioningCodeDescriptionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubCommissioningSystem", DbType="NVarChar(50)")] + public string SubCommissioningSystem + { + get + { + return this._SubCommissioningSystem; + } + set + { + if ((this._SubCommissioningSystem != value)) + { + this.OnSubCommissioningSystemChanging(value); + this.SendPropertyChanging(); + this._SubCommissioningSystem = value; + this.SendPropertyChanged("SubCommissioningSystem"); + this.OnSubCommissioningSystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SubCommissioningCodeDescription", DbType="NVarChar(50)")] + public string SubCommissioningCodeDescription + { + get + { + return this._SubCommissioningCodeDescription; + } + set + { + if ((this._SubCommissioningCodeDescription != value)) + { + this.OnSubCommissioningCodeDescriptionChanging(value); + this.SendPropertyChanging(); + this._SubCommissioningCodeDescription = value; + this.SendPropertyChanged("SubCommissioningCodeDescription"); + this.OnSubCommissioningCodeDescriptionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DescriptionArea", DbType="NVarChar(50)")] + public string DescriptionArea + { + get + { + return this._DescriptionArea; + } + set + { + if ((this._DescriptionArea != value)) + { + this.OnDescriptionAreaChanging(value); + this.SendPropertyChanging(); + this._DescriptionArea = value; + this.SendPropertyChanged("DescriptionArea"); + this.OnDescriptionAreaChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TurnoverSystemSequenceNumber", DbType="NVarChar(50)")] + public string TurnoverSystemSequenceNumber + { + get + { + return this._TurnoverSystemSequenceNumber; + } + set + { + if ((this._TurnoverSystemSequenceNumber != value)) + { + this.OnTurnoverSystemSequenceNumberChanging(value); + this.SendPropertyChanging(); + this._TurnoverSystemSequenceNumber = value; + this.SendPropertyChanged("TurnoverSystemSequenceNumber"); + this.OnTurnoverSystemSequenceNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(50)")] + public string Description + { + get + { + return this._Description; + } + set + { + if ((this._Description != value)) + { + this.OnDescriptionChanging(value); + this.SendPropertyChanging(); + this._Description = value; + this.SendPropertyChanged("Description"); + this.OnDescriptionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TurnoverCode", DbType="NVarChar(50)")] + public string TurnoverCode + { + get + { + return this._TurnoverCode; + } + set + { + if ((this._TurnoverCode != value)) + { + this.OnTurnoverCodeChanging(value); + this.SendPropertyChanging(); + this._TurnoverCode = value; + this.SendPropertyChanged("TurnoverCode"); + this.OnTurnoverCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TurnoverDescription", DbType="NVarChar(50)")] + public string TurnoverDescription + { + get + { + return this._TurnoverDescription; + } + set + { + if ((this._TurnoverDescription != value)) + { + this.OnTurnoverDescriptionChanging(value); + this.SendPropertyChanging(); + this._TurnoverDescription = value; + this.SendPropertyChanged("TurnoverDescription"); + this.OnTurnoverDescriptionChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(200)")] + public string Remark + { + get + { + return this._Remark; + } + set + { + if ((this._Remark != value)) + { + this.OnRemarkChanging(value); + this.SendPropertyChanging(); + this._Remark = value; + this.SendPropertyChanged("Remark"); + this.OnRemarkChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Unqualified_WorkContact")] public partial class Unqualified_WorkContact : INotifyPropertyChanging, INotifyPropertyChanged { From bb4e8f13591f450b11bc5f78d9a00a4441cf08aa Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Fri, 26 Jan 2024 10:17:56 +0800 Subject: [PATCH 06/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql | 8 +- .../版本日志/SGGLDB_WH_2024-01-26-gaofei.sql | 78 +- SGGL/Model/Model.cs | 1092 ++++++++++++++++- 3 files changed, 1156 insertions(+), 22 deletions(-) diff --git a/DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql b/DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql index 30e27e2f..ed9045bb 100644 --- a/DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql +++ b/DataBase/版本日志/SGGLDB_WH_2024-01-26-05.sql @@ -1,4 +1,4 @@ -CREATE TABLE [dbo].[Instrumentation]( +CREATE TABLE [dbo].[Transfer_Instrumentation]( [Id] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [INSTRUMENTATION] [nvarchar](50) NULL, @@ -16,7 +16,7 @@ CREATE TABLE [dbo].[Instrumentation]( GO -CREATE TABLE [dbo].[Electrical]( +CREATE TABLE [dbo].[Transfer_Electrical]( [Id] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [ELECTRICAL] [nvarchar](50) NULL, @@ -34,7 +34,7 @@ CREATE TABLE [dbo].[Electrical]( GO -CREATE TABLE [dbo].[Civil_Structure]( +CREATE TABLE [dbo].[Transfer_Civil_Structure]( [Id] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NOT NULL, [Civil_Structure] [nvarchar](50) NULL, @@ -52,7 +52,7 @@ CREATE TABLE [dbo].[Civil_Structure]( GO -CREATE TABLE [dbo].[Firefighting]( +CREATE TABLE [dbo].[Transfer_Firefighting]( [Id] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [Firefighting] [nvarchar](50) NULL, diff --git a/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql b/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql index 8c172a4e..a884ec35 100644 --- a/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql +++ b/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql @@ -1,6 +1,6 @@ CREATE TABLE [dbo].[Transfer_ProjectSetup]( - [ProjectSetupId] [nvarchar](50) NOT NULL, + [Id] [nvarchar](50) NOT NULL, [ProjectId] [nvarchar](50) NULL, [SN] [nvarchar](50) NULL, [PlantNo] [nvarchar](50) NULL, @@ -17,7 +17,7 @@ CREATE TABLE [dbo].[Transfer_ProjectSetup]( [Remark] [nvarchar](200) NULL, CONSTRAINT [PK_Transfer_ProjectSetup] PRIMARY KEY CLUSTERED ( - [ProjectSetupId] ASC + [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] @@ -27,3 +27,77 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ProjectSetup' GO + + + +CREATE TABLE [dbo].[Transfer_Instrumentation]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [INSTRUMENTATION] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Instrumentation] 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 + +CREATE TABLE [dbo].[Transfer_Electrical]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [ELECTRICAL] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Electrical] 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 + +CREATE TABLE [dbo].[Transfer_Civil_Structure]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NOT NULL, + [Civil_Structure] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Civil_Structure] 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 + +CREATE TABLE [dbo].[Transfer_Firefighting]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [Firefighting] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Firefighting] 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 \ No newline at end of file diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 7d78db9f..4d71da9b 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -22,7 +22,7 @@ namespace Model using System; - public partial class SGGLDB_WH : System.Data.Linq.DataContext + public partial class SGGLDB : System.Data.Linq.DataContext { private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); @@ -2333,6 +2333,18 @@ namespace Model partial void InsertTraining_TrainTestDBItem(Training_TrainTestDBItem instance); partial void UpdateTraining_TrainTestDBItem(Training_TrainTestDBItem instance); partial void DeleteTraining_TrainTestDBItem(Training_TrainTestDBItem instance); + partial void InsertTransfer_Civil_Structure(Transfer_Civil_Structure instance); + partial void UpdateTransfer_Civil_Structure(Transfer_Civil_Structure instance); + partial void DeleteTransfer_Civil_Structure(Transfer_Civil_Structure instance); + partial void InsertTransfer_Electrical(Transfer_Electrical instance); + partial void UpdateTransfer_Electrical(Transfer_Electrical instance); + partial void DeleteTransfer_Electrical(Transfer_Electrical instance); + partial void InsertTransfer_Firefighting(Transfer_Firefighting instance); + partial void UpdateTransfer_Firefighting(Transfer_Firefighting instance); + partial void DeleteTransfer_Firefighting(Transfer_Firefighting instance); + partial void InsertTransfer_Instrumentation(Transfer_Instrumentation instance); + partial void UpdateTransfer_Instrumentation(Transfer_Instrumentation instance); + partial void DeleteTransfer_Instrumentation(Transfer_Instrumentation instance); partial void InsertTransfer_ProjectSetup(Transfer_ProjectSetup instance); partial void UpdateTransfer_ProjectSetup(Transfer_ProjectSetup instance); partial void DeleteTransfer_ProjectSetup(Transfer_ProjectSetup instance); @@ -2491,25 +2503,25 @@ namespace Model partial void DeleteZHGL_WorkHandoverDetail(ZHGL_WorkHandoverDetail instance); #endregion - public SGGLDB_WH(string connection) : + public SGGLDB(string connection) : base(connection, mappingSource) { OnCreated(); } - public SGGLDB_WH(System.Data.IDbConnection connection) : + public SGGLDB(System.Data.IDbConnection connection) : base(connection, mappingSource) { OnCreated(); } - public SGGLDB_WH(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : + public SGGLDB(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); } - public SGGLDB_WH(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : + public SGGLDB(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : base(connection, mappingSource) { OnCreated(); @@ -8675,6 +8687,38 @@ namespace Model } } + public System.Data.Linq.Table Transfer_Civil_Structure + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Transfer_Electrical + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Transfer_Firefighting + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Transfer_Instrumentation + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Transfer_ProjectSetup { get @@ -367732,13 +367776,1029 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_Civil_Structure")] + public partial class Transfer_Civil_Structure : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _Civil_Structure; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private System.Nullable _Test_Package_START; + + private System.Nullable _Test_Package_FINISH; + + private string _FINAL_Status; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnCivil_StructureChanging(string value); + partial void OnCivil_StructureChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnTest_Package_STARTChanging(System.Nullable value); + partial void OnTest_Package_STARTChanged(); + partial void OnTest_Package_FINISHChanging(System.Nullable value); + partial void OnTest_Package_FINISHChanged(); + partial void OnFINAL_StatusChanging(string value); + partial void OnFINAL_StatusChanged(); + #endregion + + public Transfer_Civil_Structure() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Civil_Structure", DbType="NVarChar(50)")] + public string Civil_Structure + { + get + { + return this._Civil_Structure; + } + set + { + if ((this._Civil_Structure != value)) + { + this.OnCivil_StructureChanging(value); + this.SendPropertyChanging(); + this._Civil_Structure = value; + this.SendPropertyChanged("Civil_Structure"); + this.OnCivil_StructureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_START", DbType="DateTime")] + public System.Nullable Test_Package_START + { + get + { + return this._Test_Package_START; + } + set + { + if ((this._Test_Package_START != value)) + { + this.OnTest_Package_STARTChanging(value); + this.SendPropertyChanging(); + this._Test_Package_START = value; + this.SendPropertyChanged("Test_Package_START"); + this.OnTest_Package_STARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_FINISH", DbType="DateTime")] + public System.Nullable Test_Package_FINISH + { + get + { + return this._Test_Package_FINISH; + } + set + { + if ((this._Test_Package_FINISH != value)) + { + this.OnTest_Package_FINISHChanging(value); + this.SendPropertyChanging(); + this._Test_Package_FINISH = value; + this.SendPropertyChanged("Test_Package_FINISH"); + this.OnTest_Package_FINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINAL_Status", DbType="NVarChar(50)")] + public string FINAL_Status + { + get + { + return this._FINAL_Status; + } + set + { + if ((this._FINAL_Status != value)) + { + this.OnFINAL_StatusChanging(value); + this.SendPropertyChanging(); + this._FINAL_Status = value; + this.SendPropertyChanged("FINAL_Status"); + this.OnFINAL_StatusChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_Electrical")] + public partial class Transfer_Electrical : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _ELECTRICAL; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private System.Nullable _Test_Package_START; + + private System.Nullable _Test_Package_FINISH; + + private string _FINAL_Status; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnELECTRICALChanging(string value); + partial void OnELECTRICALChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnTest_Package_STARTChanging(System.Nullable value); + partial void OnTest_Package_STARTChanged(); + partial void OnTest_Package_FINISHChanging(System.Nullable value); + partial void OnTest_Package_FINISHChanged(); + partial void OnFINAL_StatusChanging(string value); + partial void OnFINAL_StatusChanged(); + #endregion + + public Transfer_Electrical() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ELECTRICAL", DbType="NVarChar(50)")] + public string ELECTRICAL + { + get + { + return this._ELECTRICAL; + } + set + { + if ((this._ELECTRICAL != value)) + { + this.OnELECTRICALChanging(value); + this.SendPropertyChanging(); + this._ELECTRICAL = value; + this.SendPropertyChanged("ELECTRICAL"); + this.OnELECTRICALChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_START", DbType="DateTime")] + public System.Nullable Test_Package_START + { + get + { + return this._Test_Package_START; + } + set + { + if ((this._Test_Package_START != value)) + { + this.OnTest_Package_STARTChanging(value); + this.SendPropertyChanging(); + this._Test_Package_START = value; + this.SendPropertyChanged("Test_Package_START"); + this.OnTest_Package_STARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_FINISH", DbType="DateTime")] + public System.Nullable Test_Package_FINISH + { + get + { + return this._Test_Package_FINISH; + } + set + { + if ((this._Test_Package_FINISH != value)) + { + this.OnTest_Package_FINISHChanging(value); + this.SendPropertyChanging(); + this._Test_Package_FINISH = value; + this.SendPropertyChanged("Test_Package_FINISH"); + this.OnTest_Package_FINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINAL_Status", DbType="NVarChar(50)")] + public string FINAL_Status + { + get + { + return this._FINAL_Status; + } + set + { + if ((this._FINAL_Status != value)) + { + this.OnFINAL_StatusChanging(value); + this.SendPropertyChanging(); + this._FINAL_Status = value; + this.SendPropertyChanged("FINAL_Status"); + this.OnFINAL_StatusChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_Firefighting")] + public partial class Transfer_Firefighting : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _Firefighting; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private System.Nullable _Test_Package_START; + + private System.Nullable _Test_Package_FINISH; + + private string _FINAL_Status; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnFirefightingChanging(string value); + partial void OnFirefightingChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnTest_Package_STARTChanging(System.Nullable value); + partial void OnTest_Package_STARTChanged(); + partial void OnTest_Package_FINISHChanging(System.Nullable value); + partial void OnTest_Package_FINISHChanged(); + partial void OnFINAL_StatusChanging(string value); + partial void OnFINAL_StatusChanged(); + #endregion + + public Transfer_Firefighting() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Firefighting", DbType="NVarChar(50)")] + public string Firefighting + { + get + { + return this._Firefighting; + } + set + { + if ((this._Firefighting != value)) + { + this.OnFirefightingChanging(value); + this.SendPropertyChanging(); + this._Firefighting = value; + this.SendPropertyChanged("Firefighting"); + this.OnFirefightingChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_START", DbType="DateTime")] + public System.Nullable Test_Package_START + { + get + { + return this._Test_Package_START; + } + set + { + if ((this._Test_Package_START != value)) + { + this.OnTest_Package_STARTChanging(value); + this.SendPropertyChanging(); + this._Test_Package_START = value; + this.SendPropertyChanged("Test_Package_START"); + this.OnTest_Package_STARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_FINISH", DbType="DateTime")] + public System.Nullable Test_Package_FINISH + { + get + { + return this._Test_Package_FINISH; + } + set + { + if ((this._Test_Package_FINISH != value)) + { + this.OnTest_Package_FINISHChanging(value); + this.SendPropertyChanging(); + this._Test_Package_FINISH = value; + this.SendPropertyChanged("Test_Package_FINISH"); + this.OnTest_Package_FINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINAL_Status", DbType="NVarChar(50)")] + public string FINAL_Status + { + get + { + return this._FINAL_Status; + } + set + { + if ((this._FINAL_Status != value)) + { + this.OnFINAL_StatusChanging(value); + this.SendPropertyChanging(); + this._FINAL_Status = value; + this.SendPropertyChanged("FINAL_Status"); + this.OnFINAL_StatusChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_Instrumentation")] + public partial class Transfer_Instrumentation : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _INSTRUMENTATION; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private System.Nullable _Test_Package_START; + + private System.Nullable _Test_Package_FINISH; + + private string _FINAL_Status; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnINSTRUMENTATIONChanging(string value); + partial void OnINSTRUMENTATIONChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnTest_Package_STARTChanging(System.Nullable value); + partial void OnTest_Package_STARTChanged(); + partial void OnTest_Package_FINISHChanging(System.Nullable value); + partial void OnTest_Package_FINISHChanged(); + partial void OnFINAL_StatusChanging(string value); + partial void OnFINAL_StatusChanged(); + #endregion + + public Transfer_Instrumentation() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_INSTRUMENTATION", DbType="NVarChar(50)")] + public string INSTRUMENTATION + { + get + { + return this._INSTRUMENTATION; + } + set + { + if ((this._INSTRUMENTATION != value)) + { + this.OnINSTRUMENTATIONChanging(value); + this.SendPropertyChanging(); + this._INSTRUMENTATION = value; + this.SendPropertyChanged("INSTRUMENTATION"); + this.OnINSTRUMENTATIONChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_START", DbType="DateTime")] + public System.Nullable Test_Package_START + { + get + { + return this._Test_Package_START; + } + set + { + if ((this._Test_Package_START != value)) + { + this.OnTest_Package_STARTChanging(value); + this.SendPropertyChanging(); + this._Test_Package_START = value; + this.SendPropertyChanged("Test_Package_START"); + this.OnTest_Package_STARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_FINISH", DbType="DateTime")] + public System.Nullable Test_Package_FINISH + { + get + { + return this._Test_Package_FINISH; + } + set + { + if ((this._Test_Package_FINISH != value)) + { + this.OnTest_Package_FINISHChanging(value); + this.SendPropertyChanging(); + this._Test_Package_FINISH = value; + this.SendPropertyChanged("Test_Package_FINISH"); + this.OnTest_Package_FINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINAL_Status", DbType="NVarChar(50)")] + public string FINAL_Status + { + get + { + return this._FINAL_Status; + } + set + { + if ((this._FINAL_Status != value)) + { + this.OnFINAL_StatusChanging(value); + this.SendPropertyChanging(); + this._FINAL_Status = value; + this.SendPropertyChanged("FINAL_Status"); + this.OnFINAL_StatusChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_ProjectSetup")] public partial class Transfer_ProjectSetup : INotifyPropertyChanging, INotifyPropertyChanged { private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); - private string _ProjectSetupId; + private string _Id; private string _ProjectId; @@ -367772,8 +368832,8 @@ namespace Model partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); partial void OnCreated(); - partial void OnProjectSetupIdChanging(string value); - partial void OnProjectSetupIdChanged(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); partial void OnProjectIdChanging(string value); partial void OnProjectIdChanged(); partial void OnSNChanging(string value); @@ -367809,22 +368869,22 @@ namespace Model OnCreated(); } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectSetupId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] - public string ProjectSetupId + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id { get { - return this._ProjectSetupId; + return this._Id; } set { - if ((this._ProjectSetupId != value)) + if ((this._Id != value)) { - this.OnProjectSetupIdChanging(value); + this.OnIdChanging(value); this.SendPropertyChanging(); - this._ProjectSetupId = value; - this.SendPropertyChanged("ProjectSetupId"); - this.OnProjectSetupIdChanged(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); } } } From 0e2aa3bb4c95c5713f30a47a04533f97aa2ba2fd Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Fri, 26 Jan 2024 10:37:24 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1-13移交管理(Menu_Transfer).sql | 2 +- SGGL/BLL/Common/Const.cs | 15 ++ SGGL/BLL/Transfer/ProjectSetupService.cs | 86 ++++++- SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx | 122 ++++++++- .../Transfer/ProjectSetup.aspx.cs | 233 +++++++++++++++++- .../Transfer/ProjectSetup.aspx.designer.cs | 146 ++++++++++- 6 files changed, 582 insertions(+), 22 deletions(-) diff --git a/DataBase/菜单初始化脚本/1-13移交管理(Menu_Transfer).sql b/DataBase/菜单初始化脚本/1-13移交管理(Menu_Transfer).sql index 6a324c30..8c2ad907 100644 --- a/DataBase/菜单初始化脚本/1-13移交管理(Menu_Transfer).sql +++ b/DataBase/菜单初始化脚本/1-13移交管理(Menu_Transfer).sql @@ -148,7 +148,7 @@ GO GO INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed) -VALUES('016903B1-3B86-4CF5-AFF8-FF8BE389BEE5','HVAC','Transfer/HVAC.aspx',120,'0','Menu_Transfer',0,1,1) +VALUES('016903B1-3B86-4CF5-AFF8-FF8BE389BEE5','Punchlist from','Transfer/PunchlistFrom.aspx',120,'0','Menu_Transfer',0,1,1) GO INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) VALUES('1C032535-64B2-4E4C-95CF-E58547017E14','016903B1-3B86-4CF5-AFF8-FF8BE389BEE5','',1) diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index 23bf1692..cd88e993 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -3985,6 +3985,21 @@ namespace BLL #endregion #endregion + #region + public const string ProjectSetupMenuId = "48545C6A-9D10-47F4-810F-DAB0CFCD5BF9"; + public const string PipingMenuId = "D94C1BA4-9DFD-4514-AE12-6F886C5D8C9B"; + public const string StaticEquipmentMenuId = "982F746C-084C-445C-9AE8-8C37BDFE7994"; + public const string RotatingEquipmentMenuId = "7E2FB5F9-FB99-4455-B68F-460F1F9A2676"; + public const string InstrumentationMenuId = "88F51059-55B4-4CD5-A38C-36404E5029F6"; + public const string ElectricalMenuId = "296E75D2-192A-4D1F-8471-DD34263F8691"; + public const string CivilStructureMenuId = "95C39F86-C060-452E-BA37-D891C466A39B"; + public const string FirefightingMenuId = "794E64E2-FDD2-4B7D-8408-F7FB06F9C92A"; + public const string TelecomMenuId = "58FFBD80-ACB9-4830-A18A-E025D9600D94"; + public const string PlumbingMenuId = "95295BF7-FB51-480D-9902-6ADA4E8427FC"; + public const string HVACMenuId = "05442049-1310-45B1-9D3D-CAAE759D8F3E"; + public const string PunchlistFromMenuId = "016903B1-3B86-4CF5-AFF8-FF8BE389BEE5"; + #endregion + #endregion #region 质量流程定义 diff --git a/SGGL/BLL/Transfer/ProjectSetupService.cs b/SGGL/BLL/Transfer/ProjectSetupService.cs index 8a8e3a26..94cd1be4 100644 --- a/SGGL/BLL/Transfer/ProjectSetupService.cs +++ b/SGGL/BLL/Transfer/ProjectSetupService.cs @@ -2,11 +2,91 @@ using System.Collections.Generic; using System.Linq; using System.Text; -using System.Threading.Tasks; +using System.Collections; +using System.Web.UI.WebControls; -namespace BLL.Transfer +namespace BLL { - class ProjectSetupService + public class ProjectSetupService { + /// + /// 根据主键获取设备材料报验信息 + /// + /// + /// + public static Model.Transfer_ProjectSetup GetProjectSetupById(string Id) + { + return Funs.DB.Transfer_ProjectSetup.FirstOrDefault(e => e.Id == Id); + } + + /// + /// 添加设备材料报验 + /// + /// + public static void AddProjectSetup(Model.Transfer_ProjectSetup ProjectSetup) + { + Model.SGGLDB db = Funs.DB; + Model.Transfer_ProjectSetup newProjectSetup = new Model.Transfer_ProjectSetup(); + newProjectSetup.Id = ProjectSetup.Id; + newProjectSetup.ProjectId = ProjectSetup.ProjectId; + newProjectSetup.SN = ProjectSetup.SN; + newProjectSetup.PlantNo = ProjectSetup.PlantNo; + newProjectSetup.PlantName = ProjectSetup.PlantName; + newProjectSetup.CommissioningSystem = ProjectSetup.CommissioningSystem; + newProjectSetup.CommissioningCodeDescription = ProjectSetup.CommissioningCodeDescription; + newProjectSetup.SubCommissioningSystem = ProjectSetup.SubCommissioningSystem; + newProjectSetup.SubCommissioningCodeDescription = ProjectSetup.SubCommissioningCodeDescription; + newProjectSetup.DescriptionArea = ProjectSetup.DescriptionArea; + newProjectSetup.TurnoverSystemSequenceNumber = ProjectSetup.TurnoverSystemSequenceNumber; + newProjectSetup.Description = ProjectSetup.Description; + newProjectSetup.TurnoverCode = ProjectSetup.TurnoverCode; + newProjectSetup.TurnoverDescription = ProjectSetup.TurnoverDescription; + newProjectSetup.Remark = ProjectSetup.Remark; + db.Transfer_ProjectSetup.InsertOnSubmit(newProjectSetup); + db.SubmitChanges(); + } + + /// + /// 修改设备材料报验 + /// + /// + public static void UpdateProjectSetup(Model.Transfer_ProjectSetup ProjectSetup) + { + Model.SGGLDB db = Funs.DB; + Model.Transfer_ProjectSetup newProjectSetup = db.Transfer_ProjectSetup.FirstOrDefault(e => e.Id == ProjectSetup.Id); + if (newProjectSetup != null) + { + newProjectSetup.ProjectId = ProjectSetup.ProjectId; + newProjectSetup.SN = ProjectSetup.SN; + newProjectSetup.PlantNo = ProjectSetup.PlantNo; + newProjectSetup.PlantName = ProjectSetup.PlantName; + newProjectSetup.CommissioningSystem = ProjectSetup.CommissioningSystem; + newProjectSetup.CommissioningCodeDescription = ProjectSetup.CommissioningCodeDescription; + newProjectSetup.SubCommissioningSystem = ProjectSetup.SubCommissioningSystem; + newProjectSetup.SubCommissioningCodeDescription = ProjectSetup.SubCommissioningCodeDescription; + newProjectSetup.DescriptionArea = ProjectSetup.DescriptionArea; + newProjectSetup.TurnoverSystemSequenceNumber = ProjectSetup.TurnoverSystemSequenceNumber; + newProjectSetup.Description = ProjectSetup.Description; + newProjectSetup.TurnoverCode = ProjectSetup.TurnoverCode; + newProjectSetup.TurnoverDescription = ProjectSetup.TurnoverDescription; + newProjectSetup.Remark = ProjectSetup.Remark; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除设备材料报验 + /// + /// + public static void DeleteProjectSetup(string Id) + { + Model.SGGLDB db = Funs.DB; + Model.Transfer_ProjectSetup ProjectSetup = db.Transfer_ProjectSetup.FirstOrDefault(e => e.Id == Id); + if (ProjectSetup != null) + { + db.Transfer_ProjectSetup.DeleteOnSubmit(ProjectSetup); + db.SubmitChanges(); + } + } } } diff --git a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx index 5ce31af8..5181a9b7 100644 --- a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx @@ -9,8 +9,126 @@
-
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs index 1ef011d5..74d176c9 100644 --- a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs @@ -1,17 +1,240 @@ -using System; +using BLL; +using BLL.CQMS.Comprehensive; +using System; using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; using System.Linq; -using System.Web; -using System.Web.UI; -using System.Web.UI.WebControls; namespace FineUIPro.Web.Transfer { - public partial class ProjectSetup : System.Web.UI.Page + public partial class ProjectSetup : PageBase { + #region 加载 + /// + /// 加载页面 + /// + /// + /// protected void Page_Load(object sender, EventArgs e) { + if (!IsPostBack) + { + GetButtonPower(); + BindGrid(); + } + } + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select InspectionEquipmentId,ProjectId,C.UnitId,Status, U.UnitName,InspectionCode,CN.ProfessionalName,InspectionName,Specifications,Unit, + Supplier,Counts,SamplingCount,(CASE WHEN SamplingResult=1 THEN '合格' WHEN SamplingResult=0 THEN '不合格' ELSE '' END) AS SamplingResult, + InspectionDate,AttachUrl,Attribute,RemarkCode,UsedPlace,EquipmentNO from Comprehensive_InspectionEquipment C + left join Base_Unit U on C.UnitId=U.UnitId + left join Base_CNProfessional CN on C.CNProfessionalId=CN.CNProfessionalId + where C.ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页、排序 + /// + /// 分页下拉 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 分页索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 增加 + /// + /// 新增按钮事件 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InspectionEquipmentEdit.aspx", "编辑 - "))); + } + #endregion + + #region 编辑 + /// + /// 右键编辑 + /// + /// + /// + protected void btnMenuModify_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InspectionEquipmentEdit.aspx?InspectionEquipmentId={0}", Grid1.SelectedRowID, "编辑 - "))); + } + + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + this.btnMenuModify_Click(sender, e); + } + #endregion + + #region 删除 + /// + /// 右键删除 + /// + /// + /// + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + var InspectionEquipment = BLL.InspectionEquipmentService.GetInspectionEquipmentById(rowID); + if (InspectionEquipment != null) + { + BLL.InspectionEquipmentService.DeleteInspectionEquipment(rowID); + } + } + BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("InspectionEquipmentDataIn.aspx", "导入 - "))); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.InspectionEquipmentMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnImport.Hidden = false; + } + } + } + #endregion + + public static string ConvertState(object Status) + { + if (Status != null) + { + if (Status.ToString().Trim() == BLL.Const.Comprehensive_ReCompile) + { + return "重报"; + } + else if (Status.ToString().Trim() == BLL.Const.Comprehensive_ReJect) + { + return "驳回"; + } + else if (Status.ToString().Trim() == BLL.Const.Comprehensive_Compile) + { + return "编制"; + } + else if (Status.ToString().Trim() == BLL.Const.Comprehensive_Audit) + { + return "待审批"; + } + else if (Status.ToString().Trim() == BLL.Const.Comprehensive_Complete) + { + return "审批完成"; + } + } + return "编制"; } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs index a594cc44..12cfd988 100644 --- a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs @@ -1,19 +1,17 @@ //------------------------------------------------------------------------------ -// +// <自动生成> // 此代码由工具生成。 // -// 对此文件的更改可能会导致不正确的行为,并且如果 -// 重新生成代码,这些更改将会丢失。 -// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// //------------------------------------------------------------------------------ -namespace FineUIPro.Web.Transfer -{ - - - public partial class ProjectSetup - { - +namespace FineUIPro.Web.Transfer { + + + public partial class ProjectSetup { + /// /// form1 控件。 /// @@ -22,5 +20,131 @@ namespace FineUIPro.Web.Transfer /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// 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; + + /// + /// ToolSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar ToolSearch; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// lblPageIndex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblPageIndex; + + /// + /// lbtnFileUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.LinkButton lbtnFileUrl; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; } } From e65e820da19e17a8763ad83d804cf11198448ac6 Mon Sep 17 00:00:00 2001 From: panhf <754998852@qq.com> Date: Fri, 26 Jan 2024 11:30:01 +0800 Subject: [PATCH 08/12] =?UTF-8?q?=E7=A7=BB=E4=BA=A4Instrumentation?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + .../Excel/DataIn/Instrumentation导入模板.xls | Bin 0 -> 21504 bytes SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 16 + SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user | 2 +- .../Transfer/Instrumentation.aspx | 117 +++++ .../Transfer/Instrumentation.aspx.cs | 199 +++++++++ .../Transfer/Instrumentation.aspx.designer.cs | 161 +++++++ .../Transfer/InstrumentationDataIn.aspx | 68 +++ .../Transfer/InstrumentationDataIn.aspx.cs | 408 ++++++++++++++++++ .../InstrumentationDataIn.aspx.designer.cs | 125 ++++++ 10 files changed, 1097 insertions(+), 1 deletion(-) create mode 100644 SGGL/FineUIPro.Web/File/Excel/DataIn/Instrumentation导入模板.xls create mode 100644 SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.designer.cs diff --git a/.gitignore b/.gitignore index 53ee8024..27a0fc70 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,5 @@ /SGGL/BLL/obj /SGGL/FineUIPro.Web/obj /SGGL/Model/obj +/SGGL/FineUIPro.Web/web.config +/SGGL/FineUIPro.Web/ErrLog.txt \ No newline at end of file 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 0000000000000000000000000000000000000000..1949844b17ee473d85ac2f7803888106145855c2 GIT binary patch literal 21504 zcmeHP2~-rv)~+4~7!+hcKmmneQ4o+-5Jg!zLB$Q%5Zo7B z5;ZP~#(l*FjS`7*OTaBEaZMCg=D)X_W_o(2C+K_UKPT_Jnp0g}x9_Hic*g(Hx=$#AXniL$riw1<@K} z3y3Wt+Ca30D1&GR(H^1$MD!z!t>N66lm7>q^B<>bA2J?(>ChM9WE`ZaWHMO3;lTnt zhHbP6#AFgY5^|J2lCDg`9FOL=G|-K{PPKw;FghB9{!n`=8AFECdW>O+A8|A#B8sga z(}swmhQ6T;XE=$4mS;lCyO3dU9M%v34v!hsPeC5XPebcR@zIQ#zzVZbR$G@myJlXCQ%5tfxy37+ugmmO~Le82nX4M0Sdg z!I6;L5aUS-w2w+5NuZkS|0jgfIt-&whofNN&TvM-Y=U{{b2v7ok2`3NgY>a8Jrfb~ zb-$Yq{=k7(r_V&eG~Yb>Xip!Tz>y-~(=yj-iWkgXH-TS57Gh_TSzy(<1N-)7>5A-s zmu^MlE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uu* zFkhuhRlZ7ZEW-P0CSaenf;p&B2u>I9*dHWC@DZOeeQrYcsTBKY%k%PH!=r$x8UIdRVMZ2~4d3u?nTUkh(u z7=TucXW>M`hDve%ab*eCnB6=nTufE|A2^a`owc*G(60x#zX=%91Hqj zF_!j$?mI$)X#$g@zzdLp$%!C`5KK-7a(Fpqa$=Cf9$<31ki!cQlhcFA3GIhDL<^%Y zW=xKP!HMQ$aw5p#1&hh)Ko0%s5RM=~4=1vSd%@u(xX-;{-8vpU7#TR)uL8<_NX=ka z28v9{cXWpZ10?|>hPkkEn#<{_1ZYc3@HriQT5((!!I}6=Am5SfqD*NjBZ@DEV^a@P zzC;J64QvEA;`Ou>5}1G3V&=qn>7 z%^=n(0}1Fux1b9%Je39iJNt)Q0DTTeBswRKJ{)uC_~?-6063QLKY4J3;7o-6hIzc% z!dU@t=y1CQckXb0#wnY-+>a_cs zC(w36L`TK)?hqm5M8g65^D~GzXC*8)DlSwMyIV^aFNgNKz1iLcXu3SwW}qb?9U|JqA0mXDU^w6$-5ny%-LVj*5aS`T z0qf9(JEZZj?8E<{VzzQV?*FL#q3_T=*uY|IOY#14Gb;NZ3T)k&{)Zqx3g(|&KYt9c z-NLSa*%X}%eGCH*1msJ{4EWkKIG``(Ld5%sD|LCK;h4e=f_{)<8IHG}FhY96IKd5x z1n@lE#t4NJM_B@J%Ao`U%JcPe1ey + + @@ -16298,6 +16300,20 @@ TestRunRecordUploadList.aspx + + Instrumentation.aspx + ASPXCodeBehind + + + Instrumentation.aspx + + + InstrumentationDataIn.aspx + ASPXCodeBehind + + + InstrumentationDataIn.aspx + ProjectSetup.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user index c78536b4..5c318055 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -1,7 +1,7 @@  - Release|Any CPU + Debug|Any CPU true false diff --git a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx new file mode 100644 index 00000000..e0286ad0 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx @@ -0,0 +1,117 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Instrumentation.aspx.cs" Inherits="FineUIPro.Web.Transfer.Instrumentation" %> + + + + + + + Instrumentation + + +
+ + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + diff --git a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs new file mode 100644 index 00000000..f03ed819 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs @@ -0,0 +1,199 @@ +using BLL; +using BLL.CQMS.Comprehensive; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.Transfer +{ + public partial class Instrumentation : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + BindGrid(); + } + } + + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select*from Transfer_Instrumentation + where ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + + if (!string.IsNullOrEmpty(this.txtINSTRUMENTATION.Text.Trim())) + { + strSql += " AND INSTRUMENTATION like @INSTRUMENTATION"; + listStr.Add(new SqlParameter("@INSTRUMENTATION", "%" + this.txtINSTRUMENTATION.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) + { + strSql += " AND Test_Package_START >= @InspectionDateA"; + listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) + { + strSql += " AND Test_Package_START <= @InspectionDateZ"; + listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页、排序 + /// + /// 分页下拉 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 分页索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 删除 + /// + /// 右键删除 + /// + /// + /// + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + Model.Transfer_Instrumentation model = Funs.DB.Transfer_Instrumentation.FirstOrDefault(x=>x.Id==rowID); + if (model != null) + { + Funs.DB.Transfer_Instrumentation.DeleteOnSubmit(model); + Funs.DB.SubmitChanges(); + } + } + BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("InstrumentationDataIn.aspx", "导入 - "))); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.InstrumentationMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + //this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + //this.btnMenuModify.Hidden = false; + this.Grid1.EnableRowDoubleClickEvent = true; + } + else + { + this.Grid1.EnableRowDoubleClickEvent = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnImport.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.designer.cs new file mode 100644 index 00000000..e7fd10a4 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class Instrumentation + { + + /// + /// 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; + + /// + /// ToolSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar ToolSearch; + + /// + /// txtINSTRUMENTATION 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtINSTRUMENTATION; + + /// + /// txtStarTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStarTime; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx b/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx new file mode 100644 index 00000000..6149195d --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx @@ -0,0 +1,68 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InstrumentationDataIn.aspx.cs" Inherits="FineUIPro.Web.Transfer.InstrumentationDataIn" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.cs new file mode 100644 index 00000000..b91d78c9 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.cs @@ -0,0 +1,408 @@ +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.Transfer +{ + public partial class InstrumentationDataIn : 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], 7); + 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 oldViewInfos = from x in Funs.DB.Comprehensive_InspectionEquipment + where x.ProjectId == this.CurrUser.LoginProjectId + select x; + + var units = from x in Funs.DB.Base_Unit + join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId + where y.ProjectId == this.CurrUser.LoginProjectId + select x; + + var cns = from x in Funs.DB.Base_CNProfessional select x; + + for (int i = 0; i < ir; i++) + { + string row4 = pds.Rows[i][4].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row4.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|"; + } + } + string row5 = pds.Rows[i][5].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row5.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|"; + } + } + } + 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], 7); + } + 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) + { + List list = new List(); + for (int i = 0; i < ir; i++) + { + + Model.Transfer_Instrumentation model = new Model.Transfer_Instrumentation(); + model.Id = Guid.NewGuid().ToString(); + model.ProjectId = CurrUser.LoginProjectId; + model.INSTRUMENTATION= pds.Rows[i][0].ToString().Trim(); + model.SystemName= pds.Rows[i][1].ToString().Trim(); + model.Subsystem= pds.Rows[i][2].ToString().Trim(); + model.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + model.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + model.Test_Package_FINISH = t2; + + model.FINAL_Status= pds.Rows[i][6].ToString().Trim(); + list.Add(model); + } + if (list.Count > 0) + { + Funs.DB.Transfer_Instrumentation.InsertAllOnSubmit(list); + Funs.DB.SubmitChanges(); + } + } + 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 + "File\\Excel\\DataIn\\Instrumentation导入模板.xls"; + string filePath = "File\\Excel\\DataIn\\Instrumentation导入模板.xls"; + 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/Transfer/InstrumentationDataIn.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.designer.cs new file mode 100644 index 00000000..a4806eab --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.designer.cs @@ -0,0 +1,125 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class InstrumentationDataIn + { + + /// + /// 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; + } +} From 629fc1ef749975349dd778e89c80a65136b25a54 Mon Sep 17 00:00:00 2001 From: panhf <754998852@qq.com> Date: Fri, 26 Jan 2024 15:17:07 +0800 Subject: [PATCH 09/12] =?UTF-8?q?=E7=A7=BB=E4=BA=A4=E7=AE=A1=E7=90=865-8?= =?UTF-8?q?=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../版本日志/SGGLDB_WH_2024-01-26-phf.sql | 78 ++++ .../Excel/DataIn/CivilStructure导入模板.xls | Bin 0 -> 22016 bytes .../File/Excel/DataIn/Electrical导入模板.xls | Bin 0 -> 22016 bytes .../Excel/DataIn/Firefighting导入模板.xls | Bin 0 -> 22016 bytes .../Excel/DataIn/Instrumentation导入模板.xls | Bin 21504 -> 22016 bytes SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 48 ++ .../Transfer/CivilStructure.aspx | 117 +++++ .../Transfer/CivilStructure.aspx.cs | 199 +++++++++ .../Transfer/CivilStructure.aspx.designer.cs | 161 +++++++ .../Transfer/CivilStructureDataIn.aspx | 68 +++ .../Transfer/CivilStructureDataIn.aspx.cs | 417 ++++++++++++++++++ .../CivilStructureDataIn.aspx.designer.cs | 125 ++++++ SGGL/FineUIPro.Web/Transfer/Electrical.aspx | 117 +++++ .../FineUIPro.Web/Transfer/Electrical.aspx.cs | 199 +++++++++ .../Transfer/Electrical.aspx.designer.cs | 161 +++++++ .../Transfer/ElectricalDataIn.aspx | 68 +++ .../Transfer/ElectricalDataIn.aspx.cs | 416 +++++++++++++++++ .../ElectricalDataIn.aspx.designer.cs | 125 ++++++ SGGL/FineUIPro.Web/Transfer/Firefighting.aspx | 117 +++++ .../Transfer/Firefighting.aspx.cs | 199 +++++++++ .../Transfer/Firefighting.aspx.designer.cs | 161 +++++++ .../Transfer/FirefightingDataIn.aspx | 68 +++ .../Transfer/FirefightingDataIn.aspx.cs | 416 +++++++++++++++++ .../FirefightingDataIn.aspx.designer.cs | 125 ++++++ .../Transfer/InstrumentationDataIn.aspx.cs | 62 +-- SGGL/FineUIPro.Web/common/Menu_HSSE.xml | 4 +- SGGL/FineUIPro.Web/common/Menu_TestRun.xml | 4 +- SGGL/FineUIPro.Web/common/Menu_Transfer.xml | 2 +- SGGL/WebAPI/WebAPI.csproj.user | 2 +- 29 files changed, 3425 insertions(+), 34 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_WH_2024-01-26-phf.sql create mode 100644 SGGL/FineUIPro.Web/File/Excel/DataIn/CivilStructure导入模板.xls create mode 100644 SGGL/FineUIPro.Web/File/Excel/DataIn/Electrical导入模板.xls create mode 100644 SGGL/FineUIPro.Web/File/Excel/DataIn/Firefighting导入模板.xls create mode 100644 SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/Electrical.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/Electrical.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/Firefighting.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx.designer.cs diff --git a/DataBase/版本日志/SGGLDB_WH_2024-01-26-phf.sql b/DataBase/版本日志/SGGLDB_WH_2024-01-26-phf.sql new file mode 100644 index 00000000..62f666bc --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_2024-01-26-phf.sql @@ -0,0 +1,78 @@ +CREATE TABLE [dbo].[Transfer_PunchlistFrom]( + [Id] [nvarchar](50) NOT NULL, + [Item_No] [nvarchar](50) NULL, + [Punch_No] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Discipline] [nvarchar](50) NULL, + [DESCRIPTION] [nvarchar](50) NULL, + [Identified] [nvarchar](50) NULL, + [Category] [nvarchar](50) NULL, + [PUNCH_ITEM_FINISH_DATE] [datetime] NULL, + [Action_By] [nvarchar](50) NULL, + [Required_By] [nvarchar](50) NULL, + [PUNCH_ITEM_STATUS] [nvarchar](50) NULL, + [Comments] [nvarchar](50) NULL, + CONSTRAINT [PK_Transfer_PunchlistFrom] 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 + + +CREATE TABLE [dbo].[Transfer_HVAC]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [HVAC] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Transfer_HVAC] 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 + +CREATE TABLE [dbo].[Transfer_Plumbing]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [Plumbing] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Transfer_Plumbing] 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 + +CREATE TABLE [dbo].[Transfer_Telecom]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [Telecom] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Transfer_Telecom] 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 \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/CivilStructure导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/CivilStructure导入模板.xls new file mode 100644 index 0000000000000000000000000000000000000000..bcabcaaea6c51c16041a46d0c8a585223b12cd74 GIT binary patch literal 22016 zcmeHP2V7J~x1YN#uqa3oP>Qe=1qG?1*r=i+h@hzP6FZBj*gz2rfhdXv8`co)T@y8y zL}Ra5&?phR3D{zZHBqeWJLlfLyLa#2yFuUkeZQCQz1iQ~xpU^6|C~86?Z^N)4yXwLhsPS~ry!5xr>6CzcoAbJuwFMZmJEmA0NVD^ z&AuEu2v>n_wRL9FBGA<2IUOKYeUV&qRcL z+vBENFmT}N^o1mh=9^6)UFl;TI8x+CTIM=U@rSwVCh*J1JnT#|4Xiq=cegGqU77RW zrQ6f^%AEbEIz&S%9Qu0*^l=*ThZ#}|^~#7?X$6#;FuDoIqUPerOew9ujx5t^QyQ7l zX|=Toy_SHLQbEJ!jQ%_v39JRW*7FwOM>`1Ph|@y^@UhjQg8C2=Btkb4p$CcJtNM%A zUR)D(+l%^Gh|ueb&{aLI#&?o>!F*AdP_E>j(iN6WZ-{QhkF+KXC5bfUP@SYfu$0#q zV((455(P;neMAIX!1`~eE9e7tiPgrGIZ4C8jh)0r_1DaT3?WTO0HOL3xk|w%aHeT5 z(pwYlQth@2akzqYTxlsrHjF-ZlJFN|>;LM6c^9JiMmLoX!}Pl#N45?I?w z+7dj|URXrqBVxj>!8;xJ!mQH5wKAnl-BD1pT%Wi;4Y)uyWIMP!HJtduVDg1ar}5C@ zFj!piQW!2Wlz53uNSHiK4$GJv=@jH?`d?UrK|dYlY(ai8IwA_;|0mNadMl!`vxKoH z0q>{n@J8GI1cszA-9&`mScKk0kdB)r*8bdn$BQl@y1HMAEiG+p+twyhd)iNMvn9lj z8!#a{Zpwt{xKX3&mk4-a80^Uy`=DnE(Q!k^p~GH|;aA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vUIUjjE_U7{ff<3 znd97ILXLzJlIQa&lXNvG#w@P@zzI07RZLy+@@?ZI($e5c$pZ0%b!LWKjFRH`eDhv#`2iu4p@IMsPmBY#Z z5acJp{FCe72rW&9$lg8*W?G&b1}XMaM~HZ#nh4PXViH6)2#o=@TiG2so8o}OIxyfs zK)x}UfnhcY4v3Wp5wAlosq#p}F@?7*dO(V0INoAlgmi&%g11O;1C4v(2uN|1B?G4d zN-zlN=MMBh7?myI;=dVb0cV(N2EUdNg8?T9j{b0L2ek&#Tg?dI^M~@5a14g?evtYD j4vtxz7w|3dAUNVSHURDe`9t)h(;%8c4}9SJ-x&T2qmQMC literal 0 HcmV?d00001 diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/Electrical导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/Electrical导入模板.xls new file mode 100644 index 0000000000000000000000000000000000000000..24c5688b12f7ae613af82dda4e268905f42a6778 GIT binary patch literal 22016 zcmeHP2Ut``*Pgp9uqa3oP(WcR3JTH@Y*bMYL{QN9iJe7MR1^yq0#OtTHmo7odx;uL zqOn&jXq1TE1Z=UymPE0#|2g+^ckkZ4cY}W4^FM$7=bL@z&Yd&oymRKvnVCDc?8TqV zD^`7HTS<5!nCOver4cdU&?z{_NCz`Qn!pL>tCdP6LnH)F{~P{67WfFdxzAU1;7 z7@|Ey2Z(Zrju4$7Izx1Uh`xl;70#P+^8X-{{-adwN=CqMH1tIz84l?vG9Ij6`(OFK{bVJE;<^79#H!zGL#IU^%%+!KjCOWBotde zrnM184R^F>I3r0Sv^)!1-k$V_WB=L!aCj`CehTt9erj7kiWf0v0_$}nW5_W0^`~tg z4ZV;`+XN}2$zV7ijshaVt)~4rc57Qdj^&CPJR=#5Vgr4$-{idE(Oilcz~HYW60$>j z6pn=4ftXA(pnX&ZNdwj7|2rX^)}cRzIvfE5w}UeZW)sXqpTn^}ecVoS9H5Ww=$VL+ zt=(@q2LT7JPG3kuX};O?(TP6RgCj+Lpk;2*6d#z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F(YfSr%dfioSB4|GEu3)l?Um zULxWR9K08ZGcnGNSoYuW&#(ZlsgwaREs~UDm(zXz-gLO++Uv3_o$()qz(J1Ge5mrj zouWSUELEEncsTkk{|#ko0*6jhAa91gE|9Y2v^#pnGK-&Qk9UaS~AVSEEhXeY<7Z7pIOM{5|;dyRUApM_cD3AO-;KH~Yk(0FPZBdQC z4Pxy_{Uqh*%Zokj%oZ$x_IteD)*fj3JQ`k0jew0L{s$RzbLi9lk1PmQ59mcz_*;d6 z0rz1Wu><}?K~*`N{D&Yv3Fe<%|3+wO3PkqyQ4rJe+)zldpQ0e*^=%?VGl730=Y1jd0UR8&I4|H^;sJ2Py|6Fb2l9dFO{W1gg&z38_kS_`4~%-0%>V!Z literal 0 HcmV?d00001 diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/Firefighting导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/Firefighting导入模板.xls new file mode 100644 index 0000000000000000000000000000000000000000..7163bb6a76a3e5e5838a2977662634760b6b699f GIT binary patch literal 22016 zcmeHP2Urxzwyquq7!)K3D4;L|1qF$sn24exh@hzJ6*GgVU_ucC3#%vwOqf~BS$EYn zth(li0bOOq>@Jwru*O}*$h>p9r)PS4x@Xb%zWcqs->vzotLxM`f1NsYs=BMIdoKQL zS-$EA`wGGf!Nh=6DNTqGhfcvcMmks!(g02{U!_zk86qKY`rq&mvcM_L9~bH0I?p# z`Vbuq^dF^a7cv}vqoFS%$uLMqk#S)4>IYl! z7`DL@5R=RBNXQZTNZK(8bG*28R9b_$8&pHc=AffN=mE8lB16dlT92U&@iUHAL_)Fk zV_F?i)Np@WhBJ~RK+7|sZc%&Ca_*tGKQqVuRm@3 zDCmV`+9pUDO$NjHFcc689;)`^*sX5;IF`#*cqTF!#YTo?zu9@?qd62Yg27)wBxJkv zC>#m712K_|fc8-%ND8PX|M!G&T8I7=>Tm=M+y>4lm`yMbeGbRk^l=-_aezLyp=TmO zzUzL=H3&HH>hzT)l;)d7A6@8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S2>GrWHOBYMU_&9Xhuh@L0InFI63=2_{}T=6 zk-rDr4R&)N4}>Ewfc@b)kRL=}It`>L M^uPzc|BvB+0RDQJ1ONa4 literal 0 HcmV?d00001 diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/Instrumentation导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/Instrumentation导入模板.xls index 1949844b17ee473d85ac2f7803888106145855c2..e9d02061b81b706a5205558a818166f1bf0b024a 100644 GIT binary patch delta 1937 zcmc&#Uuc_E6hG(7_vO#pF8`J$S+?bCX}V6aO>r=UcKzBkO`E1k*6M@!GXJa&9a_PH zW6Wgu;LDJjf~UeSJ;q#OG4_!^xy&R~aq%~(cv3<11AOP-ip|9iX6TOZI%o^Jc3=U23!@Le?M zX@8o={4wmLfIo^|LTS_AL#uv22IvCIg7mebf`@8>XgtiZuQdVyuLOfvl2?+T`^R2&w=sP$1m95gx~Cnp7jpES#jC^S-e9!mxyeGjqiX>?0{ubt=lqw|w@?Q(I*6rbCr z4Am!ZXwM|+!|V{o>9_3Q5y1fDP`z?#)c$czZ8%+#p^{B)k!dtKb$8`5>|#uV2_7!E zsW_c;6IBN@xSlMy6()YBctVpyu1TVc9kNXh^fu>W&S-Nw+sU=!R*2 z!5mNm&+yCD;t=vGDKXS|z9N|Kc2 znh8%MS`2Tk9eWFFg>KJN+Gjt!e14Ah7e2sE`o1t0-(?%w@#Yg?^3jk%?>{8wseCFr`&Hg$>4Aw4TWghWpTiqiEZ5_+h1 zA}KI32ql7&>zjl#gq{nbKTkmzy#@&))cT!!wmH4sx1f#7xxdfvdw;**`Q3BQoq9p0 z7RcRp5?<_hOUO|w3AdcTv)L@WjsQT7IxAcx_lCu^c*U8S4%npRXHtz0nU0H!&>E%N z;teuN$E68kS2v~WL|wCdC$z$1C02FTwj`BVP`#OT1N_9NLUITo6Z!&Pu+mXiquo~U z(k@p-cI3@I94j++2O@1ZsIGA@V;j)a zAx@LV%XB=*xB>?oUl#rpn+IeRbz*V=zw?!{TQ#a3&^W20QOGm=-w8dd#Saj zk+|uZp5s-_2Y^nn3T%V3`x*|3OJju2_S7rCz>YovI`IPFmI*CW!4g3Rv0zDPvA%Jo z8KS_N!YqPgmzI%R1kQoA;1kedXBqdI&|-OCH((bChL1t0cSDYWoZ673oX8AuC_&K& z4D$^~FJ10E;k9VR5KM%3;zKO^tChME{!^`B!cMU&iZ9lIb_V!QKGO-}zHlu&=vfi$9k4@|*)AMePuT&<4nubEdDX$bm)eJ*-)D&k z7v|=Mx@n+)natBq{b$SOQIg5RW8Fxb2TGME+zbC{O#S=BbR_AgZAmA+nvBv+a#gG_ iNfNy|IFTNb)2VA__FY;a^hYA0uBF + + + + + + @@ -16300,6 +16306,48 @@ TestRunRecordUploadList.aspx + + CivilStructure.aspx + ASPXCodeBehind + + + CivilStructure.aspx + + + CivilStructureDataIn.aspx + ASPXCodeBehind + + + CivilStructureDataIn.aspx + + + Electrical.aspx + ASPXCodeBehind + + + Electrical.aspx + + + ElectricalDataIn.aspx + ASPXCodeBehind + + + ElectricalDataIn.aspx + + + Firefighting.aspx + ASPXCodeBehind + + + Firefighting.aspx + + + FirefightingDataIn.aspx + ASPXCodeBehind + + + FirefightingDataIn.aspx + Instrumentation.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx new file mode 100644 index 00000000..58aa3589 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx @@ -0,0 +1,117 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CivilStructure.aspx.cs" Inherits="FineUIPro.Web.Transfer.CivilStructure" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + diff --git a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs new file mode 100644 index 00000000..e0eb76d4 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs @@ -0,0 +1,199 @@ +using BLL; +using BLL.CQMS.Comprehensive; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.Transfer +{ + public partial class CivilStructure : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + BindGrid(); + } + } + + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select*from Transfer_Civil_Structure + where ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + + if (!string.IsNullOrEmpty(this.txtCivil_Structure.Text.Trim())) + { + strSql += " AND Civil_Structure like @Civil_Structure"; + listStr.Add(new SqlParameter("@Civil_Structure", "%" + this.txtCivil_Structure.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) + { + strSql += " AND Test_Package_START >= @InspectionDateA"; + listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) + { + strSql += " AND Test_Package_START <= @InspectionDateZ"; + listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页、排序 + /// + /// 分页下拉 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 分页索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 删除 + /// + /// 右键删除 + /// + /// + /// + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + Model.Transfer_Civil_Structure model = Funs.DB.Transfer_Civil_Structure.FirstOrDefault(x => x.Id == rowID); + if (model != null) + { + Funs.DB.Transfer_Civil_Structure.DeleteOnSubmit(model); + Funs.DB.SubmitChanges(); + } + } + BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("CivilStructureDataIn.aspx", "导入 - "))); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.CivilStructureMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + //this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + //this.btnMenuModify.Hidden = false; + this.Grid1.EnableRowDoubleClickEvent = true; + } + else + { + this.Grid1.EnableRowDoubleClickEvent = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnImport.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.designer.cs new file mode 100644 index 00000000..783a843e --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class CivilStructure + { + + /// + /// 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; + + /// + /// ToolSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar ToolSearch; + + /// + /// txtCivil_Structure 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtCivil_Structure; + + /// + /// txtStarTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStarTime; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx b/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx new file mode 100644 index 00000000..5752054d --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx @@ -0,0 +1,68 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CivilStructureDataIn.aspx.cs" Inherits="FineUIPro.Web.Transfer.CivilStructureDataIn" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx.cs new file mode 100644 index 00000000..e8d6a8ab --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx.cs @@ -0,0 +1,417 @@ +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.Transfer +{ + public partial class CivilStructureDataIn : 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], 7); + 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) + { + for (int i = 0; i < ir; i++) + { + string row4 = pds.Rows[i][4].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row4.Trim()); + } + catch (Exception) + { + result += (i + 3).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|"; + } + } + string row5 = pds.Rows[i][5].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row5.Trim()); + } + catch (Exception) + { + result += (i + 3).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|"; + } + } + } + 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], 7); + } + 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) + { + List list = new List(); + for (int i = 1; i < ir; i++) + { + //查询第一列,没查到的情况下作导入处理 + var modelOnly = Funs.DB.Transfer_Civil_Structure.FirstOrDefault(x => x.Civil_Structure == pds.Rows[i][0].ToString().Trim() + && x.ProjectId == CurrUser.LoginProjectId); + if (modelOnly==null) + { + Model.Transfer_Civil_Structure model = new Model.Transfer_Civil_Structure(); + model.Id = Guid.NewGuid().ToString(); + model.ProjectId = CurrUser.LoginProjectId; + model.Civil_Structure = pds.Rows[i][0].ToString().Trim(); + model.SystemName = pds.Rows[i][1].ToString().Trim(); + model.Subsystem = pds.Rows[i][2].ToString().Trim(); + model.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + model.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + model.Test_Package_FINISH = t2; + + model.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + list.Add(model); + } + else + { + //修改 + modelOnly.Civil_Structure = pds.Rows[i][0].ToString().Trim(); + modelOnly.SystemName = pds.Rows[i][1].ToString().Trim(); + modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim(); + modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + modelOnly.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + modelOnly.Test_Package_FINISH = t2; + modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + Funs.DB.SubmitChanges(); + } + } + if (list.Count > 0) + { + Funs.DB.Transfer_Civil_Structure.InsertAllOnSubmit(list); + Funs.DB.SubmitChanges(); + } + } + 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 + "File\\Excel\\DataIn\\CivilStructure导入模板.xls"; + string filePath = "File\\Excel\\DataIn\\CivilStructure导入模板.xls"; + 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/Transfer/CivilStructureDataIn.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx.designer.cs new file mode 100644 index 00000000..072f07bb --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx.designer.cs @@ -0,0 +1,125 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class CivilStructureDataIn + { + + /// + /// 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/Transfer/Electrical.aspx b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx new file mode 100644 index 00000000..0fd67055 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx @@ -0,0 +1,117 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Electrical.aspx.cs" Inherits="FineUIPro.Web.Transfer.Electrical" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + diff --git a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs new file mode 100644 index 00000000..f36e3328 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs @@ -0,0 +1,199 @@ +using BLL; +using BLL.CQMS.Comprehensive; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.Transfer +{ + public partial class Electrical : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + BindGrid(); + } + } + + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select*from Transfer_Electrical + where ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + + if (!string.IsNullOrEmpty(this.txtELECTRICAL.Text.Trim())) + { + strSql += " AND ELECTRICAL like @ELECTRICAL"; + listStr.Add(new SqlParameter("@ELECTRICAL", "%" + this.txtELECTRICAL.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) + { + strSql += " AND Test_Package_START >= @InspectionDateA"; + listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) + { + strSql += " AND Test_Package_START <= @InspectionDateZ"; + listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页、排序 + /// + /// 分页下拉 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 分页索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 删除 + /// + /// 右键删除 + /// + /// + /// + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + Model.Transfer_Electrical model = Funs.DB.Transfer_Electrical.FirstOrDefault(x => x.Id == rowID); + if (model != null) + { + Funs.DB.Transfer_Electrical.DeleteOnSubmit(model); + Funs.DB.SubmitChanges(); + } + } + BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("ElectricalDataIn.aspx", "导入 - "))); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ElectricalMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + //this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + //this.btnMenuModify.Hidden = false; + this.Grid1.EnableRowDoubleClickEvent = true; + } + else + { + this.Grid1.EnableRowDoubleClickEvent = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnImport.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.designer.cs new file mode 100644 index 00000000..07ce47f3 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class Electrical + { + + /// + /// 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; + + /// + /// ToolSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar ToolSearch; + + /// + /// txtELECTRICAL 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtELECTRICAL; + + /// + /// txtStarTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStarTime; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx b/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx new file mode 100644 index 00000000..97a20417 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx @@ -0,0 +1,68 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ElectricalDataIn.aspx.cs" Inherits="FineUIPro.Web.Transfer.ElectricalDataIn" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx.cs new file mode 100644 index 00000000..039faf05 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx.cs @@ -0,0 +1,416 @@ +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.Transfer +{ + public partial class ElectricalDataIn : 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], 7); + 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) + { + for (int i = 0; i < ir; i++) + { + string row4 = pds.Rows[i][4].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row4.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|"; + } + } + string row5 = pds.Rows[i][5].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row5.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|"; + } + } + } + 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], 7); + } + 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) + { + List list = new List(); + for (int i = 1; i < ir; i++) + { + //查询第一列,没查到的情况下作导入处理 + var modelOnly = Funs.DB.Transfer_Electrical.FirstOrDefault(x => x.ELECTRICAL == pds.Rows[i][0].ToString().Trim() + && x.ProjectId == CurrUser.LoginProjectId); + if (modelOnly == null) + { + Model.Transfer_Electrical model = new Model.Transfer_Electrical(); + model.Id = Guid.NewGuid().ToString(); + model.ProjectId = CurrUser.LoginProjectId; + model.ELECTRICAL = pds.Rows[i][0].ToString().Trim(); + model.SystemName = pds.Rows[i][1].ToString().Trim(); + model.Subsystem = pds.Rows[i][2].ToString().Trim(); + model.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + model.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + model.Test_Package_FINISH = t2; + + model.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + list.Add(model); + } + else + { + //修改 + modelOnly.ELECTRICAL = pds.Rows[i][0].ToString().Trim(); + modelOnly.SystemName = pds.Rows[i][1].ToString().Trim(); + modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim(); + modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + modelOnly.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + modelOnly.Test_Package_FINISH = t2; + modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + Funs.DB.SubmitChanges(); + } + } + if (list.Count > 0) + { + Funs.DB.Transfer_Electrical.InsertAllOnSubmit(list); + Funs.DB.SubmitChanges(); + } + } + 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 + "File\\Excel\\DataIn\\Electrical导入模板.xls"; + string filePath = "File\\Excel\\DataIn\\Electrical导入模板.xls"; + 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/Transfer/ElectricalDataIn.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx.designer.cs new file mode 100644 index 00000000..fa61b540 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx.designer.cs @@ -0,0 +1,125 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class ElectricalDataIn + { + + /// + /// 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/Transfer/Firefighting.aspx b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx new file mode 100644 index 00000000..86011803 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx @@ -0,0 +1,117 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Firefighting.aspx.cs" Inherits="FineUIPro.Web.Transfer.Firefighting" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + diff --git a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs new file mode 100644 index 00000000..1791c87c --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs @@ -0,0 +1,199 @@ +using BLL; +using BLL.CQMS.Comprehensive; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.Transfer +{ + public partial class Firefighting : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + BindGrid(); + } + } + + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select*from Transfer_Firefighting + where ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + + if (!string.IsNullOrEmpty(this.txtFirefighting.Text.Trim())) + { + strSql += " AND Firefighting like @Firefighting"; + listStr.Add(new SqlParameter("@Firefighting", "%" + this.txtFirefighting.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) + { + strSql += " AND Test_Package_START >= @InspectionDateA"; + listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) + { + strSql += " AND Test_Package_START <= @InspectionDateZ"; + listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); + } + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页、排序 + /// + /// 分页下拉 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 分页索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 删除 + /// + /// 右键删除 + /// + /// + /// + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + Model.Transfer_Firefighting model = Funs.DB.Transfer_Firefighting.FirstOrDefault(x => x.Id == rowID); + if (model != null) + { + Funs.DB.Transfer_Firefighting.DeleteOnSubmit(model); + Funs.DB.SubmitChanges(); + } + } + BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("FirefightingDataIn.aspx", "导入 - "))); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.FirefightingMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + //this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + //this.btnMenuModify.Hidden = false; + this.Grid1.EnableRowDoubleClickEvent = true; + } + else + { + this.Grid1.EnableRowDoubleClickEvent = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnImport.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.designer.cs new file mode 100644 index 00000000..f8080d74 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class Firefighting + { + + /// + /// 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; + + /// + /// ToolSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar ToolSearch; + + /// + /// txtFirefighting 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtFirefighting; + + /// + /// txtStarTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStarTime; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx b/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx new file mode 100644 index 00000000..07e72eb6 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx @@ -0,0 +1,68 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FirefightingDataIn.aspx.cs" Inherits="FineUIPro.Web.Transfer.FirefightingDataIn" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx.cs new file mode 100644 index 00000000..ca87cd81 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx.cs @@ -0,0 +1,416 @@ +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.Transfer +{ + public partial class FirefightingDataIn : 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], 7); + 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) + { + for (int i = 0; i < ir; i++) + { + string row4 = pds.Rows[i][4].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row4.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|"; + } + } + string row5 = pds.Rows[i][5].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row5.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|"; + } + } + } + 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], 7); + } + 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) + { + List list = new List(); + for (int i = 1; i < ir; i++) + { + //查询第一列,没查到的情况下作导入处理 + var modelOnly = Funs.DB.Transfer_Firefighting.FirstOrDefault(x => x.Firefighting == pds.Rows[i][0].ToString().Trim() && x.ProjectId == CurrUser.LoginProjectId); + if (modelOnly == null) + { + Model.Transfer_Firefighting model = new Model.Transfer_Firefighting(); + model.Id = Guid.NewGuid().ToString(); + model.ProjectId = CurrUser.LoginProjectId; + model.Firefighting = pds.Rows[i][0].ToString().Trim(); + model.SystemName = pds.Rows[i][1].ToString().Trim(); + model.Subsystem = pds.Rows[i][2].ToString().Trim(); + model.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + model.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + model.Test_Package_FINISH = t2; + + model.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + list.Add(model); + } + else + { + //修改 + modelOnly.Firefighting = pds.Rows[i][0].ToString().Trim(); + modelOnly.SystemName = pds.Rows[i][1].ToString().Trim(); + modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim(); + modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + modelOnly.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + modelOnly.Test_Package_FINISH = t2; + modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + Funs.DB.SubmitChanges(); + } + } + if (list.Count > 0) + { + Funs.DB.Transfer_Firefighting.InsertAllOnSubmit(list); + Funs.DB.SubmitChanges(); + } + } + 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 + "File\\Excel\\DataIn\\Firefighting导入模板.xls"; + string filePath = "File\\Excel\\DataIn\\Firefighting导入模板.xls"; + 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/Transfer/FirefightingDataIn.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx.designer.cs new file mode 100644 index 00000000..910ec5ec --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx.designer.cs @@ -0,0 +1,125 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class FirefightingDataIn + { + + /// + /// 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/Transfer/InstrumentationDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.cs index b91d78c9..c4c6f558 100644 --- a/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.cs @@ -162,17 +162,6 @@ namespace FineUIPro.Web.Transfer ir = pds.Rows.Count; if (pds != null && ir > 0) { - var oldViewInfos = from x in Funs.DB.Comprehensive_InspectionEquipment - where x.ProjectId == this.CurrUser.LoginProjectId - select x; - - var units = from x in Funs.DB.Base_Unit - join y in Funs.DB.Project_ProjectUnit on x.UnitId equals y.UnitId - where y.ProjectId == this.CurrUser.LoginProjectId - select x; - - var cns = from x in Funs.DB.Base_CNProfessional select x; - for (int i = 0; i < ir; i++) { string row4 = pds.Rows[i][4].ToString(); @@ -334,24 +323,43 @@ namespace FineUIPro.Web.Transfer if (pds != null && ir > 0) { List list = new List(); - for (int i = 0; i < ir; i++) + for (int i = 1; i < ir; i++) { - - Model.Transfer_Instrumentation model = new Model.Transfer_Instrumentation(); - model.Id = Guid.NewGuid().ToString(); - model.ProjectId = CurrUser.LoginProjectId; - model.INSTRUMENTATION= pds.Rows[i][0].ToString().Trim(); - model.SystemName= pds.Rows[i][1].ToString().Trim(); - model.Subsystem= pds.Rows[i][2].ToString().Trim(); - model.Test_Package = pds.Rows[i][3].ToString().Trim(); - DateTime t1, t2; - if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) - model.Test_Package_START = t1; - if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) - model.Test_Package_FINISH = t2; + //查询第一列,没查到的情况下作导入处理 + var modelOnly = Funs.DB.Transfer_Instrumentation.FirstOrDefault(x => x.INSTRUMENTATION == pds.Rows[i][0].ToString().Trim() + && x.ProjectId==CurrUser.LoginProjectId); + if (modelOnly == null) + { + Model.Transfer_Instrumentation model = new Model.Transfer_Instrumentation(); + model.Id = Guid.NewGuid().ToString(); + model.ProjectId = CurrUser.LoginProjectId; + model.INSTRUMENTATION = pds.Rows[i][0].ToString().Trim(); + model.SystemName = pds.Rows[i][1].ToString().Trim(); + model.Subsystem = pds.Rows[i][2].ToString().Trim(); + model.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + model.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + model.Test_Package_FINISH = t2; - model.FINAL_Status= pds.Rows[i][6].ToString().Trim(); - list.Add(model); + model.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + list.Add(model); + } + else { + //修改 + modelOnly.INSTRUMENTATION = pds.Rows[i][0].ToString().Trim(); + modelOnly.SystemName = pds.Rows[i][1].ToString().Trim(); + modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim(); + modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + modelOnly.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + modelOnly.Test_Package_FINISH = t2; + modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + Funs.DB.SubmitChanges(); + } } if (list.Count > 0) { diff --git a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml index 1544f676..f3c15865 100644 --- a/SGGL/FineUIPro.Web/common/Menu_HSSE.xml +++ b/SGGL/FineUIPro.Web/common/Menu_HSSE.xml @@ -20,7 +20,7 @@ - + @@ -153,7 +153,7 @@ - + diff --git a/SGGL/FineUIPro.Web/common/Menu_TestRun.xml b/SGGL/FineUIPro.Web/common/Menu_TestRun.xml index 08203a41..a8df02b8 100644 --- a/SGGL/FineUIPro.Web/common/Menu_TestRun.xml +++ b/SGGL/FineUIPro.Web/common/Menu_TestRun.xml @@ -44,6 +44,7 @@ + @@ -60,16 +61,13 @@ - - - diff --git a/SGGL/FineUIPro.Web/common/Menu_Transfer.xml b/SGGL/FineUIPro.Web/common/Menu_Transfer.xml index 80c38b9a..c006fd7f 100644 --- a/SGGL/FineUIPro.Web/common/Menu_Transfer.xml +++ b/SGGL/FineUIPro.Web/common/Menu_Transfer.xml @@ -12,5 +12,5 @@ - + \ No newline at end of file diff --git a/SGGL/WebAPI/WebAPI.csproj.user b/SGGL/WebAPI/WebAPI.csproj.user index 4edb5e0f..6bc24ada 100644 --- a/SGGL/WebAPI/WebAPI.csproj.user +++ b/SGGL/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@  - Release|Any CPU + Debug|Any CPU true From a39dd15a70787f91307ede6657af5e38dd274f4b Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Fri, 26 Jan 2024 15:19:11 +0800 Subject: [PATCH 10/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../版本日志/SGGLDB_WH_2024-01-26-gaofei.sql | 25 + SGGL/BLL/BLL.csproj | 1 + SGGL/BLL/Common/Const.cs | 4 + SGGL/BLL/Transfer/PipingService.cs | 83 ++++ SGGL/FineUIPro.Web/ErrLog.txt | 100 ++++ .../Excel/DataIn/Project Set up导入模板.xls | Bin 0 -> 22016 bytes SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 16 + SGGL/FineUIPro.Web/Transfer/Piping.aspx | 129 ++++++ SGGL/FineUIPro.Web/Transfer/Piping.aspx.cs | 208 +++++++++ .../Transfer/Piping.aspx.designer.cs | 177 ++++++++ SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx | 109 ++--- .../Transfer/ProjectSetup.aspx.cs | 44 +- .../Transfer/ProjectSetup.aspx.designer.cs | 31 +- .../Transfer/ProjectSetupDataIn.aspx | 68 +++ .../Transfer/ProjectSetupDataIn.aspx.cs | 427 ++++++++++++++++++ .../ProjectSetupDataIn.aspx.designer.cs | 123 +++++ SGGL/Model/Model.cs | 313 +++++++++++++ 17 files changed, 1767 insertions(+), 91 deletions(-) create mode 100644 SGGL/BLL/Transfer/PipingService.cs create mode 100644 SGGL/FineUIPro.Web/File/Excel/DataIn/Project Set up导入模板.xls create mode 100644 SGGL/FineUIPro.Web/Transfer/Piping.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/Piping.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/Piping.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/ProjectSetupDataIn.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/ProjectSetupDataIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/ProjectSetupDataIn.aspx.designer.cs diff --git a/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql b/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql index a884ec35..89ae6984 100644 --- a/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql +++ b/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql @@ -27,6 +27,31 @@ EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ProjectSetup' GO +CREATE TABLE [dbo].[Transfer_Piping]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [PIPINGLINENUMBER] [nvarchar](50) NULL, + [SYSTEM] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [TestPackage] [nvarchar](50) NULL, + [TestPackageSTART] [datetime] NULL, + [TestPackageFINISH] [datetime] NULL, + [FINALStatus] [nvarchar](50) NULL, + [PreTestFINISHED] [nvarchar](50) NULL, + [FinalTestFINISHED] [nvarchar](50) NULL, + CONSTRAINT [PK_Transfer_Piping] 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'Piping' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Transfer_Piping' +GO + + + diff --git a/SGGL/BLL/BLL.csproj b/SGGL/BLL/BLL.csproj index e8e85809..541c99ef 100644 --- a/SGGL/BLL/BLL.csproj +++ b/SGGL/BLL/BLL.csproj @@ -767,6 +767,7 @@ + diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index cd88e993..daf4207e 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -3206,6 +3206,10 @@ namespace BLL /// 开车方案编制计划模板文件原始虚拟路径 /// public const string SchemePlan2TemplateUrl = "File\\Excel\\TestRun\\开车方案编制计划2.xlsx"; + /// + /// ProjectSetup导入模版文件原始的虚拟路径 + /// + public const string ProjectSetupDataInUrl = "File\\Excel\\DataIn\\Project Set up导入模板.xls"; #endregion #region 绩效考核模板文件路径 diff --git a/SGGL/BLL/Transfer/PipingService.cs b/SGGL/BLL/Transfer/PipingService.cs new file mode 100644 index 00000000..18c4dde1 --- /dev/null +++ b/SGGL/BLL/Transfer/PipingService.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + public class PipingService + { + /// + /// 根据主键获取设备材料报验信息 + /// + /// + /// + public static Model.Transfer_Piping GetPipingById(string Id) + { + return Funs.DB.Transfer_Piping.FirstOrDefault(e => e.Id == Id); + } + + /// + /// 添加设备材料报验 + /// + /// + public static void AddPiping(Model.Transfer_Piping Piping) + { + Model.SGGLDB db = Funs.DB; + Model.Transfer_Piping newPiping = new Model.Transfer_Piping(); + newPiping.Id = Piping.Id; + newPiping.ProjectId = Piping.ProjectId; + newPiping.PIPINGLINENUMBER = Piping.PIPINGLINENUMBER; + newPiping.SYSTEM = Piping.SYSTEM; + newPiping.Subsystem = Piping.Subsystem; + newPiping.TestPackage = Piping.TestPackage; + newPiping.TestPackageSTART = Piping.TestPackageSTART; + newPiping.TestPackageFINISH = Piping.TestPackageFINISH; + newPiping.FINALStatus = Piping.FINALStatus; + newPiping.PreTestFINISHED = Piping.PreTestFINISHED; + newPiping.FinalTestFINISHED = Piping.FinalTestFINISHED; + db.Transfer_Piping.InsertOnSubmit(newPiping); + db.SubmitChanges(); + } + + /// + /// 修改设备材料报验 + /// + /// + public static void UpdatePiping(Model.Transfer_Piping Piping) + { + Model.SGGLDB db = Funs.DB; + Model.Transfer_Piping newPiping = db.Transfer_Piping.FirstOrDefault(e => e.Id == Piping.Id); + if (newPiping != null) + { + newPiping.ProjectId = Piping.ProjectId; + newPiping.PIPINGLINENUMBER = Piping.PIPINGLINENUMBER; + newPiping.SYSTEM = Piping.SYSTEM; + newPiping.Subsystem = Piping.Subsystem; + newPiping.TestPackage = Piping.TestPackage; + newPiping.TestPackageSTART = Piping.TestPackageSTART; + newPiping.TestPackageFINISH = Piping.TestPackageFINISH; + newPiping.FINALStatus = Piping.FINALStatus; + newPiping.PreTestFINISHED = Piping.PreTestFINISHED; + newPiping.FinalTestFINISHED = Piping.FinalTestFINISHED; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除设备材料报验 + /// + /// + public static void DeletePiping(string Id) + { + Model.SGGLDB db = Funs.DB; + Model.Transfer_Piping Piping = db.Transfer_Piping.FirstOrDefault(e => e.Id == Id); + if (Piping != null) + { + db.Transfer_Piping.DeleteOnSubmit(Piping); + db.SubmitChanges(); + } + } + } +} diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index 9b1ca355..40871f48 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -355,3 +355,103 @@ IP地址:::1 出错时间:01/26/2024 09:47:58 + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2180 +出错时间:01/26/2024 12:55:46 +出错时间:01/26/2024 12:55:46 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2045 +出错时间:01/26/2024 12:55:46 +出错时间:01/26/2024 12:55:46 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1941 +出错时间:01/26/2024 12:55:46 +出错时间:01/26/2024 12:55:46 + + +错误信息开始=====> +错误类型:ArgumentException +错误信息:提供的 URI 方案“http”无效,应为“https”。 +参数名: via +错误堆栈: + 在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via) + 在 System.ServiceModel.ChannelFactory`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannel() + 在 System.ServiceModel.ClientBase`1.CreateChannelInternal() + 在 System.ServiceModel.ClientBase`1.get_Channel() + 在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1883 +出错时间:01/26/2024 12:55:46 +出错时间:01/26/2024 12:55:46 + diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/Project Set up导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/Project Set up导入模板.xls new file mode 100644 index 0000000000000000000000000000000000000000..8f5c6e0dfb7964e594664db991da41c6aa3678c9 GIT binary patch literal 22016 zcmeG^2Urxz(!I+93rdn85|MH&W@}O4L}A0l#b*i!NjgoHNNJ(EP_IE268I z^XLyGVmuOZggTPX@HA}F)pMel%L2c%&)?g_SqETwx-`N7;GRiFkt9lvQ8e%qj!lSA zfTS3ue@s)vZ{CH*>_YlN&nH69JCj5>CVmV77LEn*7eE>Ngfg(Iv|bLP)dbq>L&lTQ z@Jpn0-yKFFh0+N^vPl|TkI_QO9rz<(oVy>(ALnzWoF>YSqM-ap19iil|2PNP^B>E6 z^B>_j|MC34^!Lz!f!LG?^oYp{VGX)`%IE)K5-N1tV;9#IEeZ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gAX1&aRWL=hhGArH@rEf zDOLqER^o|VV|uC*;6`xD)-6Gwtay&wkQ)&x8(Kiz%!-WYD2b(hE+uYwqNH?=j}jHE zaA|OjKuKcvzMMo3~u{FEN{GvK~k2-^oH)U_EL@w0LOgk-EFdLfH^_9E?}$>-sUOe~lU(R4rf@y{7#-dkhceRN zY^*H9ei|9+q%7;eL#jM8WmyCp8lL9LGLBR@tE>kTBfN>SULW>rHybL;Vvr-xQdu^D ze%7$~8^S1#G{w=N&R8Xf3*irSXt)l*u`P`+f)Wkag)5Z! z2dcFmlsZGd={hm|XAnFkggTVYfOLg&H~2NC>XBM^&?%9Z1f&OOlqm^GPtYe*(t#3s zV5BR6Ha#hep-Z|@f_Wyd(}NPu2D(lkN_cNbm&7EJvIDwg0ClJ-x?~6?l#(trf)Z+$ zE;WXYHq>SV)_@1QW1>kf41-aZyzOkX#XpZ z=!!F7cNO + + @@ -16298,6 +16300,13 @@ TestRunRecordUploadList.aspx + + Piping.aspx + ASPXCodeBehind + + + Piping.aspx + ProjectSetup.aspx ASPXCodeBehind @@ -16305,6 +16314,13 @@ ProjectSetup.aspx + + ProjectSetupDataIn.aspx + ASPXCodeBehind + + + ProjectSetupDataIn.aspx + Video.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/Transfer/Piping.aspx b/SGGL/FineUIPro.Web/Transfer/Piping.aspx new file mode 100644 index 00000000..f80d2b82 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Piping.aspx @@ -0,0 +1,129 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Piping.aspx.cs" Inherits="FineUIPro.Web.Transfer.Piping" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/Transfer/Piping.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Piping.aspx.cs new file mode 100644 index 00000000..09da90ac --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Piping.aspx.cs @@ -0,0 +1,208 @@ +using BLL; +using BLL.CQMS.Comprehensive; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.Transfer +{ + public partial class Piping : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + BindGrid(); + } + } + + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select * from Transfer_ProjectSetup C + where C.ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页、排序 + /// + /// 分页下拉 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 分页索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 增加 + /// + /// 新增按钮事件 + /// + /// + /// + protected void btnNew_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InspectionEquipmentEdit.aspx", "编辑 - "))); + } + #endregion + + #region 编辑 + /// + /// 右键编辑 + /// + /// + /// + protected void btnMenuModify_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning); + return; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InspectionEquipmentEdit.aspx?InspectionEquipmentId={0}", Grid1.SelectedRowID, "编辑 - "))); + } + + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + this.btnMenuModify_Click(sender, e); + } + #endregion + + #region 删除 + /// + /// 右键删除 + /// + /// + /// + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + var data = BLL.ProjectSetupService.GetProjectSetupById(rowID); + if (data != null) + { + BLL.ProjectSetupService.DeleteProjectSetup(rowID); + } + } + BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("ProjectSetupDataIn.aspx", "导入 - "))); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectSetupMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnImport.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/Piping.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Piping.aspx.designer.cs new file mode 100644 index 00000000..d7ce9219 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Piping.aspx.designer.cs @@ -0,0 +1,177 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer { + + + public partial class Piping { + + /// + /// 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; + + /// + /// ToolSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar ToolSearch; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// lblPageIndex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label lblPageIndex; + + /// + /// g1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupField g1; + + /// + /// g2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupField g2; + + /// + /// g3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupField g3; + + /// + /// g4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupField g4; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx index 5181a9b7..860fb31f 100644 --- a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx @@ -4,7 +4,7 @@ - + @@ -14,8 +14,8 @@ ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch"> @@ -35,54 +35,61 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs index 74d176c9..61c8f241 100644 --- a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.cs @@ -30,11 +30,7 @@ namespace FineUIPro.Web.Transfer /// public void BindGrid() { - string strSql = @"select InspectionEquipmentId,ProjectId,C.UnitId,Status, U.UnitName,InspectionCode,CN.ProfessionalName,InspectionName,Specifications,Unit, - Supplier,Counts,SamplingCount,(CASE WHEN SamplingResult=1 THEN '合格' WHEN SamplingResult=0 THEN '不合格' ELSE '' END) AS SamplingResult, - InspectionDate,AttachUrl,Attribute,RemarkCode,UsedPlace,EquipmentNO from Comprehensive_InspectionEquipment C - left join Base_Unit U on C.UnitId=U.UnitId - left join Base_CNProfessional CN on C.CNProfessionalId=CN.CNProfessionalId + string strSql = @"select * from Transfer_ProjectSetup C where C.ProjectId = @ProjectId"; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); @@ -158,10 +154,10 @@ namespace FineUIPro.Web.Transfer foreach (int rowIndex in Grid1.SelectedRowIndexArray) { string rowID = Grid1.DataKeys[rowIndex][0].ToString(); - var InspectionEquipment = BLL.InspectionEquipmentService.GetInspectionEquipmentById(rowID); - if (InspectionEquipment != null) + var data = BLL.ProjectSetupService.GetProjectSetupById(rowID); + if (data != null) { - BLL.InspectionEquipmentService.DeleteInspectionEquipment(rowID); + BLL.ProjectSetupService.DeleteProjectSetup(rowID); } } BindGrid(); @@ -178,7 +174,7 @@ namespace FineUIPro.Web.Transfer /// protected void btnImport_Click(object sender, EventArgs e) { - PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("InspectionEquipmentDataIn.aspx", "导入 - "))); + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("ProjectSetupDataIn.aspx", "导入 - "))); } #endregion @@ -194,7 +190,7 @@ namespace FineUIPro.Web.Transfer { return; } - var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.InspectionEquipmentMenuId); + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.ProjectSetupMenuId); if (buttonList.Count() > 0) { if (buttonList.Contains(BLL.Const.BtnDelete)) @@ -208,33 +204,5 @@ namespace FineUIPro.Web.Transfer } } #endregion - - public static string ConvertState(object Status) - { - if (Status != null) - { - if (Status.ToString().Trim() == BLL.Const.Comprehensive_ReCompile) - { - return "重报"; - } - else if (Status.ToString().Trim() == BLL.Const.Comprehensive_ReJect) - { - return "驳回"; - } - else if (Status.ToString().Trim() == BLL.Const.Comprehensive_Compile) - { - return "编制"; - } - else if (Status.ToString().Trim() == BLL.Const.Comprehensive_Audit) - { - return "待审批"; - } - else if (Status.ToString().Trim() == BLL.Const.Comprehensive_Complete) - { - return "审批完成"; - } - } - return "编制"; - } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs index 12cfd988..4a55604b 100644 --- a/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetup.aspx.designer.cs @@ -76,13 +76,40 @@ namespace FineUIPro.Web.Transfer { protected global::System.Web.UI.WebControls.Label lblPageIndex; /// - /// lbtnFileUrl 控件。 + /// g1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::System.Web.UI.WebControls.LinkButton lbtnFileUrl; + protected global::FineUIPro.GroupField g1; + + /// + /// g2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupField g2; + + /// + /// g3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupField g3; + + /// + /// g4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupField g4; /// /// ToolbarText1 控件。 diff --git a/SGGL/FineUIPro.Web/Transfer/ProjectSetupDataIn.aspx b/SGGL/FineUIPro.Web/Transfer/ProjectSetupDataIn.aspx new file mode 100644 index 00000000..92bd444b --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetupDataIn.aspx @@ -0,0 +1,68 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectSetupDataIn.aspx.cs" Inherits="FineUIPro.Web.Transfer.ProjectSetupDataIn" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/Transfer/ProjectSetupDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/ProjectSetupDataIn.aspx.cs new file mode 100644 index 00000000..75349cd2 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetupDataIn.aspx.cs @@ -0,0 +1,427 @@ +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.Transfer +{ + public partial class ProjectSetupDataIn : 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], 13); + 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 oldViewInfos = from x in Funs.DB.Transfer_ProjectSetup + where x.ProjectId == this.CurrUser.LoginProjectId + select x; + + var cns = from x in Funs.DB.Base_CNProfessional select x; + + for (int i = 0; i < ir; i++) + { + Model.Transfer_ProjectSetup oldViewInfo = new Model.Transfer_ProjectSetup(); + string row0 = pds.Rows[i][0].ToString().Trim(); + string row1 = pds.Rows[i][1].ToString(); + //if (string.IsNullOrEmpty(row1)) + //{ + // result += (i + 2).ToString() + "," + "报验编号" + "," + "此项为必填项!" + "|"; + //} + + //string row2 = pds.Rows[i][2].ToString(); + //if (!string.IsNullOrEmpty(row2)) + //{ + // var cn = cns.Where(x => x.ProfessionalName == row2.Trim()).FirstOrDefault(); + // if (cn == null) + // { + // result += (i + 2).ToString() + "," + "专业名称" + "," + "[" + row2 + "]不存在!" + "|"; + // } + //} + + //string row10 = pds.Rows[i][10].ToString().Trim(); + //if (!string.IsNullOrEmpty(row10)) + //{ + // if (row10 != "合格" && row10 != "不合格") + // { + // result += (i + 2).ToString() + "," + "本次抽检结果" + "," + "[" + row10 + "]错误!" + "|"; + // } + //} + + //string row11 = pds.Rows[i][11].ToString(); + //if (!string.IsNullOrEmpty(row11)) + //{ + // try + // { + // DateTime date = Convert.ToDateTime(row11.Trim()); + // } + // catch (Exception) + // { + // result += (i + 2).ToString() + "," + "报验日期" + "," + "[" + row11 + "]错误!" + "|"; + // } + //} + + //string row12 = pds.Rows[i][12].ToString(); + //if (string.IsNullOrEmpty(row12)) + //{ + // 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], 13); + } + 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 oldViewInfos = from x in Funs.DB.Comprehensive_InspectionEquipment + where x.ProjectId == this.CurrUser.LoginProjectId + select x; + + var cns = from x in Funs.DB.Base_CNProfessional select x; + + for (int i = 1; i < ir; i++) + { + Model.Transfer_ProjectSetup Ins = new Model.Transfer_ProjectSetup(); + Ins.Id = SQLHelper.GetNewID(); + Ins.ProjectId = this.CurrUser.LoginProjectId; + Ins.SN = pds.Rows[i][0].ToString().Trim(); + Ins.PlantNo = pds.Rows[i][1].ToString().Trim(); + Ins.PlantName = pds.Rows[i][2].ToString().Trim(); + Ins.CommissioningSystem = pds.Rows[i][3].ToString().Trim(); + Ins.CommissioningCodeDescription = pds.Rows[i][4].ToString().Trim(); + Ins.SubCommissioningSystem = pds.Rows[i][5].ToString().Trim(); + Ins.SubCommissioningCodeDescription = pds.Rows[i][6].ToString().Trim(); + Ins.DescriptionArea = pds.Rows[i][7].ToString().Trim(); + Ins.TurnoverSystemSequenceNumber = pds.Rows[i][8].ToString().Trim(); + Ins.Description = pds.Rows[i][9].ToString().Trim(); + Ins.TurnoverCode = pds.Rows[i][10].ToString().Trim(); + Ins.TurnoverDescription = pds.Rows[i][11].ToString().Trim(); + Ins.Remark = pds.Rows[i][12].ToString().Trim(); + BLL.ProjectSetupService.AddProjectSetup(Ins); + } + } + 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.ProjectSetupDataInUrl; + string filePath = Const.ProjectSetupDataInUrl; + 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/Transfer/ProjectSetupDataIn.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/ProjectSetupDataIn.aspx.designer.cs new file mode 100644 index 00000000..8e67ec09 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/ProjectSetupDataIn.aspx.designer.cs @@ -0,0 +1,123 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer { + + + public partial class ProjectSetupDataIn { + + /// + /// 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/Model/Model.cs b/SGGL/Model/Model.cs index 4d71da9b..770cad83 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -2345,6 +2345,9 @@ namespace Model partial void InsertTransfer_Instrumentation(Transfer_Instrumentation instance); partial void UpdateTransfer_Instrumentation(Transfer_Instrumentation instance); partial void DeleteTransfer_Instrumentation(Transfer_Instrumentation instance); + partial void InsertTransfer_Piping(Transfer_Piping instance); + partial void UpdateTransfer_Piping(Transfer_Piping instance); + partial void DeleteTransfer_Piping(Transfer_Piping instance); partial void InsertTransfer_ProjectSetup(Transfer_ProjectSetup instance); partial void UpdateTransfer_ProjectSetup(Transfer_ProjectSetup instance); partial void DeleteTransfer_ProjectSetup(Transfer_ProjectSetup instance); @@ -8719,6 +8722,14 @@ namespace Model } } + public System.Data.Linq.Table Transfer_Piping + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Transfer_ProjectSetup { get @@ -368792,6 +368803,308 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_Piping")] + public partial class Transfer_Piping : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _PIPINGLINENUMBER; + + private string _SYSTEM; + + private string _Subsystem; + + private string _TestPackage; + + private System.Nullable _TestPackageSTART; + + private System.Nullable _TestPackageFINISH; + + private string _FINALStatus; + + private string _PreTestFINISHED; + + private string _FinalTestFINISHED; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnPIPINGLINENUMBERChanging(string value); + partial void OnPIPINGLINENUMBERChanged(); + partial void OnSYSTEMChanging(string value); + partial void OnSYSTEMChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTestPackageChanging(string value); + partial void OnTestPackageChanged(); + partial void OnTestPackageSTARTChanging(System.Nullable value); + partial void OnTestPackageSTARTChanged(); + partial void OnTestPackageFINISHChanging(System.Nullable value); + partial void OnTestPackageFINISHChanged(); + partial void OnFINALStatusChanging(string value); + partial void OnFINALStatusChanged(); + partial void OnPreTestFINISHEDChanging(string value); + partial void OnPreTestFINISHEDChanged(); + partial void OnFinalTestFINISHEDChanging(string value); + partial void OnFinalTestFINISHEDChanged(); + #endregion + + public Transfer_Piping() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PIPINGLINENUMBER", DbType="NVarChar(50)")] + public string PIPINGLINENUMBER + { + get + { + return this._PIPINGLINENUMBER; + } + set + { + if ((this._PIPINGLINENUMBER != value)) + { + this.OnPIPINGLINENUMBERChanging(value); + this.SendPropertyChanging(); + this._PIPINGLINENUMBER = value; + this.SendPropertyChanged("PIPINGLINENUMBER"); + this.OnPIPINGLINENUMBERChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SYSTEM", DbType="NVarChar(50)")] + public string SYSTEM + { + get + { + return this._SYSTEM; + } + set + { + if ((this._SYSTEM != value)) + { + this.OnSYSTEMChanging(value); + this.SendPropertyChanging(); + this._SYSTEM = value; + this.SendPropertyChanged("SYSTEM"); + this.OnSYSTEMChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestPackage", DbType="NVarChar(50)")] + public string TestPackage + { + get + { + return this._TestPackage; + } + set + { + if ((this._TestPackage != value)) + { + this.OnTestPackageChanging(value); + this.SendPropertyChanging(); + this._TestPackage = value; + this.SendPropertyChanged("TestPackage"); + this.OnTestPackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestPackageSTART", DbType="DateTime")] + public System.Nullable TestPackageSTART + { + get + { + return this._TestPackageSTART; + } + set + { + if ((this._TestPackageSTART != value)) + { + this.OnTestPackageSTARTChanging(value); + this.SendPropertyChanging(); + this._TestPackageSTART = value; + this.SendPropertyChanged("TestPackageSTART"); + this.OnTestPackageSTARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestPackageFINISH", DbType="DateTime")] + public System.Nullable TestPackageFINISH + { + get + { + return this._TestPackageFINISH; + } + set + { + if ((this._TestPackageFINISH != value)) + { + this.OnTestPackageFINISHChanging(value); + this.SendPropertyChanging(); + this._TestPackageFINISH = value; + this.SendPropertyChanged("TestPackageFINISH"); + this.OnTestPackageFINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINALStatus", DbType="NVarChar(50)")] + public string FINALStatus + { + get + { + return this._FINALStatus; + } + set + { + if ((this._FINALStatus != value)) + { + this.OnFINALStatusChanging(value); + this.SendPropertyChanging(); + this._FINALStatus = value; + this.SendPropertyChanged("FINALStatus"); + this.OnFINALStatusChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PreTestFINISHED", DbType="NVarChar(50)")] + public string PreTestFINISHED + { + get + { + return this._PreTestFINISHED; + } + set + { + if ((this._PreTestFINISHED != value)) + { + this.OnPreTestFINISHEDChanging(value); + this.SendPropertyChanging(); + this._PreTestFINISHED = value; + this.SendPropertyChanged("PreTestFINISHED"); + this.OnPreTestFINISHEDChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FinalTestFINISHED", DbType="NVarChar(50)")] + public string FinalTestFINISHED + { + get + { + return this._FinalTestFINISHED; + } + set + { + if ((this._FinalTestFINISHED != value)) + { + this.OnFinalTestFINISHEDChanging(value); + this.SendPropertyChanging(); + this._FinalTestFINISHED = value; + this.SendPropertyChanged("FinalTestFINISHED"); + this.OnFinalTestFINISHEDChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_ProjectSetup")] public partial class Transfer_ProjectSetup : INotifyPropertyChanging, INotifyPropertyChanged { From b2a5d61e5633cddd5bdaed12d9cf73f7fae755b0 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Fri, 26 Jan 2024 15:26:50 +0800 Subject: [PATCH 11/12] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../版本日志/SGGLDB_WH_2024-01-26-gaofei.sql | 80 ++ .../版本日志/SGGLDB_WH_2024-01-26-phf.sql | 1 + SGGL/BLL/Common/Const.cs | 2 +- ...p导入模板.xls => ProjectSetup导入模板.xls} | Bin SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 17 + SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user | 2 +- SGGL/Model/Model.cs | 1228 +++++++++++++++++ SGGL/WebAPI/WebAPI.csproj.user | 2 +- 8 files changed, 1329 insertions(+), 3 deletions(-) rename SGGL/FineUIPro.Web/File/Excel/DataIn/{Project Set up导入模板.xls => ProjectSetup导入模板.xls} (100%) diff --git a/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql b/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql index 89ae6984..8bb9d8be 100644 --- a/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql +++ b/DataBase/版本日志/SGGLDB_WH_2024-01-26-gaofei.sql @@ -125,4 +125,84 @@ CREATE TABLE [dbo].[Transfer_Firefighting]( )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] +GO + +CREATE TABLE [dbo].[Transfer_PunchlistFrom]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [Item_No] [nvarchar](50) NULL, + [Punch_No] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Discipline] [nvarchar](50) NULL, + [DESCRIPTION] [nvarchar](50) NULL, + [Identified] [nvarchar](50) NULL, + [Category] [nvarchar](50) NULL, + [PUNCH_ITEM_FINISH_DATE] [datetime] NULL, + [Action_By] [nvarchar](50) NULL, + [Required_By] [nvarchar](50) NULL, + [PUNCH_ITEM_STATUS] [nvarchar](50) NULL, + [Comments] [nvarchar](50) NULL, + CONSTRAINT [PK_Transfer_PunchlistFrom] 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 + + +CREATE TABLE [dbo].[Transfer_HVAC]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [HVAC] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Transfer_HVAC] 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 + +CREATE TABLE [dbo].[Transfer_Plumbing]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [Plumbing] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Transfer_Plumbing] 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 + +CREATE TABLE [dbo].[Transfer_Telecom]( + [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [Telecom] [nvarchar](50) NULL, + [SystemName] [nvarchar](50) NULL, + [Subsystem] [nvarchar](50) NULL, + [Test_Package] [nvarchar](50) NULL, + [Test_Package_START] [datetime] NULL, + [Test_Package_FINISH] [datetime] NULL, + [FINAL_Status] [nvarchar](50) NULL, + CONSTRAINT [PK_Transfer_Telecom] 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 \ No newline at end of file diff --git a/DataBase/版本日志/SGGLDB_WH_2024-01-26-phf.sql b/DataBase/版本日志/SGGLDB_WH_2024-01-26-phf.sql index 62f666bc..ce48014a 100644 --- a/DataBase/版本日志/SGGLDB_WH_2024-01-26-phf.sql +++ b/DataBase/版本日志/SGGLDB_WH_2024-01-26-phf.sql @@ -1,5 +1,6 @@ CREATE TABLE [dbo].[Transfer_PunchlistFrom]( [Id] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, [Item_No] [nvarchar](50) NULL, [Punch_No] [nvarchar](50) NULL, [SystemName] [nvarchar](50) NULL, diff --git a/SGGL/BLL/Common/Const.cs b/SGGL/BLL/Common/Const.cs index daf4207e..af1db478 100644 --- a/SGGL/BLL/Common/Const.cs +++ b/SGGL/BLL/Common/Const.cs @@ -3209,7 +3209,7 @@ namespace BLL /// /// ProjectSetup导入模版文件原始的虚拟路径 /// - public const string ProjectSetupDataInUrl = "File\\Excel\\DataIn\\Project Set up导入模板.xls"; + public const string ProjectSetupDataInUrl = "File\\Excel\\DataIn\\ProjectSetup导入模板.xls"; #endregion #region 绩效考核模板文件路径 diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/Project Set up导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/ProjectSetup导入模板.xls similarity index 100% rename from SGGL/FineUIPro.Web/File/Excel/DataIn/Project Set up导入模板.xls rename to SGGL/FineUIPro.Web/File/Excel/DataIn/ProjectSetup导入模板.xls diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index b8cf3088..d94d6880 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -1834,7 +1834,9 @@ + + @@ -2086,6 +2088,7 @@ + @@ -16362,6 +16365,13 @@ InstrumentationDataIn.aspx + + Piping.aspx + ASPXCodeBehind + + + Piping.aspx + ProjectSetup.aspx ASPXCodeBehind @@ -16369,6 +16379,13 @@ ProjectSetup.aspx + + ProjectSetupDataIn.aspx + ASPXCodeBehind + + + ProjectSetupDataIn.aspx + Video.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user index 5c318055..c78536b4 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU true false diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 770cad83..1c236fe9 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -2342,15 +2342,27 @@ namespace Model partial void InsertTransfer_Firefighting(Transfer_Firefighting instance); partial void UpdateTransfer_Firefighting(Transfer_Firefighting instance); partial void DeleteTransfer_Firefighting(Transfer_Firefighting instance); + partial void InsertTransfer_HVAC(Transfer_HVAC instance); + partial void UpdateTransfer_HVAC(Transfer_HVAC instance); + partial void DeleteTransfer_HVAC(Transfer_HVAC instance); partial void InsertTransfer_Instrumentation(Transfer_Instrumentation instance); partial void UpdateTransfer_Instrumentation(Transfer_Instrumentation instance); partial void DeleteTransfer_Instrumentation(Transfer_Instrumentation instance); partial void InsertTransfer_Piping(Transfer_Piping instance); partial void UpdateTransfer_Piping(Transfer_Piping instance); partial void DeleteTransfer_Piping(Transfer_Piping instance); + partial void InsertTransfer_Plumbing(Transfer_Plumbing instance); + partial void UpdateTransfer_Plumbing(Transfer_Plumbing instance); + partial void DeleteTransfer_Plumbing(Transfer_Plumbing instance); partial void InsertTransfer_ProjectSetup(Transfer_ProjectSetup instance); partial void UpdateTransfer_ProjectSetup(Transfer_ProjectSetup instance); partial void DeleteTransfer_ProjectSetup(Transfer_ProjectSetup instance); + partial void InsertTransfer_PunchlistFrom(Transfer_PunchlistFrom instance); + partial void UpdateTransfer_PunchlistFrom(Transfer_PunchlistFrom instance); + partial void DeleteTransfer_PunchlistFrom(Transfer_PunchlistFrom instance); + partial void InsertTransfer_Telecom(Transfer_Telecom instance); + partial void UpdateTransfer_Telecom(Transfer_Telecom instance); + partial void DeleteTransfer_Telecom(Transfer_Telecom instance); partial void InsertUnqualified_WorkContact(Unqualified_WorkContact instance); partial void UpdateUnqualified_WorkContact(Unqualified_WorkContact instance); partial void DeleteUnqualified_WorkContact(Unqualified_WorkContact instance); @@ -8714,6 +8726,14 @@ namespace Model } } + public System.Data.Linq.Table Transfer_HVAC + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Transfer_Instrumentation { get @@ -8730,6 +8750,14 @@ namespace Model } } + public System.Data.Linq.Table Transfer_Plumbing + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Transfer_ProjectSetup { get @@ -8738,6 +8766,22 @@ namespace Model } } + public System.Data.Linq.Table Transfer_PunchlistFrom + { + get + { + return this.GetTable(); + } + } + + public System.Data.Linq.Table Transfer_Telecom + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table Unqualified_WorkContact { get @@ -368549,6 +368593,260 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_HVAC")] + public partial class Transfer_HVAC : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _HVAC; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private System.Nullable _Test_Package_START; + + private System.Nullable _Test_Package_FINISH; + + private string _FINAL_Status; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnHVACChanging(string value); + partial void OnHVACChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnTest_Package_STARTChanging(System.Nullable value); + partial void OnTest_Package_STARTChanged(); + partial void OnTest_Package_FINISHChanging(System.Nullable value); + partial void OnTest_Package_FINISHChanged(); + partial void OnFINAL_StatusChanging(string value); + partial void OnFINAL_StatusChanged(); + #endregion + + public Transfer_HVAC() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HVAC", DbType="NVarChar(50)")] + public string HVAC + { + get + { + return this._HVAC; + } + set + { + if ((this._HVAC != value)) + { + this.OnHVACChanging(value); + this.SendPropertyChanging(); + this._HVAC = value; + this.SendPropertyChanged("HVAC"); + this.OnHVACChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_START", DbType="DateTime")] + public System.Nullable Test_Package_START + { + get + { + return this._Test_Package_START; + } + set + { + if ((this._Test_Package_START != value)) + { + this.OnTest_Package_STARTChanging(value); + this.SendPropertyChanging(); + this._Test_Package_START = value; + this.SendPropertyChanged("Test_Package_START"); + this.OnTest_Package_STARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_FINISH", DbType="DateTime")] + public System.Nullable Test_Package_FINISH + { + get + { + return this._Test_Package_FINISH; + } + set + { + if ((this._Test_Package_FINISH != value)) + { + this.OnTest_Package_FINISHChanging(value); + this.SendPropertyChanging(); + this._Test_Package_FINISH = value; + this.SendPropertyChanged("Test_Package_FINISH"); + this.OnTest_Package_FINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINAL_Status", DbType="NVarChar(50)")] + public string FINAL_Status + { + get + { + return this._FINAL_Status; + } + set + { + if ((this._FINAL_Status != value)) + { + this.OnFINAL_StatusChanging(value); + this.SendPropertyChanging(); + this._FINAL_Status = value; + this.SendPropertyChanged("FINAL_Status"); + this.OnFINAL_StatusChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_Instrumentation")] public partial class Transfer_Instrumentation : INotifyPropertyChanging, INotifyPropertyChanged { @@ -369105,6 +369403,260 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_Plumbing")] + public partial class Transfer_Plumbing : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _Plumbing; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private System.Nullable _Test_Package_START; + + private System.Nullable _Test_Package_FINISH; + + private string _FINAL_Status; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnPlumbingChanging(string value); + partial void OnPlumbingChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnTest_Package_STARTChanging(System.Nullable value); + partial void OnTest_Package_STARTChanged(); + partial void OnTest_Package_FINISHChanging(System.Nullable value); + partial void OnTest_Package_FINISHChanged(); + partial void OnFINAL_StatusChanging(string value); + partial void OnFINAL_StatusChanged(); + #endregion + + public Transfer_Plumbing() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Plumbing", DbType="NVarChar(50)")] + public string Plumbing + { + get + { + return this._Plumbing; + } + set + { + if ((this._Plumbing != value)) + { + this.OnPlumbingChanging(value); + this.SendPropertyChanging(); + this._Plumbing = value; + this.SendPropertyChanged("Plumbing"); + this.OnPlumbingChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_START", DbType="DateTime")] + public System.Nullable Test_Package_START + { + get + { + return this._Test_Package_START; + } + set + { + if ((this._Test_Package_START != value)) + { + this.OnTest_Package_STARTChanging(value); + this.SendPropertyChanging(); + this._Test_Package_START = value; + this.SendPropertyChanged("Test_Package_START"); + this.OnTest_Package_STARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_FINISH", DbType="DateTime")] + public System.Nullable Test_Package_FINISH + { + get + { + return this._Test_Package_FINISH; + } + set + { + if ((this._Test_Package_FINISH != value)) + { + this.OnTest_Package_FINISHChanging(value); + this.SendPropertyChanging(); + this._Test_Package_FINISH = value; + this.SendPropertyChanged("Test_Package_FINISH"); + this.OnTest_Package_FINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINAL_Status", DbType="NVarChar(50)")] + public string FINAL_Status + { + get + { + return this._FINAL_Status; + } + set + { + if ((this._FINAL_Status != value)) + { + this.OnFINAL_StatusChanging(value); + this.SendPropertyChanging(); + this._FINAL_Status = value; + this.SendPropertyChanged("FINAL_Status"); + this.OnFINAL_StatusChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_ProjectSetup")] public partial class Transfer_ProjectSetup : INotifyPropertyChanging, INotifyPropertyChanged { @@ -369503,6 +370055,682 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_PunchlistFrom")] + public partial class Transfer_PunchlistFrom : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _Item_No; + + private string _Punch_No; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private string _Discipline; + + private string _DESCRIPTION; + + private string _Identified; + + private string _Category; + + private System.Nullable _PUNCH_ITEM_FINISH_DATE; + + private string _Action_By; + + private string _Required_By; + + private string _PUNCH_ITEM_STATUS; + + private string _Comments; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnItem_NoChanging(string value); + partial void OnItem_NoChanged(); + partial void OnPunch_NoChanging(string value); + partial void OnPunch_NoChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnDisciplineChanging(string value); + partial void OnDisciplineChanged(); + partial void OnDESCRIPTIONChanging(string value); + partial void OnDESCRIPTIONChanged(); + partial void OnIdentifiedChanging(string value); + partial void OnIdentifiedChanged(); + partial void OnCategoryChanging(string value); + partial void OnCategoryChanged(); + partial void OnPUNCH_ITEM_FINISH_DATEChanging(System.Nullable value); + partial void OnPUNCH_ITEM_FINISH_DATEChanged(); + partial void OnAction_ByChanging(string value); + partial void OnAction_ByChanged(); + partial void OnRequired_ByChanging(string value); + partial void OnRequired_ByChanged(); + partial void OnPUNCH_ITEM_STATUSChanging(string value); + partial void OnPUNCH_ITEM_STATUSChanged(); + partial void OnCommentsChanging(string value); + partial void OnCommentsChanged(); + #endregion + + public Transfer_PunchlistFrom() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Item_No", DbType="NVarChar(50)")] + public string Item_No + { + get + { + return this._Item_No; + } + set + { + if ((this._Item_No != value)) + { + this.OnItem_NoChanging(value); + this.SendPropertyChanging(); + this._Item_No = value; + this.SendPropertyChanged("Item_No"); + this.OnItem_NoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Punch_No", DbType="NVarChar(50)")] + public string Punch_No + { + get + { + return this._Punch_No; + } + set + { + if ((this._Punch_No != value)) + { + this.OnPunch_NoChanging(value); + this.SendPropertyChanging(); + this._Punch_No = value; + this.SendPropertyChanged("Punch_No"); + this.OnPunch_NoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Discipline", DbType="NVarChar(50)")] + public string Discipline + { + get + { + return this._Discipline; + } + set + { + if ((this._Discipline != value)) + { + this.OnDisciplineChanging(value); + this.SendPropertyChanging(); + this._Discipline = value; + this.SendPropertyChanged("Discipline"); + this.OnDisciplineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DESCRIPTION", DbType="NVarChar(50)")] + public string DESCRIPTION + { + get + { + return this._DESCRIPTION; + } + set + { + if ((this._DESCRIPTION != value)) + { + this.OnDESCRIPTIONChanging(value); + this.SendPropertyChanging(); + this._DESCRIPTION = value; + this.SendPropertyChanged("DESCRIPTION"); + this.OnDESCRIPTIONChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Identified", DbType="NVarChar(50)")] + public string Identified + { + get + { + return this._Identified; + } + set + { + if ((this._Identified != value)) + { + this.OnIdentifiedChanging(value); + this.SendPropertyChanging(); + this._Identified = value; + this.SendPropertyChanged("Identified"); + this.OnIdentifiedChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Category", DbType="NVarChar(50)")] + public string Category + { + get + { + return this._Category; + } + set + { + if ((this._Category != value)) + { + this.OnCategoryChanging(value); + this.SendPropertyChanging(); + this._Category = value; + this.SendPropertyChanged("Category"); + this.OnCategoryChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PUNCH_ITEM_FINISH_DATE", DbType="DateTime")] + public System.Nullable PUNCH_ITEM_FINISH_DATE + { + get + { + return this._PUNCH_ITEM_FINISH_DATE; + } + set + { + if ((this._PUNCH_ITEM_FINISH_DATE != value)) + { + this.OnPUNCH_ITEM_FINISH_DATEChanging(value); + this.SendPropertyChanging(); + this._PUNCH_ITEM_FINISH_DATE = value; + this.SendPropertyChanged("PUNCH_ITEM_FINISH_DATE"); + this.OnPUNCH_ITEM_FINISH_DATEChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Action_By", DbType="NVarChar(50)")] + public string Action_By + { + get + { + return this._Action_By; + } + set + { + if ((this._Action_By != value)) + { + this.OnAction_ByChanging(value); + this.SendPropertyChanging(); + this._Action_By = value; + this.SendPropertyChanged("Action_By"); + this.OnAction_ByChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Required_By", DbType="NVarChar(50)")] + public string Required_By + { + get + { + return this._Required_By; + } + set + { + if ((this._Required_By != value)) + { + this.OnRequired_ByChanging(value); + this.SendPropertyChanging(); + this._Required_By = value; + this.SendPropertyChanged("Required_By"); + this.OnRequired_ByChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PUNCH_ITEM_STATUS", DbType="NVarChar(50)")] + public string PUNCH_ITEM_STATUS + { + get + { + return this._PUNCH_ITEM_STATUS; + } + set + { + if ((this._PUNCH_ITEM_STATUS != value)) + { + this.OnPUNCH_ITEM_STATUSChanging(value); + this.SendPropertyChanging(); + this._PUNCH_ITEM_STATUS = value; + this.SendPropertyChanged("PUNCH_ITEM_STATUS"); + this.OnPUNCH_ITEM_STATUSChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Comments", DbType="NVarChar(50)")] + public string Comments + { + get + { + return this._Comments; + } + set + { + if ((this._Comments != value)) + { + this.OnCommentsChanging(value); + this.SendPropertyChanging(); + this._Comments = value; + this.SendPropertyChanged("Comments"); + this.OnCommentsChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Transfer_Telecom")] + public partial class Transfer_Telecom : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _Id; + + private string _ProjectId; + + private string _Telecom; + + private string _SystemName; + + private string _Subsystem; + + private string _Test_Package; + + private System.Nullable _Test_Package_START; + + private System.Nullable _Test_Package_FINISH; + + private string _FINAL_Status; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnIdChanging(string value); + partial void OnIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnTelecomChanging(string value); + partial void OnTelecomChanged(); + partial void OnSystemNameChanging(string value); + partial void OnSystemNameChanged(); + partial void OnSubsystemChanging(string value); + partial void OnSubsystemChanged(); + partial void OnTest_PackageChanging(string value); + partial void OnTest_PackageChanged(); + partial void OnTest_Package_STARTChanging(System.Nullable value); + partial void OnTest_Package_STARTChanged(); + partial void OnTest_Package_FINISHChanging(System.Nullable value); + partial void OnTest_Package_FINISHChanged(); + partial void OnFINAL_StatusChanging(string value); + partial void OnFINAL_StatusChanged(); + #endregion + + public Transfer_Telecom() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string Id + { + get + { + return this._Id; + } + set + { + if ((this._Id != value)) + { + this.OnIdChanging(value); + this.SendPropertyChanging(); + this._Id = value; + this.SendPropertyChanged("Id"); + this.OnIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Telecom", DbType="NVarChar(50)")] + public string Telecom + { + get + { + return this._Telecom; + } + set + { + if ((this._Telecom != value)) + { + this.OnTelecomChanging(value); + this.SendPropertyChanging(); + this._Telecom = value; + this.SendPropertyChanged("Telecom"); + this.OnTelecomChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemName", DbType="NVarChar(50)")] + public string SystemName + { + get + { + return this._SystemName; + } + set + { + if ((this._SystemName != value)) + { + this.OnSystemNameChanging(value); + this.SendPropertyChanging(); + this._SystemName = value; + this.SendPropertyChanged("SystemName"); + this.OnSystemNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Subsystem", DbType="NVarChar(50)")] + public string Subsystem + { + get + { + return this._Subsystem; + } + set + { + if ((this._Subsystem != value)) + { + this.OnSubsystemChanging(value); + this.SendPropertyChanging(); + this._Subsystem = value; + this.SendPropertyChanged("Subsystem"); + this.OnSubsystemChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package", DbType="NVarChar(50)")] + public string Test_Package + { + get + { + return this._Test_Package; + } + set + { + if ((this._Test_Package != value)) + { + this.OnTest_PackageChanging(value); + this.SendPropertyChanging(); + this._Test_Package = value; + this.SendPropertyChanged("Test_Package"); + this.OnTest_PackageChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_START", DbType="DateTime")] + public System.Nullable Test_Package_START + { + get + { + return this._Test_Package_START; + } + set + { + if ((this._Test_Package_START != value)) + { + this.OnTest_Package_STARTChanging(value); + this.SendPropertyChanging(); + this._Test_Package_START = value; + this.SendPropertyChanged("Test_Package_START"); + this.OnTest_Package_STARTChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Test_Package_FINISH", DbType="DateTime")] + public System.Nullable Test_Package_FINISH + { + get + { + return this._Test_Package_FINISH; + } + set + { + if ((this._Test_Package_FINISH != value)) + { + this.OnTest_Package_FINISHChanging(value); + this.SendPropertyChanging(); + this._Test_Package_FINISH = value; + this.SendPropertyChanged("Test_Package_FINISH"); + this.OnTest_Package_FINISHChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FINAL_Status", DbType="NVarChar(50)")] + public string FINAL_Status + { + get + { + return this._FINAL_Status; + } + set + { + if ((this._FINAL_Status != value)) + { + this.OnFINAL_StatusChanging(value); + this.SendPropertyChanging(); + this._FINAL_Status = value; + this.SendPropertyChanged("FINAL_Status"); + this.OnFINAL_StatusChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Unqualified_WorkContact")] public partial class Unqualified_WorkContact : INotifyPropertyChanging, INotifyPropertyChanged { diff --git a/SGGL/WebAPI/WebAPI.csproj.user b/SGGL/WebAPI/WebAPI.csproj.user index 6bc24ada..4edb5e0f 100644 --- a/SGGL/WebAPI/WebAPI.csproj.user +++ b/SGGL/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU true From 7cb3458118012fbf5e6ef01240cf75e9a677ab9e Mon Sep 17 00:00:00 2001 From: panhf <754998852@qq.com> Date: Fri, 26 Jan 2024 16:50:18 +0800 Subject: [PATCH 12/12] =?UTF-8?q?=E7=A7=BB=E4=BA=A4=E7=AE=A1=E7=90=869-12?= =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../File/Excel/DataIn/HVAC导入模板.xls | Bin 0 -> 22016 bytes .../File/Excel/DataIn/Plumbing导入模板.xls | Bin 0 -> 22016 bytes .../Excel/DataIn/PunchlistFrom导入模板.xls | Bin 0 -> 25088 bytes .../File/Excel/DataIn/Telecom导入模板.xls | Bin 0 -> 22016 bytes SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 64 +++ SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user | 2 +- .../Transfer/CivilStructure.aspx | 3 +- .../Transfer/CivilStructure.aspx.cs | 1 + .../Transfer/CivilStructureDataIn.aspx.cs | 6 +- SGGL/FineUIPro.Web/Transfer/Electrical.aspx | 3 +- .../FineUIPro.Web/Transfer/Electrical.aspx.cs | 3 + .../Transfer/ElectricalDataIn.aspx.cs | 6 +- SGGL/FineUIPro.Web/Transfer/Firefighting.aspx | 3 +- .../Transfer/Firefighting.aspx.cs | 3 + .../Transfer/FirefightingDataIn.aspx.cs | 6 +- SGGL/FineUIPro.Web/Transfer/HVAC.aspx | 117 +++++ SGGL/FineUIPro.Web/Transfer/HVAC.aspx.cs | 201 +++++++++ .../Transfer/HVAC.aspx.designer.cs | 161 +++++++ SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx | 68 +++ .../FineUIPro.Web/Transfer/HVACDataIn.aspx.cs | 420 +++++++++++++++++ .../Transfer/HVACDataIn.aspx.designer.cs | 125 ++++++ .../Transfer/Instrumentation.aspx | 3 +- .../Transfer/Instrumentation.aspx.cs | 3 + .../Transfer/InstrumentationDataIn.aspx.cs | 6 +- SGGL/FineUIPro.Web/Transfer/Plumbing.aspx | 116 +++++ SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.cs | 202 +++++++++ .../Transfer/Plumbing.aspx.designer.cs | 161 +++++++ .../Transfer/PlumbingDataIn.aspx | 68 +++ .../Transfer/PlumbingDataIn.aspx.cs | 421 +++++++++++++++++ .../Transfer/PlumbingDataIn.aspx.designer.cs | 125 ++++++ .../FineUIPro.Web/Transfer/PunchlistFrom.aspx | 144 ++++++ .../Transfer/PunchlistFrom.aspx.cs | 200 +++++++++ .../Transfer/PunchlistFrom.aspx.designer.cs | 161 +++++++ .../Transfer/PunchlistFromDataIn.aspx | 68 +++ .../Transfer/PunchlistFromDataIn.aspx.cs | 425 ++++++++++++++++++ .../PunchlistFromDataIn.aspx.designer.cs | 125 ++++++ SGGL/FineUIPro.Web/Transfer/Telecom.aspx | 116 +++++ SGGL/FineUIPro.Web/Transfer/Telecom.aspx.cs | 203 +++++++++ .../Transfer/Telecom.aspx.designer.cs | 161 +++++++ .../FineUIPro.Web/Transfer/TelecomDataIn.aspx | 68 +++ .../Transfer/TelecomDataIn.aspx.cs | 421 +++++++++++++++++ .../Transfer/TelecomDataIn.aspx.designer.cs | 125 ++++++ SGGL/WebAPI/WebAPI.csproj.user | 2 +- 43 files changed, 4502 insertions(+), 14 deletions(-) create mode 100644 SGGL/FineUIPro.Web/File/Excel/DataIn/HVAC导入模板.xls create mode 100644 SGGL/FineUIPro.Web/File/Excel/DataIn/Plumbing导入模板.xls create mode 100644 SGGL/FineUIPro.Web/File/Excel/DataIn/PunchlistFrom导入模板.xls create mode 100644 SGGL/FineUIPro.Web/File/Excel/DataIn/Telecom导入模板.xls create mode 100644 SGGL/FineUIPro.Web/Transfer/HVAC.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/HVAC.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/HVAC.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/Plumbing.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/PlumbingDataIn.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/PlumbingDataIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/PlumbingDataIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/PunchlistFromDataIn.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/PunchlistFromDataIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/PunchlistFromDataIn.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/Telecom.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/Telecom.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/Telecom.aspx.designer.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/TelecomDataIn.aspx create mode 100644 SGGL/FineUIPro.Web/Transfer/TelecomDataIn.aspx.cs create mode 100644 SGGL/FineUIPro.Web/Transfer/TelecomDataIn.aspx.designer.cs diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/HVAC导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/HVAC导入模板.xls new file mode 100644 index 0000000000000000000000000000000000000000..6c1eb7b0bd92549c7f261f00b5afd4014181f0d7 GIT binary patch literal 22016 zcmeHP2Ut|c_Mf{fuqeoafC36jQ4o-hVxx+pAcBI%Cw3N5!Grz_QDSq zQH>#+hmHoJJJdds3?cn#J%%vEk2qQq3B}fr zX-z~?!_V6?oKYkZTAmFpZ%g{Yv0qI9I6PKRKLvRlKQ*l%#fum-f%UqQ(If+Y{b<{F zfL=(YZGx0hWDuMWMFElEUfq5iyEUyJ$8vc!o{0=bv5_I!XLio`NFGIuVDMKE3E3t+ z0!Kn_K};sYp?%bFk_M_N{xczh)}bGTIvfTAw}CSXW)sXqpTn^(ecVcO?5B@y=$VL+ zue;rF2?h>aoj#L<(R?%MqceT114oK{Ps?1RDSj|_-2i?WnS-54r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I z-_gzy4rQqjG0cRO;7pEJqylOq@Na_}OG5MU>`Nfumffu}2j1lvk{y&K-E9q{rFNcclsOwk1nQh|ap*a%wyi3O;97is}Y*NCBLEyN@|F?7&D zvIY=oEcyVt;P(gy?U*@1Q}Exj|EvYjUC>R?jc`oiNJ59jQG@-3BLv3<{wEWT0dxRWVV;_8ih;um3t628m@XxRSUX3XuV!l*Tj$Kao`8)G8iQS7f9K1S{};9QdYhpjuphO_|evdN8de+lxVVE)PVZ-kbnLS!F0g)lA84~G={DF!0m2`567LrjLq z2B9&)b}PG%XHy(-SO*3i2*@`YGcW`u!U3@gAmV+<<(fRwa7^KYjvkO=8IHHkFhaV* zIKc-ixCqC`F_DnsC`$!SC6r(g($5X(fiNmt!dfGUw16|r1;MW+#1OyH A$N&HU literal 0 HcmV?d00001 diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/PunchlistFrom导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/PunchlistFrom导入模板.xls new file mode 100644 index 0000000000000000000000000000000000000000..6a3c3897dc07a2fa62f61d463ed0971c3db4ef29 GIT binary patch literal 25088 zcmeHv34Baf-~YLjNircJAwm*l5E2rRMF>JRK?q{6*G?u9VvQx1G%2yizE(r+R9n>2 zYN@5Pv4o6oV^c0l1<33%y>?fsEnyKjGiV0)Io-AT*vG zq8ia2k=oo5QG@7&SO&2yqBEikVmZX}h;RYshFAfyBBDEDB}5Oz%7|4EJrTVSy%DP- zRzs|g=!2+5tbte)u@<5)Vr|4ah<=Fvh;TvJi-D4mlb^50pNd4P^sG zJ%)1NYg{WZl^~T*>8r4khUz3v8PB?+=9#E@OEv)40k0y!gvK4^3&>OddDZfXeF`@d ztk;E&WyA0rAlg0wt&k$xgdk&B8t#V^gO%WKs6X}HS1q6Va*;uvlLo!m!Jh4NIpugb zM_>-<{KZVgcBl{I%Gfo;-fSf5CyZpNP)++k6JkXj1_-3XAsDzh?gWe`lt-K6T2Z`i z7b*6O*XH6##MnpOuhfbF1!A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9-(eQYYXap)D6gE zr~}j5jlR7~>ooFmT9Z+p)+w~kqE!H`sc5}G>nFnfC;WR@fcBn(11rB$b%B~(Z1ZR3 zyQ|u_J9w=veNhw+a!5~@|M^rbR2qt3mYVCgdb7yPFADm*lCJ|UPelg6MSdHp#8-v- z3dvvde=>b8ek$gW-dYO(5bLei`-my%M1PT|65ZqSG=?~_!!eBI2K_5$pBGSo?+zi@ zB#^rlO?&_MCmmB=KU}C`0e-uF2nK8iA~`zY+aMz3B;i8-@D?JCd8vq`XAUBbcX^03 z#;rh<0*#qFz(nJo8cbAwlEFWc%kxxD3?TIAEuE>Tcot2U;q5Qh$9Is$`;|}P=$pvI zPxL+TFscjFvecQ8q{d5wwfd8Ostczs5-@ui%pSYr5!lMmH;DNI zwb%O|aRg=$(~<6_3WI?5?OUh;{zc(+%l{V@TPo(?x%@4tMKU7I`_v>6hzL2+xKKN_ zL8P^2S43At+M-E8sSilaN<0*#l!Q|m6sRK*-5AQCtjV~LtXxD|hnzR$2}XU2&bPWF zB^>p)cIY7;(NE|+jUH{&6XsZ?)XS1VNt;>=PLP_Qhql5sRy;|f zQ=wS=;?XO@5hFmy)5b^}fxZ!F`{DTqJprLUOXC9lB{3Y=`hbSwq#y(_SWLr3h}iK# I_rEdxKk#+aBme*a literal 0 HcmV?d00001 diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/Telecom导入模板.xls b/SGGL/FineUIPro.Web/File/Excel/DataIn/Telecom导入模板.xls new file mode 100644 index 0000000000000000000000000000000000000000..b118a026357e82947168f38d50f0bd933e11790c GIT binary patch literal 22016 zcmeHP2Ut``*Pgp9uqeoafC36jQ4o-hVxx+RAcBI%PwXtBf}$v5ArM8eV8a@Ny=$Vz zlGwXqL8C@uYzf$6i7km@W&d;TLYlw{=BrgI6+89FLNtR|5286lZ~X?R0%8go9tk-@A4vx$VUF^>nd3a-uTxDSn~#nLp(oTniVPzIX+4H9#E&>y5(&lD zk7;d0QNw-h8O|t@2rbWnmbWJZ;5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dogu7_b2x=aF7T?FXMlu5x05rZi+gi#s= zx?veggh3=VISOVWREH^(Ko0wp$r(Tn7fdE6g)xo2!Q>1fhYKc?GlJ29oq;*5HyV17 z%~3FWqjxf863F2^#N-Shhdp%=K9#~=i6M&UdtosotlPaX!x|nV7;LzFUImmeP~RQ2 z8c0GUmgGCyIl`bU1tNx-un(Nc@ro2cZ4CZx0FxOM<0cQzs4szhM|Q8q9C(dmNOn+` zbkk`Z`cFd8EQcsxVnD%IrKOp57tgVgjc{>?GyI_|VTvwrhzbyt!A97Ea4f*&J5vi# zx<(8|Yau4#iJ^lImNkG#W6=lD1;0ixXwS?Enu7nHeYyqME=QNZ@qwcPoexI<+8(_f zeH{Oj3H=$n8pl88an$1_BHqBkdx1C~;~a@){|)~P3*gF184>fPl5*^Fy3gO450`}J z582iQCkt?pBQ+nY{JT@shn}BmlL8M%zvaK7Oikd>X$s`!=<5P0TTaVExme1|H^i}m z_!a+=>3jOC)FbH1bo$ccLI^)7qjMe;dTwkNQc<&zF~Y+so%KhW2~C+1egxhCCWxL5+ZoB>o2(b93n9 z{*Npe)_3Sdb@*F_fdThn8?giakAk{#IQc(<{3w`za{U{jr6~~E+eg7n%k#q^#eV7p z5wB_!A<7{pLu7-{7+|}V-I22?4mhj>0}ce_8;uzl0u$kYSOpOAI^;@C9%(qH@Rmgn zNU;pZTMUelt}ssU771>s@y1F7q&Uh_fKv%27=-k51$qFC%2u#%2qZ1x40D0-YXvbF zaDw3I2gmkMYY@F_jQ~DBC~pPFU^wpwsUP6rn8kSk-x3dkBkqX(;XaTbL|-}$qAB#i K2fqK0;eP;Vft7#& literal 0 HcmV?d00001 diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index d94d6880..e0ae1beb 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -1832,11 +1832,19 @@ + + + + + + + + @@ -16351,6 +16359,20 @@ FirefightingDataIn.aspx + + HVAC.aspx + ASPXCodeBehind + + + HVAC.aspx + + + HVACDataIn.aspx + ASPXCodeBehind + + + HVACDataIn.aspx + Instrumentation.aspx ASPXCodeBehind @@ -16372,6 +16394,20 @@ Piping.aspx + + Plumbing.aspx + ASPXCodeBehind + + + Plumbing.aspx + + + PlumbingDataIn.aspx + ASPXCodeBehind + + + PlumbingDataIn.aspx + ProjectSetup.aspx ASPXCodeBehind @@ -16386,6 +16422,34 @@ ProjectSetupDataIn.aspx + + PunchlistFrom.aspx + ASPXCodeBehind + + + PunchlistFrom.aspx + + + PunchlistFromDataIn.aspx + ASPXCodeBehind + + + PunchlistFromDataIn.aspx + + + Telecom.aspx + ASPXCodeBehind + + + Telecom.aspx + + + TelecomDataIn.aspx + ASPXCodeBehind + + + TelecomDataIn.aspx + Video.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user index c78536b4..5c318055 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -1,7 +1,7 @@  - Release|Any CPU + Debug|Any CPU true false diff --git a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx index 58aa3589..e31a2e4d 100644 --- a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx @@ -15,8 +15,7 @@ diff --git a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs index e0eb76d4..b9844950 100644 --- a/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructure.aspx.cs @@ -50,6 +50,7 @@ namespace FineUIPro.Web.Transfer strSql += " AND Test_Package_START <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + strSql += " order by Civil_Structure "; SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; diff --git a/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx.cs index e8d6a8ab..d7472dc3 100644 --- a/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/CivilStructureDataIn.aspx.cs @@ -56,6 +56,10 @@ namespace FineUIPro.Web.Transfer { try { + errorInfos.Clear(); + this.gvErrorInfo.DataSource = errorInfos; + this.gvErrorInfo.DataBind(); + if (this.fuAttachUrl.HasFile == false) { ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning); @@ -162,7 +166,7 @@ namespace FineUIPro.Web.Transfer ir = pds.Rows.Count; if (pds != null && ir > 0) { - for (int i = 0; i < ir; i++) + for (int i = 1; i < ir; i++) { string row4 = pds.Rows[i][4].ToString(); if (!string.IsNullOrEmpty(row4)) diff --git a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx index 0fd67055..66d65ca6 100644 --- a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx @@ -15,8 +15,7 @@ diff --git a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs index f36e3328..0c674ca9 100644 --- a/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Electrical.aspx.cs @@ -50,6 +50,9 @@ namespace FineUIPro.Web.Transfer strSql += " AND Test_Package_START <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + + strSql += " order by ELECTRICAL "; + SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; diff --git a/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx.cs index 039faf05..add980dc 100644 --- a/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/ElectricalDataIn.aspx.cs @@ -55,6 +55,10 @@ namespace FineUIPro.Web.Transfer { try { + errorInfos.Clear(); + this.gvErrorInfo.DataSource = errorInfos; + this.gvErrorInfo.DataBind(); + if (this.fuAttachUrl.HasFile == false) { ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning); @@ -161,7 +165,7 @@ namespace FineUIPro.Web.Transfer ir = pds.Rows.Count; if (pds != null && ir > 0) { - for (int i = 0; i < ir; i++) + for (int i = 1; i < ir; i++) { string row4 = pds.Rows[i][4].ToString(); if (!string.IsNullOrEmpty(row4)) diff --git a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx index 86011803..c342ea2e 100644 --- a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx @@ -15,8 +15,7 @@ diff --git a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs index 1791c87c..e31ff404 100644 --- a/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Firefighting.aspx.cs @@ -50,6 +50,9 @@ namespace FineUIPro.Web.Transfer strSql += " AND Test_Package_START <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + + strSql += " order by Firefighting "; + SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; diff --git a/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx.cs index ca87cd81..25961140 100644 --- a/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/FirefightingDataIn.aspx.cs @@ -56,6 +56,10 @@ namespace FineUIPro.Web.Transfer { try { + errorInfos.Clear(); + this.gvErrorInfo.DataSource = errorInfos; + this.gvErrorInfo.DataBind(); + if (this.fuAttachUrl.HasFile == false) { ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning); @@ -162,7 +166,7 @@ namespace FineUIPro.Web.Transfer ir = pds.Rows.Count; if (pds != null && ir > 0) { - for (int i = 0; i < ir; i++) + for (int i = 1; i < ir; i++) { string row4 = pds.Rows[i][4].ToString(); if (!string.IsNullOrEmpty(row4)) diff --git a/SGGL/FineUIPro.Web/Transfer/HVAC.aspx b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx new file mode 100644 index 00000000..0705d0af --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx @@ -0,0 +1,117 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HVAC.aspx.cs" Inherits="FineUIPro.Web.Transfer.HVAC" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.cs b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.cs new file mode 100644 index 00000000..2c981fe7 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.cs @@ -0,0 +1,201 @@ +using BLL; +using BLL.CQMS.Comprehensive; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.Transfer +{ + public partial class HVAC : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + BindGrid(); + } + } + + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select*from Transfer_HVAC + where ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + + if (!string.IsNullOrEmpty(this.txtHVAC.Text.Trim())) + { + strSql += " AND Plumbing like @Plumbing"; + listStr.Add(new SqlParameter("@Plumbing", "%" + this.txtHVAC.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) + { + strSql += " AND Test_Package_START >= @InspectionDateA"; + listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) + { + strSql += " AND Test_Package_START <= @InspectionDateZ"; + listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); + } + strSql += " order by HVAC "; + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页、排序 + /// + /// 分页下拉 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 分页索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 删除 + /// + /// 右键删除 + /// + /// + /// + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + Model.Transfer_HVAC model = Funs.DB.Transfer_HVAC.FirstOrDefault(x => x.Id == rowID); + if (model != null) + { + Funs.DB.Transfer_HVAC.DeleteOnSubmit(model); + Funs.DB.SubmitChanges(); + } + } + BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("HVACDataIn.aspx", "导入 - "))); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.HVACMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + //this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + //this.btnMenuModify.Hidden = false; + this.Grid1.EnableRowDoubleClickEvent = true; + } + else + { + this.Grid1.EnableRowDoubleClickEvent = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnImport.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.designer.cs new file mode 100644 index 00000000..b796f0e3 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/HVAC.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class HVAC + { + + /// + /// 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; + + /// + /// ToolSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar ToolSearch; + + /// + /// txtHVAC 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtHVAC; + + /// + /// txtStarTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStarTime; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx b/SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx new file mode 100644 index 00000000..bdbd0db0 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx @@ -0,0 +1,68 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HVACDataIn.aspx.cs" Inherits="FineUIPro.Web.Transfer.HVACDataIn" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx.cs new file mode 100644 index 00000000..3b779322 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx.cs @@ -0,0 +1,420 @@ +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.Transfer +{ + public partial class HVACDataIn : 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 + { + errorInfos.Clear(); + this.gvErrorInfo.DataSource = errorInfos; + this.gvErrorInfo.DataBind(); + 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], 7); + 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) + { + for (int i = 1; i < ir; i++) + { + string row4 = pds.Rows[i][4].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row4.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|"; + } + } + string row5 = pds.Rows[i][5].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row5.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|"; + } + } + } + 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], 7); + } + 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) + { + List list = new List(); + for (int i = 1; i < ir; i++) + { + //查询第一列,没查到的情况下作导入处理 + var modelOnly = Funs.DB.Transfer_HVAC.FirstOrDefault(x => x.HVAC == pds.Rows[i][0].ToString().Trim() + && x.ProjectId == CurrUser.LoginProjectId); + if (modelOnly == null) + { + Model.Transfer_HVAC model = new Model.Transfer_HVAC(); + model.Id = Guid.NewGuid().ToString(); + model.ProjectId = CurrUser.LoginProjectId; + model.HVAC = pds.Rows[i][0].ToString().Trim(); + model.SystemName = pds.Rows[i][1].ToString().Trim(); + model.Subsystem = pds.Rows[i][2].ToString().Trim(); + model.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + model.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + model.Test_Package_FINISH = t2; + + model.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + list.Add(model); + } + else + { + //修改 + modelOnly.HVAC = pds.Rows[i][0].ToString().Trim(); + modelOnly.SystemName = pds.Rows[i][1].ToString().Trim(); + modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim(); + modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + modelOnly.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + modelOnly.Test_Package_FINISH = t2; + modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + Funs.DB.SubmitChanges(); + } + } + if (list.Count > 0) + { + Funs.DB.Transfer_HVAC.InsertAllOnSubmit(list); + Funs.DB.SubmitChanges(); + } + } + 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 + "File\\Excel\\DataIn\\HVAC导入模板.xls"; + string filePath = "File\\Excel\\DataIn\\HVAC导入模板.xls"; + 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/Transfer/HVACDataIn.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx.designer.cs new file mode 100644 index 00000000..c88dc313 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/HVACDataIn.aspx.designer.cs @@ -0,0 +1,125 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class HVACDataIn + { + + /// + /// 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/Transfer/Instrumentation.aspx b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx index e0286ad0..ca15bdec 100644 --- a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx +++ b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx @@ -15,8 +15,7 @@ diff --git a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs index f03ed819..00eb6ea4 100644 --- a/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/Instrumentation.aspx.cs @@ -50,6 +50,9 @@ namespace FineUIPro.Web.Transfer strSql += " AND Test_Package_START <= @InspectionDateZ"; listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); } + + strSql += " order by INSTRUMENTATION "; + SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; diff --git a/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.cs index c4c6f558..afe7ca2f 100644 --- a/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.cs +++ b/SGGL/FineUIPro.Web/Transfer/InstrumentationDataIn.aspx.cs @@ -56,6 +56,10 @@ namespace FineUIPro.Web.Transfer { try { + errorInfos.Clear(); + this.gvErrorInfo.DataSource = errorInfos; + this.gvErrorInfo.DataBind(); + if (this.fuAttachUrl.HasFile == false) { ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning); @@ -162,7 +166,7 @@ namespace FineUIPro.Web.Transfer ir = pds.Rows.Count; if (pds != null && ir > 0) { - for (int i = 0; i < ir; i++) + for (int i = 1; i < ir; i++) { string row4 = pds.Rows[i][4].ToString(); if (!string.IsNullOrEmpty(row4)) diff --git a/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx new file mode 100644 index 00000000..5a7dcf8c --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx @@ -0,0 +1,116 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Plumbing.aspx.cs" Inherits="FineUIPro.Web.Transfer.Plumbing" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + diff --git a/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.cs new file mode 100644 index 00000000..f1873d04 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.cs @@ -0,0 +1,202 @@ +using BLL; +using BLL.CQMS.Comprehensive; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + + +namespace FineUIPro.Web.Transfer +{ + public partial class Plumbing : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + BindGrid(); + } + } + + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select*from Transfer_Plumbing + where ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + + if (!string.IsNullOrEmpty(this.txtPlumbing.Text.Trim())) + { + strSql += " AND Plumbing like @Plumbing"; + listStr.Add(new SqlParameter("@Plumbing", "%" + this.txtPlumbing.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) + { + strSql += " AND Test_Package_START >= @InspectionDateA"; + listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) + { + strSql += " AND Test_Package_START <= @InspectionDateZ"; + listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); + } + + strSql += " order by Plumbing "; + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页、排序 + /// + /// 分页下拉 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 分页索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 删除 + /// + /// 右键删除 + /// + /// + /// + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + Model.Transfer_Plumbing model = Funs.DB.Transfer_Plumbing.FirstOrDefault(x => x.Id == rowID); + if (model != null) + { + Funs.DB.Transfer_Plumbing.DeleteOnSubmit(model); + Funs.DB.SubmitChanges(); + } + } + BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("PlumbingDataIn.aspx", "导入 - "))); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.PlumbingMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + //this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + //this.btnMenuModify.Hidden = false; + this.Grid1.EnableRowDoubleClickEvent = true; + } + else + { + this.Grid1.EnableRowDoubleClickEvent = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnImport.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.designer.cs new file mode 100644 index 00000000..d79c6e0c --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Plumbing.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class Plumbing + { + + /// + /// 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; + + /// + /// ToolSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar ToolSearch; + + /// + /// txtPlumbing 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPlumbing; + + /// + /// txtStarTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStarTime; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/Transfer/PlumbingDataIn.aspx b/SGGL/FineUIPro.Web/Transfer/PlumbingDataIn.aspx new file mode 100644 index 00000000..bef022a6 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/PlumbingDataIn.aspx @@ -0,0 +1,68 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PlumbingDataIn.aspx.cs" Inherits="FineUIPro.Web.Transfer.PlumbingDataIn" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/PlumbingDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/PlumbingDataIn.aspx.cs new file mode 100644 index 00000000..1a358706 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/PlumbingDataIn.aspx.cs @@ -0,0 +1,421 @@ +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.Transfer +{ + public partial class PlumbingDataIn : 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 + { + errorInfos.Clear(); + this.gvErrorInfo.DataSource = errorInfos; + this.gvErrorInfo.DataBind(); + + 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], 7); + 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) + { + for (int i = 1; i < ir; i++) + { + string row4 = pds.Rows[i][4].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row4.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|"; + } + } + string row5 = pds.Rows[i][5].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row5.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|"; + } + } + } + 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], 7); + } + 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) + { + List list = new List(); + for (int i = 1; i < ir; i++) + { + //查询第一列,没查到的情况下作导入处理 + var modelOnly = Funs.DB.Transfer_Plumbing.FirstOrDefault(x => x.Plumbing == pds.Rows[i][0].ToString().Trim() + && x.ProjectId == CurrUser.LoginProjectId); + if (modelOnly == null) + { + Model.Transfer_Plumbing model = new Model.Transfer_Plumbing(); + model.Id = Guid.NewGuid().ToString(); + model.ProjectId = CurrUser.LoginProjectId; + model.Plumbing = pds.Rows[i][0].ToString().Trim(); + model.SystemName = pds.Rows[i][1].ToString().Trim(); + model.Subsystem = pds.Rows[i][2].ToString().Trim(); + model.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + model.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + model.Test_Package_FINISH = t2; + + model.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + list.Add(model); + } + else + { + //修改 + modelOnly.Plumbing = pds.Rows[i][0].ToString().Trim(); + modelOnly.SystemName = pds.Rows[i][1].ToString().Trim(); + modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim(); + modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + modelOnly.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + modelOnly.Test_Package_FINISH = t2; + modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + Funs.DB.SubmitChanges(); + } + } + if (list.Count > 0) + { + Funs.DB.Transfer_Plumbing.InsertAllOnSubmit(list); + Funs.DB.SubmitChanges(); + } + } + 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 + "File\\Excel\\DataIn\\Plumbing导入模板.xls"; + string filePath = "File\\Excel\\DataIn\\Plumbing导入模板.xls"; + 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/Transfer/PlumbingDataIn.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/PlumbingDataIn.aspx.designer.cs new file mode 100644 index 00000000..bd6ee9f7 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/PlumbingDataIn.aspx.designer.cs @@ -0,0 +1,125 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class PlumbingDataIn + { + + /// + /// 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/Transfer/PunchlistFrom.aspx b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx new file mode 100644 index 00000000..551cf92d --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx @@ -0,0 +1,144 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PunchlistFrom.aspx.cs" Inherits="FineUIPro.Web.Transfer.PunchlistFrom" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%-- + + + + + + + + + + + + + + + --%> + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.cs b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.cs new file mode 100644 index 00000000..81f69bd4 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.cs @@ -0,0 +1,200 @@ +using BLL; +using BLL.CQMS.Comprehensive; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + +namespace FineUIPro.Web.Transfer +{ + public partial class PunchlistFrom : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + BindGrid(); + } + } + + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select*from Transfer_PunchlistFrom + where ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + + if (!string.IsNullOrEmpty(this.txtPunch_No.Text.Trim())) + { + strSql += " AND Punch_No like @Punch_No"; + listStr.Add(new SqlParameter("@Punch_No", "%" + this.txtPunch_No.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) + { + strSql += " AND PUNCH_ITEM_FINISH_DATE >= @InspectionDateA"; + listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) + { + strSql += " AND PUNCH_ITEM_FINISH_DATE <= @InspectionDateZ"; + listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); + } + strSql += " order by Punch_No "; + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页、排序 + /// + /// 分页下拉 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 分页索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 删除 + /// + /// 右键删除 + /// + /// + /// + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + Model.Transfer_PunchlistFrom model = Funs.DB.Transfer_PunchlistFrom.FirstOrDefault(x => x.Id == rowID); + if (model != null) + { + Funs.DB.Transfer_PunchlistFrom.DeleteOnSubmit(model); + Funs.DB.SubmitChanges(); + } + } + BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("PunchlistFromDataIn.aspx", "导入 - "))); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.PunchlistFromMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + //this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + //this.btnMenuModify.Hidden = false; + this.Grid1.EnableRowDoubleClickEvent = true; + } + else + { + this.Grid1.EnableRowDoubleClickEvent = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnImport.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.designer.cs new file mode 100644 index 00000000..ac2dc2ef --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/PunchlistFrom.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class PunchlistFrom + { + + /// + /// 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; + + /// + /// ToolSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar ToolSearch; + + /// + /// txtPunch_No 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtPunch_No; + + /// + /// txtStarTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStarTime; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/Transfer/PunchlistFromDataIn.aspx b/SGGL/FineUIPro.Web/Transfer/PunchlistFromDataIn.aspx new file mode 100644 index 00000000..a48490d0 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/PunchlistFromDataIn.aspx @@ -0,0 +1,68 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PunchlistFromDataIn.aspx.cs" Inherits="FineUIPro.Web.Transfer.PunchlistFromDataIn" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/PunchlistFromDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/PunchlistFromDataIn.aspx.cs new file mode 100644 index 00000000..6922c30a --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/PunchlistFromDataIn.aspx.cs @@ -0,0 +1,425 @@ +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.Transfer +{ + public partial class PunchlistFromDataIn : 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 + { + errorInfos.Clear(); + this.gvErrorInfo.DataSource = errorInfos; + this.gvErrorInfo.DataBind(); + + 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], 14); + 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) + { + for (int i = 1; i < ir; i++) + { + string row4 = pds.Rows[i][9].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row4.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "PUNCH ITEM FINISH DATE" + "," + "[" + row4 + "]错误!不是日期格式!" + "|"; + } + } + } + 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], 14); + } + 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) + { + List list = new List(); + for (int i = 1; i < ir; i++) + { + //查询第一列,没查到的情况下作导入处理 + var modelOnly = Funs.DB.Transfer_PunchlistFrom.FirstOrDefault(x => x.Punch_No == pds.Rows[i][0].ToString().Trim() + && x.ProjectId == CurrUser.LoginProjectId); + if (modelOnly == null) + { + Model.Transfer_PunchlistFrom model = new Model.Transfer_PunchlistFrom(); + + model.Id = Guid.NewGuid().ToString(); + model.ProjectId = CurrUser.LoginProjectId; + + model.Item_No = pds.Rows[i][0].ToString().Trim(); + model.Punch_No = pds.Rows[i][1].ToString().Trim(); + model.SystemName = pds.Rows[i][2].ToString().Trim(); + model.Subsystem = pds.Rows[i][3].ToString().Trim(); + + model.Test_Package = pds.Rows[i][4].ToString().Trim(); + model.Discipline = pds.Rows[i][5].ToString().Trim(); + model.DESCRIPTION = pds.Rows[i][6].ToString().Trim(); + model.Identified = pds.Rows[i][7].ToString().Trim(); + model.Category = pds.Rows[i][8].ToString().Trim(); + DateTime t1; + if (DateTime.TryParse(pds.Rows[i][9].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][9].ToString())) + model.PUNCH_ITEM_FINISH_DATE = t1; + + + model.Action_By = pds.Rows[i][10].ToString().Trim(); + model.Required_By = pds.Rows[i][11].ToString().Trim(); + model.PUNCH_ITEM_STATUS = pds.Rows[i][12].ToString().Trim(); + model.Comments = pds.Rows[i][13].ToString().Trim(); + list.Add(model); + } + else + { + //修改 + modelOnly.Item_No = pds.Rows[i][0].ToString().Trim(); + modelOnly.Punch_No = pds.Rows[i][1].ToString().Trim(); + modelOnly.SystemName = pds.Rows[i][2].ToString().Trim(); + modelOnly.Subsystem = pds.Rows[i][3].ToString().Trim(); + modelOnly.Test_Package = pds.Rows[i][4].ToString().Trim(); + modelOnly.Discipline = pds.Rows[i][5].ToString().Trim(); + modelOnly.DESCRIPTION = pds.Rows[i][6].ToString().Trim(); + modelOnly.Identified = pds.Rows[i][7].ToString().Trim(); + modelOnly.Category = pds.Rows[i][8].ToString().Trim(); + DateTime t1; + if (DateTime.TryParse(pds.Rows[i][9].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][9].ToString())) + modelOnly.PUNCH_ITEM_FINISH_DATE = t1; + modelOnly.Action_By = pds.Rows[i][10].ToString().Trim(); + modelOnly.Required_By = pds.Rows[i][11].ToString().Trim(); + modelOnly.PUNCH_ITEM_STATUS = pds.Rows[i][12].ToString().Trim(); + modelOnly.Comments = pds.Rows[i][13].ToString().Trim(); + Funs.DB.SubmitChanges(); + } + } + if (list.Count > 0) + { + Funs.DB.Transfer_PunchlistFrom.InsertAllOnSubmit(list); + Funs.DB.SubmitChanges(); + } + } + 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 + "File\\Excel\\DataIn\\PunchlistFrom导入模板.xls"; + string filePath = "File\\Excel\\DataIn\\PunchlistFrom导入模板.xls"; + 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/Transfer/PunchlistFromDataIn.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/PunchlistFromDataIn.aspx.designer.cs new file mode 100644 index 00000000..2dfc56a5 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/PunchlistFromDataIn.aspx.designer.cs @@ -0,0 +1,125 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class PunchlistFromDataIn + { + + /// + /// 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/Transfer/Telecom.aspx b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx new file mode 100644 index 00000000..91edfec2 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx @@ -0,0 +1,116 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Telecom.aspx.cs" Inherits="FineUIPro.Web.Transfer.Telecom" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + <%-- --%> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <%----%> + + + + + + + diff --git a/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.cs b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.cs new file mode 100644 index 00000000..767658f8 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.cs @@ -0,0 +1,203 @@ +using BLL; +using BLL.CQMS.Comprehensive; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; + + +namespace FineUIPro.Web.Transfer +{ + public partial class Telecom : PageBase + { + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower(); + BindGrid(); + } + } + + /// + /// 数据绑定 + /// + public void BindGrid() + { + string strSql = @"select*from Transfer_Telecom + where ProjectId = @ProjectId"; + List listStr = new List(); + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + + if (!string.IsNullOrEmpty(this.txtTelecom.Text.Trim())) + { + strSql += " AND Telecom like @Telecom"; + listStr.Add(new SqlParameter("@Telecom", "%" + this.txtTelecom.Text.Trim() + "%")); + } + if (!string.IsNullOrEmpty(txtStarTime.Text.Trim())) + { + strSql += " AND Test_Package_START >= @InspectionDateA"; + listStr.Add(new SqlParameter("@InspectionDateA", Funs.GetNewDateTime(txtStarTime.Text.Trim()))); + } + if (!string.IsNullOrEmpty(txtEndTime.Text.Trim())) + { + strSql += " AND Test_Package_START <= @InspectionDateZ"; + listStr.Add(new SqlParameter("@InspectionDateZ", Funs.GetNewDateTime(txtEndTime.Text.Trim()))); + } + + strSql += " order by Telecom "; + + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 分页、排序 + /// + /// 分页下拉 + /// + /// + /// + protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e) + { + Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue); + BindGrid(); + } + + /// + /// 分页索引事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + BindGrid(); + } + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + BindGrid(); + } + #endregion + + #region 查询 + /// + /// 查询 + /// + /// + /// + protected void btnSearch_Click(object sender, EventArgs e) + { + BindGrid(); + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭弹出窗口 + /// + /// + /// + protected void Window1_Close(object sender, WindowCloseEventArgs e) + { + BindGrid(); + } + #endregion + + #region 删除 + /// + /// 右键删除 + /// + /// + /// + protected void btnMenuDel_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + Model.Transfer_Telecom model = Funs.DB.Transfer_Telecom.FirstOrDefault(x => x.Id == rowID); + if (model != null) + { + Funs.DB.Transfer_Telecom.DeleteOnSubmit(model); + Funs.DB.SubmitChanges(); + } + } + BindGrid(); + ShowNotify("删除数据成功!", MessageBoxIcon.Success); + } + } + #endregion + + #region 导入 + /// + /// 导入按钮 + /// + /// + /// + protected void btnImport_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("TelecomDataIn.aspx", "导入 - "))); + } + #endregion + + #region 获取按钮权限 + /// + /// 获取按钮权限 + /// + /// + /// + private void GetButtonPower() + { + if (Request.Params["value"] == "0") + { + return; + } + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.TelecomMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + //this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + //this.btnMenuModify.Hidden = false; + this.Grid1.EnableRowDoubleClickEvent = true; + } + else + { + this.Grid1.EnableRowDoubleClickEvent = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnMenuDel.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnImport.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.designer.cs new file mode 100644 index 00000000..815afe32 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/Telecom.aspx.designer.cs @@ -0,0 +1,161 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class Telecom + { + + /// + /// 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; + + /// + /// ToolSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar ToolSearch; + + /// + /// txtTelecom 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTelecom; + + /// + /// txtStarTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtStarTime; + + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + + /// + /// txtEndTime 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtEndTime; + + /// + /// btnSearch 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSearch; + + /// + /// btnImport 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnImport; + + /// + /// ToolbarText1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarText ToolbarText1; + + /// + /// ddlPageSize 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList ddlPageSize; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuDel 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDel; + } +} diff --git a/SGGL/FineUIPro.Web/Transfer/TelecomDataIn.aspx b/SGGL/FineUIPro.Web/Transfer/TelecomDataIn.aspx new file mode 100644 index 00000000..00275ca6 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/TelecomDataIn.aspx @@ -0,0 +1,68 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TelecomDataIn.aspx.cs" Inherits="FineUIPro.Web.Transfer.TelecomDataIn" %> + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/Transfer/TelecomDataIn.aspx.cs b/SGGL/FineUIPro.Web/Transfer/TelecomDataIn.aspx.cs new file mode 100644 index 00000000..bc640cba --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/TelecomDataIn.aspx.cs @@ -0,0 +1,421 @@ +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.Transfer +{ + public partial class TelecomDataIn : 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 + { + errorInfos.Clear(); + this.gvErrorInfo.DataSource = errorInfos; + this.gvErrorInfo.DataBind(); + + 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], 7); + 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) + { + for (int i = 1; i < ir; i++) + { + string row4 = pds.Rows[i][4].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row4.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package START" + "," + "[" + row4 + "]错误!不是日期格式!" + "|"; + } + } + string row5 = pds.Rows[i][5].ToString(); + if (!string.IsNullOrEmpty(row4)) + { + try + { + DateTime date = Convert.ToDateTime(row5.Trim()); + } + catch (Exception) + { + result += (i + 2).ToString() + "," + "Test Package FINISH" + "," + "[" + row5 + "]错误!不是日期格式!" + "|"; + } + } + } + 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], 7); + } + 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) + { + List list = new List(); + for (int i = 1; i < ir; i++) + { + //查询第一列,没查到的情况下作导入处理 + var modelOnly = Funs.DB.Transfer_Telecom.FirstOrDefault(x => x.Telecom == pds.Rows[i][0].ToString().Trim() + && x.ProjectId == CurrUser.LoginProjectId); + if (modelOnly == null) + { + Model.Transfer_Telecom model = new Model.Transfer_Telecom(); + model.Id = Guid.NewGuid().ToString(); + model.ProjectId = CurrUser.LoginProjectId; + model.Telecom = pds.Rows[i][0].ToString().Trim(); + model.SystemName = pds.Rows[i][1].ToString().Trim(); + model.Subsystem = pds.Rows[i][2].ToString().Trim(); + model.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + model.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + model.Test_Package_FINISH = t2; + + model.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + list.Add(model); + } + else + { + //修改 + modelOnly.Telecom = pds.Rows[i][0].ToString().Trim(); + modelOnly.SystemName = pds.Rows[i][1].ToString().Trim(); + modelOnly.Subsystem = pds.Rows[i][2].ToString().Trim(); + modelOnly.Test_Package = pds.Rows[i][3].ToString().Trim(); + DateTime t1, t2; + if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString())) + modelOnly.Test_Package_START = t1; + if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t2) && !string.IsNullOrEmpty(pds.Rows[i][5].ToString())) + modelOnly.Test_Package_FINISH = t2; + modelOnly.FINAL_Status = pds.Rows[i][6].ToString().Trim(); + Funs.DB.SubmitChanges(); + } + } + if (list.Count > 0) + { + Funs.DB.Transfer_Telecom.InsertAllOnSubmit(list); + Funs.DB.SubmitChanges(); + } + } + 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 + "File\\Excel\\DataIn\\Telecom导入模板.xls"; + string filePath = "File\\Excel\\DataIn\\Telecom导入模板.xls"; + 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/Transfer/TelecomDataIn.aspx.designer.cs b/SGGL/FineUIPro.Web/Transfer/TelecomDataIn.aspx.designer.cs new file mode 100644 index 00000000..50eacf48 --- /dev/null +++ b/SGGL/FineUIPro.Web/Transfer/TelecomDataIn.aspx.designer.cs @@ -0,0 +1,125 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.Transfer +{ + + + public partial class TelecomDataIn + { + + /// + /// 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/WebAPI/WebAPI.csproj.user b/SGGL/WebAPI/WebAPI.csproj.user index 4edb5e0f..6bc24ada 100644 --- a/SGGL/WebAPI/WebAPI.csproj.user +++ b/SGGL/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@  - Release|Any CPU + Debug|Any CPU true