From 2a4a167ab4fe81cfe32dde7ca8921a58b1d5bf18 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Fri, 6 Feb 2026 16:28:36 +0800 Subject: [PATCH] =?UTF-8?q?20260206=20=E4=BA=A4=E5=B7=A5=E8=B5=84=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../版本日志/HJGLDB_DS_2026-02-06_bwj.sql | 162 +++++++++++ .../File/Fastreport/JGZL/交工技术文件目录.frx | 144 ++++++++++ .../File/Fastreport/JGZL/交工技术文件说明.frx | 68 ++--- .../Fastreport/JGZL/压力管道安装质量证明.frx | 52 ++-- .../File/Fastreport/JGZL/封面.frx | 94 +++---- .../File/Fastreport/JGZL/工程施工开工报告.frx | 4 +- .../JGZL/特种设备安装改造维修告知书.frx | 60 ++-- HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj | 8 + HJGL_DS/FineUIPro.Web/JGZL/Cover.aspx.cs | 2 +- HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx | 77 +++++ .../FineUIPro.Web/JGZL/FileDirectory.aspx.cs | 184 ++++++++++++ .../JGZL/FileDirectory.aspx.designer.cs | 134 +++++++++ HJGL_DS/FineUIPro.Web/Web.config | 2 +- HJGL_DS/Model/Model.cs | 262 ++++++++++++++++++ 14 files changed, 1122 insertions(+), 131 deletions(-) create mode 100644 DataBase/版本日志/HJGLDB_DS_2026-02-06_bwj.sql create mode 100644 HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/交工技术文件目录.frx create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx.cs create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx.designer.cs diff --git a/DataBase/版本日志/HJGLDB_DS_2026-02-06_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-02-06_bwj.sql new file mode 100644 index 0000000..2f8ad58 --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-02-06_bwj.sql @@ -0,0 +1,162 @@ +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) +values('729387AD-488D-4451-AEB4-570306747351','ļĿ¼','JGZL/FileDirectory.aspx',20,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3') +go + +CREATE TABLE [dbo].[JGZL_FileDirectory]( + [FileDirectoryId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [SerialNumber] [int] NULL, + [FileCode] [nvarchar](50) NULL, + [FileName] [nvarchar](50) NULL, + [Remark] [nvarchar](500) NULL, + CONSTRAINT [PK_JGZL_FileDirectory] PRIMARY KEY CLUSTERED +( + [FileDirectoryId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY] +) ON [PRIMARY] +GO + +ALTER TABLE [dbo].[JGZL_FileDirectory] WITH CHECK ADD CONSTRAINT [FK_JGZL_FileDirectory_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[JGZL_FileDirectory] CHECK CONSTRAINT [FK_JGZL_FileDirectory_Base_Project] +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_FileDirectory', @level2type=N'COLUMN',@level2name=N'FileDirectoryId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_FileDirectory', @level2type=N'COLUMN',@level2name=N'ProjectId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_FileDirectory', @level2type=N'COLUMN',@level2name=N'SerialNumber' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ļ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_FileDirectory', @level2type=N'COLUMN',@level2name=N'FileCode' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ļ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_FileDirectory', @level2type=N'COLUMN',@level2name=N'FileName' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_FileDirectory', @level2type=N'COLUMN',@level2name=N'Remark' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ļĿ¼' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_FileDirectory' +GO + + +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('11CB25D4-8A45-4F94-A906-379FE53CB118','1','SH/T3503-J1O1A','','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('3AE9255C-B4D7-45D3-B5AC-9A4B998F5645','2','SH/T3503-J1O3','ļĿ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('F70599FF-765D-4150-9226-DCFF32A8ABE8','3','SH/T3503-J1O4','ļ˵','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('8B8A6274-5F40-4CFA-948E-FCD51CF0DCEB','4','/','豸װά޸֪','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('0ECC93E5-64EF-483F-8D4B-0118332160B9','5','ZDS-T6.38.047.A/0.2020','ѹܵװ֤','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('867E68E3-0697-4020-8C52-7131841F8D6D','6','SH/T3503-J1O5A','ʩ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('718D2FB4-ED5C-45D0-ADCD-0D0B4877CC60','7','SH/T 3503J106A','м佻֤','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('75575433-AA35-47FD-BE62-6C1E242B59A3','8','SH/T3503-J1O7A','֤̽','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('6461674D-AC04-464E-B1A8-9D0B5D84E2F1','9','SH/T3503-J114','絥','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('0F9C899F-EF79-4FEF-9E0B-965E6DCF4C55','10','SH/T3543-G110','ʩͼ˲¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('F0390438-2E4C-49F5-A18F-F0709CACBE76','11','/','ʩ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('909E9746-1022-45C0-AD0F-B34DBB4A08F7','12','SH/T3543-G111','׼¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('E3EC63E2-533B-43F6-9DA6-C3D5268F84CD','13','SH/T3503-J115','ϸ񺸹ǼDZ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('3CC8E604-C188-4282-A70D-69A38F925C20','14','/','֤ӡ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('CC2A65FE-A193-4177-B267-989A104C56AF','15','SH/T3503-J116','ԱǼDZ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('CD6A265E-DA00-44A3-AFC2-3281E5ECC96D','16','/','Ա֤ӡ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('622E6AA2-3DB2-407E-8548-08AFA11C8A0C','17','/','ӹ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('0DD6038F-2428-42C3-8B70-B57F91E84718','18','/','ӹգWPS','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('D505908E-BFBA-41AC-B5F8-31EB4AB61425','19','/','ӹPQR','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('6A2CE156-A3FC-4CC9-ADD8-1F9023FA451D','20','/','ͼ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('BF7ACEB8-01E0-4F8A-B6A9-B8FE8E561260','21','SH/T3503-J415-1','ܵӹ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('EAA15FCD-8EAC-41B3-AB8C-182C2C9CC385','22','SH/T3543-G402','ܵӽͷ/¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('1897D31B-1750-45DB-95BF-7F30355A5012','23','ZDS-T6.38.042.A/0.2020','֧ӺӽͷǺͷԺӼ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('D99F19F6-8EB4-4040-B37B-638663C95DC2','24','/','ܵίе','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('D22A5460-B0EE-40AE-A727-039163D2EBBD','25','SH/T3543-G416-1','ܵ߼ⱨ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('B0E910D3-1493-4335-8B8D-188C80366DCE','26','SH/T3543-G420-1','ܵ͸ⱨ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('D8F1D406-6733-4179-8BFC-E824500712D3','27','SH/T3503-J412-1','ܱܵ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('2EC7F67F-53FE-42B8-87A3-2160D8D5CD42','28','SH/T3503-J413-1','ܵͳƱ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('681C64D0-AB57-4E65-A846-B791211383FB','29','SH/T3503-J406-1','ܵϵͳѹȷϼ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('3CB94519-CF12-46E5-8157-E6E59E310E6F','30','SH/T3503-J406-2','ܵϵͳѹ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('26AA28AD-EB25-40B1-B743-B3418348E9E8','31','/','ȴίе','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('D1B69F2F-A420-4EB2-8406-24D33BA7363E','32','/','ȴ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('72DAC745-40E9-4E29-A076-D103BD33D481','33','SH/T 3503-J411-1','ܵӽͷȴ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('C73368E4-2376-4640-8A66-2FBCDFE592BB','34','SH/T 3503-J130','Ӳȼ鱨','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('D9959623-4252-40A9-A9C3-9FCC21C980F6','35','SH/T3503-J407','ܵϵͳй¶/ȷ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('F6ABB9D4-9159-407E-B4EB-273D9F855836','36','SH/T3503-J408','ܵɨ/ϴ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('A24A317B-7623-4D20-91E4-C0C06399350A','37','SH/T3543-G112','򽻽Ӽ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('4474035B-4059-473E-866D-1CEAA31E7D35','38','SH/T3543-G122','ܵԤʩ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('362A78EF-1A67-453C-B629-9680C3A27CB2','39','SH/T3503-J133','ܵװ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('902C30DA-1657-467B-9D09-1A009AD36FBC','40','SH/T3543-G133','Ƶ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('0D2D6E44-08CE-415F-BAE4-07247599B9E8','41','SH/T3503-J112','ιռ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('5E457E34-84B2-4D0E-9996-2BF46BD82A60','42','SH/T3503-J118','ռ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('D40B0E6B-3AA5-41C9-B6FE-400BFCCB7A79','43','SH/T 3503J119','ȹռ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('17F06EC4-4CE0-4D17-9446-17A10B67A884','44','SH/T3503-J416','ܵӵزԼ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('4E69ACB5-5066-4A81-944C-D8306E43BE61','45','SH/T3543-G109','ڼ춨嵥','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('68608A48-5C5A-48AB-87B4-F5F8618B9BEC','46','SH/T3503-J402','ȷϱ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('31567B92-B313-4523-BCDB-185B8EC502E3','47','SH/T3543-G406','ż¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('E68065A0-04CC-4D50-B161-A762887B58C1','48','SH/T3543-G411','ֹܼռ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('8A71A091-99C0-41CD-ABC5-370E09790DBE','49','SH/T3543-G412','ܼۼ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('12660CCE-0E2B-4A25-A569-F476E780F242','50','SH/T3543-G410','ܵϲʱʶ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('5C44E1E1-B0A7-479D-8240-75522A00B918','51','SH/T3543-G115','濾¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('6CF460C3-CDFF-4583-AAAD-A98F1809C64C','52','SH/T3543-G117','Żռ¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('7A728573-6F50-4788-A4EB-B985C7239626','53','SH/T3543-G118','˿ż¼','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('60EF50FD-87E7-4259-AC4D-E9E87AD1DE3E','54','SH/T3503-J132-1','֤ļһ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('7D76DA2B-DE25-4CCD-9A09-9750935AEFCE','55','/','֤ļ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('004A31E9-F6EF-4CD6-8D09-5A003FAAC6CA','56','/','ͼ','') +insert into JGZL_FileDirectory(FileDirectoryId,SerialNumber,FileCode,FileName,Remark) +values('6589B1D4-C755-4ED4-94C4-70BD168F6398','57','/','ƽ','') +go \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/交工技术文件目录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/交工技术文件目录.frx new file mode 100644 index 0000000..bd271a6 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/交工技术文件目录.frx @@ -0,0 +1,144 @@ + + + using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; +using System.Drawing; +using System.Data; +using FastReport; +using FastReport.Data; +using FastReport.Dialog; +using FastReport.Barcode; +using FastReport.Table; +using FastReport.Utils; + +namespace FastReport +{ + public class ReportScript + { + + private void Table3_ManualBuild(object sender, EventArgs e) + { + DataSourceBase rowData = Report.GetDataSource("Data"); + // init the data source + rowData.Init(); + + // print the first table row - it is a header + + // now enumerate the data source and print the table body + while (rowData.HasMoreRows) + { + // print the table body + Table3.PrintRow(0); + Table3.PrintColumns(); + + // go next data source row + rowData.Next(); + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/交工技术文件说明.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/交工技术文件说明.frx index e6d34a9..4a39591 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/交工技术文件说明.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/交工技术文件说明.frx @@ -1,5 +1,5 @@  - + @@ -8,25 +8,25 @@ - - - - - - + + + + + + - - + + + - - - - - + + + + @@ -75,10 +75,14 @@ - - + + + + + + @@ -87,29 +91,29 @@ - + - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx index 0536130..4eea0e5 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx @@ -1,7 +1,7 @@  - + - + @@ -24,21 +24,21 @@ - - - - - + + + + + - + - - - - - - - + + + + + + + @@ -53,49 +53,49 @@ - + - + - + - + - + - + - + @@ -109,21 +109,21 @@ - + - + - + @@ -137,7 +137,7 @@ - + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/封面.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/封面.frx index f5f7eb1..0aa4dbe 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/封面.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/封面.frx @@ -1,27 +1,27 @@  - + - - - - - - + + + + + + + - - - - + + + - - - + + + @@ -35,43 +35,43 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/工程施工开工报告.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/工程施工开工报告.frx index 6b3580c..1f291c2 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/工程施工开工报告.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/工程施工开工报告.frx @@ -1,5 +1,5 @@  - + @@ -24,7 +24,7 @@ - + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/特种设备安装改造维修告知书.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/特种设备安装改造维修告知书.frx index 663599f..4cf7e25 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/特种设备安装改造维修告知书.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/特种设备安装改造维修告知书.frx @@ -1,7 +1,7 @@  - + - + @@ -30,16 +30,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -54,14 +54,14 @@ - - - - - - - - + + + + + + + + @@ -151,9 +151,25 @@ + - - + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj index 67ab95f..3b3b93c 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj @@ -1245,6 +1245,7 @@ + @@ -6618,6 +6619,13 @@ DocumentDescription.aspx + + FileDirectory.aspx + ASPXCodeBehind + + + FileDirectory.aspx + PressureTestOfPipelineSystemConfirmationRecord.aspx ASPXCodeBehind diff --git a/HJGL_DS/FineUIPro.Web/JGZL/Cover.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/Cover.aspx.cs index 8177656..610baaa 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/Cover.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/Cover.aspx.cs @@ -163,6 +163,6 @@ namespace FineUIPro.Web.JGZL return; } } - #endregion + #endregion } } \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx b/HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx new file mode 100644 index 0000000..4d1939f --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx @@ -0,0 +1,77 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileDirectory.aspx.cs" Inherits="FineUIPro.Web.JGZL.FileDirectory" %> + + + + + + + 交工技术文件目录 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx.cs new file mode 100644 index 0000000..214821b --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx.cs @@ -0,0 +1,184 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.IO; + +namespace FineUIPro.Web.JGZL +{ + public partial class FileDirectory : PageBase + { + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + //this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); + + this.drpProjectId.DataTextField = "ProjectCode"; + this.drpProjectId.DataValueField = "ProjectId"; + this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1"); + this.drpProjectId.DataBind(); + Funs.FineUIPleaseSelect(this.drpProjectId); + + this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; + this.InitTreeMenu();//加载树 + this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; + this.BindGrid(); + } + } + #endregion + + #region 加载树项目 + /// + /// 加载树 + /// + private void InitTreeMenu() + { + this.tvControlItem.Nodes.Clear(); + TreeNode rootNode = new TreeNode(); + rootNode.Text = "项目"; + rootNode.ToolTip = "项目"; + rootNode.NodeID = "0"; + rootNode.Expanded = true; + this.tvControlItem.Nodes.Add(rootNode); + + List projects = BLL.Base_ProjectService.GetOnProjectListByUserId(this.CurrUser.UserId, "1"); + if (this.drpProjectId.SelectedValue != BLL.Const._Null) + { + projects = projects.Where(e => e.ProjectId == this.drpProjectId.SelectedValue).ToList(); + } + foreach (var item in projects) + { + TreeNode rootProjectNode = new TreeNode();//定义根节点 + rootProjectNode.Text = item.ProjectCode; + rootProjectNode.NodeID = item.ProjectId; + rootProjectNode.EnableClickEvent = true; + rootProjectNode.Expanded = true; + rootProjectNode.ToolTip = item.ProjectName; + rootProjectNode.CommandName = "项目名称"; + rootNode.Nodes.Add(rootProjectNode); + } + } + #endregion + + #region 点击TreeView + /// + /// 点击TreeView + /// + /// + /// + protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e) + { + if (this.tvControlItem.SelectedNodeID != "0") + { + this.BindGrid(); + } + } + #endregion + + #region 数据绑定 + /// + /// 数据绑定 + /// + private void BindGrid() + { + string strSql = @"select * from JGZL_FileDirectory order by SerialNumber asc"; + List listStr = new List(); + //if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + //{ + // strSql += " AND ProjectId = @ProjectId"; + // listStr.Add(new SqlParameter("@ProjectId", this.tvControlItem.SelectedNodeID)); + //} + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + // 2.获取当前分页数据 + Grid1.RecordCount = tb.Rows.Count; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; + Grid1.DataBind(); + } + #endregion + + #region 查询 + /// + ///查询 + /// + /// + /// + protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) + { + this.InitTreeMenu(); + } + #endregion + + #region 打印 + /// + /// 打印 + /// + /// + /// + protected void btnPrint_Click(object sender, EventArgs e) + { + string projectId = this.tvControlItem.SelectedNodeID; + + if (projectId != null) + { + string initTemplatePath = ""; + string rootPath = Server.MapPath("~/"); + BLL.Common.FastReportService.ResetData(); + + string strSql = @"SELECT * from JGZL_FileDirectory order by SerialNumber asc"; + List listStr = new List(); + //listStr.Add(new SqlParameter("@ProjectId", projectId)); + SqlParameter[] parameter = listStr.ToArray(); + DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); + + DataTable dt = new DataTable(); + dt.TableName = "Data"; + dt.Columns.Add("SerialNumber"); + dt.Columns.Add("FileCode"); + dt.Columns.Add("FileName"); + dt.Columns.Add("Remark"); + + DataRow[] rows = tb.DefaultView.ToTable().Select(); + foreach (var row in rows) + { + var newRow = dt.NewRow(); + newRow["SerialNumber"] = row["SerialNumber"].ToString(); + newRow["FileCode"] = row["FileCode"].ToString(); + newRow["FileName"] = row["FileName"].ToString(); + newRow["Remark"] = row["Remark"].ToString(); + dt.Rows.Add(newRow); + } + BLL.Common.FastReportService.AddFastreportTable(dt); + + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + initTemplatePath = "File\\Fastreport\\JGZL\\交工技术文件目录.frx"; + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + } + } + else + { + Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning); + return; + } + } + #endregion + } +} \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx.designer.cs new file mode 100644 index 0000000..1cabadc --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/FileDirectory.aspx.designer.cs @@ -0,0 +1,134 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class FileDirectory + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelLeftRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelLeftRegion; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpProjectId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpProjectId; + + /// + /// tvControlItem 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tree tvControlItem; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// ToolbarFill1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.ToolbarFill ToolbarFill1; + + /// + /// btnPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPrint; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// WindowPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowPrint; + } +} diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index 3f81ed7..30834b7 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - + diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs index aa710e4..04b4ba4 100644 --- a/HJGL_DS/Model/Model.cs +++ b/HJGL_DS/Model/Model.cs @@ -404,6 +404,9 @@ namespace Model partial void InsertJGZL_ElectrostaticGrounding(JGZL_ElectrostaticGrounding instance); partial void UpdateJGZL_ElectrostaticGrounding(JGZL_ElectrostaticGrounding instance); partial void DeleteJGZL_ElectrostaticGrounding(JGZL_ElectrostaticGrounding instance); + partial void InsertJGZL_FileDirectory(JGZL_FileDirectory instance); + partial void UpdateJGZL_FileDirectory(JGZL_FileDirectory instance); + partial void DeleteJGZL_FileDirectory(JGZL_FileDirectory instance); partial void InsertJGZL_HandoverCertificate(JGZL_HandoverCertificate instance); partial void UpdateJGZL_HandoverCertificate(JGZL_HandoverCertificate instance); partial void DeleteJGZL_HandoverCertificate(JGZL_HandoverCertificate instance); @@ -1923,6 +1926,14 @@ namespace Model } } + public System.Data.Linq.Table JGZL_FileDirectory + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table JGZL_HandoverCertificate { get @@ -4730,6 +4741,8 @@ namespace Model private EntitySet _JGZL_ElectrostaticGrounding; + private EntitySet _JGZL_FileDirectory; + private EntitySet _JGZL_HandoverCertificate; private EntitySet _JGZL_IndustrialPipelineInstallationQualityCertificate; @@ -4903,6 +4916,7 @@ namespace Model this._JGZL_Contact = new EntitySet(new Action(this.attach_JGZL_Contact), new Action(this.detach_JGZL_Contact)); this._JGZL_DocumentDescription = new EntitySet(new Action(this.attach_JGZL_DocumentDescription), new Action(this.detach_JGZL_DocumentDescription)); this._JGZL_ElectrostaticGrounding = new EntitySet(new Action(this.attach_JGZL_ElectrostaticGrounding), new Action(this.detach_JGZL_ElectrostaticGrounding)); + this._JGZL_FileDirectory = new EntitySet(new Action(this.attach_JGZL_FileDirectory), new Action(this.detach_JGZL_FileDirectory)); this._JGZL_HandoverCertificate = new EntitySet(new Action(this.attach_JGZL_HandoverCertificate), new Action(this.detach_JGZL_HandoverCertificate)); this._JGZL_IndustrialPipelineInstallationQualityCertificate = new EntitySet(new Action(this.attach_JGZL_IndustrialPipelineInstallationQualityCertificate), new Action(this.detach_JGZL_IndustrialPipelineInstallationQualityCertificate)); this._JGZL_IndustrialPipelineInstallationSummary = new EntitySet(new Action(this.attach_JGZL_IndustrialPipelineInstallationSummary), new Action(this.detach_JGZL_IndustrialPipelineInstallationSummary)); @@ -6107,6 +6121,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_FileDirectory_Base_Project", Storage="_JGZL_FileDirectory", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet JGZL_FileDirectory + { + get + { + return this._JGZL_FileDirectory; + } + set + { + this._JGZL_FileDirectory.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_HandoverCertificate_Base_Project", Storage="_JGZL_HandoverCertificate", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet JGZL_HandoverCertificate { @@ -7133,6 +7160,18 @@ namespace Model entity.Base_Project = null; } + private void attach_JGZL_FileDirectory(JGZL_FileDirectory entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_JGZL_FileDirectory(JGZL_FileDirectory entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_JGZL_HandoverCertificate(JGZL_HandoverCertificate entity) { this.SendPropertyChanging(); @@ -84740,6 +84779,229 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_FileDirectory")] + public partial class JGZL_FileDirectory : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _FileDirectoryId; + + private string _ProjectId; + + private System.Nullable _SerialNumber; + + private string _FileCode; + + private string _FileName; + + private string _Remark; + + private EntityRef _Base_Project; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnFileDirectoryIdChanging(string value); + partial void OnFileDirectoryIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnSerialNumberChanging(System.Nullable value); + partial void OnSerialNumberChanged(); + partial void OnFileCodeChanging(string value); + partial void OnFileCodeChanged(); + partial void OnFileNameChanging(string value); + partial void OnFileNameChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + #endregion + + public JGZL_FileDirectory() + { + this._Base_Project = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileDirectoryId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string FileDirectoryId + { + get + { + return this._FileDirectoryId; + } + set + { + if ((this._FileDirectoryId != value)) + { + this.OnFileDirectoryIdChanging(value); + this.SendPropertyChanging(); + this._FileDirectoryId = value; + this.SendPropertyChanged("FileDirectoryId"); + this.OnFileDirectoryIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] + public string ProjectId + { + get + { + return this._ProjectId; + } + set + { + if ((this._ProjectId != value)) + { + if (this._Base_Project.HasLoadedOrAssignedValue) + { + throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException(); + } + this.OnProjectIdChanging(value); + this.SendPropertyChanging(); + this._ProjectId = value; + this.SendPropertyChanged("ProjectId"); + this.OnProjectIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SerialNumber", DbType="Int")] + public System.Nullable SerialNumber + { + get + { + return this._SerialNumber; + } + set + { + if ((this._SerialNumber != value)) + { + this.OnSerialNumberChanging(value); + this.SendPropertyChanging(); + this._SerialNumber = value; + this.SendPropertyChanged("SerialNumber"); + this.OnSerialNumberChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileCode", DbType="NVarChar(50)")] + public string FileCode + { + get + { + return this._FileCode; + } + set + { + if ((this._FileCode != value)) + { + this.OnFileCodeChanging(value); + this.SendPropertyChanging(); + this._FileCode = value; + this.SendPropertyChanged("FileCode"); + this.OnFileCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileName", DbType="NVarChar(50)")] + public string FileName + { + get + { + return this._FileName; + } + set + { + if ((this._FileName != value)) + { + this.OnFileNameChanging(value); + this.SendPropertyChanging(); + this._FileName = value; + this.SendPropertyChanged("FileName"); + this.OnFileNameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(500)")] + 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(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_FileDirectory_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] + public Base_Project Base_Project + { + get + { + return this._Base_Project.Entity; + } + set + { + Base_Project previousValue = this._Base_Project.Entity; + if (((previousValue != value) + || (this._Base_Project.HasLoadedOrAssignedValue == false))) + { + this.SendPropertyChanging(); + if ((previousValue != null)) + { + this._Base_Project.Entity = null; + previousValue.JGZL_FileDirectory.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.JGZL_FileDirectory.Add(this); + this._ProjectId = value.ProjectId; + } + else + { + this._ProjectId = default(string); + } + this.SendPropertyChanged("Base_Project"); + } + } + } + + 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.JGZL_HandoverCertificate")] public partial class JGZL_HandoverCertificate : INotifyPropertyChanging, INotifyPropertyChanged {