This commit is contained in:
2024-05-23 09:35:43 +08:00
parent df39b88c09
commit 6c7c257fd2
8 changed files with 255 additions and 32 deletions
@@ -324,6 +324,9 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
{
if (ansi != "FB")
{
txtDia.Readonly = true;
txtThickness.Readonly = true;
if (dn.First().OutSizeDia != null)
{
dia = dn.First().OutSizeDia.ToString();
@@ -459,6 +462,9 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
// 非美标FB
else
{
txtDia.Readonly = false;
txtThickness.Readonly = false;
if (dn.First().OutSize_FB != null)
{
dia = dn.First().OutSize_FB.ToString();
@@ -482,7 +488,25 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
this.txtSpecification.Text = "Φ" + dia + "×" + sch;
}
}
}
}
/// <summary>
/// 选择外径和壁厚自动获取规格
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtText_TextChanged(object sender, EventArgs e)
{
string dn = string.Empty;
string s = string.Empty;
if (!string.IsNullOrEmpty(this.txtDia.Text.Trim()))
{
dn = this.txtDia.Text.Trim();
if (!string.IsNullOrEmpty(this.txtThickness.Text.Trim()))
{
this.txtSpecification.Text = "Φ" + dn + "×" + this.txtThickness.Text.Trim();
}
}
}