提交代码
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user