feat(hjgl): 完善焊前检查和防腐检查流程
焊前检查需要同时覆盖下料、组对和防腐检查,并支持移动端查询与保存。 扩展焊前检查模型、服务和页面字段,补充检查结果、不合格原因、整改要求、 附件和防腐检查记录,便于按焊口和材料追溯检查过程。
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
using BLL;
|
||||
using System;
|
||||
|
||||
namespace FineUIPro.Web.HJGL.DataImport
|
||||
{
|
||||
public partial class MaterialInformationEdit : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 管线材料ID。
|
||||
/// </summary>
|
||||
public string PipeLineMatId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["PipeLineMatId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["PipeLineMatId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
this.PipeLineMatId = Request.Params["PipeLineMatId"];
|
||||
|
||||
Model.HJGL_PipeLineMat pipeLineMat = PipelineMatService.GetPipeLineMat(this.PipeLineMatId);
|
||||
if (pipeLineMat == null)
|
||||
{
|
||||
Alert.ShowInTop("未找到材料记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
this.txtMaterialCode.Text = pipeLineMat.MaterialCode2;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存材料编码。
|
||||
/// </summary>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.PipeLineMatId))
|
||||
{
|
||||
Alert.ShowInTop("未找到材料记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
PipelineMatService.UpdateMaterialCode2(this.PipeLineMatId, this.txtMaterialCode.Text.Trim());
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user