推送数据
This commit is contained in:
@@ -428,7 +428,26 @@ namespace FineUIPro.Web.ZHGL.Information
|
||||
AddItems(accidentCauseReport.AccidentCauseReportId);
|
||||
if (type == "updata") //保存并上报
|
||||
{
|
||||
Update(accidentCauseReport.AccidentCauseReportId);
|
||||
// Update(accidentCauseReport.AccidentCauseReportId);
|
||||
if (accidentCauseReport.UpState == BLL.Const.UpState_2)
|
||||
{
|
||||
string code = CNCECHSSEWebService.UpAccidentCauseReport(accidentCauseReport.AccidentCauseReportId, this.CurrUser);
|
||||
if (code == "1")
|
||||
{
|
||||
ShowNotify("同步成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInParent("同步异常,请退出后重试!", MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("当前单据状态不能同步!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (type == "submit")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user