feat(hjgl): 完善焊接任务与质量管理流程
This commit is contained in:
@@ -93,6 +93,8 @@
|
||||
</f:TextBox>
|
||||
<f:ToolbarFill ID="ToolbarFill2" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnGenerateAntiCorrosionTrust" Text="生成防腐委托单" Icon="ArrowRefresh"
|
||||
runat="server" OnClick="btnGenerateAntiCorrosionTrust_Click" />
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
|
||||
@@ -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 加载页面
|
||||
|
||||
@@ -200,6 +200,11 @@ namespace FineUIPro.Web.HJGL.HotProcessHard {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
/// <summary>
|
||||
/// btnGenerateAntiCorrosionTrust 控件。
|
||||
/// </summary>
|
||||
protected global::FineUIPro.Button btnGenerateAntiCorrosionTrust;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
|
||||
Reference in New Issue
Block a user