This commit is contained in:
2025-02-14 16:48:50 +08:00
parent 86b1e8b3da
commit 6d4a7e82a7
51 changed files with 1888 additions and 339 deletions
@@ -267,14 +267,15 @@ namespace FineUIPro.Web.HJGL.CheckManage
if (ptReport != null)
{
this.TestingReportPrintId = ptReport.TestingReportPrintId;
if (!string.IsNullOrEmpty(ptReport.ReportCode) && ptReport.ReportCode.Length > 3)
{
this.txtPTReportCode.Text = ptReport.ReportCode.Substring(3);//报告编号
}
else
{
this.txtPTReportCode.Text = ptReport.ReportCode;
}
//if (!string.IsNullOrEmpty(ptReport.ReportCode) && ptReport.ReportCode.Length > 3)
//{
// this.txtPTReportCode.Text = ptReport.ReportCode.Substring(3);//报告编号
//}
//else
//{
// this.txtPTReportCode.Text = ptReport.ReportCode;
//}
this.txtPTReportCode.Text = ptReport.ReportCode;
this.hdReportCode.Text = ptReport.ReportCode;
//this.txtContractUnit.Text = ptReport.ContractUnitId;//承包单位
@@ -299,8 +300,8 @@ namespace FineUIPro.Web.HJGL.CheckManage
}
else
{
this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId3", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, "PT-" + pro.TestEngineeringCode + "-");
this.txtPTReportCode.Text = this.hdReportCode.Text.Substring(3);
this.hdReportCode.Text = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCodeByProjectId3", "HJGL_CH_TestingReportPrint", "ReportCode", iso.ProjectId, pro.TestEngineeringCode + "-PT-");
this.txtPTReportCode.Text = this.hdReportCode.Text;
this.txtContractUnit.Text = "镇海石化建安工程有限公司";
}
BindGrid();