This commit is contained in:
parent
65ae08adeb
commit
53ed648066
|
|
@ -25,17 +25,6 @@
|
|||
<f:HiddenField ID="hdQualityCertificateId" runat="server"></f:HiddenField>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="45% 5% 50%">
|
||||
<Items>
|
||||
<f:TextBox ID="txtWeldName" runat="server" Label="焊材牌号" LabelAlign="Right" Readonly="true"
|
||||
ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
<f:Button runat="server" ID="btnSelect" Icon="Find" OnClick="btnSelect_Click" ToolTip="查找焊材信息">
|
||||
</f:Button>
|
||||
<f:TextBox ID="txtWeldSpec" runat="server" Label="规格" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpWarrantybook" runat="server" Label="入库自编号" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
|
||||
|
|
@ -45,6 +34,17 @@
|
|||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="45% 5% 50%">
|
||||
<Items>
|
||||
<f:TextBox ID="txtWeldName" runat="server" Label="焊材牌号" LabelAlign="Right" Readonly="true"
|
||||
ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
<f:Button runat="server" ID="btnSelect" Icon="Find" OnClick="btnSelect_Click" ToolTip="查找焊材信息" Hidden="true">
|
||||
</f:Button>
|
||||
<f:TextBox ID="txtWeldSpec" runat="server" Label="规格" LabelAlign="Right" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label runat="server" ID="txtHeartNo" Label="批号" LabelAlign="Right"></f:Label>
|
||||
|
|
|
|||
|
|
@ -206,9 +206,31 @@ namespace FineUIPro.Web.HJGL.MaterialManage
|
|||
protected void drpWarrantybook_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.txtHeartNo.Text = string.Empty;
|
||||
this.txtWeldName.Text = string.Empty;
|
||||
this.txtWeldSpec.Text = string.Empty;
|
||||
this.txtWeldType.Text = string.Empty;
|
||||
if (this.drpWarrantybook.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
this.txtHeartNo.Text = this.drpWarrantybook.SelectedValue;
|
||||
Model.Weld_StockIn s = (from x in Funs.DB.Weld_StockIn where x.Warrantybook == this.drpWarrantybook.SelectedItem.Text.Trim() select x).FirstOrDefault();
|
||||
if (s != null)
|
||||
{
|
||||
var weld = BLL.WeldInfoService.GetWeldInfoById(s.WeldId);
|
||||
if (weld != null)
|
||||
{
|
||||
//this.txtWeldCode.Text = weld.WeldCode;
|
||||
this.txtWeldName.Text = weld.WeldName;
|
||||
this.txtWeldSpec.Text = weld.WeldSpec;
|
||||
if (!string.IsNullOrEmpty(weld.WeldTypeId))
|
||||
{
|
||||
var weldType = BLL.WeldTypeService.GetWeldTypeById(weld.WeldTypeId);
|
||||
if (weldType != null)
|
||||
{
|
||||
this.txtWeldType.Text = weldType.WeldTypeName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,24 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdQualityCertificateId;
|
||||
|
||||
/// <summary>
|
||||
/// drpWarrantybook 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWarrantybook;
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldType;
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldName 控件。
|
||||
/// </summary>
|
||||
|
|
@ -84,24 +102,6 @@ namespace FineUIPro.Web.HJGL.MaterialManage {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldSpec;
|
||||
|
||||
/// <summary>
|
||||
/// drpWarrantybook 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWarrantybook;
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldType;
|
||||
|
||||
/// <summary>
|
||||
/// txtHeartNo 控件。
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Reference in New Issue