提交代码

This commit is contained in:
2024-05-16 09:15:08 +08:00
parent 9a2ba1af64
commit 9191546586
27 changed files with 3505 additions and 12 deletions
@@ -27,7 +27,17 @@ namespace FineUIPro.Web.HSSE.Check
}
}
#endregion
public string ControlId
{
get
{
return (string)ViewState["ControlId"];
}
set
{
ViewState["ControlId"] = value;
}
}
/// <summary>
/// 加载页面
/// </summary>
@@ -85,6 +95,29 @@ namespace FineUIPro.Web.HSSE.Check
BindGrid();
BindGrid1();
ControlId = Request.Params["ControlId"];
if (!string.IsNullOrEmpty(ControlId))
{
var control = Funs.DB.HSSE_ConstructionRiskControl.FirstOrDefault(x => x.ControlId==ControlId);
if (control != null)
{
var risk = Funs.DB.HSSE_ConstructionRisk.FirstOrDefault(x => x.ConstructionRiskId == control.ConstructionRiskId);
drpWorkAreaId.SelectedValue = risk.WorkAreaId;
drpUnitId.SelectedValue= risk.UnitId;
List<Model.Check_RectifyNoticesItem> view = getViewTestPlanTrainingList();
var item = new Check_RectifyNoticesItem
{
RectifyNoticesItemId = SQLHelper.GetNewID(),
RectifyNoticesId = this.RectifyNoticesId,
WrongContent = risk.LicenseDes
};
view.Add(item);
//将gd数据保存在list中
Grid1.DataSource = view;
Grid1.DataBind();
}
}
}
}