feat: 完善材料维护、管线导入与焊接检测报表
为支持材料数量修正和局部管线更新,补充维护与导入入口并隔离窗口审核状态;同步修正焊接日报、外观检测及委托单输出,并简化材料匹配逻辑。
This commit is contained in:
@@ -613,7 +613,7 @@ namespace FineUIPro.Web.HJGL.DataImport
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 打开材料信息维护窗口,按管线材料ID维护材料主编码和材料编码。
|
||||
/// 打开材料信息维护窗口,按管线材料ID维护材料编码、数量和用途。
|
||||
/// </summary>
|
||||
private void OpenMaterialCodeEdit(Grid grid)
|
||||
{
|
||||
@@ -635,7 +635,7 @@ namespace FineUIPro.Web.HJGL.DataImport
|
||||
return;
|
||||
}
|
||||
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("MaterialInformationEdit.aspx?PipeLineMatId={0}", grid.SelectedRowID), "维护材料信息", 500, 300));
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("MaterialInformationEdit.aspx?PipeLineMatId={0}", grid.SelectedRowID), "维护材料信息", 500, 380));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>维护材料编码</title>
|
||||
<title>维护材料信息</title>
|
||||
<base target="_self" />
|
||||
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
@@ -30,6 +30,14 @@
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtNumber" runat="server" Label="数量" LabelWidth="100px"
|
||||
Required="true" ShowRedStar="true" NoNegative="true" NoDecimal="false"
|
||||
DecimalPrecision="2" MinValue="0" MaxValue="9999999.99">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtHeatNo" runat="server" Label="炉号"
|
||||
|
||||
@@ -44,6 +44,7 @@ namespace FineUIPro.Web.HJGL.DataImport
|
||||
? Const._Null
|
||||
: pipeLineMat.MaterialCode;
|
||||
this.txtMaterialCode.Text = pipeLineMat.MaterialCode2;
|
||||
this.txtNumber.Text = pipeLineMat.Number.ToString();
|
||||
this.drpPipeArea.SelectedValue = string.IsNullOrEmpty(pipeLineMat.PipeArea)
|
||||
? PipelineService.PipeArea_SHOP
|
||||
: pipeLineMat.PipeArea;
|
||||
@@ -100,16 +101,25 @@ namespace FineUIPro.Web.HJGL.DataImport
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存材料主编码和材料编码。
|
||||
/// 保存材料编码、数量和用途。
|
||||
/// </summary>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.PipeLineMatId))
|
||||
Model.HJGL_PipeLineMat pipeLineMat = PipelineMatService.GetPipeLineMat(this.PipeLineMatId);
|
||||
if (pipeLineMat == null)
|
||||
{
|
||||
Alert.ShowInTop("未找到材料记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
decimal number;
|
||||
if (!decimal.TryParse(this.txtNumber.Text.Trim(), out number)
|
||||
|| number < 0m || number > 9999999.99m || decimal.Round(number, 2) != number)
|
||||
{
|
||||
Alert.ShowInTop("数量请输入0至9999999.99之间的数值,最多保留两位小数!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
string mainMaterialCode = GetMainMaterialCode();
|
||||
if (!string.IsNullOrEmpty(mainMaterialCode) && MaterialCodeLibService.GetMaterialCodeLib(mainMaterialCode) == null)
|
||||
{
|
||||
@@ -117,11 +127,11 @@ namespace FineUIPro.Web.HJGL.DataImport
|
||||
return;
|
||||
}
|
||||
|
||||
PipelineMatService.UpdateMaterialCodes(
|
||||
this.PipeLineMatId,
|
||||
mainMaterialCode,
|
||||
this.txtMaterialCode.Text.Trim());
|
||||
PipelineMatService.UpdatePipeArea(this.PipeLineMatId, this.drpPipeArea.SelectedValue);
|
||||
pipeLineMat.MaterialCode = mainMaterialCode;
|
||||
pipeLineMat.MaterialCode2 = this.txtMaterialCode.Text.Trim();
|
||||
pipeLineMat.Number = number;
|
||||
pipeLineMat.PipeArea = this.drpPipeArea.SelectedValue;
|
||||
PipelineMatService.UpdatePipeLineMat(pipeLineMat);
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
|
||||
@@ -59,6 +59,11 @@ namespace FineUIPro.Web.HJGL.DataImport
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMaterialCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtNumber 控件。
|
||||
/// </summary>
|
||||
protected global::FineUIPro.NumberBox txtNumber;
|
||||
|
||||
/// <summary>
|
||||
/// txtHeatNo 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user