diff --git a/DataBase/版本日志/HJGLDB_DS_2026-01-26_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-01-26_bwj.sql new file mode 100644 index 0000000..81534b1 --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-01-26_bwj.sql @@ -0,0 +1,12 @@ +update Sys_Menu set MenuName='ѹܵװ֤' where MenuId='F5833B38-65DF-4236-A676-EE75F9487061' +update Sys_Menu set MenuName='ѹܵװܱ' where MenuId='C527812C-0FF8-4EAC-B1FD-3B561DBE46ED' +go +alter table JGZL_IndustrialPipelineInstallationQualityCertificate add DesignLicenseCode nvarchar(50) +alter table JGZL_IndustrialPipelineInstallationQualityCertificate add QualificationCertificateCode nvarchar(50) +alter table JGZL_IndustrialPipelineInstallationQualityCertificate add InstitutionalApprovalCertificate nvarchar(50) +alter table JGZL_IndustrialPipelineInstallationQualityCertificate add InstallationInspection nvarchar(50) +go +alter table JGZL_IndustrialPipelineInstallationSummary add OperatingTemperature nvarchar(50) +alter table JGZL_IndustrialPipelineInstallationSummary add VoltageResistantTestDate datetime +alter table JGZL_IndustrialPipelineInstallationSummary add LeakageTestDate datetime +go diff --git a/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_IsoInfoService.cs b/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_IsoInfoService.cs index 6a198c3..48f85b4 100644 --- a/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_IsoInfoService.cs +++ b/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_IsoInfoService.cs @@ -279,5 +279,15 @@ namespace BLL { return Funs.DB.HJGL_PW_IsoInfo.FirstOrDefault(e => e.ISO_IsoNo == isoNo && e.ProjectId == projectId); } + + /// + /// 根据项目id获取管线信息 + /// + /// + /// + public static List GetIsoInfoByProjectId(string projectId) + { + return (from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == projectId select x).ToList(); + } } } diff --git a/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs b/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs index f08e410..b763fe1 100644 --- a/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs +++ b/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs @@ -1335,9 +1335,9 @@ namespace BLL /// /// /// - public static int GetJointCountByIsoId(string iso_id,string joty_id) + public static int GetJointCountByIsoId(string iso_id) { - return (from x in Funs.DB.HJGL_PW_JointInfo where x.ISO_ID == iso_id && x.JOTY_ID == joty_id select x).Count(); + return (from x in Funs.DB.HJGL_PW_JointInfo where x.ISO_ID == iso_id select x).Count(); } } } diff --git a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs index 74efa26..175e910 100644 --- a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs +++ b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationQualityCertificateService.cs @@ -1,6 +1,7 @@ using Model; using System.Linq; using System.Collections.Generic; +using System.Runtime.CompilerServices; namespace BLL { @@ -48,6 +49,10 @@ namespace BLL newModel.CompileDate = model.CompileDate; newModel.Reviewer = model.Reviewer; newModel.RevieweDate = model.RevieweDate; + newModel.DesignLicenseCode = model.DesignLicenseCode; + newModel.QualificationCertificateCode = model.QualificationCertificateCode; + newModel.InstitutionalApprovalCertificate = model.InstitutionalApprovalCertificate; + newModel.InstallationInspection = model.InstallationInspection; db.JGZL_IndustrialPipelineInstallationQualityCertificate.InsertOnSubmit(newModel); db.SubmitChanges(); } @@ -77,6 +82,10 @@ namespace BLL newModel.ConstructionUnit = model.ConstructionUnit; newModel.SpecialEquipmentProductionLicenseCode = model.SpecialEquipmentProductionLicenseCode; newModel.Remark = model.Remark; + newModel.DesignLicenseCode = model.DesignLicenseCode; + newModel.QualificationCertificateCode = model.QualificationCertificateCode; + newModel.InstitutionalApprovalCertificate = model.InstitutionalApprovalCertificate; + newModel.InstallationInspection = model.InstallationInspection; db.SubmitChanges(); } } diff --git a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs index 4a84850..7de9137 100644 --- a/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs +++ b/HJGL_DS/BLL/JGZL/IndustrialPipelineInstallationSummaryService.cs @@ -55,6 +55,9 @@ namespace BLL newModel.CompileDate = model.CompileDate; newModel.Reviewer = model.Reviewer; newModel.RevieweDate = model.RevieweDate; + newModel.OperatingTemperature = model.OperatingTemperature; + newModel.VoltageResistantTestDate = model.VoltageResistantTestDate; + newModel.LeakageTestDate = model.LeakageTestDate; db.JGZL_IndustrialPipelineInstallationSummary.InsertOnSubmit(newModel); db.SubmitChanges(); } @@ -69,6 +72,7 @@ namespace BLL Model.JGZL_IndustrialPipelineInstallationSummary newModel = db.JGZL_IndustrialPipelineInstallationSummary.FirstOrDefault(e => e.SummaryId == model.SummaryId); if (newModel != null) { + newModel.CertificateId = model.CertificateId; newModel.PipelineCode = model.PipelineCode; newModel.PipelineLevel = model.PipelineLevel; newModel.PipelineStartPoint = model.PipelineStartPoint; @@ -91,6 +95,9 @@ namespace BLL newModel.CorrosionControlMethod = model.CorrosionControlMethod; newModel.InsulationMethod = model.InsulationMethod; newModel.Remark = model.Remark; + newModel.OperatingTemperature = model.OperatingTemperature; + newModel.VoltageResistantTestDate = model.VoltageResistantTestDate; + newModel.LeakageTestDate = model.LeakageTestDate; db.SubmitChanges(); } } diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装汇总表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装汇总表.frx new file mode 100644 index 0000000..4f41169 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装汇总表.frx @@ -0,0 +1,295 @@ + + + using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; +using System.Drawing; +using System.Data; +using FastReport; +using FastReport.Data; +using FastReport.Dialog; +using FastReport.Barcode; +using FastReport.Table; +using FastReport.Utils; + +namespace FastReport +{ + public class ReportScript + { + + private void Table2_ManualBuild(object sender, EventArgs e) + { + DataSourceBase rowData = Report.GetDataSource("Data"); + // init the data source + rowData.Init(); + + // print the first table row - it is a header + + // now enumerate the data source and print the table body + while (rowData.HasMoreRows) + { + // print the table body + Table2.PrintRow(0); + Table2.PrintColumns(); + + // go next data source row + rowData.Next(); + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx new file mode 100644 index 0000000..2e29984 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/压力管道安装质量证明.frx @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/材料质量证明文件一览表.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/材料质量证明文件一览表.frx new file mode 100644 index 0000000..eebb62c --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/材料质量证明文件一览表.frx @@ -0,0 +1,212 @@ + + + using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Windows.Forms; +using System.Drawing; +using System.Data; +using FastReport; +using FastReport.Data; +using FastReport.Dialog; +using FastReport.Barcode; +using FastReport.Table; +using FastReport.Utils; + +namespace FastReport +{ + public class ReportScript + { + private string header=""; + private string h=""; + + private void Cell4_BeforePrint(object sender, EventArgs e) + { + if (Report.Engine.PageNo>1) + { + header="(续)"; + } + } + + private void Cell1_BeforePrint(object sender, EventArgs e) + { + if (Report.Engine.PageNo>1) + { + h="2"; + } + else + { + h="1"; + } + } + + private void Table2_ManualBuild(object sender, EventArgs e) + { + DataSourceBase rowData = Report.GetDataSource("Data"); + // init the data source + rowData.Init(); + // print the first table row - it is a header + + // now enumerate the data source and print the table body + while (rowData.HasMoreRows) + { + // print the table body + Table2.PrintRow(0); + Table2.PrintColumns(); + + // go next data source row + rowData.Next(); + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道安装检查记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道安装检查记录.frx new file mode 100644 index 0000000..a914ae2 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/管道安装检查记录.frx @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隐蔽工程验收记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隐蔽工程验收记录.frx new file mode 100644 index 0000000..49c4ef2 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/JGZL/隐蔽工程验收记录.frx @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.cs index 66edbad..e2f51aa 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecord.aspx.cs @@ -195,40 +195,26 @@ namespace FineUIPro.Web.JGZL string rootPath = Server.MapPath("~/"); BLL.Common.FastReportService.ResetData(); - string strSql = @"SELECT * from JGZL_ConcealedWorksInspectionRecord where ProjectId = @ProjectId order by DrawingNumber desc"; - List listStr = new List(); - listStr.Add(new SqlParameter("@ProjectId", projectId)); - SqlParameter[] parameter = listStr.ToArray(); - DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - - DataTable dt = new DataTable(); - dt.TableName = "Data"; - dt.Columns.Add("Num"); - dt.Columns.Add("ConcealedWorks"); - dt.Columns.Add("DrawingNumber"); - dt.Columns.Add("ConcealedContentAndDiagram"); - dt.Columns.Add("InspectionResults"); - dt.Columns.Add("Remark"); - - DataRow[] rows = tb.DefaultView.ToTable().Select(); - int i = 0; - foreach (var row in rows) - { - var newRow = dt.NewRow(); - newRow["Num"] = (i + 1).ToString(); - newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString(); - newRow["DrawingNumber"] = row["DrawingNumber"].ToString(); - newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString(); - newRow["Remark"] = row["Remark"].ToString(); - dt.Rows.Add(newRow); - i++; - } - BLL.Common.FastReportService.AddFastreportTable(dt); - Dictionary keyValuePairs = new Dictionary(); - keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); - BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) + { + var report = BLL.ConcealedWorksInspectionRecordService.GetConcealedWorksInspectionRecordById(this.Grid1.SelectedRowID); + if (report != null) + { + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + keyValuePairs.Add("ConcealedWorks", report.ConcealedWorks); + keyValuePairs.Add("DrawingNumber", report.DrawingNumber); + keyValuePairs.Add("ConcealedContentAndDiagram", report.ConcealedContentAndDiagram); + keyValuePairs.Add("InspectionResults", report.InspectionResults); + } + } + else + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); initTemplatePath = "File\\Fastreport\\JGZL\\隐蔽工程验收记录.frx"; if (File.Exists(rootPath + initTemplatePath)) { diff --git a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.cs index 9986065..58ca640 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/ConcealedWorksInspectionRecordEdit.aspx.cs @@ -1,5 +1,7 @@ using BLL; +using FastReport; using System; +using System.Windows.Forms.VisualStyles; namespace FineUIPro.Web.JGZL { @@ -61,6 +63,13 @@ namespace FineUIPro.Web.JGZL this.txtRemark.Text = report.Remark; } } + else + { + if (!string.IsNullOrEmpty(this.ProjectId)) + { + this.txtDrawingNumber.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectCode; + } + } } } #endregion diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx index b04635f..eb4857e 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx @@ -5,7 +5,7 @@ - 工业管道安装质量证明书 + 压力管道安装质量证明书
@@ -13,7 +13,7 @@ @@ -25,28 +25,28 @@ - + Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="压力管道安装质量证明书" + TitleToolTip="压力管道安装质量证明书" AutoScroll="true"> - + - - - + --%> @@ -82,24 +82,18 @@ - - - - - - - <%-- - --%> @@ -122,11 +116,11 @@ - - diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs index a07c044..5cf046b 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificate.aspx.cs @@ -195,65 +195,72 @@ namespace FineUIPro.Web.JGZL string rootPath = Server.MapPath("~/"); BLL.Common.FastReportService.ResetData(); - string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationQualityCertificate where ProjectId = @ProjectId order by DrawingNumber desc"; - List listStr = new List(); - listStr.Add(new SqlParameter("@ProjectId", projectId)); - SqlParameter[] parameter = listStr.ToArray(); - DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - - DataTable dt = new DataTable(); - dt.TableName = "Data"; - dt.Columns.Add("Num"); - dt.Columns.Add("CertificateCode"); - dt.Columns.Add("EngineeringName"); - dt.Columns.Add("EngineeringCode"); - dt.Columns.Add("DeliveryUnit"); - dt.Columns.Add("DeliveryUnitCode"); - dt.Columns.Add("InstallStartDate"); - dt.Columns.Add("InstallEndDate"); - dt.Columns.Add("PipelineLevel"); - dt.Columns.Add("PipelineLength"); - dt.Columns.Add("DesignUnit"); - dt.Columns.Add("LosslessTestingAgency"); - dt.Columns.Add("SupervisoryAndInspectionAgency"); - dt.Columns.Add("ConstructionUnit"); - dt.Columns.Add("SpecialEquipmentProductionLicenseCode"); - dt.Columns.Add("Remark"); - - DataRow[] rows = tb.DefaultView.ToTable().Select(); - int i = 0; - foreach (var row in rows) + string id = this.Grid1.SelectedRowID; + if (!string.IsNullOrEmpty(id)) { - var newRow = dt.NewRow(); - newRow["Num"] = (i + 1).ToString(); - newRow["CertificateCode"] = row["CertificateCode"].ToString(); - newRow["EngineeringName"] = row["EngineeringName"].ToString(); - newRow["EngineeringCode"] = row["EngineeringCode"].ToString(); - newRow["DeliveryUnit"] = row["DeliveryUnit"].ToString(); - newRow["DeliveryUnitCode"] = row["DeliveryUnitCode"].ToString(); - newRow["InstallStartDate"] = row["InstallStartDate"].ToString(); - newRow["InstallEndDate"] = row["InstallEndDate"].ToString(); - newRow["PipelineLevel"] = row["PipelineLevel"].ToString(); - newRow["PipelineLength"] = row["PipelineLength"].ToString(); - newRow["DesignUnit"] = row["DesignUnit"].ToString(); - newRow["LosslessTestingAgency"] = row["LosslessTestingAgency"].ToString(); - newRow["SupervisoryAndInspectionAgency"] = row["SupervisoryAndInspectionAgency"].ToString(); - newRow["ConstructionUnit"] = row["ConstructionUnit"].ToString(); - newRow["SpecialEquipmentProductionLicenseCode"] = row["SpecialEquipmentProductionLicenseCode"].ToString(); - newRow["Remark"] = row["Remark"].ToString(); - dt.Rows.Add(newRow); - i++; + var report = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(id); + if (report != null) + { + DataTable dt = new DataTable(); + dt.TableName = "Data"; + dt.Columns.Add("CertificateCode"); + dt.Columns.Add("EngineeringName"); + dt.Columns.Add("EngineeringCode"); + dt.Columns.Add("DeliveryUnit"); + dt.Columns.Add("DeliveryUnitCode"); + dt.Columns.Add("InstallStartDate"); + dt.Columns.Add("InstallEndDate"); + dt.Columns.Add("PipelineLevel"); + dt.Columns.Add("PipelineLength"); + dt.Columns.Add("DesignUnit"); + dt.Columns.Add("DesignLicenseCode"); + dt.Columns.Add("SupervisoryAndInspectionAgency"); + dt.Columns.Add("QualificationCertificateCode"); + dt.Columns.Add("LosslessTestingAgency"); + dt.Columns.Add("InstitutionalApprovalCertificate"); + dt.Columns.Add("InstallationInspection"); + dt.Columns.Add("ConstructionUnit"); + dt.Columns.Add("SpecialEquipmentProductionLicenseCode"); + + var newRow = dt.NewRow(); + newRow["CertificateCode"] = report.CertificateCode; + newRow["EngineeringName"] = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName; + newRow["EngineeringCode"] = BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectCode; + newRow["DeliveryUnit"] = report.DeliveryUnit; + newRow["DeliveryUnitCode"] = report.DeliveryUnitCode; + string InstallStartDate = report.InstallStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallStartDate) : ""; + newRow["InstallStartDate"] = InstallStartDate; + string InstallEndDate = report.InstallEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallEndDate) : ""; + newRow["InstallEndDate"] = InstallEndDate; + newRow["PipelineLevel"] = report.PipelineLevel; + newRow["PipelineLength"] = report.PipelineLength; + newRow["DesignUnit"] = report.DesignUnit; + newRow["DesignLicenseCode"] = report.DesignLicenseCode; + newRow["SupervisoryAndInspectionAgency"] = report.SupervisoryAndInspectionAgency; + newRow["QualificationCertificateCode"] = report.QualificationCertificateCode; + newRow["LosslessTestingAgency"] = report.LosslessTestingAgency; + newRow["InstitutionalApprovalCertificate"] = report.InstitutionalApprovalCertificate; + newRow["InstallationInspection"] = report.InstallationInspection; + newRow["ConstructionUnit"] = report.ConstructionUnit; + newRow["SpecialEquipmentProductionLicenseCode"] = report.SpecialEquipmentProductionLicenseCode; + dt.Rows.Add(newRow); + + BLL.Common.FastReportService.AddFastreportTable(dt); + } + Dictionary keyValuePairs = new Dictionary(); + //keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + + initTemplatePath = "File\\Fastreport\\JGZL\\压力管道安装质量证明.frx"; + if (File.Exists(rootPath + initTemplatePath)) + { + PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + } } - BLL.Common.FastReportService.AddFastreportTable(dt); - - Dictionary keyValuePairs = new Dictionary(); - keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); - BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); - - initTemplatePath = "File\\Fastreport\\JGZL\\工业管道安装质量证明书.frx"; - if (File.Exists(rootPath + initTemplatePath)) + else { - PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; } } else diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx index 0d23460..1addbf7 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx @@ -5,7 +5,7 @@ - 编辑工业管道安装质量证明书 + 编辑压力管道安装质量证明书 @@ -26,49 +26,61 @@ - - + + + + + <%-- + + + + + --%> + + + + - - + + - - + + - - + + - - + + - - + + - - + + - + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs index eeda40a..a126283 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.cs @@ -56,17 +56,21 @@ namespace FineUIPro.Web.JGZL { this.txtCertificateCode.Text = report.CertificateCode; this.txtSpecialEquipmentProductionLicenseCode.Text = report.SpecialEquipmentProductionLicenseCode; - this.txtEngineeringName.Text = report.EngineeringName; - this.txtEngineeringCode.Text = report.EngineeringCode; + //this.txtEngineeringName.Text = report.EngineeringName; + //this.txtEngineeringCode.Text = report.EngineeringCode; this.txtDeliveryUnit.Text = report.DeliveryUnit; this.txtDeliveryUnitCode.Text = report.DeliveryUnitCode; this.txtInstallStartDate.Text = report.InstallStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallStartDate) : ""; this.txtInstallEndDate.Text = report.InstallEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.InstallEndDate) : ""; this.txtPipelineLevel.Text = report.PipelineLevel; this.txtPipelineLength.Text = report.PipelineLength; + this.txtDesignLicenseCode.Text = report.DesignLicenseCode; + this.txtQualificationCertificateCode.Text = report.QualificationCertificateCode; + this.txtInstitutionalApprovalCertificate.Text = report.InstitutionalApprovalCertificate; this.txtDesignUnit.Text = report.DesignUnit; - this.txtLosslessTestingAgency.Text = report.LosslessTestingAgency; this.txtSupervisoryAndInspectionAgency.Text = report.SupervisoryAndInspectionAgency; + this.txtLosslessTestingAgency.Text = report.LosslessTestingAgency; + this.txtInstallationInspection.Text = report.InstallationInspection; this.txtConstructionUnit.Text = report.ConstructionUnit; this.txtRemark.Text = report.Remark; } @@ -88,8 +92,8 @@ namespace FineUIPro.Web.JGZL Model.JGZL_IndustrialPipelineInstallationQualityCertificate newReport = new Model.JGZL_IndustrialPipelineInstallationQualityCertificate(); newReport.CertificateCode = this.txtCertificateCode.Text.Trim(); newReport.SpecialEquipmentProductionLicenseCode = this.txtSpecialEquipmentProductionLicenseCode.Text.Trim(); - newReport.EngineeringName = this.txtEngineeringName.Text.Trim(); - newReport.EngineeringCode = this.txtEngineeringCode.Text.Trim(); + //newReport.EngineeringName = this.txtEngineeringName.Text.Trim(); + //newReport.EngineeringCode = this.txtEngineeringCode.Text.Trim(); newReport.DeliveryUnit = this.txtDeliveryUnit.Text.Trim(); newReport.DeliveryUnitCode = this.txtDeliveryUnitCode.Text.Trim(); newReport.InstallStartDate = Funs.GetNewDateTime(this.txtInstallStartDate.Text.Trim()); @@ -101,6 +105,10 @@ namespace FineUIPro.Web.JGZL newReport.SupervisoryAndInspectionAgency = this.txtSupervisoryAndInspectionAgency.Text.Trim(); newReport.ConstructionUnit = this.txtConstructionUnit.Text.Trim(); newReport.Remark = this.txtRemark.Text.Trim(); + newReport.DesignLicenseCode = this.txtDesignLicenseCode.Text.Trim(); + newReport.QualificationCertificateCode = this.txtQualificationCertificateCode.Text.Trim(); + newReport.InstitutionalApprovalCertificate = this.txtInstitutionalApprovalCertificate.Text.Trim(); + newReport.InstallationInspection = this.txtInstallationInspection.Text.Trim(); if (!string.IsNullOrEmpty(this.CertificateId)) { diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs index f5d96e7..870dd76 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationQualityCertificateEdit.aspx.designer.cs @@ -86,24 +86,6 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.TextBox txtSpecialEquipmentProductionLicenseCode; - /// - /// txtEngineeringName 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtEngineeringName; - - /// - /// txtEngineeringCode 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtEngineeringCode; - /// /// txtDeliveryUnit 控件。 /// @@ -158,6 +140,33 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.TextBox txtPipelineLength; + /// + /// txtDesignLicenseCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtDesignLicenseCode; + + /// + /// txtQualificationCertificateCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtQualificationCertificateCode; + + /// + /// txtInstitutionalApprovalCertificate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtInstitutionalApprovalCertificate; + /// /// txtDesignUnit 控件。 /// @@ -167,6 +176,15 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.TextBox txtDesignUnit; + /// + /// txtSupervisoryAndInspectionAgency 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtSupervisoryAndInspectionAgency; + /// /// txtLosslessTestingAgency 控件。 /// @@ -177,13 +195,13 @@ namespace FineUIPro.Web.JGZL protected global::FineUIPro.TextBox txtLosslessTestingAgency; /// - /// txtSupervisoryAndInspectionAgency 控件。 + /// txtInstallationInspection 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtSupervisoryAndInspectionAgency; + protected global::FineUIPro.TextBox txtInstallationInspection; /// /// txtConstructionUnit 控件。 diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx index 29e7d3a..348c5c4 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx @@ -5,7 +5,7 @@ - 工业管道安装汇总表 + 压力管道安装汇总表 @@ -13,7 +13,7 @@ @@ -25,47 +25,47 @@ - + Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="压力管道安装汇总表" + TitleToolTip="压力管道安装汇总表" AutoScroll="true"> - + - - + + FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px" ExpandUnusedSpace="true"> + FieldType="String" HeaderTextAlign="Center" TextAlign="Left" MinWidth="160px" ExpandUnusedSpace="true"> - - + --%> <%-- --%> @@ -157,11 +157,11 @@ - - diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs index 89b1b29..7085efb 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummary.aspx.cs @@ -198,7 +198,7 @@ namespace FineUIPro.Web.JGZL string rootPath = Server.MapPath("~/"); BLL.Common.FastReportService.ResetData(); - string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId order by DrawingNumber desc"; + string strSql = @"SELECT * from JGZL_IndustrialPipelineInstallationSummary where ProjectId = @ProjectId "; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", projectId)); SqlParameter[] parameter = listStr.ToArray(); @@ -207,11 +207,27 @@ namespace FineUIPro.Web.JGZL DataTable dt = new DataTable(); dt.TableName = "Data"; dt.Columns.Add("Num"); - dt.Columns.Add("ConcealedWorks"); - dt.Columns.Add("DrawingNumber"); - dt.Columns.Add("ConcealedContentAndDiagram"); - dt.Columns.Add("InspectionResults"); - dt.Columns.Add("Remark"); + dt.Columns.Add("PipelineCode"); + dt.Columns.Add("PipelineLevel"); + dt.Columns.Add("DesignPressure"); + dt.Columns.Add("DesignTemperature"); + dt.Columns.Add("OperatingTemperature"); + dt.Columns.Add("Medium"); + dt.Columns.Add("Material"); + dt.Columns.Add("Specifications"); + dt.Columns.Add("Length"); + dt.Columns.Add("LayingMethod"); + dt.Columns.Add("WeldsNum"); + dt.Columns.Add("LosslessRatio"); + dt.Columns.Add("VoltageResistantTestMedium"); + dt.Columns.Add("VoltageResistantTestPressure"); + dt.Columns.Add("VoltageResistantTestDate"); + dt.Columns.Add("LeakageTestMedium"); + dt.Columns.Add("LeakageTestPressure"); + dt.Columns.Add("LeakageTestDate"); + dt.Columns.Add("CleaningMethod"); + dt.Columns.Add("CorrosionControlMethod"); + dt.Columns.Add("InsulationMethod"); DataRow[] rows = tb.DefaultView.ToTable().Select(); int i = 0; @@ -219,20 +235,52 @@ namespace FineUIPro.Web.JGZL { var newRow = dt.NewRow(); newRow["Num"] = (i + 1).ToString(); - newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString(); - newRow["DrawingNumber"] = row["DrawingNumber"].ToString(); - newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString(); - newRow["Remark"] = row["Remark"].ToString(); + newRow["PipelineCode"] = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(row["PipelineCode"].ToString()).ISO_IsoNo; + newRow["PipelineLevel"] = row["PipelineLevel"].ToString(); + newRow["DesignPressure"] = row["DesignPressure"].ToString(); + newRow["DesignTemperature"] = row["DesignTemperature"].ToString(); + newRow["OperatingTemperature"] = row["OperatingTemperature"].ToString(); + newRow["Medium"] = row["Medium"].ToString(); + newRow["Material"] = row["Material"].ToString(); + newRow["Specifications"] = row["Specifications"].ToString(); + newRow["Length"] = row["Length"].ToString(); + newRow["LayingMethod"] = row["LayingMethod"].ToString(); + newRow["WeldsNum"] = row["WeldsNum"].ToString(); + newRow["LosslessRatio"] = row["LosslessRatio"].ToString(); + newRow["VoltageResistantTestMedium"] = row["VoltageResistantTestMedium"].ToString(); + newRow["VoltageResistantTestPressure"] = row["VoltageResistantTestPressure"].ToString(); + string VoltageResistantTestDate = string.Format("{0:yyyy.MM.dd}", row["VoltageResistantTestDate"]); + newRow["VoltageResistantTestDate"] = VoltageResistantTestDate; + newRow["LeakageTestMedium"] = row["LeakageTestMedium"].ToString(); + newRow["LeakageTestPressure"] = row["LeakageTestPressure"].ToString(); + string LeakageTestDate = string.Format("{0:yyyy.MM.dd}", row["LeakageTestDate"]); + newRow["LeakageTestDate"] = LeakageTestDate; + newRow["CleaningMethod"] = row["CleaningMethod"].ToString(); + newRow["CorrosionControlMethod"] = row["CorrosionControlMethod"].ToString(); + newRow["InsulationMethod"] = row["InsulationMethod"].ToString(); dt.Rows.Add(newRow); i++; } BLL.Common.FastReportService.AddFastreportTable(dt); + string certificateCode = string.Empty; + string deliveryUnit = string.Empty; + string deliveryUnitCode = string.Empty; + string certificateId = rows[0]["CertificateId"].ToString(); + var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(certificateId); + if (certificate!=null) + { + certificateCode = certificate.CertificateCode; + deliveryUnit=certificate.DeliveryUnit; + deliveryUnitCode = certificate.DeliveryUnitCode; + } Dictionary keyValuePairs = new Dictionary(); - keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + keyValuePairs.Add("CertificateCode", certificateCode); + keyValuePairs.Add("DeliveryUnit", deliveryUnit); + keyValuePairs.Add("DeliveryUnitCode", deliveryUnitCode); BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); - initTemplatePath = "File\\Fastreport\\JGZL\\工业管道安装汇总表.frx"; + initTemplatePath = "File\\Fastreport\\JGZL\\压力管道安装汇总表.frx"; if (File.Exists(rootPath + initTemplatePath)) { PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx index 66771e4..8f9b0ee 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx @@ -5,7 +5,7 @@ - 编辑工业管道安装汇总表 + 编辑压力管道安装汇总表 @@ -26,85 +26,92 @@ - - <%----%> + + <%----%> - - + + - - + + <%----%> + + + + <%-- + + + + + --%> + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - <%----%> - - - - - + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.cs index 1f19898..e492dd9 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.cs @@ -1,5 +1,6 @@ using BLL; using FastReport; +using Model; using Org.BouncyCastle.Crypto.Tls; using Org.BouncyCastle.Ocsp; using System; @@ -71,6 +72,11 @@ namespace FineUIPro.Web.JGZL { //获取下拉选择项本项目下所有工业管道安装质量证明书信息 IndustrialPipelineInstallationQualityCertificateService.InitIndustrialPipelineInstallationQualityCertificateDownList(this.drpCertificateCode, this.ProjectId, false); + this.drpPipelineCode.DataTextField = "ISO_IsoNo"; + this.drpPipelineCode.DataValueField = "ISO_ID"; + this.drpPipelineCode.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId); + this.drpPipelineCode.DataBind(); + Funs.FineUIPleaseSelect(this.drpPipelineCode); } if (!string.IsNullOrEmpty(this.SummaryId)) { @@ -78,23 +84,33 @@ namespace FineUIPro.Web.JGZL if (report != null) { this.ProjectId = report.ProjectId; - if (!string.IsNullOrWhiteSpace(this.ProjectId)) - { - //获取下拉选择项本项目下所有工业管道安装质量证明书信息 - IndustrialPipelineInstallationQualityCertificateService.InitIndustrialPipelineInstallationQualityCertificateDownList(this.drpCertificateCode, this.ProjectId, false); - this.drpCertificateCode.SelectedValue = report.CertificateId; - this.drpCertificateCode.Readonly = true; - } - var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(report.CertificateId); - this.txtDeliveryUnit.Text = certificate.DeliveryUnit; - this.txtDeliveryUnitCode.Text = certificate.DeliveryUnitCode; + IndustrialPipelineInstallationQualityCertificateService.InitIndustrialPipelineInstallationQualityCertificateDownList(this.drpCertificateCode, this.ProjectId, false); + this.drpPipelineCode.DataTextField = "ISO_IsoNo"; + this.drpPipelineCode.DataValueField = "ISO_ID"; + this.drpPipelineCode.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId); + this.drpPipelineCode.DataBind(); + Funs.FineUIPleaseSelect(this.drpPipelineCode); - this.txtPipelineCode.Text = report.PipelineCode; + if (!string.IsNullOrEmpty(report.CertificateId)) + { + this.drpCertificateCode.SelectedValue = report.CertificateId; + var certificate = BLL.IndustrialPipelineInstallationQualityCertificateService.GetIndustrialPipelineInstallationQualityCertificateById(report.CertificateId); + if (certificate != null) + { + this.txtDeliveryUnit.Text = certificate.DeliveryUnit; + this.txtDeliveryUnitCode.Text = certificate.DeliveryUnitCode; + } + } + if (!string.IsNullOrEmpty(report.PipelineCode)) + { + this.drpPipelineCode.SelectedValue = report.PipelineCode; + } this.txtPipelineLevel.Text = report.PipelineLevel; - this.txtPipelineStartPoint.Text = report.PipelineStartPoint; - this.txtPipelineEndPoint.Text = report.PipelineEndPoint; + //this.txtPipelineStartPoint.Text = report.PipelineStartPoint; + //this.txtPipelineEndPoint.Text = report.PipelineEndPoint; this.txtDesignPressure.Text = report.DesignPressure; this.txtDesignTemperature.Text = report.DesignTemperature; + this.txtOperatingTemperature.Text = report.OperatingTemperature; this.txtMedium.Text = report.Medium; this.txtMaterial.Text = report.Material; this.txtSpecifications.Text = report.Specifications; @@ -102,18 +118,19 @@ namespace FineUIPro.Web.JGZL this.txtLayingMethod.Text = report.LayingMethod; this.txtWeldsNum.Text = report.WeldsNum; this.txtLosslessRatio.Text = report.LosslessRatio; - this.txtVoltageResistantTestMethod.Text = report.VoltageResistantTestMethod; + //this.txtVoltageResistantTestMethod.Text = report.VoltageResistantTestMethod; this.txtVoltageResistantTestMedium.Text = report.VoltageResistantTestMedium; this.txtVoltageResistantTestPressure.Text = report.VoltageResistantTestPressure; + this.txtVoltageResistantTestDate.Text = report.VoltageResistantTestDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.VoltageResistantTestDate) : ""; this.txtLeakageTestMedium.Text = report.LeakageTestMedium; this.txtLeakageTestPressure.Text = report.LeakageTestPressure; + this.txtLeakageTestDate.Text = report.LeakageTestDate.HasValue ? string.Format("{0:yyyy-MM-dd}", report.LeakageTestDate) : ""; this.txtCleaningMethod.Text = report.CleaningMethod; this.txtCorrosionControlMethod.Text = report.CorrosionControlMethod; this.txtInsulationMethod.Text = report.InsulationMethod; this.txtRemark.Text = report.Remark; } } - } } @@ -152,13 +169,25 @@ namespace FineUIPro.Web.JGZL { if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.JGZL_IndustrialPipelineInstallationSummaryMenuId, Const.BtnSave)) { + if (this.drpCertificateCode.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpCertificateCode.SelectedValue)) + { + Alert.ShowInTop("请选择证明书编号!", MessageBoxIcon.Warning); + return; + } + if (this.drpPipelineCode.SelectedValue == BLL.Const._Null || string.IsNullOrEmpty(this.drpPipelineCode.SelectedValue)) + { + Alert.ShowInTop("请选择单线图号!", MessageBoxIcon.Warning); + return; + } Model.JGZL_IndustrialPipelineInstallationSummary newReport = new Model.JGZL_IndustrialPipelineInstallationSummary(); - newReport.PipelineCode = this.txtPipelineCode.Text.Trim(); + newReport.CertificateId = this.drpCertificateCode.SelectedValue; + newReport.PipelineCode = this.drpPipelineCode.SelectedValue; newReport.PipelineLevel = this.txtPipelineLevel.Text.Trim(); - newReport.PipelineStartPoint = this.txtPipelineStartPoint.Text.Trim(); - newReport.PipelineEndPoint = this.txtPipelineEndPoint.Text.Trim(); + //newReport.PipelineStartPoint = this.txtPipelineStartPoint.Text.Trim(); + //newReport.PipelineEndPoint = this.txtPipelineEndPoint.Text.Trim(); newReport.DesignPressure = this.txtDesignPressure.Text.Trim(); newReport.DesignTemperature = this.txtDesignTemperature.Text.Trim(); + newReport.OperatingTemperature = this.txtOperatingTemperature.Text.Trim(); newReport.Medium = this.txtMedium.Text.Trim(); newReport.Material = this.txtMaterial.Text.Trim(); newReport.Specifications = this.txtSpecifications.Text.Trim(); @@ -166,11 +195,13 @@ namespace FineUIPro.Web.JGZL newReport.LayingMethod = this.txtLayingMethod.Text.Trim(); newReport.WeldsNum = this.txtWeldsNum.Text.Trim(); newReport.LosslessRatio = this.txtLosslessRatio.Text.Trim(); - newReport.VoltageResistantTestMethod = this.txtVoltageResistantTestMethod.Text.Trim(); + //newReport.VoltageResistantTestMethod = this.txtVoltageResistantTestMethod.Text.Trim(); newReport.VoltageResistantTestMedium = this.txtVoltageResistantTestMedium.Text.Trim(); newReport.VoltageResistantTestPressure = this.txtVoltageResistantTestPressure.Text.Trim(); + newReport.VoltageResistantTestDate = Funs.GetNewDateTime(this.txtVoltageResistantTestDate.Text); newReport.LeakageTestMedium = this.txtLeakageTestMedium.Text.Trim(); newReport.LeakageTestPressure = this.txtLeakageTestPressure.Text.Trim(); + newReport.LeakageTestDate = Funs.GetNewDateTime(this.txtLeakageTestDate.Text); newReport.CleaningMethod = this.txtCleaningMethod.Text.Trim(); newReport.CorrosionControlMethod = this.txtCorrosionControlMethod.Text.Trim(); newReport.InsulationMethod = this.txtInsulationMethod.Text.Trim(); @@ -179,12 +210,12 @@ namespace FineUIPro.Web.JGZL if (!string.IsNullOrEmpty(this.SummaryId)) { newReport.SummaryId = this.SummaryId; - newReport.CertificateId = this.drpCertificateCode.SelectedValue; + //newReport.CertificateId = this.drpCertificateCode.SelectedValue; BLL.IndustrialPipelineInstallationSummaryService.UpdateIndustrialPipelineInstallationSummary(newReport); } else { - newReport.CertificateId = this.drpCertificateCode.SelectedValue; + //newReport.CertificateId = this.drpCertificateCode.SelectedValue; newReport.ProjectId = this.ProjectId; newReport.CompileMan = this.CurrUser.UserId; newReport.CompileDate = DateTime.Now; @@ -203,6 +234,17 @@ namespace FineUIPro.Web.JGZL return; } } - #endregion + #endregion + + protected void drpPipelineCode_SelectedIndexChanged(object sender, EventArgs e) + { + SGGLDB db = Funs.DB; + this.txtWeldsNum.Text = string.Empty; + if (this.drpPipelineCode.SelectedValue!=BLL.Const._Null&&!string.IsNullOrEmpty(this.drpPipelineCode.SelectedValue)) + { + int jointCount = BLL.HJGL_PW_JointInfoService.GetJointCountByIsoId(this.drpPipelineCode.SelectedValue); + this.txtWeldsNum.Text = jointCount.ToString(); + } + } } } \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs index 7f467f2..288ec0f 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/IndustrialPipelineInstallationSummaryEdit.aspx.designer.cs @@ -96,13 +96,13 @@ namespace FineUIPro.Web.JGZL protected global::FineUIPro.TextBox txtDeliveryUnitCode; /// - /// txtPipelineCode 控件。 + /// drpPipelineCode 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.TextBox txtPipelineCode; + protected global::FineUIPro.DropDownList drpPipelineCode; /// /// txtPipelineLevel 控件。 @@ -113,24 +113,6 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.TextBox txtPipelineLevel; - /// - /// txtPipelineStartPoint 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtPipelineStartPoint; - - /// - /// txtPipelineEndPoint 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtPipelineEndPoint; - /// /// txtDesignPressure 控件。 /// @@ -149,6 +131,15 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.TextBox txtDesignTemperature; + /// + /// txtOperatingTemperature 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtOperatingTemperature; + /// /// txtMedium 控件。 /// @@ -212,15 +203,6 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.TextBox txtLosslessRatio; - /// - /// txtVoltageResistantTestMethod 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtVoltageResistantTestMethod; - /// /// txtVoltageResistantTestMedium 控件。 /// @@ -239,6 +221,15 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.TextBox txtVoltageResistantTestPressure; + /// + /// txtVoltageResistantTestDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtVoltageResistantTestDate; + /// /// txtLeakageTestMedium 控件。 /// @@ -257,6 +248,15 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.TextBox txtLeakageTestPressure; + /// + /// txtLeakageTestDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DatePicker txtLeakageTestDate; + /// /// txtCleaningMethod 控件。 /// @@ -284,6 +284,15 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.TextBox txtInsulationMethod; + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + /// /// txtRemark 控件。 /// diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDoc.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDoc.aspx.cs index 52f3ff9..5583563 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDoc.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDoc.aspx.cs @@ -216,7 +216,6 @@ namespace FineUIPro.Web.JGZL dt.Columns.Add("ReInspectionReportCode"); dt.Columns.Add("ReceivingUnit"); dt.Columns.Add("DrawNum"); - dt.Columns.Add("Remark"); DataRow[] rows = tb.DefaultView.ToTable().Select(); int i = 0; @@ -228,13 +227,13 @@ namespace FineUIPro.Web.JGZL newRow["MaterialCode"] = row["MaterialCode"].ToString(); newRow["SerialCode"] = row["SerialCode"].ToString(); newRow["Material"] = row["Material"].ToString(); + newRow["Specification"] = row["Specification"].ToString(); newRow["Manufacturer"] = row["Manufacturer"].ToString(); newRow["Unit"] = row["Unit"].ToString(); newRow["TotalNum"] = row["TotalNum"].ToString(); newRow["ReInspectionReportCode"] = row["ReInspectionReportCode"].ToString(); newRow["ReceivingUnit"] = row["ReceivingUnit"].ToString(); newRow["DrawNum"] = row["DrawNum"].ToString(); - newRow["Remark"] = row["Remark"].ToString(); dt.Rows.Add(newRow); i++; } diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDocEdit.aspx b/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDocEdit.aspx index 86ceb46..b47900e 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDocEdit.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDocEdit.aspx @@ -26,20 +26,20 @@ - - + + - - + + - + @@ -53,14 +53,15 @@ + - + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDocEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDocEdit.aspx.designer.cs index 3166e5e..3582511 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDocEdit.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/MaterialQualityCertificateDocEdit.aspx.designer.cs @@ -68,15 +68,6 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.Button btnSave; - /// - /// txtMaterialCode 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.TextBox txtMaterialCode; - /// /// txtMaterialName 控件。 /// @@ -86,6 +77,15 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.TextBox txtMaterialName; + /// + /// txtMaterialCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtMaterialCode; + /// /// txtSerialCode 控件。 /// @@ -167,6 +167,15 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.NumberBox txtDrawNum; + /// + /// Label1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label Label1; + /// /// txtRemark 控件。 /// diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.cs index 5aa1f6c..7a8d786 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecord.aspx.cs @@ -195,41 +195,26 @@ namespace FineUIPro.Web.JGZL string rootPath = Server.MapPath("~/"); BLL.Common.FastReportService.ResetData(); - string strSql = @"SELECT * from JGZL_PipelineInstallationInspectionRecord where ProjectId = @ProjectId order by DrawingNumber desc"; - List listStr = new List(); - listStr.Add(new SqlParameter("@ProjectId", projectId)); - SqlParameter[] parameter = listStr.ToArray(); - DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); - - DataTable dt = new DataTable(); - dt.TableName = "Data"; - dt.Columns.Add("Num"); - dt.Columns.Add("ConcealedWorks"); - dt.Columns.Add("DrawingNumber"); - dt.Columns.Add("ConcealedContentAndDiagram"); - dt.Columns.Add("InspectionResults"); - dt.Columns.Add("Remark"); - - DataRow[] rows = tb.DefaultView.ToTable().Select(); - int i = 0; - foreach (var row in rows) + if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID)) { - var newRow = dt.NewRow(); - newRow["Num"] = (i + 1).ToString(); - newRow["ConcealedWorks"] = row["ConcealedWorks"].ToString(); - newRow["DrawingNumber"] = row["DrawingNumber"].ToString(); - newRow["ConcealedContentAndDiagram"] = row["ConcealedContentAndDiagram"].ToString(); - newRow["Remark"] = row["Remark"].ToString(); - dt.Rows.Add(newRow); - i++; + var report = BLL.PipelineInstallationInspectionRecordService.GetPipelineInstallationInspectionRecordById(this.Grid1.SelectedRowID); + if (report != null) + { + Dictionary keyValuePairs = new Dictionary(); + keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); + keyValuePairs.Add("ProfessionalEngineering", report.ProfessionalEngineering); + keyValuePairs.Add("DrawingNumber", report.DrawingNumber); + keyValuePairs.Add("InspectionItems", report.InspectionItems); + keyValuePairs.Add("InspectionResults", report.InspectionResults); + BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); + } } - BLL.Common.FastReportService.AddFastreportTable(dt); - - Dictionary keyValuePairs = new Dictionary(); - keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName); - BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs); - - initTemplatePath = "File\\Fastreport\\JGZL\\隐蔽工程验收记录.frx"; + else + { + Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning); + return; + } + initTemplatePath = "File\\Fastreport\\JGZL\\管道安装检查记录.frx"; if (File.Exists(rootPath + initTemplatePath)) { PageContext.RegisterStartupScript(WindowPrint.GetShowReference(String.Format("../common/ReportPrint/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); diff --git a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.cs index 1386a8e..5a8d2e0 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/PipelineInstallationInspectionRecordEdit.aspx.cs @@ -61,6 +61,14 @@ namespace FineUIPro.Web.JGZL this.txtRemark.Text = report.Remark; } } + else + { + this.txtProfessionalEngineering.Text = "管道安装工程"; + if (!string.IsNullOrEmpty(this.ProjectId)) + { + this.txtDrawingNumber.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.ProjectId).ProjectCode; + } + } } } #endregion diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs index 4db8e92..70f1410 100644 --- a/HJGL_DS/Model/Model.cs +++ b/HJGL_DS/Model/Model.cs @@ -83587,6 +83587,14 @@ namespace Model private System.Nullable _RevieweDate; + private string _DesignLicenseCode; + + private string _QualificationCertificateCode; + + private string _InstitutionalApprovalCertificate; + + private string _InstallationInspection; + private EntityRef _Base_Project; private EntityRef _Sys_User; @@ -83637,6 +83645,14 @@ namespace Model partial void OnReviewerChanged(); partial void OnRevieweDateChanging(System.Nullable value); partial void OnRevieweDateChanged(); + partial void OnDesignLicenseCodeChanging(string value); + partial void OnDesignLicenseCodeChanged(); + partial void OnQualificationCertificateCodeChanging(string value); + partial void OnQualificationCertificateCodeChanged(); + partial void OnInstitutionalApprovalCertificateChanging(string value); + partial void OnInstitutionalApprovalCertificateChanged(); + partial void OnInstallationInspectionChanging(string value); + partial void OnInstallationInspectionChanged(); #endregion public JGZL_IndustrialPipelineInstallationQualityCertificate() @@ -84074,6 +84090,86 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignLicenseCode", DbType="NVarChar(50)")] + public string DesignLicenseCode + { + get + { + return this._DesignLicenseCode; + } + set + { + if ((this._DesignLicenseCode != value)) + { + this.OnDesignLicenseCodeChanging(value); + this.SendPropertyChanging(); + this._DesignLicenseCode = value; + this.SendPropertyChanged("DesignLicenseCode"); + this.OnDesignLicenseCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_QualificationCertificateCode", DbType="NVarChar(50)")] + public string QualificationCertificateCode + { + get + { + return this._QualificationCertificateCode; + } + set + { + if ((this._QualificationCertificateCode != value)) + { + this.OnQualificationCertificateCodeChanging(value); + this.SendPropertyChanging(); + this._QualificationCertificateCode = value; + this.SendPropertyChanged("QualificationCertificateCode"); + this.OnQualificationCertificateCodeChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstitutionalApprovalCertificate", DbType="NVarChar(50)")] + public string InstitutionalApprovalCertificate + { + get + { + return this._InstitutionalApprovalCertificate; + } + set + { + if ((this._InstitutionalApprovalCertificate != value)) + { + this.OnInstitutionalApprovalCertificateChanging(value); + this.SendPropertyChanging(); + this._InstitutionalApprovalCertificate = value; + this.SendPropertyChanged("InstitutionalApprovalCertificate"); + this.OnInstitutionalApprovalCertificateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InstallationInspection", DbType="NVarChar(50)")] + public string InstallationInspection + { + get + { + return this._InstallationInspection; + } + set + { + if ((this._InstallationInspection != value)) + { + this.OnInstallationInspectionChanging(value); + this.SendPropertyChanging(); + this._InstallationInspection = value; + this.SendPropertyChanged("InstallationInspection"); + this.OnInstallationInspectionChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialPipelineInstallationQualityCertificate_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -84227,6 +84323,12 @@ namespace Model private System.Nullable _RevieweDate; + private string _OperatingTemperature; + + private System.Nullable _VoltageResistantTestDate; + + private System.Nullable _LeakageTestDate; + private EntityRef _Base_Project; private EntityRef _Sys_User; @@ -84293,6 +84395,12 @@ namespace Model partial void OnReviewerChanged(); partial void OnRevieweDateChanging(System.Nullable value); partial void OnRevieweDateChanged(); + partial void OnOperatingTemperatureChanging(string value); + partial void OnOperatingTemperatureChanged(); + partial void OnVoltageResistantTestDateChanging(System.Nullable value); + partial void OnVoltageResistantTestDateChanged(); + partial void OnLeakageTestDateChanging(System.Nullable value); + partial void OnLeakageTestDateChanged(); #endregion public JGZL_IndustrialPipelineInstallationSummary() @@ -84890,6 +84998,66 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OperatingTemperature", DbType="NVarChar(50)")] + public string OperatingTemperature + { + get + { + return this._OperatingTemperature; + } + set + { + if ((this._OperatingTemperature != value)) + { + this.OnOperatingTemperatureChanging(value); + this.SendPropertyChanging(); + this._OperatingTemperature = value; + this.SendPropertyChanged("OperatingTemperature"); + this.OnOperatingTemperatureChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VoltageResistantTestDate", DbType="DateTime")] + public System.Nullable VoltageResistantTestDate + { + get + { + return this._VoltageResistantTestDate; + } + set + { + if ((this._VoltageResistantTestDate != value)) + { + this.OnVoltageResistantTestDateChanging(value); + this.SendPropertyChanging(); + this._VoltageResistantTestDate = value; + this.SendPropertyChanged("VoltageResistantTestDate"); + this.OnVoltageResistantTestDateChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LeakageTestDate", DbType="DateTime")] + public System.Nullable LeakageTestDate + { + get + { + return this._LeakageTestDate; + } + set + { + if ((this._LeakageTestDate != value)) + { + this.OnLeakageTestDateChanging(value); + this.SendPropertyChanging(); + this._LeakageTestDate = value; + this.SendPropertyChanged("LeakageTestDate"); + this.OnLeakageTestDateChanged(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_JGZL_IndustrialPipelineInstallationSummary_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)] public Base_Project Base_Project { @@ -119118,8 +119286,6 @@ namespace Model private string _Wed_name; - private string _DepartName; - private string _WED_Sex; private System.Nullable _TotalSize; @@ -119234,22 +119400,6 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DepartName", DbType="NVarChar(50)")] - public string DepartName - { - get - { - return this._DepartName; - } - set - { - if ((this._DepartName != value)) - { - this._DepartName = value; - } - } - } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WED_Sex", DbType="Char(1)")] public string WED_Sex {