From d45de18cc5449a40852350c3176261a2f1546041 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Tue, 24 Feb 2026 17:00:56 +0800 Subject: [PATCH] =?UTF-8?q?20260224=20=E6=A1=A3=E6=A1=88=E7=A7=BB=E4=BA=A4?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../版本日志/HJGLDB_DS_2026-02-25_bwj.sql | 79 ++++ HJGL_DS/BLL/BLL.csproj | 1 + HJGL_DS/BLL/Common/Const.cs | 5 + HJGL_DS/BLL/JGZL/ArchivalTransferService.cs | 94 ++++ .../Fastreport/JGZL/周期检定计量器具清单.frx | 103 ++--- .../File/Fastreport/JGZL/工序交接记录.frx | 36 +- .../JGZL/材料质量证明文件一览表.frx | 122 +++--- .../File/Fastreport/JGZL/档案移交表.frx | 56 ++- .../File/Fastreport/JGZL/焊条烘烤记录.frx | 202 ++++----- .../Fastreport/JGZL/管件宏观检查记录表.frx | 132 +++--- .../File/Fastreport/JGZL/管道安装检查记录.frx | 46 +- .../JGZL/管道材料材质标识检查记录.frx | 96 ++--- .../Fastreport/JGZL/管道焊口射线检测报告.frx | 148 +++---- .../JGZL/管道焊接接头射线检测比例确认表.frx | 128 +++--- .../Fastreport/JGZL/管道静电接地测试记录.frx | 94 ++-- .../Fastreport/JGZL/管道预制施工检查记录.frx | 42 +- .../Fastreport/JGZL/质量控制点检查记录.frx | 42 +- .../File/Fastreport/JGZL/钢管检查验收记录.frx | 110 ++--- .../File/Fastreport/JGZL/阀门检验试验记录.frx | 145 ++++--- .../File/Fastreport/JGZL/阀门试验确认表.frx | 106 ++--- .../Fastreport/JGZL/防腐工程质量验收记录.frx | 86 ++-- .../File/Fastreport/JGZL/隐蔽工程验收记录.frx | 44 +- .../Fastreport/JGZL/隔热工程质量验收记录.frx | 6 +- .../File/Fastreport/焊丝发放记录.frx | 134 +++--- .../File/Fastreport/焊条发放回收记录.frx | 134 +++--- HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj | 8 + .../FineUIPro.Web/JGZL/ArchivalTransfer.aspx | 96 +++++ .../JGZL/ArchivalTransfer.aspx.cs | 257 +++++++++++ .../JGZL/ArchivalTransfer.aspx.designer.cs | 233 ++++++++++ HJGL_DS/Model/Model.cs | 406 ++++++++++++++++++ 30 files changed, 2197 insertions(+), 994 deletions(-) create mode 100644 DataBase/版本日志/HJGLDB_DS_2026-02-25_bwj.sql create mode 100644 HJGL_DS/BLL/JGZL/ArchivalTransferService.cs create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/ArchivalTransfer.aspx create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/ArchivalTransfer.aspx.cs create mode 100644 HJGL_DS/FineUIPro.Web/JGZL/ArchivalTransfer.aspx.designer.cs diff --git a/DataBase/版本日志/HJGLDB_DS_2026-02-25_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-02-25_bwj.sql new file mode 100644 index 0000000..ba2103c --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-02-25_bwj.sql @@ -0,0 +1,79 @@ + +insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule) +values('2694FA73-C500-4A5B-859B-FAAD41B15FE8','ƽ','JGZL/ArchivalTransfer.aspx',550,'2A84FA58-8B20-48ED-A621-3EC98CF4AD28','3') +go +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('C3F09359-6595-4D33-8620-0EB10C5DE385','2694FA73-C500-4A5B-859B-FAAD41B15FE8','',1) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('6152CC4B-E363-48CB-A657-5AAEE3FCD5BE','2694FA73-C500-4A5B-859B-FAAD41B15FE8','޸',2) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('8190DF86-9CB5-4239-944D-9B655C469013','2694FA73-C500-4A5B-859B-FAAD41B15FE8','ɾ',3) +insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex) +values('2364A47A-82F3-4717-9744-2B07AC19D52B','2694FA73-C500-4A5B-859B-FAAD41B15FE8','',4) +go + + +CREATE TABLE [dbo].[JGZL_ArchivalTransfer]( + [ArchivalTransferId] [nvarchar](50) NOT NULL, + [ProjectId] [nvarchar](50) NULL, + [TransferringDepart] [nvarchar](50) NULL, + [FileName] [nvarchar](50) NULL, + [Quantity] [int] NULL, + [Remark] [nvarchar](500) NULL, + [TransferringMan] [nvarchar](50) NULL, + [TransferringDate] [datetime] NULL, + [Reviewer] [nvarchar](50) NULL, + [ReviewDate] [datetime] NULL, + [Recipient] [nvarchar](50) NULL, + [ReceivingDate] [datetime] NULL, + CONSTRAINT [PK_JGZL_ArchivalTransfer] PRIMARY KEY CLUSTERED +( + [ArchivalTransferId] 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_ArchivalTransfer] WITH CHECK ADD CONSTRAINT [FK_JGZL_ArchivalTransfer_Base_Project] FOREIGN KEY([ProjectId]) +REFERENCES [dbo].[Base_Project] ([ProjectId]) +GO + +ALTER TABLE [dbo].[JGZL_ArchivalTransfer] CHECK CONSTRAINT [FK_JGZL_ArchivalTransfer_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_ArchivalTransfer', @level2type=N'COLUMN',@level2name=N'ArchivalTransferId' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ArchivalTransfer', @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_ArchivalTransfer', @level2type=N'COLUMN',@level2name=N'TransferringDepart' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ļ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ArchivalTransfer', @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_ArchivalTransfer', @level2type=N'COLUMN',@level2name=N'Quantity' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ע' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ArchivalTransfer', @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_ArchivalTransfer', @level2type=N'COLUMN',@level2name=N'TransferringMan' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ƽ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ArchivalTransfer', @level2type=N'COLUMN',@level2name=N'TransferringDate' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ArchivalTransfer', @level2type=N'COLUMN',@level2name=N'Reviewer' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ArchivalTransfer', @level2type=N'COLUMN',@level2name=N'ReviewDate' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ArchivalTransfer', @level2type=N'COLUMN',@level2name=N'Recipient' +GO + +EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ƽ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'JGZL_ArchivalTransfer' +GO + + diff --git a/HJGL_DS/BLL/BLL.csproj b/HJGL_DS/BLL/BLL.csproj index 41c26fd..2e164a1 100644 --- a/HJGL_DS/BLL/BLL.csproj +++ b/HJGL_DS/BLL/BLL.csproj @@ -247,6 +247,7 @@ + diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs index 93a547e..c208576 100644 --- a/HJGL_DS/BLL/Common/Const.cs +++ b/HJGL_DS/BLL/Common/Const.cs @@ -1910,6 +1910,11 @@ namespace BLL /// public const string JGZL_InsulationAcceptanceRecordMenuId = "68C050BD-0EDC-473C-BD87-EE4A403F0132"; + /// + /// 档案移交表 + /// + public const string JGZL_ArchivalTransferMenuId = "2694FA73-C500-4A5B-859B-FAAD41B15FE8"; + #endregion #region 报表对应ID diff --git a/HJGL_DS/BLL/JGZL/ArchivalTransferService.cs b/HJGL_DS/BLL/JGZL/ArchivalTransferService.cs new file mode 100644 index 0000000..2c1b062 --- /dev/null +++ b/HJGL_DS/BLL/JGZL/ArchivalTransferService.cs @@ -0,0 +1,94 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BLL +{ + /// + /// 档案移交表 + /// + public class ArchivalTransferService + { + /// + /// 根据主键获取档案移交表 + /// + /// + /// + public static Model.JGZL_ArchivalTransfer GetArchivalTransferById(string archivalTransferId) + { + return Funs.DB.JGZL_ArchivalTransfer.FirstOrDefault(e => e.ArchivalTransferId == archivalTransferId); + } + + /// + /// 根据项目Id删除档案移交表 + /// + /// + /// + public static Model.JGZL_ArchivalTransfer GetArchivalTransferByProjectId(string projectId) + { + return Funs.DB.JGZL_ArchivalTransfer.FirstOrDefault(e => e.ProjectId == projectId); + } + + /// + /// 添加档案移交 + /// + /// + public static void AddArchivalTransfer(Model.JGZL_ArchivalTransfer archivalTransfer) + { + Model.SGGLDB db = Funs.DB; + Model.JGZL_ArchivalTransfer newArchivalTransfer = new Model.JGZL_ArchivalTransfer(); + newArchivalTransfer.ArchivalTransferId = archivalTransfer.ArchivalTransferId; + newArchivalTransfer.ProjectId = archivalTransfer.ProjectId; + newArchivalTransfer.TransferringDepart = archivalTransfer.TransferringDepart; + newArchivalTransfer.FileName = archivalTransfer.FileName; + newArchivalTransfer.Quantity = archivalTransfer.Quantity; + newArchivalTransfer.Remark = archivalTransfer.Remark; + newArchivalTransfer.TransferringMan = archivalTransfer.TransferringMan; + newArchivalTransfer.TransferringDate = archivalTransfer.TransferringDate; + newArchivalTransfer.Reviewer = archivalTransfer.Reviewer; + newArchivalTransfer.ReviewDate = archivalTransfer.ReviewDate; + newArchivalTransfer.Recipient = archivalTransfer.Recipient; + newArchivalTransfer.ReceivingDate = archivalTransfer.ReceivingDate; + db.JGZL_ArchivalTransfer.InsertOnSubmit(newArchivalTransfer); + db.SubmitChanges(); + } + + public static void UpdateArchivalTransfer(Model.JGZL_ArchivalTransfer archivalTransfer) + { + Model.SGGLDB db = Funs.DB; + Model.JGZL_ArchivalTransfer newArchivalTransfer = db.JGZL_ArchivalTransfer.FirstOrDefault(e => e.ArchivalTransferId == archivalTransfer.ArchivalTransferId); + if (newArchivalTransfer != null) + { + newArchivalTransfer.TransferringDepart = archivalTransfer.TransferringDepart; + newArchivalTransfer.FileName = archivalTransfer.FileName; + newArchivalTransfer.Quantity = archivalTransfer.Quantity; + newArchivalTransfer.Remark = archivalTransfer.Remark; + newArchivalTransfer.TransferringMan = archivalTransfer.TransferringMan; + newArchivalTransfer.TransferringDate = archivalTransfer.TransferringDate; + newArchivalTransfer.Reviewer = archivalTransfer.Reviewer; + newArchivalTransfer.ReviewDate = archivalTransfer.ReviewDate; + newArchivalTransfer.Recipient = archivalTransfer.Recipient; + newArchivalTransfer.ReceivingDate = archivalTransfer.ReceivingDate; + db.SubmitChanges(); + } + } + + /// + /// 根据主键删除档案移交表 + /// + /// + public static void DeleteArchivalTransferById(string archivalTransferId) + { + SGGLDB db = Funs.DB; + Model.JGZL_ArchivalTransfer archivalTransfer = db.JGZL_ArchivalTransfer.FirstOrDefault(e => e.ArchivalTransferId == archivalTransferId); + if (archivalTransfer!=null) + { + db.JGZL_ArchivalTransfer.DeleteOnSubmit(archivalTransfer); + db.SubmitChanges(); + } + } + } +} diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/周期检定计量器具清单.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/周期检定计量器具清单.frx index 2b39be4..16d71a4 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/周期检定计量器具清单.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/周期检定计量器具清单.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -42,7 +42,7 @@ namespace FastReport } - + @@ -57,15 +57,15 @@ namespace FastReport - - - - - - + + + + + + - + @@ -76,17 +76,17 @@ namespace FastReport - - - - - - - - - - - + + + + + + + + + + + @@ -99,17 +99,17 @@ namespace FastReport - - - - - - - - - - - + + + + + + + + + + + @@ -123,18 +123,18 @@ namespace FastReport - - - - - - - - - - - - + + + + + + + + + + + + @@ -149,16 +149,19 @@ namespace FastReport - - - - - - + + + + + + + + - + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/工序交接记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/工序交接记录.frx index 26841e9..d99b815 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/工序交接记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/工序交接记录.frx @@ -1,7 +1,7 @@  - + - + @@ -13,19 +13,19 @@ - - - - - - - - - + + + + + + + + + - + @@ -80,7 +80,7 @@ - + @@ -90,11 +90,11 @@ - - - - - + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/材料质量证明文件一览表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/材料质量证明文件一览表.frx index d57e445..504cc79 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/材料质量证明文件一览表.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/材料质量证明文件一览表.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -63,7 +63,7 @@ namespace FastReport } - + @@ -81,27 +81,27 @@ namespace FastReport - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - + + @@ -128,20 +128,20 @@ namespace FastReport - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -158,21 +158,21 @@ namespace FastReport - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -190,21 +190,25 @@ namespace FastReport - - - - + + + + + - - + + + - - - + + + + - + - + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/档案移交表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/档案移交表.frx index c5d9833..8e14a1f 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/档案移交表.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/档案移交表.frx @@ -1,12 +1,24 @@  - - - + + + + + + + + + + + + + + + - - + + - + @@ -27,9 +39,9 @@ - - - + + + @@ -51,28 +63,28 @@ - - - + + + - + - - + + - + - - + + - + - - + + - + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/焊条烘烤记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/焊条烘烤记录.frx index 3ca546b..77e25a8 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/焊条烘烤记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/焊条烘烤记录.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -39,7 +39,7 @@ namespace FastReport } - + @@ -65,38 +65,38 @@ namespace FastReport - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + @@ -184,32 +184,32 @@ namespace FastReport - - + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + @@ -235,30 +235,30 @@ namespace FastReport - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -285,29 +285,29 @@ namespace FastReport - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管件宏观检查记录表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管件宏观检查记录表.frx index ec40e28..70a5eca 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管件宏观检查记录表.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管件宏观检查记录表.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -42,7 +42,7 @@ namespace FastReport } - + @@ -62,29 +62,29 @@ namespace FastReport - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - + @@ -152,23 +152,23 @@ namespace FastReport - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + @@ -188,24 +188,24 @@ namespace FastReport - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + @@ -226,20 +226,24 @@ namespace FastReport - - - - + + + + + - + + - - + + + - + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道安装检查记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道安装检查记录.frx index c1a43b3..940044d 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道安装检查记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道安装检查记录.frx @@ -1,5 +1,5 @@  - + @@ -7,20 +7,20 @@ - - - - - - - - - - + + + + + + + + + + - + @@ -48,10 +48,10 @@ - - - - + + + + @@ -64,17 +64,17 @@ - - + + - - - - - + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道材料材质标识检查记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道材料材质标识检查记录.frx index feb1b0e..747ce37 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道材料材质标识检查记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道材料材质标识检查记录.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -42,7 +42,7 @@ namespace FastReport } - + @@ -52,23 +52,21 @@ namespace FastReport - - - - - - - - - + + + + + + + - - + + @@ -80,16 +78,16 @@ namespace FastReport - - - - - - - - - - + + + + + + + + + + @@ -103,16 +101,16 @@ namespace FastReport - - - - - - - - - - + + + + + + + + + + @@ -125,17 +123,17 @@ namespace FastReport - - - - - - - - - - - + + + + + + + + + + + @@ -149,11 +147,11 @@ namespace FastReport - - - - - + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道焊口射线检测报告.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道焊口射线检测报告.frx index 2b404a0..8a5aad4 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道焊口射线检测报告.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道焊口射线检测报告.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -63,7 +63,7 @@ namespace FastReport } - + @@ -108,22 +108,22 @@ namespace FastReport - - - - - - - - - - - - + + + + + + + + + + + + - + @@ -139,9 +139,9 @@ namespace FastReport - + - + @@ -156,20 +156,20 @@ namespace FastReport - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -241,18 +241,18 @@ namespace FastReport - - - - - - - - - - - - + + + + + + + + + + + + @@ -269,18 +269,18 @@ namespace FastReport - - - - - - - - - - - - + + + + + + + + + + + + @@ -295,19 +295,19 @@ namespace FastReport - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -323,12 +323,12 @@ namespace FastReport - - - - - - + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道焊接接头射线检测比例确认表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道焊接接头射线检测比例确认表.frx index 15dcff4..0ed6bb9 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道焊接接头射线检测比例确认表.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道焊接接头射线检测比例确认表.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -42,7 +42,7 @@ namespace FastReport } - + @@ -59,16 +59,16 @@ namespace FastReport - - - - - - - - + + + + + + + + - + @@ -81,20 +81,20 @@ namespace FastReport - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -142,21 +142,21 @@ namespace FastReport - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -174,22 +174,22 @@ namespace FastReport - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -208,14 +208,14 @@ namespace FastReport - - - - - - - - + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道静电接地测试记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道静电接地测试记录.frx index 83cb3a0..8cfd38a 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道静电接地测试记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道静电接地测试记录.frx @@ -1,7 +1,7 @@  - + - + @@ -17,17 +17,17 @@ - - - - - - - - + + + + + + + + - + @@ -42,15 +42,15 @@ - - - - - - - - - + + + + + + + + + @@ -83,16 +83,16 @@ - - - - - - - - - - + + + + + + + + + + @@ -105,17 +105,17 @@ - - - - - - - - - - - + + + + + + + + + + + @@ -129,12 +129,12 @@ - - - - - - + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道预制施工检查记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道预制施工检查记录.frx index 46a1d87..b73f963 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道预制施工检查记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道预制施工检查记录.frx @@ -1,7 +1,7 @@  - + - + @@ -10,20 +10,20 @@ - - - - - - - - - - + + + + + + + + + + - - + + @@ -53,7 +53,7 @@ - + @@ -63,12 +63,12 @@ - - - - - - + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/质量控制点检查记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/质量控制点检查记录.frx index 156604d..aa33a92 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/质量控制点检查记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/质量控制点检查记录.frx @@ -1,5 +1,5 @@  - + @@ -10,16 +10,16 @@ - - - - - - - + + + + + + + - + @@ -39,12 +39,12 @@ - - - - - - + + + + + + @@ -87,7 +87,7 @@ - + @@ -95,11 +95,11 @@ - - - - - + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/钢管检查验收记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/钢管检查验收记录.frx index 7979514..2dee118 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/钢管检查验收记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/钢管检查验收记录.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -72,7 +72,7 @@ namespace FastReport } - + @@ -110,21 +110,21 @@ namespace FastReport - - - - - - - - - - - + + + + + + + + + + + - + @@ -155,15 +155,15 @@ namespace FastReport - - - - - - - - - + + + + + + + + + @@ -183,16 +183,16 @@ namespace FastReport - - - - - - - - - - + + + + + + + + + + @@ -224,14 +224,14 @@ namespace FastReport - - - - - - - - + + + + + + + + @@ -269,10 +269,10 @@ namespace FastReport - - - - + + + + @@ -290,16 +290,16 @@ namespace FastReport - - - - - - - - - - + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门检验试验记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门检验试验记录.frx index 90f0f52..977df20 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门检验试验记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门检验试验记录.frx @@ -1,7 +1,7 @@  - + - + @@ -23,17 +23,17 @@ - - - - - - - + + + + + + + - - + + @@ -45,23 +45,23 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + @@ -100,24 +100,24 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + @@ -138,25 +138,25 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -178,16 +178,19 @@ - - - - - + + + + + + + - + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门试验确认表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门试验确认表.frx index 89f60e4..73bbd62 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门试验确认表.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/阀门试验确认表.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -42,7 +42,7 @@ namespace FastReport } - + @@ -59,26 +59,26 @@ namespace FastReport - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - + + @@ -116,19 +116,19 @@ namespace FastReport - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -144,20 +144,20 @@ namespace FastReport - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -174,12 +174,12 @@ namespace FastReport - - - - - - + + + + + + @@ -197,9 +197,9 @@ namespace FastReport - + - + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/防腐工程质量验收记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/防腐工程质量验收记录.frx index 2fdf5db..b7a9878 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/防腐工程质量验收记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/防腐工程质量验收记录.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -42,7 +42,7 @@ namespace FastReport } - + @@ -58,20 +58,20 @@ namespace FastReport - - - - - - - - - + + + + + + + + + - + @@ -110,14 +110,14 @@ namespace FastReport - - - - - - - - + + + + + + + + @@ -201,14 +201,14 @@ namespace FastReport - - - - - - - - + + + + + + + + @@ -219,15 +219,15 @@ namespace FastReport - - - - - - - - - + + + + + + + + + @@ -239,12 +239,12 @@ namespace FastReport - - - - - - + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隐蔽工程验收记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隐蔽工程验收记录.frx index 3c60a43..70a83b5 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隐蔽工程验收记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隐蔽工程验收记录.frx @@ -1,5 +1,5 @@  - + @@ -7,22 +7,22 @@ - - - - - - - - - - - + + + + + + + + + + + - + @@ -50,7 +50,7 @@ - + @@ -60,9 +60,9 @@ - - - + + + @@ -72,11 +72,11 @@ - - - - - + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隔热工程质量验收记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隔热工程质量验收记录.frx index 935e1fd..21e7566 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隔热工程质量验收记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隔热工程质量验收记录.frx @@ -1,7 +1,7 @@  - + - + @@ -38,7 +38,7 @@ - + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/焊丝发放记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/焊丝发放记录.frx index df6a3e0..0b4720e 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/焊丝发放记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/焊丝发放记录.frx @@ -1,7 +1,7 @@  - + - + @@ -32,30 +32,30 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - + @@ -99,21 +99,21 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -131,22 +131,22 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -165,21 +165,21 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/焊条发放回收记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/焊条发放回收记录.frx index 4803373..33d5c6f 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/焊条发放回收记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/焊条发放回收记录.frx @@ -1,7 +1,7 @@  - + - + @@ -31,30 +31,30 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - + @@ -82,21 +82,21 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -114,22 +114,22 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + @@ -148,21 +148,21 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj index 7253bbd..2cbb303 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj @@ -1243,6 +1243,7 @@ + @@ -6608,6 +6609,13 @@ AcceptanceCertificateEdit.aspx + + ArchivalTransfer.aspx + ASPXCodeBehind + + + ArchivalTransfer.aspx + Cover.aspx ASPXCodeBehind diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ArchivalTransfer.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ArchivalTransfer.aspx new file mode 100644 index 0000000..3b368e1 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/ArchivalTransfer.aspx @@ -0,0 +1,96 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ArchivalTransfer.aspx.cs" Inherits="FineUIPro.Web.JGZL.ArchivalTransfer" %> + + + + + + + 档案移交表 + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ArchivalTransfer.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ArchivalTransfer.aspx.cs new file mode 100644 index 0000000..cc6bdef --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/ArchivalTransfer.aspx.cs @@ -0,0 +1,257 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.JGZL +{ + public partial class ArchivalTransfer : PageBase + { + #region 定义变量 + /// + /// 主键 + /// + private string ArchivalTransferId + { + get + { + return (string)ViewState["ArchivalTransferId"]; + } + set + { + ViewState["ArchivalTransferId"] = value; + } + } + #endregion + + #region 加载页面 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + 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; + PageData(); + } + } + #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.PageData(); + } + } + #endregion + + #region 查询 + /// + ///查询 + /// + /// + /// + protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e) + { + this.tvControlItem.SelectedNodeID = this.drpProjectId.SelectedValue; + this.InitTreeMenu(); + PageData(); + } + #endregion + + /// + /// 清空文本 + /// + private void EmptyText() + { + txtProjectCode.Text = string.Empty; + txtTransferringDepart.Text = string.Empty; + txtFileName.Text = string.Empty; + txtQuantity.Text = string.Empty; + txtTransferringMan.Text = string.Empty; + txtTransferringDate.Text = string.Empty; + txtReviewer.Text = string.Empty; + txtReviewDate.Text = string.Empty; + txtRecipient.Text = string.Empty; + txtReceivingDate.Text = string.Empty; + } + + private void PageData() + { + EmptyText(); + string projectId = this.tvControlItem.SelectedNodeID; + if (!string.IsNullOrEmpty(projectId)) + { + var report = BLL.ArchivalTransferService.GetArchivalTransferByProjectId(projectId); + if (report != null) + { + this.ArchivalTransferId = report.ArchivalTransferId; + this.txtProjectCode.Text = BLL.Base_ProjectService.GetProjectCode(projectId); + this.txtTransferringDepart.Text = report.TransferringDepart; + if (!string.IsNullOrEmpty(report.FileName)) + { + this.txtFileName.Text = report.FileName; + } + else + { + this.txtFileName.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName + "交工技术文件"; + } + this.txtQuantity.Text = report.Quantity.HasValue ? report.Quantity.ToString() : "1"; + this.txtTransferringMan.Text = report.TransferringMan; + this.txtTransferringDate.Text = report.TransferringDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.TransferringDate) : ""; + this.txtReviewer.Text = report.Reviewer; + this.txtReviewDate.Text = report.ReviewDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReviewDate) : ""; + this.txtRecipient.Text = report.Recipient; + this.txtReceivingDate.Text = report.ReceivingDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.ReceivingDate) : ""; + } + else + { + this.ArchivalTransferId = string.Empty; + this.txtProjectCode.Text = BLL.Base_ProjectService.GetProjectCode(projectId); + this.txtFileName.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName + "交工技术文件"; + this.txtQuantity.Text = "1"; + } + } + } + + #region 保存 + /// + /// 保存按钮 + /// + /// + /// + protected void btnSave_Click(object sender, EventArgs e) + { + if (BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.JGZL_ArchivalTransferMenuId, BLL.Const.BtnSave)) + { + Model.JGZL_ArchivalTransfer newArchivalTransfer = new Model.JGZL_ArchivalTransfer(); + newArchivalTransfer.TransferringDepart = this.txtTransferringDepart.Text; + newArchivalTransfer.FileName = this.txtFileName.Text; + newArchivalTransfer.Quantity = Funs.GetNewInt(this.txtQuantity.Text); + newArchivalTransfer.TransferringMan = this.txtTransferringMan.Text; + newArchivalTransfer.TransferringDate = Funs.GetNewDateTime(this.txtTransferringDate.Text); + newArchivalTransfer.Reviewer = this.txtReviewer.Text; + newArchivalTransfer.ReviewDate = Funs.GetNewDateTime(this.txtReviewDate.Text); + newArchivalTransfer.Recipient = this.txtRecipient.Text; + newArchivalTransfer.ReceivingDate = Funs.GetNewDateTime(this.txtReceivingDate.Text); + if (!string.IsNullOrEmpty(this.ArchivalTransferId)) + { + newArchivalTransfer.ArchivalTransferId = this.ArchivalTransferId; + BLL.ArchivalTransferService.UpdateArchivalTransfer(newArchivalTransfer); + ShowNotify("修改成功!", MessageBoxIcon.Success); + } + else + { + newArchivalTransfer.ProjectId = this.tvControlItem.SelectedNodeID; + newArchivalTransfer.ArchivalTransferId = SQLHelper.GetNewID(typeof(Model.JGZL_ArchivalTransfer)); + this.ArchivalTransferId = newArchivalTransfer.ArchivalTransferId; + BLL.ArchivalTransferService.AddArchivalTransfer(newArchivalTransfer); + ShowNotify("保存成功!", MessageBoxIcon.Success); + } + } + else + { + ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning); + } + } + #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(); + + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + keyValuePairs.Add("ProjectCode", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectCode); + keyValuePairs.Add("TransferringDepart", this.txtTransferringDepart.Text); + keyValuePairs.Add("FileName", this.txtFileName.Text); + keyValuePairs.Add("Quantity", this.txtQuantity.Text); + keyValuePairs.Add("TransferringMan", this.txtTransferringMan.Text); + keyValuePairs.Add("TransferringDate", this.txtTransferringDate.Text); + keyValuePairs.Add("Reviewer", this.txtReviewer.Text); + keyValuePairs.Add("ReviewDate", this.txtReviewDate.Text); + keyValuePairs.Add("Recipient", this.txtRecipient.Text); + keyValuePairs.Add("ReceivingDate", this.txtReceivingDate.Text); + 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/ArchivalTransfer.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/ArchivalTransfer.aspx.designer.cs new file mode 100644 index 0000000..522d431 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/JGZL/ArchivalTransfer.aspx.designer.cs @@ -0,0 +1,233 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.JGZL +{ + + + public partial class ArchivalTransfer + { + + /// + /// 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; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnPrint; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtProjectCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtProjectCode; + + /// + /// txtTransferringDepart 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTransferringDepart; + + /// + /// txtFileName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtFileName; + + /// + /// txtQuantity 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtQuantity; + + /// + /// txtTransferringMan 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtTransferringMan; + + /// + /// txtTransferringDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtTransferringDate; + + /// + /// txtReviewer 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtReviewer; + + /// + /// txtReviewDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtReviewDate; + + /// + /// txtRecipient 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtRecipient; + + /// + /// txtReceivingDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtReceivingDate; + + /// + /// WindowPrint 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowPrint; + } +} diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs index 48d9594..c8f2599 100644 --- a/HJGL_DS/Model/Model.cs +++ b/HJGL_DS/Model/Model.cs @@ -380,6 +380,9 @@ namespace Model partial void InsertJGZL_AnticorrosionEngineeringInspectionRecordItem(JGZL_AnticorrosionEngineeringInspectionRecordItem instance); partial void UpdateJGZL_AnticorrosionEngineeringInspectionRecordItem(JGZL_AnticorrosionEngineeringInspectionRecordItem instance); partial void DeleteJGZL_AnticorrosionEngineeringInspectionRecordItem(JGZL_AnticorrosionEngineeringInspectionRecordItem instance); + partial void InsertJGZL_ArchivalTransfer(JGZL_ArchivalTransfer instance); + partial void UpdateJGZL_ArchivalTransfer(JGZL_ArchivalTransfer instance); + partial void DeleteJGZL_ArchivalTransfer(JGZL_ArchivalTransfer instance); partial void InsertJGZL_BlowingCleaning(JGZL_BlowingCleaning instance); partial void UpdateJGZL_BlowingCleaning(JGZL_BlowingCleaning instance); partial void DeleteJGZL_BlowingCleaning(JGZL_BlowingCleaning instance); @@ -1868,6 +1871,14 @@ namespace Model } } + public System.Data.Linq.Table JGZL_ArchivalTransfer + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table JGZL_BlowingCleaning { get @@ -4749,6 +4760,8 @@ namespace Model private EntitySet _JGZL_AnticorrosionEngineeringInspectionRecord; + private EntitySet _JGZL_ArchivalTransfer; + private EntitySet _JGZL_BlowingCleaning; private EntitySet _JGZL_CommencementReport; @@ -4933,6 +4946,7 @@ namespace Model this._HJGL_WeldingProcedure_WeldHotProcessCard = new EntitySet(new Action(this.attach_HJGL_WeldingProcedure_WeldHotProcessCard), new Action(this.detach_HJGL_WeldingProcedure_WeldHotProcessCard)); this._JGZL_AcceptanceCertificate = new EntitySet(new Action(this.attach_JGZL_AcceptanceCertificate), new Action(this.detach_JGZL_AcceptanceCertificate)); this._JGZL_AnticorrosionEngineeringInspectionRecord = new EntitySet(new Action(this.attach_JGZL_AnticorrosionEngineeringInspectionRecord), new Action(this.detach_JGZL_AnticorrosionEngineeringInspectionRecord)); + this._JGZL_ArchivalTransfer = new EntitySet(new Action(this.attach_JGZL_ArchivalTransfer), new Action(this.detach_JGZL_ArchivalTransfer)); this._JGZL_BlowingCleaning = new EntitySet(new Action(this.attach_JGZL_BlowingCleaning), new Action(this.detach_JGZL_BlowingCleaning)); this._JGZL_CommencementReport = new EntitySet(new Action(this.attach_JGZL_CommencementReport), new Action(this.detach_JGZL_CommencementReport)); this._JGZL_ConcealedWorksInspectionRecord = new EntitySet(new Action(this.attach_JGZL_ConcealedWorksInspectionRecord), new Action(this.detach_JGZL_ConcealedWorksInspectionRecord)); @@ -6055,6 +6069,19 @@ namespace Model } } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ArchivalTransfer_Base_Project", Storage="_JGZL_ArchivalTransfer", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] + public EntitySet JGZL_ArchivalTransfer + { + get + { + return this._JGZL_ArchivalTransfer; + } + set + { + this._JGZL_ArchivalTransfer.Assign(value); + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_BlowingCleaning_Base_Project", Storage="_JGZL_BlowingCleaning", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")] public EntitySet JGZL_BlowingCleaning { @@ -7114,6 +7141,18 @@ namespace Model entity.Base_Project = null; } + private void attach_JGZL_ArchivalTransfer(JGZL_ArchivalTransfer entity) + { + this.SendPropertyChanging(); + entity.Base_Project = this; + } + + private void detach_JGZL_ArchivalTransfer(JGZL_ArchivalTransfer entity) + { + this.SendPropertyChanging(); + entity.Base_Project = null; + } + private void attach_JGZL_BlowingCleaning(JGZL_BlowingCleaning entity) { this.SendPropertyChanging(); @@ -81447,6 +81486,373 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.JGZL_ArchivalTransfer")] + public partial class JGZL_ArchivalTransfer : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ArchivalTransferId; + + private string _ProjectId; + + private string _TransferringDepart; + + private string _FileName; + + private System.Nullable _Quantity; + + private string _Remark; + + private string _TransferringMan; + + private System.Nullable _TransferringDate; + + private string _Reviewer; + + private System.Nullable _ReviewDate; + + private string _Recipient; + + private System.Nullable _ReceivingDate; + + private EntityRef _Base_Project; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnArchivalTransferIdChanging(string value); + partial void OnArchivalTransferIdChanged(); + partial void OnProjectIdChanging(string value); + partial void OnProjectIdChanged(); + partial void OnTransferringDepartChanging(string value); + partial void OnTransferringDepartChanged(); + partial void OnFileNameChanging(string value); + partial void OnFileNameChanged(); + partial void OnQuantityChanging(System.Nullable value); + partial void OnQuantityChanged(); + partial void OnRemarkChanging(string value); + partial void OnRemarkChanged(); + partial void OnTransferringManChanging(string value); + partial void OnTransferringManChanged(); + partial void OnTransferringDateChanging(System.Nullable value); + partial void OnTransferringDateChanged(); + partial void OnReviewerChanging(string value); + partial void OnReviewerChanged(); + partial void OnReviewDateChanging(System.Nullable value); + partial void OnReviewDateChanged(); + partial void OnRecipientChanging(string value); + partial void OnRecipientChanged(); + partial void OnReceivingDateChanging(System.Nullable value); + partial void OnReceivingDateChanged(); + #endregion + + public JGZL_ArchivalTransfer() + { + this._Base_Project = default(EntityRef); + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ArchivalTransferId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ArchivalTransferId + { + get + { + return this._ArchivalTransferId; + } + set + { + if ((this._ArchivalTransferId != value)) + { + this.OnArchivalTransferIdChanging(value); + this.SendPropertyChanging(); + this._ArchivalTransferId = value; + this.SendPropertyChanged("ArchivalTransferId"); + this.OnArchivalTransferIdChanged(); + } + } + } + + [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="_TransferringDepart", DbType="NVarChar(50)")] + public string TransferringDepart + { + get + { + return this._TransferringDepart; + } + set + { + if ((this._TransferringDepart != value)) + { + this.OnTransferringDepartChanging(value); + this.SendPropertyChanging(); + this._TransferringDepart = value; + this.SendPropertyChanged("TransferringDepart"); + this.OnTransferringDepartChanged(); + } + } + } + + [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="_Quantity", DbType="Int")] + public System.Nullable Quantity + { + get + { + return this._Quantity; + } + set + { + if ((this._Quantity != value)) + { + this.OnQuantityChanging(value); + this.SendPropertyChanging(); + this._Quantity = value; + this.SendPropertyChanged("Quantity"); + this.OnQuantityChanged(); + } + } + } + + [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.ColumnAttribute(Storage="_TransferringMan", DbType="NVarChar(50)")] + public string TransferringMan + { + get + { + return this._TransferringMan; + } + set + { + if ((this._TransferringMan != value)) + { + this.OnTransferringManChanging(value); + this.SendPropertyChanging(); + this._TransferringMan = value; + this.SendPropertyChanged("TransferringMan"); + this.OnTransferringManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TransferringDate", DbType="DateTime")] + public System.Nullable TransferringDate + { + get + { + return this._TransferringDate; + } + set + { + if ((this._TransferringDate != value)) + { + this.OnTransferringDateChanging(value); + this.SendPropertyChanging(); + this._TransferringDate = value; + this.SendPropertyChanged("TransferringDate"); + this.OnTransferringDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Reviewer", DbType="NVarChar(50)")] + public string Reviewer + { + get + { + return this._Reviewer; + } + set + { + if ((this._Reviewer != value)) + { + this.OnReviewerChanging(value); + this.SendPropertyChanging(); + this._Reviewer = value; + this.SendPropertyChanged("Reviewer"); + this.OnReviewerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReviewDate", DbType="DateTime")] + public System.Nullable ReviewDate + { + get + { + return this._ReviewDate; + } + set + { + if ((this._ReviewDate != value)) + { + this.OnReviewDateChanging(value); + this.SendPropertyChanging(); + this._ReviewDate = value; + this.SendPropertyChanged("ReviewDate"); + this.OnReviewDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Recipient", DbType="NVarChar(50)")] + public string Recipient + { + get + { + return this._Recipient; + } + set + { + if ((this._Recipient != value)) + { + this.OnRecipientChanging(value); + this.SendPropertyChanging(); + this._Recipient = value; + this.SendPropertyChanged("Recipient"); + this.OnRecipientChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReceivingDate", DbType="DateTime")] + public System.Nullable ReceivingDate + { + get + { + return this._ReceivingDate; + } + set + { + if ((this._ReceivingDate != value)) + { + this.OnReceivingDateChanging(value); + this.SendPropertyChanging(); + this._ReceivingDate = value; + this.SendPropertyChanged("ReceivingDate"); + this.OnReceivingDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_ArchivalTransfer_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_ArchivalTransfer.Remove(this); + } + this._Base_Project.Entity = value; + if ((value != null)) + { + value.JGZL_ArchivalTransfer.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_BlowingCleaning")] public partial class JGZL_BlowingCleaning : INotifyPropertyChanging, INotifyPropertyChanged {