This commit is contained in:
parent
e04f1e7ef8
commit
4efd159b3b
|
@ -868,6 +868,13 @@ namespace FineUIPro.Web.HJGL.DataIn
|
|||
if (getJoint == null)
|
||||
{
|
||||
newJointInfo.JOT_JointNo = col2;
|
||||
if (col8 == "固定")
|
||||
{
|
||||
if (!newJointInfo.JOT_JointNo.Contains("G"))
|
||||
{
|
||||
newJointInfo.JOT_JointNo = newJointInfo.JOT_JointNo + "G";
|
||||
}
|
||||
}
|
||||
newJointInfo.JOT_ID = SQLHelper.GetNewID(typeof(Model.HJGL_PW_JointInfo));
|
||||
BLL.HJGL_PW_JointInfoService.AddJointInfo(newJointInfo);
|
||||
// 更新排序字段
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
EnableEdit="true" LabelWidth="100px">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="ddlJointAttribute" Label="焊口属性" runat="server" ShowRedStar="true"
|
||||
Required="true" EnableEdit="true" LabelWidth="100px">
|
||||
Required="true" EnableEdit="true" LabelWidth="100px" AutoPostBack="true" OnSelectedIndexChanged="ddlJointAttribute_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="ddlWME_ID" Label="焊接方法" runat="server" ShowRedStar="true" Required="true"
|
||||
EnableEdit="true" LabelWidth="100px">
|
||||
|
|
|
@ -404,6 +404,20 @@
|
|||
if (!string.IsNullOrEmpty(jointInfo.JOT_JointAttribute))
|
||||
{
|
||||
this.ddlJointAttribute.SelectedValue = jointInfo.JOT_JointAttribute;
|
||||
if (this.ddlJointAttribute.SelectedValue == "固定")
|
||||
{
|
||||
if (!this.txtJointNo.Text.Trim().Contains("G"))
|
||||
{
|
||||
this.txtJointNo.Text = this.txtJointNo.Text.Trim() + "G";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.txtJointNo.Text.Trim().Contains("G"))
|
||||
{
|
||||
this.txtJointNo.Text = this.txtJointNo.Text.Trim().Replace("G", "");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(jointInfo.WME_ID))
|
||||
{
|
||||
|
@ -1216,5 +1230,23 @@
|
|||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void ddlJointAttribute_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.ddlJointAttribute.SelectedValue == "固定")
|
||||
{
|
||||
if (!this.txtJointNo.Text.Trim().Contains("G"))
|
||||
{
|
||||
this.txtJointNo.Text = this.txtJointNo.Text.Trim() + "G";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this.txtJointNo.Text.Trim().Contains("G"))
|
||||
{
|
||||
this.txtJointNo.Text = this.txtJointNo.Text.Trim().Replace("G","");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -20,7 +20,7 @@
|
|||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊材入库录入" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="StockInId" AllowCellEditing="true" ClicksToEdit="2"
|
||||
DataIDField="StockInId" AllowSorting="true" SortField="WeldName" SortDirection="ASC"
|
||||
DataIDField="StockInId" AllowSorting="true" SortField="InStockDate" SortDirection="DESC"
|
||||
OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="15"
|
||||
OnPageIndexChange="Grid1_PageIndexChange" AllowFilters="true" OnFilterChange="Grid1_FilterChange"
|
||||
EnableTextSelection="True" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
|
|
Loading…
Reference in New Issue