11
This commit is contained in:
@@ -633,12 +633,16 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
string ansi = drpANSISCH.SelectedValue;
|
||||
string dia = string.Empty;
|
||||
string sch = string.Empty;
|
||||
|
||||
var dn = from x in Funs.DB.Base_DNCompare where x.PipeSize == Funs.GetNewDecimal(txtSize.Text.Trim()) select x;
|
||||
|
||||
if (dn.Count() > 0)
|
||||
{
|
||||
if (ansi != "FB")
|
||||
{
|
||||
txtDia.Readonly = true;
|
||||
txtThickness.Readonly = true;
|
||||
|
||||
if (dn.First().OutSizeDia != null)
|
||||
{
|
||||
dia = dn.First().OutSizeDia.ToString();
|
||||
@@ -774,6 +778,9 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
|
||||
else // 非美标FB
|
||||
{
|
||||
txtDia.Readonly = false;
|
||||
txtThickness.Readonly = false;
|
||||
|
||||
if (dn.First().OutSize_FB != null)
|
||||
{
|
||||
dia = dn.First().OutSize_FB.ToString();
|
||||
@@ -799,6 +806,26 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <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();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user