feat(hjgl): 完善焊接任务与质量管理流程
This commit is contained in:
@@ -78,6 +78,7 @@ namespace FineUIPro.Web.HJGL.PreWeld
|
||||
drpWeldJoint.SelectedValue = model.WeldJointId;
|
||||
numCuttingLength.Text = model.CuttingLength.HasValue ? model.CuttingLength.Value.ToString() : string.Empty;
|
||||
txtGrooveForm.Text = model.GrooveForm;
|
||||
txtGrooveProcessType.Text = model.GrooveProcessType;
|
||||
numGrooveAngle.Text = model.GrooveAngle.HasValue ? model.GrooveAngle.Value.ToString() : string.Empty;
|
||||
chkMaterialCodeBatchNo.Checked = model.IsMaterialCodeBatchNoAccurate;
|
||||
chkMaterialQuantity.Checked = model.IsMaterialQuantityAccurate;
|
||||
@@ -121,6 +122,7 @@ namespace FineUIPro.Web.HJGL.PreWeld
|
||||
WeldJointId = drpWeldJoint.SelectedValue,
|
||||
CuttingLength = string.IsNullOrWhiteSpace(numCuttingLength.Text) ? (decimal?)null : Convert.ToDecimal(numCuttingLength.Text),
|
||||
GrooveForm = txtGrooveForm.Text.Trim(),
|
||||
GrooveProcessType = txtGrooveProcessType.Text.Trim(),
|
||||
GrooveAngle = string.IsNullOrWhiteSpace(numGrooveAngle.Text) ? (decimal?)null : Convert.ToDecimal(numGrooveAngle.Text),
|
||||
IsMaterialCodeBatchNoAccurate = chkMaterialCodeBatchNo.Checked,
|
||||
IsMaterialQuantityAccurate = chkMaterialQuantity.Checked,
|
||||
@@ -134,22 +136,40 @@ namespace FineUIPro.Web.HJGL.PreWeld
|
||||
SpecialReviewerId = ddlSpecialReviewer.SelectedValue
|
||||
};
|
||||
|
||||
CuttingCheckId = APIPreWeldInspectionService.SaveCuttingCheck(item);
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
try
|
||||
{
|
||||
CuttingCheckId = APIPreWeldInspectionService.SaveCuttingCheck(item);
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
catch (ArgumentException ex)
|
||||
{
|
||||
ShowNotify(ex.Message, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnReview_Click(object sender, EventArgs e)
|
||||
{
|
||||
APIPreWeldInspectionService.ReviewCuttingCheck(new Model.PreWeldCuttingCheckReviewInput
|
||||
try
|
||||
{
|
||||
CuttingCheckId = CuttingCheckId,
|
||||
ReviewerId = CurrUser.PersonId,
|
||||
ReviewTime = DateTime.Now,
|
||||
Remark = txtRemark.Text.Trim()
|
||||
});
|
||||
ShowNotify("专项审核已完成!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
APIPreWeldInspectionService.ReviewCuttingCheck(new Model.PreWeldCuttingCheckReviewInput
|
||||
{
|
||||
CuttingCheckId = CuttingCheckId,
|
||||
ReviewerId = CurrUser.PersonId,
|
||||
ReviewTime = DateTime.Now,
|
||||
Remark = txtRemark.Text.Trim()
|
||||
});
|
||||
ShowNotify("专项审核已完成!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
catch (ArgumentException ex)
|
||||
{
|
||||
ShowNotify(ex.Message, MessageBoxIcon.Warning);
|
||||
}
|
||||
catch (InvalidOperationException ex)
|
||||
{
|
||||
ShowNotify(ex.Message, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user