提交代码
This commit is contained in:
@@ -32,7 +32,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
ViewState["ControlId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 图片路径
|
||||
/// </summary>
|
||||
@@ -299,6 +299,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
register.HazardRegisterId = SQLHelper.GetNewID();
|
||||
HazardRegisterId = register.HazardRegisterId;
|
||||
register.CheckTime = DateTime.Now;
|
||||
register.ControlId = Request.Params["ControlId"];
|
||||
BLL.HSSE_Hazard_HazardRegisterService.AddHazardRegister(register);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, register.HazardCode, register.HazardRegisterId, BLL.Const.HiddenRectificationMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
|
||||
@@ -140,6 +140,16 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
if (this.ckConfirm.SelectedValue == "True") //通过
|
||||
{
|
||||
register.States = "3"; //已闭环
|
||||
// 回写施工作业风险
|
||||
if (!string.IsNullOrEmpty(register.ControlId))
|
||||
{
|
||||
var constructionRiskControl = Funs.DB.HSSE_ConstructionRiskControl.FirstOrDefault(x => x.ControlId == register.ControlId);
|
||||
if (constructionRiskControl != null)
|
||||
{
|
||||
constructionRiskControl.CheckResult = "符合";
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
else //未通过
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user