赛鼎焊接修改
This commit is contained in:
@@ -329,5 +329,35 @@ namespace FineUIPro.Web.HSSE.CostGoods
|
||||
|
||||
PrinterDocService.PrinterDocMethod(Const.ProjectCostManageMenuId, Grid1.SelectedRowID, "HSSE费用管理");
|
||||
}
|
||||
|
||||
protected void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string costManageId = Grid1.SelectedRowID;
|
||||
var costManage = CostManageService.GetCostManageById(costManageId);
|
||||
if (costManage != null && costManage.States == Const.State_2)
|
||||
{
|
||||
if (string.IsNullOrEmpty(costManage.ContractNum))
|
||||
{
|
||||
Alert.ShowInTop("未关联合同,无法推送!", MessageBoxIcon.Warning);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
string messaage = CostManageService.PushDataToHSE(this.CurrUser.LoginProjectId, costManage.ContractNum);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("未审核完成无法推送!", MessageBoxIcon.Warning);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user