11
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using BLL;
|
||||
using System.Linq;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement.Header;
|
||||
|
||||
namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
{
|
||||
@@ -125,6 +126,10 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
this.drpJointAttribute.DataSource = BLL.DropListService.HJGL_JointAttributeItem();
|
||||
this.drpJointAttribute.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpJointAttribute,Resources.Lan.PleaseSelect);
|
||||
|
||||
// 物料码
|
||||
BLL.MaterialCoodeService.InitCoodeDropDownList(this.drpCoode1, this.CurrUser.LoginProjectId, true, Resources.Lan.PleaseSelect);//Coode1
|
||||
BLL.MaterialCoodeService.InitCoodeDropDownList(this.drpCoode2, this.CurrUser.LoginProjectId, true, Resources.Lan.PleaseSelect);//Coode2
|
||||
///组件1号
|
||||
Base_ComponentsService.InitComponentsDropDownList(this.drpPipeAssembly1, true,Resources.Lan.PleaseSelect);
|
||||
///组件2号
|
||||
@@ -285,8 +290,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
{
|
||||
this.drpWeldingMethod.SelectedValue = jointInfo.WeldingMethodId;
|
||||
}
|
||||
this.txtHeartNo1.Text = jointInfo.HeartNo1;
|
||||
this.txtHeartNo2.Text = jointInfo.HeartNo2;
|
||||
|
||||
if (!string.IsNullOrEmpty(jointInfo.GrooveTypeId))
|
||||
{
|
||||
this.drpGrooveType.SelectedValue = jointInfo.GrooveTypeId;
|
||||
@@ -349,8 +353,19 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
this.txtTestPackageNo.Text = jointInfo.TestPackageNo;
|
||||
this.txtPrepareTemp.Text = jointInfo.PrepareTemp;
|
||||
txtPageNum.Text = jointInfo.PageNum;
|
||||
txtCoode1.Text = jointInfo.Coode1;
|
||||
txtCoode2.Text = jointInfo.Coode2;
|
||||
if (!string.IsNullOrEmpty(jointInfo.Coode1))
|
||||
{
|
||||
drpCoode1.SelectedValue = jointInfo.Coode1;
|
||||
BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo1, drpCoode1.SelectedValue, true, Resources.Lan.PleaseSelect);
|
||||
drpHeartNo1.SelectedValue = jointInfo.Coode1;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(jointInfo.Coode2))
|
||||
{
|
||||
drpCoode2.SelectedValue = jointInfo.Coode2;
|
||||
BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo2, drpCoode2.SelectedValue, true, Resources.Lan.PleaseSelect);
|
||||
drpHeartNo2.SelectedValue = jointInfo.Coode2;
|
||||
}
|
||||
|
||||
this.txtRemark.Text = jointInfo.Remark;
|
||||
}
|
||||
}
|
||||
@@ -429,7 +444,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
if (this.drpJointAttribute.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newJointInfo.JointAttribute = this.drpJointAttribute.SelectedValue;
|
||||
if (this.drpJointAttribute.SelectedValue == "活动S")
|
||||
if (this.drpJointAttribute.SelectedValue == "S")
|
||||
{
|
||||
newJointInfo.JointArea = "S";
|
||||
}
|
||||
@@ -468,8 +483,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
{
|
||||
newJointInfo.WeldingMethodId = this.drpWeldingMethod.SelectedValue;
|
||||
}
|
||||
newJointInfo.HeartNo1 = this.txtHeartNo1.Text.Trim();
|
||||
newJointInfo.HeartNo2 = this.txtHeartNo2.Text.Trim();
|
||||
|
||||
if (this.drpGrooveType.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newJointInfo.GrooveTypeId = this.drpGrooveType.SelectedValue;
|
||||
@@ -503,8 +517,24 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
newJointInfo.TestPackageNo = this.txtTestPackageNo.Text.Trim();
|
||||
newJointInfo.PrepareTemp = this.txtPrepareTemp.Text.Trim();
|
||||
newJointInfo.PageNum = txtPageNum.Text.Trim();
|
||||
newJointInfo.Coode1 = txtCoode1.Text.Trim();
|
||||
newJointInfo.Coode2 = txtCoode2.Text.Trim();
|
||||
if (drpCoode1.SelectedValue != Const._Null)
|
||||
{
|
||||
newJointInfo.Coode1 = drpCoode1.SelectedValue;
|
||||
}
|
||||
if (drpHeartNo1.SelectedValue != Const._Null)
|
||||
{
|
||||
newJointInfo.HeartNo1 = drpHeartNo1.SelectedValue;
|
||||
}
|
||||
|
||||
if (drpCoode2.SelectedValue != Const._Null)
|
||||
{
|
||||
newJointInfo.Coode2=drpCoode2.SelectedValue;
|
||||
}
|
||||
if (drpHeartNo2.SelectedValue != Const._Null)
|
||||
{
|
||||
newJointInfo.HeartNo2 = drpHeartNo2.SelectedValue;
|
||||
}
|
||||
|
||||
newJointInfo.Remark = this.txtRemark.Text.Trim();
|
||||
newJointInfo.WPQId = drpWPS.SelectedValue;
|
||||
newJointInfo.DetectionType = string.Join("|", drpNDTType.SelectedValueArray);
|
||||
@@ -628,6 +658,24 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
|
||||
}
|
||||
|
||||
protected void drpCoode1_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (drpCoode1.SelectedValue != Const._Null)
|
||||
{
|
||||
drpHeartNo1.Items.Clear();
|
||||
BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo1, drpCoode1.SelectedValue, true, Resources.Lan.PleaseSelect);//HeartNo1
|
||||
}
|
||||
}
|
||||
|
||||
protected void drpCoode2_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (drpCoode2.SelectedValue != Const._Null)
|
||||
{
|
||||
drpHeartNo2.Items.Clear();
|
||||
BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo2, drpCoode2.SelectedValue, true, Resources.Lan.PleaseSelect);//HeartNo2
|
||||
}
|
||||
}
|
||||
|
||||
#region 外径、壁厚输入框事件
|
||||
/// <summary>
|
||||
/// 选择外径和壁厚自动获取规格
|
||||
@@ -645,136 +693,157 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
|
||||
|
||||
if (dn.Count()>0)
|
||||
{
|
||||
if (dn.First().OutSizeDia != null)
|
||||
if (ansi != "FB")
|
||||
{
|
||||
dia = dn.First().OutSizeDia.ToString();
|
||||
txtDia.Readonly = true;
|
||||
txtThickness.Readonly = true;
|
||||
|
||||
if (dn.First().OutSizeDia != null)
|
||||
{
|
||||
dia = dn.First().OutSizeDia.ToString();
|
||||
}
|
||||
|
||||
if (ansi == "5")
|
||||
{
|
||||
if (dn.First().SCH5 != null)
|
||||
{
|
||||
sch = dn.First().SCH5.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "5S")
|
||||
{
|
||||
if (dn.First().SCH5S != null)
|
||||
{
|
||||
sch = dn.First().SCH5S.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "10")
|
||||
{
|
||||
if (dn.First().SCH10 != null)
|
||||
{
|
||||
sch = dn.First().SCH10.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "10S")
|
||||
{
|
||||
if (dn.First().SCH10S != null)
|
||||
{
|
||||
sch = dn.First().SCH10S.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "20")
|
||||
{
|
||||
if (dn.First().SCH20 != null)
|
||||
{
|
||||
sch = dn.First().SCH20.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "30")
|
||||
{
|
||||
if (dn.First().SCH30 != null)
|
||||
{
|
||||
sch = dn.First().SCH30.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "40")
|
||||
{
|
||||
if (dn.First().SCH40 != null)
|
||||
{
|
||||
sch = dn.First().SCH40.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "40S")
|
||||
{
|
||||
if (dn.First().SCH40S != null)
|
||||
{
|
||||
sch = dn.First().SCH40S.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "STD")
|
||||
{
|
||||
if (dn.First().STD != null)
|
||||
{
|
||||
sch = dn.First().STD.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "60")
|
||||
{
|
||||
if (dn.First().SCH60 != null)
|
||||
{
|
||||
sch = dn.First().SCH60.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "80")
|
||||
{
|
||||
if (dn.First().SCH80 != null)
|
||||
{
|
||||
sch = dn.First().SCH80.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "80S")
|
||||
{
|
||||
if (dn.First().SCH80S != null)
|
||||
{
|
||||
sch = dn.First().SCH80S.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "XS")
|
||||
{
|
||||
if (dn.First().XS != null)
|
||||
{
|
||||
sch = dn.First().XS.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "100")
|
||||
{
|
||||
if (dn.First().SCH100 != null)
|
||||
{
|
||||
sch = dn.First().SCH100.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "120")
|
||||
{
|
||||
if (dn.First().SCH120 != null)
|
||||
{
|
||||
sch = dn.First().SCH120.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "140")
|
||||
{
|
||||
if (dn.First().SCH140 != null)
|
||||
{
|
||||
sch = dn.First().SCH140.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "160")
|
||||
{
|
||||
if (dn.First().SCH160 != null)
|
||||
{
|
||||
sch = dn.First().SCH160.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "XXS")
|
||||
{
|
||||
if (dn.First().XXS != null)
|
||||
{
|
||||
sch = dn.First().XXS.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ansi == "5")
|
||||
else // 非美标FB
|
||||
{
|
||||
if (dn.First().SCH5 != null)
|
||||
{
|
||||
sch = dn.First().SCH5.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "5S")
|
||||
{
|
||||
if (dn.First().SCH5S != null)
|
||||
{
|
||||
sch = dn.First().SCH5S.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "10")
|
||||
{
|
||||
if (dn.First().SCH10 != null)
|
||||
{
|
||||
sch = dn.First().SCH10.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "10S")
|
||||
{
|
||||
if (dn.First().SCH10S != null)
|
||||
{
|
||||
sch = dn.First().SCH10S.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "20")
|
||||
{
|
||||
if (dn.First().SCH20 != null)
|
||||
{
|
||||
sch = dn.First().SCH20.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "30")
|
||||
{
|
||||
if (dn.First().SCH30 != null)
|
||||
{
|
||||
sch = dn.First().SCH30.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "40")
|
||||
{
|
||||
if (dn.First().SCH40 != null)
|
||||
{
|
||||
sch = dn.First().SCH40.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "40S")
|
||||
{
|
||||
if (dn.First().SCH40S != null)
|
||||
{
|
||||
sch = dn.First().SCH40S.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "STD")
|
||||
{
|
||||
if (dn.First().STD != null)
|
||||
{
|
||||
sch = dn.First().STD.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "60")
|
||||
{
|
||||
if (dn.First().SCH60 != null)
|
||||
{
|
||||
sch = dn.First().SCH60.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "80")
|
||||
{
|
||||
if (dn.First().SCH80 != null)
|
||||
{
|
||||
sch = dn.First().SCH80.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "80S")
|
||||
{
|
||||
if (dn.First().SCH80S != null)
|
||||
{
|
||||
sch = dn.First().SCH80S.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "XS")
|
||||
{
|
||||
if (dn.First().XS != null)
|
||||
{
|
||||
sch = dn.First().XS.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "100")
|
||||
{
|
||||
if (dn.First().SCH100 != null)
|
||||
{
|
||||
sch = dn.First().SCH100.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "120")
|
||||
{
|
||||
if (dn.First().SCH120 != null)
|
||||
{
|
||||
sch = dn.First().SCH120.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "140")
|
||||
{
|
||||
if (dn.First().SCH140 != null)
|
||||
{
|
||||
sch = dn.First().SCH140.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "160")
|
||||
{
|
||||
if (dn.First().SCH160 != null)
|
||||
{
|
||||
sch = dn.First().SCH160.ToString();
|
||||
}
|
||||
}
|
||||
if (ansi == "XXS")
|
||||
{
|
||||
if (dn.First().XXS != null)
|
||||
{
|
||||
sch = dn.First().XXS.ToString();
|
||||
}
|
||||
txtDia.Readonly = false;
|
||||
txtThickness.Readonly = false;
|
||||
|
||||
//if (dn.First().OutSize_FB != null)
|
||||
//{
|
||||
// dia = dn.First().OutSize_FB.ToString();
|
||||
//}
|
||||
//if (dn.First().SCH_FB != null)
|
||||
//{
|
||||
// sch = dn.First().SCH_FB.ToString();
|
||||
//}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(dia))
|
||||
@@ -792,6 +861,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