feat(hjgl): 完善焊接任务与质量管理流程
This commit is contained in:
@@ -26,6 +26,31 @@ namespace FineUIPro.Web.HJGL.HotProcessHard
|
||||
ViewState["HotProessTrustId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnGenerateAntiCorrosionTrust_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId,
|
||||
Const.Tw_AntiCorrosionTrustMenuId, Const.BtnAdd))
|
||||
{
|
||||
ShowNotify("您没有生成防腐委托单的权限!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(this.HotProessTrustId))
|
||||
{
|
||||
ShowNotify("请选择热处理委托", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
TwAntiCorrosionTrustService.GenerateByHotProessTrustId(this.HotProessTrustId, this.CurrUser.PersonId);
|
||||
ShowNotify("防腐委托单生成成功", MessageBoxIcon.Success);
|
||||
}
|
||||
catch (ArgumentException ex)
|
||||
{
|
||||
ShowNotify(ex.Message, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
|
||||
Reference in New Issue
Block a user