From c5193c5ad596c3abd9390335c6e92cb6ca6f5e44 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Wed, 29 Apr 2026 17:13:55 +0800 Subject: [PATCH] =?UTF-8?q?20260429=20=E6=8C=89=E7=84=8A=E7=BC=9D=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E7=84=8A=E5=8F=A3?= =?UTF-8?q?=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HJGL/WeldingManage/JointInfoEdit.aspx.cs | 42 +++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs index 63548d3..c218ce5 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs @@ -918,7 +918,7 @@ var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(this.ISO_ID); if (isoInfo != null) { - if (joty.JOTY_Group == "1") + if (joty.JOTY_Group == "1")//对接 { if (!string.IsNullOrEmpty(isoInfo.Joty_B_Rate)) { @@ -937,7 +937,7 @@ this.drpJOT_QualifiedLevel.SelectedValue = BLL.Const._Null; } } - else if (joty.JOTY_Group == "2") + else if (joty.JOTY_Group == "2")//角焊缝(承插) { if (!string.IsNullOrEmpty(isoInfo.Joty_C_Rate)) { @@ -955,8 +955,26 @@ { this.drpJOT_QualifiedLevel.SelectedValue = BLL.Const._Null; } + + //焊口号前自动加C + string jointNo = this.txtJointNo.Text.Trim(); + if (!string.IsNullOrEmpty(jointNo)) + { + if (char.IsDigit(jointNo[0])) + { + this.txtJointNo.Text = "C" + jointNo; + } + else + { + this.txtJointNo.Text = "C" + jointNo.Substring(1); + } + } + else + { + this.txtJointNo.Text = "C"; + } } - else if (joty.JOTY_Group == "3") + else if (joty.JOTY_Group == "3")//支管连接焊缝 { if (!string.IsNullOrEmpty(isoInfo.Joty_D_Rate)) { @@ -974,6 +992,24 @@ { this.drpJOT_QualifiedLevel.SelectedValue = BLL.Const._Null; } + + //焊口号前自动加D + string jointNo = this.txtJointNo.Text.Trim(); + if (!string.IsNullOrEmpty(jointNo)) + { + if (char.IsDigit(jointNo[0])) + { + this.txtJointNo.Text = "D" + jointNo; + } + else + { + this.txtJointNo.Text = "D" + jointNo.Substring(1); + } + } + else + { + this.txtJointNo.Text = "D"; + } } } }