20260429 按焊缝类型自动生成焊口前缀

This commit is contained in:
毕文静 2026-04-29 17:13:55 +08:00
parent e3bd464715
commit c5193c5ad5
1 changed files with 39 additions and 3 deletions

View File

@ -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";
}
}
}
}