diff --git a/DataBase/版本日志/HJGLDB_DS_2026-03-25_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-03-25_bwj.sql
new file mode 100644
index 0000000..187728b
--- /dev/null
+++ b/DataBase/版本日志/HJGLDB_DS_2026-03-25_bwj.sql
@@ -0,0 +1,65 @@
+
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
+values('3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','ѹ','',260,'0','3')
+go
+insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuModule)
+values('66113AA7-C41B-4FE6-BAA0-69B3E74592A3','ѹ','SYBData/Cover.aspx',10,'3EAFF140-E5CA-4978-B83D-D2C9F36E0D52','3')
+go
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('F4FEA187-7E49-4FDE-885E-ACCA46FCD848','66113AA7-C41B-4FE6-BAA0-69B3E74592A3','',1)
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('6E0A7FFF-287E-4EE8-BF09-FB17C745077D','66113AA7-C41B-4FE6-BAA0-69B3E74592A3','',2)
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('E3DE73B0-6574-4C13-B621-275C162F5DD3','66113AA7-C41B-4FE6-BAA0-69B3E74592A3','ɾ',3)
+insert into ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+values('BA7474D2-B419-44F0-BB41-683EE9B0162B','66113AA7-C41B-4FE6-BAA0-69B3E74592A3','',4)
+go
+
+CREATE TABLE [dbo].[SYBData_Cover](
+ [CoverId] [nvarchar](50) NOT NULL,
+ [ProjectId] [nvarchar](50) NULL,
+ [InstallationName] [nvarchar](50) NULL,
+ [UnitWorkName] [nvarchar](50) NULL,
+ [PressureTestPackageCode] [nvarchar](50) NULL,
+ [TestPressure] [nvarchar](50) NULL,
+ [TestDate] [datetime] NULL,
+ CONSTRAINT [PK_SYBData_Cover] PRIMARY KEY CLUSTERED
+(
+ [CoverId] 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].[SYBData_Cover] WITH CHECK ADD CONSTRAINT [FK_SYBData_Cover_Base_Project] FOREIGN KEY([ProjectId])
+REFERENCES [dbo].[Base_Project] ([ProjectId])
+GO
+
+ALTER TABLE [dbo].[SYBData_Cover] CHECK CONSTRAINT [FK_SYBData_Cover_Base_Project]
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_Cover', @level2type=N'COLUMN',@level2name=N'CoverId'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ĿId' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_Cover', @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'SYBData_Cover', @level2type=N'COLUMN',@level2name=N'InstallationName'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'λ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_Cover', @level2type=N'COLUMN',@level2name=N'UnitWorkName'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_Cover', @level2type=N'COLUMN',@level2name=N'PressureTestPackageCode'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_Cover', @level2type=N'COLUMN',@level2name=N'TestPressure'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_Cover', @level2type=N'COLUMN',@level2name=N'TestDate'
+GO
+
+EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ѹ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'SYBData_Cover'
+GO
+
+
+
diff --git a/HJGL_DS/BLL/BLL.csproj b/HJGL_DS/BLL/BLL.csproj
index 2e164a1..0c92bc0 100644
--- a/HJGL_DS/BLL/BLL.csproj
+++ b/HJGL_DS/BLL/BLL.csproj
@@ -299,6 +299,7 @@
+
diff --git a/HJGL_DS/BLL/Common/Const.cs b/HJGL_DS/BLL/Common/Const.cs
index ce3ca60..3ea1eaf 100644
--- a/HJGL_DS/BLL/Common/Const.cs
+++ b/HJGL_DS/BLL/Common/Const.cs
@@ -1917,6 +1917,13 @@ namespace BLL
#endregion
+ #region 试压包资料菜单Id
+ ///
+ /// 试压包封面
+ ///
+ public const string SYBData_CoverMenuId = "66113AA7-C41B-4FE6-BAA0-69B3E74592A3";
+ #endregion
+
#region 报表对应ID
///
@@ -2477,9 +2484,25 @@ namespace BLL
///
public const string JGZL_HandoverCertificateUrl = "File\\Word\\JGZL\\工程中间交接证书导出模板.docx";
+ ///
+ /// 工程交工验收证书导出模板
+ ///
+ public const string JGZL_AcceptanceCertificateUrl = "File\\Word\\JGZL\\工程交工验收证书导出模板.docx";
+ ///
+ /// 工程联络单导出模板
+ ///
+ public const string JGZL_ContactUrl = "File\\Word\\JGZL\\工程联络单导出模板.docx";
+ ///
+ /// 施工图核查记录导出模板
+ ///
+ public const string JGZL_ConDrawingVerificationUrl = "File\\Word\\JGZL\\施工图核查记录导出模板.docx";
+ ///
+ /// 合格焊工登记表导出模板
+ ///
+ public const string JGZL_QualifiedWelderUrl = "File\\Word\\JGZL\\合格焊工登记表导出模板.docx";
///
/// 工序交接记录导出模板
diff --git a/HJGL_DS/BLL/SYBData/CoverService.cs b/HJGL_DS/BLL/SYBData/CoverService.cs
new file mode 100644
index 0000000..756d09d
--- /dev/null
+++ b/HJGL_DS/BLL/SYBData/CoverService.cs
@@ -0,0 +1,78 @@
+using Model;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BLL
+{
+ ///
+ /// 试压包资料封面
+ ///
+ public class CoverService
+ {
+ ///
+ /// 根据项目Id获取封面信息
+ ///
+ ///
+ ///
+ public static Model.SYBData_Cover GetConverByProjectId(string projectId)
+ {
+ return Funs.DB.SYBData_Cover.FirstOrDefault(e => e.ProjectId == projectId);
+ }
+
+ ///
+ /// 添加封面
+ ///
+ ///
+ public static void AddCover(Model.SYBData_Cover cover)
+ {
+ SGGLDB db = Funs.DB;
+ Model.SYBData_Cover newCovert = new SYBData_Cover();
+ newCovert.CoverId = cover.CoverId;
+ newCovert.ProjectId = cover.ProjectId;
+ newCovert.InstallationName = cover.InstallationName;
+ newCovert.UnitWorkName = cover.UnitWorkName;
+ newCovert.PressureTestPackageCode = cover.PressureTestPackageCode;
+ newCovert.TestPressure = cover.TestPressure;
+ newCovert.TestDate = cover.TestDate;
+ db.SYBData_Cover.InsertOnSubmit(newCovert);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改封面
+ ///
+ ///
+ public static void UpdateCover(Model.SYBData_Cover cover)
+ {
+ SGGLDB db = Funs.DB;
+ Model.SYBData_Cover newCovert = db.SYBData_Cover.FirstOrDefault(e => e.CoverId == cover.CoverId);
+ if (newCovert != null)
+ {
+ newCovert.InstallationName = cover.InstallationName;
+ newCovert.UnitWorkName = cover.UnitWorkName;
+ newCovert.PressureTestPackageCode = cover.PressureTestPackageCode;
+ newCovert.TestPressure = cover.TestPressure;
+ newCovert.TestDate = cover.TestDate;
+ db.SubmitChanges();
+ }
+ }
+
+ ///
+ /// 根据项目Id删除封面
+ ///
+ ///
+ public static void DeleteCoverByProjectId(string projectId)
+ {
+ SGGLDB db = Funs.DB;
+ Model.SYBData_Cover cover = db.SYBData_Cover.FirstOrDefault(e => e.ProjectId == projectId);
+ if (cover != null)
+ {
+ db.SYBData_Cover.DeleteOnSubmit(cover);
+ db.SubmitChanges();
+ }
+ }
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/交工技术文件目录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/交工技术文件目录.frx
index 4bfd99d..f68433c 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;
@@ -51,7 +51,7 @@ namespace FastReport
}
-
+
@@ -62,14 +62,14 @@ namespace FastReport
-
-
+
+
-
+
@@ -86,7 +86,7 @@ namespace FastReport
-
+
@@ -101,7 +101,7 @@ namespace FastReport
-
+
@@ -115,8 +115,8 @@ namespace FastReport
-
-
+
+
@@ -131,13 +131,13 @@ namespace FastReport
-
-
+
+
-
-
-
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/合格焊工登记表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/合格焊工登记表.frx
index 3f4bae5..9594c16 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
}
-
+
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/无损检测人员登记表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/无损检测人员登记表.frx
index ba9d4f3..8ead6a1 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
}
-
+
diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/试压包封面.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/试压包封面.frx
new file mode 100644
index 0000000..b218ea9
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/SYBData/试压包封面.frx
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/File/Word/JGZL/合格焊工登记表导出模板.docx b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/合格焊工登记表导出模板.docx
new file mode 100644
index 0000000..49ad41a
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/合格焊工登记表导出模板.docx
@@ -0,0 +1,33 @@
+ SH/T 3503 -- J115
+ 合格焊工登记表
+工程名称:
+
+
+ 序号
+ 焊工姓名
+ 焊工代号
+ 证书编号
+ 合格项目代号
+ 有效期限
+
+
+
+
+
+
+ 建设/监理单位
+ 总承包单位
+ 施工单位
+专业工程师:
+
+
+日期: 年 月 日
+专业工程师:
+
+
+日期: 年 月 日
+专业工程师:
+
+
+日期: 年 月 日
+
diff --git a/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工程交工验收证书导出模板.docx b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工程交工验收证书导出模板.docx
new file mode 100644
index 0000000..8199470
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工程交工验收证书导出模板.docx
@@ -0,0 +1,50 @@
+ SH/T 3503 -- J107B
+ 工程交工验收证书
+工程名称:
+ 施工合同编号
+
+ 实际开工日期
+
+ 交工日期
+
+
+工程内容:
+
+工程验收意见:
+
+
+
+ 使用单位负责(代表)人: 年 月 日
+工程质量监督意见:
+
+
+
+
+
+
+工程质量监督站长/组长:(监督站/组章) 年 月 日
+ 建设单位
+ 设计单位
+ 监理单位
+ 施工单位
+
+(项目部章)
+项目经理:
+
+年 月 日
+
+(项目部章)
+项目经理:
+
+年 月 日
+
+(项目部章)
+项目总监:
+
+年 月 日
+
+(项目部章)
+项目经理:
+
+年 月 日
+
diff --git a/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工程联络单导出模板.docx b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工程联络单导出模板.docx
new file mode 100644
index 0000000..418e1df
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/工程联络单导出模板.docx
@@ -0,0 +1,46 @@
+ SH/T 3503 -- J114
+ 工程联络单
+工程名称:
+单位工程名称:管道安装工程
+ 联络单编号
+
+ 送达单位
+
+事由:
+内容:
+
+经办人:
+审核人:
+
+接收单位处理意见:
+
+
+
+
+ 经办人: 审核人: (项目章)
+
+会签意见:
+
+
+
+
+代表:
+ 会签单位(项目章)
+日期: 年 月 日
+会签意见:
+
+
+
+
+代表:
+ 会签单位(项目章)
+日期: 年 月 日
+会签意见:
+
+
+
+
+代表:
+ 会签单位(项目章)
+日期: 年 月 日
+
diff --git a/HJGL_DS/FineUIPro.Web/File/Word/JGZL/施工图核查记录导出模板.docx b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/施工图核查记录导出模板.docx
new file mode 100644
index 0000000..adbe575
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/File/Word/JGZL/施工图核查记录导出模板.docx
@@ -0,0 +1,40 @@
+ SH/T 3543 -- G110
+ 施工图核查记录
+工程名称:
+单位工程名称:管道安装工程
+ 设计单位
+
+ 专业
+
+ 主持人
+
+ 核查时间
+
+ 施工图号
+
+ 参加核查人 员
+
+
+
+
+
+
+
+
+内容记录:
+
+问题情况:
+
+
+
+
+
+
+
+记录人:
+
+日期:
+审核人:
+
+日期:
+
diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
index 3d4dea5..0663f3b 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1330,6 +1330,7 @@
+
@@ -7163,6 +7164,13 @@
ASPXCodeBehind
+
+ Cover.aspx
+ ASPXCodeBehind
+
+
+ Cover.aspx
+
APPDownload.aspx
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx b/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx
index 4b7d176..4caec7b 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx
@@ -45,6 +45,9 @@
<%----%>
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx.cs
index 8b798ec..a39d752 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx.cs
@@ -8,6 +8,7 @@ using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
+using Aspose.Words;
namespace FineUIPro.Web.JGZL
{
@@ -495,5 +496,94 @@ namespace FineUIPro.Web.JGZL
}
}
#endregion
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ protected void btnOut_Click(object sender, EventArgs e)
+ {
+ string rootPath = Server.MapPath("~/");
+ string initTemplatePath = string.Empty;
+ string uploadfilepath = string.Empty;
+ string newUrl = string.Empty;
+ string filePath = string.Empty;
+
+ string projectId = this.tvControlItem.SelectedNodeID;
+ if (!string.IsNullOrEmpty(projectId))
+ {
+ initTemplatePath = Const.JGZL_AcceptanceCertificateUrl;
+ uploadfilepath = rootPath + initTemplatePath;
+
+ newUrl = uploadfilepath.Replace("工程交工验收证书导出模板", "工程交工验收证书");
+ if (File.Exists(newUrl))
+ {
+ File.Delete(newUrl);
+ }
+ File.Copy(uploadfilepath, newUrl);
+ Document doc = new Aspose.Words.Document(uploadfilepath);
+
+ Bookmark projectName = doc.Range.Bookmarks["ProjectName"];
+ if (projectName != null)
+ {
+ projectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName;
+ }
+ Bookmark contractNumber = doc.Range.Bookmarks["ContractNumber"];
+ if (contractNumber != null)
+ {
+ contractNumber.Text = this.txtContractNumber.Text;
+ }
+ Bookmark startDate = doc.Range.Bookmarks["StartDate"];
+ if (startDate != null)
+ {
+ startDate.Text = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtStartDate.Text));
+ }
+ Bookmark endDate = doc.Range.Bookmarks["EndDate"];
+ if (endDate != null)
+ {
+ endDate.Text = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtEndDate.Text));
+ }
+ Bookmark projectContent = doc.Range.Bookmarks["ProjectContent"];
+ if (projectContent != null)
+ {
+ projectContent.Text = this.txtProjectContent.Text;
+ }
+ Bookmark acceptanceOpinion = doc.Range.Bookmarks["AcceptanceOpinion"];
+ if (acceptanceOpinion != null)
+ {
+ acceptanceOpinion.Text = this.txtAcceptanceOpinion.Text;
+ }
+ Bookmark headerMan = doc.Range.Bookmarks["HeaderMan"];
+ if (headerMan != null)
+ {
+ headerMan.Text = this.txtHeaderMan.Text;
+ }
+ Bookmark supervisoryOpinion = doc.Range.Bookmarks["SupervisoryOpinion"];
+ if (supervisoryOpinion != null)
+ {
+ supervisoryOpinion.Text = this.txtSupervisoryOpinion.Text;
+ }
+ doc.Save(newUrl);
+
+ string fileName = Path.GetFileName(newUrl);
+ FileInfo info = new FileInfo(newUrl);
+ long fileSize = info.Length;
+ Response.Clear();
+ Response.ContentType = "application/x-zip-compressed";
+ Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
+ Response.AddHeader("Content-Length", fileSize.ToString());
+ Response.TransmitFile(newUrl, 0, fileSize);
+ Response.Flush();
+ Response.Close();
+ File.Delete(newUrl);
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
}
}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx.designer.cs
index e6b3750..59b30ec 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/AcceptanceCertificate.aspx.designer.cs
@@ -122,6 +122,15 @@ namespace FineUIPro.Web.JGZL
///
protected global::FineUIPro.Button btnPrint;
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
///
/// SimpleForm1 控件。
///
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx
index 0c2bd48..a2ddf18 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx
@@ -45,6 +45,9 @@
<%----%>
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx.cs
index 504dd4b..7a24605 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx.cs
@@ -8,6 +8,7 @@ using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
+using Aspose.Words;
namespace FineUIPro.Web.JGZL
{
@@ -263,5 +264,99 @@ namespace FineUIPro.Web.JGZL
}
}
#endregion
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ protected void btnOut_Click(object sender, EventArgs e)
+ {
+ string rootPath = Server.MapPath("~/");
+ string initTemplatePath = string.Empty;
+ string uploadfilepath = string.Empty;
+ string newUrl = string.Empty;
+ string filePath = string.Empty;
+
+ string projectId = this.tvControlItem.SelectedNodeID;
+ if (!string.IsNullOrEmpty(projectId))
+ {
+ initTemplatePath = Const.JGZL_ConDrawingVerificationUrl;
+ uploadfilepath = rootPath + initTemplatePath;
+
+ newUrl = uploadfilepath.Replace("施工图核查记录导出模板", "施工图核查记录");
+ if (File.Exists(newUrl))
+ {
+ File.Delete(newUrl);
+ }
+ File.Copy(uploadfilepath, newUrl);
+ Document doc = new Aspose.Words.Document(uploadfilepath);
+
+ Bookmark projectName = doc.Range.Bookmarks["ProjectName"];
+ if (projectName != null)
+ {
+ projectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName;
+ }
+ Bookmark designUnit = doc.Range.Bookmarks["DesignUnit"];
+ if (designUnit != null)
+ {
+ designUnit.Text = this.txtDesignUnit.Text;
+ }
+ Bookmark professional = doc.Range.Bookmarks["Professional"];
+ if (professional != null)
+ {
+ professional.Text = this.txtProfessional.Text;
+ }
+ Bookmark verificationDate = doc.Range.Bookmarks["VerificationDate"];
+ if (verificationDate != null)
+ {
+ verificationDate.Text = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtVerificationDate.Text));
+ }
+ Bookmark conDrawingCode = doc.Range.Bookmarks["ConDrawingCode"];
+ if (conDrawingCode != null)
+ {
+ conDrawingCode.Text = this.txtConDrawingCode.Text;
+ }
+ Bookmark contents = doc.Range.Bookmarks["Contents"];
+ if (contents != null)
+ {
+ contents.Text = this.txtContents.Text;
+ }
+ Bookmark problems = doc.Range.Bookmarks["Problems"];
+ if (problems != null)
+ {
+ problems.Text = this.txtProblems.Text;
+ }
+ Bookmark recordDate = doc.Range.Bookmarks["RecordDate"];
+ if (recordDate != null)
+ {
+ recordDate.Text = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtRecordDate.Text));
+ }
+ Bookmark reviewDate = doc.Range.Bookmarks["ReviewDate"];
+ if (reviewDate != null)
+ {
+ reviewDate.Text = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtReviewDate.Text));
+ }
+ doc.Save(newUrl);
+
+ string fileName = Path.GetFileName(newUrl);
+ FileInfo info = new FileInfo(newUrl);
+ long fileSize = info.Length;
+ Response.Clear();
+ Response.ContentType = "application/x-zip-compressed";
+ Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
+ Response.AddHeader("Content-Length", fileSize.ToString());
+ Response.TransmitFile(newUrl, 0, fileSize);
+ Response.Flush();
+ Response.Close();
+ File.Delete(newUrl);
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
}
}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx.designer.cs
index 777245f..73e95fc 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ConDrawingVerification.aspx.designer.cs
@@ -122,6 +122,15 @@ namespace FineUIPro.Web.JGZL
///
protected global::FineUIPro.Button btnPrint;
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
///
/// SimpleForm1 控件。
///
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx
index 79615b1..4eca3d5 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx
@@ -46,7 +46,7 @@
+ EnableAjax="false" DisableControlBeforePostBack="false">
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx b/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx
index abf4647..092a284 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx
@@ -48,6 +48,9 @@
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx.cs
index c35ed83..3ed79da 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx.cs
@@ -9,6 +9,7 @@ using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using FineUIPro.Web.common.BaseInfo;
+using Aspose.Words;
namespace FineUIPro.Web.JGZL
{
@@ -604,5 +605,124 @@ namespace FineUIPro.Web.JGZL
PageData();
}
}
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ protected void btnOut_Click(object sender, EventArgs e)
+ {
+ string rootPath = Server.MapPath("~/");
+ string initTemplatePath = string.Empty;
+ string uploadfilepath = string.Empty;
+ string newUrl = string.Empty;
+ string filePath = string.Empty;
+
+ string projectId = this.tvControlItem.SelectedNodeID;
+ if (!string.IsNullOrEmpty(projectId))
+ {
+ initTemplatePath = Const.JGZL_ContactUrl;
+ uploadfilepath = rootPath + initTemplatePath;
+
+ newUrl = uploadfilepath.Replace("工程联络单导出模板", "工程联络单");
+ if (File.Exists(newUrl))
+ {
+ File.Delete(newUrl);
+ }
+ File.Copy(uploadfilepath, newUrl);
+ Document doc = new Aspose.Words.Document(uploadfilepath);
+
+ Bookmark projectName = doc.Range.Bookmarks["ProjectName"];
+ if (projectName != null)
+ {
+ projectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName;
+ }
+ Bookmark contractNumber = doc.Range.Bookmarks["ContractNumber"];
+ if (contractNumber != null)
+ {
+ contractNumber.Text = this.txtContractNumber.Text;
+ }
+ Bookmark deliveryUnit = doc.Range.Bookmarks["DeliveryUnit"];
+ if (deliveryUnit != null)
+ {
+ deliveryUnit.Text = this.txtDeliveryUnit.Text;
+ }
+ Bookmark subjectMatter = doc.Range.Bookmarks["SubjectMatter"];
+ if (subjectMatter != null)
+ {
+ subjectMatter.Text = this.txtSubjectMatter.Text;
+ }
+ Bookmark contents = doc.Range.Bookmarks["Contents"];
+ if (contents != null)
+ {
+ contents.Text = this.txtContents.Text;
+ }
+ Bookmark handler = doc.Range.Bookmarks["Handler"];
+ if (handler != null)
+ {
+ handler.Text = this.txtHandler.Text;
+ }
+ Bookmark handDate = doc.Range.Bookmarks["HandDate"];
+ if (handDate != null)
+ {
+ handDate.Text = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtHandDate.Text));
+ }
+ Bookmark reviewer = doc.Range.Bookmarks["Reviewer"];
+ if (reviewer != null)
+ {
+ reviewer.Text = this.txtReviewer.Text;
+ }
+ Bookmark reviewDate = doc.Range.Bookmarks["ReviewDate"];
+ if (reviewDate != null)
+ {
+ reviewDate.Text = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtReviewDate.Text));
+ }
+ Bookmark handlingOpinion = doc.Range.Bookmarks["HandlingOpinion"];
+ if (handlingOpinion != null)
+ {
+ handlingOpinion.Text = this.txtHandlingOpinion.Text;
+ }
+ Bookmark opinionHandler = doc.Range.Bookmarks["OpinionHandler"];
+ if (opinionHandler != null)
+ {
+ opinionHandler.Text = this.txtOpinionHandler.Text;
+ }
+ Bookmark opinionHandDate = doc.Range.Bookmarks["OpinionHandDate"];
+ if (opinionHandDate != null)
+ {
+ opinionHandDate.Text = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtOpinionHandDate.Text));
+ }
+ Bookmark opinionsReviewer = doc.Range.Bookmarks["OpinionsReviewer"];
+ if (opinionsReviewer != null)
+ {
+ opinionsReviewer.Text = this.txtOpinionsReviewer.Text;
+ }
+ Bookmark opinionsDate = doc.Range.Bookmarks["OpinionsDate"];
+ if (opinionsDate != null)
+ {
+ opinionsDate.Text = string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtOpinionsDate.Text));
+ }
+ doc.Save(newUrl);
+
+ string fileName = Path.GetFileName(newUrl);
+ FileInfo info = new FileInfo(newUrl);
+ long fileSize = info.Length;
+ Response.Clear();
+ Response.ContentType = "application/x-zip-compressed";
+ Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
+ Response.AddHeader("Content-Length", fileSize.ToString());
+ Response.TransmitFile(newUrl, 0, fileSize);
+ Response.Flush();
+ Response.Close();
+ File.Delete(newUrl);
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
}
}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx.designer.cs
index 5c853d1..932dfb6 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/Contact.aspx.designer.cs
@@ -158,6 +158,15 @@ namespace FineUIPro.Web.JGZL
///
protected global::FineUIPro.Button btnPrint;
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
///
/// SimpleForm1 控件。
///
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx
index 07a52cb..78816d4 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx
@@ -46,7 +46,7 @@
+ EnableAjax="false" DisableControlBeforePostBack="false">
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx
index f1a8d81..1e93f66 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelinePrefabricationConstructionInspectionRecord.aspx
@@ -46,7 +46,7 @@
+ EnableAjax="false" DisableControlBeforePostBack="false">
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx
index f4f9cfe..37740a5 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/ProcessHandoverRecord.aspx
@@ -46,7 +46,7 @@
+ EnableAjax="false" DisableControlBeforePostBack="false">
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx b/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx
index 0bf2d73..d3353f2 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx
@@ -40,6 +40,9 @@
+
+
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx.cs
index 45554c2..b018ee7 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx.cs
@@ -1,15 +1,17 @@
-using FineUIPro.Web.common.BaseInfo;
+using Aspose.Words;
+using Aspose.Words.Tables;
+using BLL;
+using FineUIPro.Web.common.BaseInfo;
using System;
using System.Collections.Generic;
-using System.Data.SqlClient;
using System.Data;
+using System.Data.SqlClient;
+using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
-using System.IO;
-using BLL;
namespace FineUIPro.Web.JGZL
{
@@ -214,5 +216,168 @@ namespace FineUIPro.Web.JGZL
}
}
#endregion
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ protected void btnOut_Click(object sender, EventArgs e)
+ {
+ string rootPath = Server.MapPath("~/");
+ string initTemplatePath = string.Empty;
+ string uploadfilepath = string.Empty;
+ string newUrl = string.Empty;
+ string filePath = string.Empty;
+
+ //每页显示的固定数据行数
+ int rowsPerPage = 36;
+
+ string projectId = this.tvControlItem.SelectedNodeID;
+ if (!string.IsNullOrEmpty(projectId))
+ {
+ List listStr = new List();
+ listStr.Add(new SqlParameter("@projectId", projectId));
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = BLL.SQLHelper.GetDataTableRunProc("sp_rpt_WelderQualified", parameter);
+
+ initTemplatePath = Const.JGZL_QualifiedWelderUrl;
+ uploadfilepath = rootPath + initTemplatePath;
+
+ newUrl = uploadfilepath.Replace("合格焊工登记表导出模板", "合格焊工登记表");
+ if (File.Exists(newUrl))
+ {
+ File.Delete(newUrl);
+ }
+ File.Copy(uploadfilepath, newUrl);
+ //更新书签内容
+ Document doc = new Aspose.Words.Document(newUrl);
+ DocumentBuilder builder = new DocumentBuilder(doc);
+
+ Aspose.Words.Tables.Table table = (Aspose.Words.Tables.Table)doc.GetChild(NodeType.Table, 0, true);
+
+ Bookmark projectName = doc.Range.Bookmarks["ProjectName"];
+ if (projectName != null)
+ {
+ projectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName;
+ }
+
+ // 设置表头行重复显示
+ table.Rows[0].RowFormat.HeadingFormat = true;
+ table.Rows[1].RowFormat.HeadingFormat = true;
+
+ //// 先记录页尾行,并从表格中移除
+ //Row footerRow = table.Rows[table.Rows.Count - 1];
+ //table.Rows.RemoveAt(table.Rows.Count - 1);
+
+ for (int i = 0; i < tb.Rows.Count; i++)
+ {
+ //创建行
+ Row row = new Row(doc);
+ row.Cells.Add(CreateCell((i + 1).ToString(), doc, 26.37, "", ""));
+ row.Cells.Add(CreateCell(tb.Rows[i]["WED_Name"].ToString(), doc, 48.2, "", ""));
+ row.Cells.Add(CreateCell(tb.Rows[i]["WED_Code"].ToString(), doc,62, "", ""));
+ row.Cells.Add(CreateCell(tb.Rows[i]["CertificateNo"].ToString(), doc, 111.98, "", ""));
+ row.Cells.Add(CreateCell(tb.Rows[i]["QualifiedProjectCode"].ToString(), doc, 171.23, "", ""));
+ row.Cells.Add(CreateCell(tb.Rows[i]["LimitDate"].ToString(), doc, 64.3545, "", ""));
+ table.Rows.Insert(i + 2, row);
+ }
+ //// 计算并插入空白行,填满整页
+ //// 计算总数据行数
+ //int totalDataRows = tb.Rows.Count;
+ //// 计算需要补充的空白行数量
+ //int remainder = totalDataRows % rowsPerPage;
+ //int needBlankRows = remainder == 0 ? 0 : rowsPerPage - remainder;
+
+ // 插入空白行(和数据行格式保持一致,仅内容为空)
+ //for (int i = 0; i < needBlankRows - 1; i++)
+ //{
+ // Row blankRow = new Row(doc);
+ // // 空白行的单元格宽度和数据行保持一致
+ // blankRow.Cells.Add(CreateCell("", doc, 27, "", ""));
+ // blankRow.Cells.Add(CreateCell("", doc, 118, "", ""));
+ // blankRow.Cells.Add(CreateCell("", doc, 261.3, "", ""));
+ // blankRow.Cells.Add(CreateCell("", doc, 74, "", ""));
+ // blankRow.Cells.Add(CreateCell("", doc, 74, "", ""));
+ // blankRow.Cells.Add(CreateCell("", doc, 74, "", ""));
+ // // 插入到表格最后一行
+ // table.Rows.Add(blankRow);
+ //}
+ //把页尾行重新加回表格最后
+ //table.Rows.Add(footerRow);
+
+ //自动设置表格样式
+ table.AutoFit(AutoFitBehavior.FixedColumnWidths);
+ table.Alignment = TableAlignment.Center;
+
+ doc.Save(newUrl);
+
+ string fileName = Path.GetFileName(newUrl);
+ FileInfo info = new FileInfo(newUrl);
+ long fileSize = info.Length;
+ Response.Clear();
+ Response.ContentType = "application/x-zip-compressed";
+ Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
+ Response.AddHeader("Content-Length", fileSize.ToString());
+ Response.TransmitFile(newUrl, 0, fileSize);
+ Response.Flush();
+ Response.Close();
+ File.Delete(newUrl);
+ }
+ else
+ {
+ Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+
+ public static Cell CreateCell(String value, Document doc, double cellWidth, string cellMerge = "", string CenterPage = "", string cellUnitLeft = "")
+ {
+ Cell cell = new Cell(doc);
+ Paragraph p = new Paragraph(doc);
+ if (!string.IsNullOrEmpty(cellMerge))
+ {
+ if (cellMerge == "0")
+ {
+ cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.First;//竖直方向合并的第一个单元格
+ }
+ else
+ {
+ cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.Previous;//竖直方向合并的第一个单元格
+ }
+
+ }
+ else
+ {
+ cell.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
+ }
+ if (!string.IsNullOrEmpty(CenterPage))
+ {
+ //序号
+ value = " " + value;
+ }
+ if (!string.IsNullOrEmpty(cellUnitLeft))
+ {
+ p.ParagraphFormat.Alignment = ParagraphAlignment.Left;//表格中字体居左
+ }
+ else
+ {
+ p.ParagraphFormat.Alignment = ParagraphAlignment.Center;//表格中字体居中
+ }
+
+
+ p.AppendChild(new Run(doc, value));
+
+ cell.CellFormat.Width = cellWidth;
+
+ cell.CellFormat.VerticalAlignment = Aspose.Words.Tables.CellVerticalAlignment.Center;
+
+ cell.CellFormat.Borders.LineWidth = 0.75;
+
+ cell.AppendChild(p);
+ return cell;
+ }
+
+ #endregion
}
}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx.designer.cs
index 53eb0e0..3a4a601 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/JGZL/QualifiedWelder.aspx.designer.cs
@@ -113,6 +113,15 @@ namespace FineUIPro.Web.JGZL
///
protected global::FineUIPro.Button btnPrint;
+ ///
+ /// btnOut 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOut;
+
///
/// Grid1 控件。
///
diff --git a/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx
index 17dcdd3..944bcc6 100644
--- a/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx
+++ b/HJGL_DS/FineUIPro.Web/JGZL/QualityControlPointInspection.aspx
@@ -47,7 +47,7 @@
+ EnableAjax="false" DisableControlBeforePostBack="false" >
diff --git a/HJGL_DS/FineUIPro.Web/SYBData/Cover.aspx b/HJGL_DS/FineUIPro.Web/SYBData/Cover.aspx
new file mode 100644
index 0000000..5375684
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/SYBData/Cover.aspx
@@ -0,0 +1,92 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cover.aspx.cs" Inherits="FineUIPro.Web.SYBData.Cover" %>
+
+
+
+
+
+
+ 试压包封面
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/SYBData/Cover.aspx.cs b/HJGL_DS/FineUIPro.Web/SYBData/Cover.aspx.cs
new file mode 100644
index 0000000..9881605
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/SYBData/Cover.aspx.cs
@@ -0,0 +1,310 @@
+using Aspose.Words;
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.IO;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Windows.Forms;
+
+namespace FineUIPro.Web.SYBData
+{
+ public partial class Cover : PageBase
+ {
+ #region 定义项
+ ///
+ /// 主键
+ ///
+ private string CoverId
+ {
+ get
+ {
+ return (string)ViewState["CoverId"];
+ }
+ set
+ {
+ ViewState["CoverId"] = value;
+ }
+ }
+
+ ///
+ /// 项目Id
+ ///
+ private string ProjectId
+ {
+ get
+ {
+ return (string)ViewState["ProjectId"];
+ }
+ set
+ {
+ ViewState["ProjectId"] = 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;
+ this.ProjectId = this.tvControlItem.SelectedNodeID;
+ DataInfo();
+ }
+ }
+
+ private void DataInfo()
+ {
+ this.CoverId = string.Empty;
+ this.txtProjectName.Text = string.Empty;
+ this.txtInstallationName.Text = string.Empty;
+ this.txtUnitWorkName.Text = string.Empty;
+ this.txtPressureTestPackageCode.Text = string.Empty;
+ this.txtTestPressure.Text = string.Empty;
+ this.txtTestDate.Text = string.Empty;
+
+ if (!string.IsNullOrEmpty(this.ProjectId))
+ {
+ var data = BLL.CoverService.GetConverByProjectId(this.ProjectId);
+ if (data != null)
+ {
+ this.CoverId = data.CoverId;
+ this.txtProjectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectName;
+ this.txtInstallationName.Text = data.InstallationName;
+ this.txtUnitWorkName.Text = data.UnitWorkName;
+ this.txtPressureTestPackageCode.Text = data.PressureTestPackageCode;
+ this.txtTestPressure.Text = data.TestPressure;
+ this.txtTestDate.Text = data.TestDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.TestPressure) : "";
+ }
+ else
+ {
+ //默认值
+ this.txtProjectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectName;
+ this.txtUnitWorkName.Text = "管道安装工程";
+ }
+ }
+ }
+ #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.ProjectId = this.tvControlItem.SelectedNodeID;
+ DataInfo();
+ }
+ }
+ #endregion
+
+ #region 查询
+ ///
+ ///查询
+ ///
+ ///
+ ///
+ protected void drpProjectId_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ this.ProjectId = this.drpProjectId.SelectedValue;
+ this.InitTreeMenu();
+ this.tvControlItem.SelectedNodeID = this.ProjectId;
+ }
+ #endregion
+
+ #region 保存
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.SYBData_CoverMenuId, Const.BtnSave))
+ {
+ Model.SYBData_Cover newData = new Model.SYBData_Cover();
+ newData.ProjectId = this.ProjectId;
+ newData.InstallationName = this.txtInstallationName.Text.Trim();
+ newData.UnitWorkName = this.txtUnitWorkName.Text.Trim();
+ newData.PressureTestPackageCode = this.txtPressureTestPackageCode.Text.Trim();
+ newData.TestPressure = this.txtTestDate.Text.Trim();
+ newData.TestDate = Funs.GetNewDateTime(this.txtTestDate.Text);
+ if (!string.IsNullOrEmpty(this.CoverId))
+ {
+ newData.CoverId = this.CoverId;
+ BLL.CoverService.UpdateCover(newData);
+ ShowNotify("修改成功!", MessageBoxIcon.Success);
+ }
+ else
+ {
+ newData.CoverId = SQLHelper.GetNewID(typeof(Model.SYBData_Cover));
+ this.CoverId = newData.CoverId;
+ BLL.CoverService.AddCover(newData);
+ ShowNotify("保存成功!", MessageBoxIcon.Success);
+ }
+ DataInfo();
+ }
+ else
+ {
+ Alert.ShowInTop("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
+
+ #region 打印
+ ///
+ /// 打印
+ ///
+ ///
+ ///
+ protected void btnPrint_Click(object sender, EventArgs e)
+ {
+ if (!string.IsNullOrEmpty(this.ProjectId))
+ {
+ string initTemplatePath = "";
+ string rootPath = Server.MapPath("~/");
+ BLL.Common.FastReportService.ResetData();
+
+ Dictionary keyValuePairs = new Dictionary();
+ keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectName);
+ keyValuePairs.Add("InstallationName", this.txtInstallationName.Text);
+ keyValuePairs.Add("UnitWorkName", this.txtUnitWorkName.Text);
+ keyValuePairs.Add("PressureTestPackageCode", this.txtPressureTestPackageCode.Text);
+ keyValuePairs.Add("TestPressure", this.txtTestPressure.Text);
+ keyValuePairs.Add("TestDate", string.Format("{0:yyyy年MM月dd日}", Funs.GetNewDateTime(this.txtTestDate.Text)));
+ BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
+
+ initTemplatePath = "File\\Fastreport\\SYBData\\试压包封面.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
+
+ #region 导出按钮
+ /// 导出按钮
+ ///
+ ///
+ ///
+ protected void btnOut_Click(object sender, EventArgs e)
+ {
+ //string rootPath = Server.MapPath("~/");
+ //string initTemplatePath = string.Empty;
+ //string uploadfilepath = string.Empty;
+ //string newUrl = string.Empty;
+ //string filePath = string.Empty;
+
+ //string projectId = this.tvControlItem.SelectedNodeID;
+ //if (!string.IsNullOrEmpty(projectId))
+ //{
+ // if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
+ // {
+ // initTemplatePath = Const.JGZL_CoverUrl;
+ // uploadfilepath = rootPath + initTemplatePath;
+
+ // newUrl = uploadfilepath.Replace("封面导出模板", "封面");
+ // if (File.Exists(newUrl))
+ // {
+ // File.Delete(newUrl);
+ // }
+ // File.Copy(uploadfilepath, newUrl);
+ // Document doc = new Aspose.Words.Document(uploadfilepath);
+
+ // Bookmark code = doc.Range.Bookmarks["Code"];
+ // if (code != null)
+ // {
+ // code.Text = this.txtCode.Text.Trim();
+ // }
+
+ // Bookmark projectName = doc.Range.Bookmarks["ProjectName"];
+ // if (projectName != null)
+ // {
+ // projectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName;
+ // }
+ // doc.Save(newUrl);
+
+ // string fileName = Path.GetFileName(newUrl);
+ // FileInfo info = new FileInfo(newUrl);
+ // long fileSize = info.Length;
+ // Response.Clear();
+ // Response.ContentType = "application/x-zip-compressed";
+ // Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
+ // Response.AddHeader("Content-Length", fileSize.ToString());
+ // Response.TransmitFile(newUrl, 0, fileSize);
+ // Response.Flush();
+ // Response.Close();
+ // File.Delete(newUrl);
+ // }
+ // else
+ // {
+ // Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ // return;
+ // }
+ //}
+ //else
+ //{
+ // Alert.ShowInTop("请选择项目!", MessageBoxIcon.Warning);
+ // return;
+ //}
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/SYBData/Cover.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/SYBData/Cover.aspx.designer.cs
new file mode 100644
index 0000000..505765a
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/SYBData/Cover.aspx.designer.cs
@@ -0,0 +1,206 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.SYBData
+{
+
+
+ public partial class Cover
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// txtProjectName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtProjectName;
+
+ ///
+ /// txtInstallationName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtInstallationName;
+
+ ///
+ /// txtUnitWorkName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtUnitWorkName;
+
+ ///
+ /// txtPressureTestPackageCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPressureTestPackageCode;
+
+ ///
+ /// txtTestPressure 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtTestPressure;
+
+ ///
+ /// txtTestDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtTestDate;
+
+ ///
+ /// Label1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Label Label1;
+
+ ///
+ /// WindowPrint 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window WindowPrint;
+ }
+}
diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config
index 0066e09..3f81ed7 100644
--- a/HJGL_DS/FineUIPro.Web/Web.config
+++ b/HJGL_DS/FineUIPro.Web/Web.config
@@ -67,7 +67,7 @@
-
+
diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs
index 3bc8fef..7dbbcdb 100644
--- a/HJGL_DS/Model/Model.cs
+++ b/HJGL_DS/Model/Model.cs
@@ -596,6 +596,9 @@ namespace Model
partial void InsertSp_WelderOKRateStatistics(Sp_WelderOKRateStatistics instance);
partial void UpdateSp_WelderOKRateStatistics(Sp_WelderOKRateStatistics instance);
partial void DeleteSp_WelderOKRateStatistics(Sp_WelderOKRateStatistics instance);
+ partial void InsertSYBData_Cover(SYBData_Cover instance);
+ partial void UpdateSYBData_Cover(SYBData_Cover instance);
+ partial void DeleteSYBData_Cover(SYBData_Cover instance);
partial void InsertSys_ButtonPower(Sys_ButtonPower instance);
partial void UpdateSys_ButtonPower(Sys_ButtonPower instance);
partial void DeleteSys_ButtonPower(Sys_ButtonPower instance);
@@ -2514,6 +2517,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table SYBData_Cover
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Sys_ButtonPower
{
get
@@ -4851,6 +4862,8 @@ namespace Model
private EntitySet _Sp_WelderOKRate;
+ private EntitySet _SYBData_Cover;
+
private EntitySet _Weld_ProjectPlan;
private EntitySet _Weld_RecycleMat;
@@ -4997,6 +5010,7 @@ namespace Model
this._Project_Welder = new EntitySet(new Action(this.attach_Project_Welder), new Action(this.detach_Project_Welder));
this._Project_WorkArea = new EntitySet(new Action(this.attach_Project_WorkArea), new Action(this.detach_Project_WorkArea));
this._Sp_WelderOKRate = new EntitySet(new Action(this.attach_Sp_WelderOKRate), new Action(this.detach_Sp_WelderOKRate));
+ this._SYBData_Cover = new EntitySet(new Action(this.attach_SYBData_Cover), new Action(this.detach_SYBData_Cover));
this._Weld_ProjectPlan = new EntitySet(new Action(this.attach_Weld_ProjectPlan), new Action(this.detach_Weld_ProjectPlan));
this._Weld_RecycleMat = new EntitySet(new Action(this.attach_Weld_RecycleMat), new Action(this.detach_Weld_RecycleMat));
this._Weld_RecycleMatTop = new EntitySet(new Action(this.attach_Weld_RecycleMatTop), new Action(this.detach_Weld_RecycleMatTop));
@@ -6600,6 +6614,19 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_Cover_Base_Project", Storage="_SYBData_Cover", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
+ public EntitySet SYBData_Cover
+ {
+ get
+ {
+ return this._SYBData_Cover;
+ }
+ set
+ {
+ this._SYBData_Cover.Assign(value);
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Weld_ProjectPlan_Base_Project", Storage="_Weld_ProjectPlan", ThisKey="ProjectId", OtherKey="ProjectId", DeleteRule="NO ACTION")]
public EntitySet Weld_ProjectPlan
{
@@ -7632,6 +7659,18 @@ namespace Model
entity.Base_Project = null;
}
+ private void attach_SYBData_Cover(SYBData_Cover entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = this;
+ }
+
+ private void detach_SYBData_Cover(SYBData_Cover entity)
+ {
+ this.SendPropertyChanging();
+ entity.Base_Project = null;
+ }
+
private void attach_Weld_ProjectPlan(Weld_ProjectPlan entity)
{
this.SendPropertyChanging();
@@ -27510,7 +27549,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialType", DbType="NVarChar(50)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialType", DbType="NVarChar(200)")]
public string MaterialType
{
get
@@ -28094,7 +28133,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WMT_MatCode", DbType="VarChar(20) NOT NULL", CanBeNull=false)]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WMT_MatCode", DbType="VarChar(50) NOT NULL", CanBeNull=false)]
public string WMT_MatCode
{
get
@@ -58212,7 +58251,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WMT_MatCode", DbType="VarChar(20)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WMT_MatCode", DbType="VarChar(50)")]
public string WMT_MatCode
{
get
@@ -58244,7 +58283,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="hsCode", Storage="_HsCode", DbType="VarChar(20)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="hsCode", Storage="_HsCode", DbType="VarChar(50)")]
public string HsCode
{
get
@@ -64226,7 +64265,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WMT_MatName", DbType="VarChar(41) NOT NULL", CanBeNull=false)]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WMT_MatName", DbType="VarChar(101) NOT NULL", CanBeNull=false)]
public string WMT_MatName
{
get
@@ -66099,7 +66138,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldMat", DbType="VarChar(20)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldMat", DbType="VarChar(50)")]
public string WeldMat
{
get
@@ -66115,7 +66154,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldSilk", DbType="VarChar(20)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldSilk", DbType="VarChar(50)")]
public string WeldSilk
{
get
@@ -116892,6 +116931,253 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.SYBData_Cover")]
+ public partial class SYBData_Cover : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _CoverId;
+
+ private string _ProjectId;
+
+ private string _InstallationName;
+
+ private string _UnitWorkName;
+
+ private string _PressureTestPackageCode;
+
+ private string _TestPressure;
+
+ private System.Nullable _TestDate;
+
+ private EntityRef _Base_Project;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnCoverIdChanging(string value);
+ partial void OnCoverIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnInstallationNameChanging(string value);
+ partial void OnInstallationNameChanged();
+ partial void OnUnitWorkNameChanging(string value);
+ partial void OnUnitWorkNameChanged();
+ partial void OnPressureTestPackageCodeChanging(string value);
+ partial void OnPressureTestPackageCodeChanged();
+ partial void OnTestPressureChanging(string value);
+ partial void OnTestPressureChanged();
+ partial void OnTestDateChanging(System.Nullable value);
+ partial void OnTestDateChanged();
+ #endregion
+
+ public SYBData_Cover()
+ {
+ this._Base_Project = default(EntityRef);
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CoverId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string CoverId
+ {
+ get
+ {
+ return this._CoverId;
+ }
+ set
+ {
+ if ((this._CoverId != value))
+ {
+ this.OnCoverIdChanging(value);
+ this.SendPropertyChanging();
+ this._CoverId = value;
+ this.SendPropertyChanged("CoverId");
+ this.OnCoverIdChanged();
+ }
+ }
+ }
+
+ [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="_InstallationName", DbType="NVarChar(50)")]
+ public string InstallationName
+ {
+ get
+ {
+ return this._InstallationName;
+ }
+ set
+ {
+ if ((this._InstallationName != value))
+ {
+ this.OnInstallationNameChanging(value);
+ this.SendPropertyChanging();
+ this._InstallationName = value;
+ this.SendPropertyChanged("InstallationName");
+ this.OnInstallationNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitWorkName", DbType="NVarChar(50)")]
+ public string UnitWorkName
+ {
+ get
+ {
+ return this._UnitWorkName;
+ }
+ set
+ {
+ if ((this._UnitWorkName != value))
+ {
+ this.OnUnitWorkNameChanging(value);
+ this.SendPropertyChanging();
+ this._UnitWorkName = value;
+ this.SendPropertyChanged("UnitWorkName");
+ this.OnUnitWorkNameChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PressureTestPackageCode", DbType="NVarChar(50)")]
+ public string PressureTestPackageCode
+ {
+ get
+ {
+ return this._PressureTestPackageCode;
+ }
+ set
+ {
+ if ((this._PressureTestPackageCode != value))
+ {
+ this.OnPressureTestPackageCodeChanging(value);
+ this.SendPropertyChanging();
+ this._PressureTestPackageCode = value;
+ this.SendPropertyChanged("PressureTestPackageCode");
+ this.OnPressureTestPackageCodeChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestPressure", DbType="NVarChar(50)")]
+ public string TestPressure
+ {
+ get
+ {
+ return this._TestPressure;
+ }
+ set
+ {
+ if ((this._TestPressure != value))
+ {
+ this.OnTestPressureChanging(value);
+ this.SendPropertyChanging();
+ this._TestPressure = value;
+ this.SendPropertyChanged("TestPressure");
+ this.OnTestPressureChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TestDate", DbType="DateTime")]
+ public System.Nullable TestDate
+ {
+ get
+ {
+ return this._TestDate;
+ }
+ set
+ {
+ if ((this._TestDate != value))
+ {
+ this.OnTestDateChanging(value);
+ this.SendPropertyChanging();
+ this._TestDate = value;
+ this.SendPropertyChanged("TestDate");
+ this.OnTestDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_SYBData_Cover_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.SYBData_Cover.Remove(this);
+ }
+ this._Base_Project.Entity = value;
+ if ((value != null))
+ {
+ value.SYBData_Cover.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.Sys_ButtonPower")]
public partial class Sys_ButtonPower : INotifyPropertyChanging, INotifyPropertyChanged
{