11
This commit is contained in:
@@ -69,11 +69,11 @@
|
||||
</f:DropDownList>
|
||||
<f:NumberBox ID="txtDia" Label="<%$ Resources:Lan,ExternalDiameter %>" runat="server"
|
||||
LabelWidth="130px" DecimalPrecision="4" NoNegative="true" ShowRedStar="true"
|
||||
Required="true" Readonly="true">
|
||||
AutoPostBack="true" OnTextChanged="txtText_TextChanged" Required="true" Readonly="true">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtThickness" Label="<%$ Resources:Lan,WallThickness %>" runat="server"
|
||||
LabelWidth="130px" DecimalPrecision="4" NoNegative="true" ShowRedStar="true"
|
||||
Required="true" Readonly="true">
|
||||
AutoPostBack="true" OnTextChanged="txtText_TextChanged" Required="true" Readonly="true">
|
||||
</f:NumberBox>
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,10 +63,10 @@
|
||||
<f:DropDownList ID="drpANSISCH" Label="美标壁厚" AutoPostBack="true" OnSelectedIndexChanged="drpANSISCH_OnSelectedIndexChanged"
|
||||
runat="server" ShowRedStar="true" Required="true" EnableEdit="true" LabelWidth="130px">
|
||||
</f:DropDownList>
|
||||
<f:NumberBox ID="txtDia" Label="<%$ Resources:Lan,ExternalDiameter %>" runat="server"
|
||||
<f:NumberBox ID="txtDia" Label="<%$ Resources:Lan,ExternalDiameter %>" runat="server" AutoPostBack="true" OnTextChanged="txtText_TextChanged"
|
||||
LabelWidth="130px" DecimalPrecision="4" NoNegative="true" ShowRedStar="true" Required="true" Readonly="true">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtThickness" Label="<%$ Resources:Lan,WallThickness %>" runat="server"
|
||||
<f:NumberBox ID="txtThickness" Label="<%$ Resources:Lan,WallThickness %>" runat="server" AutoPostBack="true" OnTextChanged="txtText_TextChanged"
|
||||
LabelWidth="130px" DecimalPrecision="4" NoNegative="true" ShowRedStar="true" Required="true"
|
||||
Readonly="true">
|
||||
</f:NumberBox>
|
||||
|
||||
@@ -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