集团三库
This commit is contained in:
@@ -191,7 +191,7 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
RewardAndPunish.Remark = this.txtRemark.Text.Trim();
|
||||
RewardAndPunish.DataSource = "0";
|
||||
RewardAndPunish.SysTemType = this.SysTemType;
|
||||
|
||||
|
||||
if (string.IsNullOrEmpty(this.hdId.Text.Trim()))
|
||||
{
|
||||
RewardAndPunish.RewardAndPunishID = Guid.NewGuid().ToString();
|
||||
@@ -207,9 +207,19 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
}
|
||||
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
|
||||
//更新三库事故事件
|
||||
string message = string.Empty;
|
||||
SanKuDataSummaryReportService.UpdateSafetyRewardRecord(RewardAndPunish.RewardAndPunishID, ref message);
|
||||
if (!string.IsNullOrWhiteSpace(message))
|
||||
{
|
||||
ShowNotify(message, MessageBoxIcon.Warning);
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region 单位下拉框事件
|
||||
|
||||
/// <summary>
|
||||
@@ -272,16 +282,16 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
this.txtRewardAndPunishCode.Text = $"{type}00001";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected void drpRewardAndPunishType_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.drpType.SelectedValue == "1")
|
||||
{
|
||||
ConstValue.InitConstValueDropDownList(this.drpRewardAndPunishType, "RewardType", false);
|
||||
ConstValue.InitConstValueDropDownList(this.drpRewardAndPunishType, BLL.ConstValue.Group_RewardType, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
ConstValue.InitConstValueDropDownList(this.drpRewardAndPunishType, "PunishType", false);
|
||||
ConstValue.InitConstValueDropDownList(this.drpRewardAndPunishType, BLL.ConstValue.Group_PunishType, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user