11
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user