feat(hjgl): 完善焊前检查和防腐检查流程
焊前检查需要同时覆盖下料、组对和防腐检查,并支持移动端查询与保存。 扩展焊前检查模型、服务和页面字段,补充检查结果、不合格原因、整改要求、 附件和防腐检查记录,便于按焊口和材料追溯检查过程。
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
using BLL;
|
||||
using System;
|
||||
|
||||
namespace FineUIPro.Web.CLGL
|
||||
{
|
||||
public partial class AntiCorrosionCheckRecordView : PageBase
|
||||
{
|
||||
public string AntiCorrosionCheckId
|
||||
{
|
||||
get { return (string)ViewState["AntiCorrosionCheckId"]; }
|
||||
set { ViewState["AntiCorrosionCheckId"] = value; }
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
AntiCorrosionCheckId = Request.Params["AntiCorrosionCheckId"];
|
||||
BindData();
|
||||
}
|
||||
}
|
||||
|
||||
private void BindData()
|
||||
{
|
||||
var model = PreWeldInspectionService.GetAntiCorrosionCheckById(AntiCorrosionCheckId);
|
||||
if (model == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
txtMaterialCode.Text = model.MaterialCode;
|
||||
txtMaterialName.Text = model.MaterialName;
|
||||
txtMaterialSpec.Text = model.MaterialSpec;
|
||||
txtMaterialMade.Text = model.MaterialMade;
|
||||
txtPaintCode.Text = model.PaintCode;
|
||||
txtAnticorrosionLevel.Text = model.AnticorrosionLevel;
|
||||
txtIntermediatePaint.Text = model.IntermediatePaint;
|
||||
txtTopcoat.Text = model.Topcoat;
|
||||
txtFilmThickness.Text = model.FilmThickness.HasValue ? model.FilmThickness.Value.ToString() : string.Empty;
|
||||
txtSandBlasting.Text = model.SandBlasting;
|
||||
txtRustSandBlasting.Text = model.RustSandBlasting;
|
||||
txtCheckResult.Text = model.CheckResult;
|
||||
txtCheckPerson.Text = model.CheckPersonName;
|
||||
txtCheckTime.Text = model.CheckTime.HasValue ? string.Format("{0:yyyy-MM-dd HH:mm}", model.CheckTime.Value) : string.Empty;
|
||||
txtUnqualifiedReason.Text = model.UnqualifiedReason;
|
||||
txtRectifyRequirement.Text = model.RectifyRequirement;
|
||||
txtRemark.Text = model.Remark;
|
||||
}
|
||||
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(AntiCorrosionCheckId))
|
||||
{
|
||||
Alert.ShowInTop("未找到防腐检查记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(
|
||||
string.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CLGL/AntiCorrosionCheckRecord&menuId={1}&edit=0&type=-1",
|
||||
AntiCorrosionCheckId, Const.Tw_AntiCorrosionCheckRecordMenuId)));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user