提交代码
This commit is contained in:
@@ -21,7 +21,18 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
ViewState["HazardRegisterId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
private string ControlId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ControlId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ControlId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 图片路径
|
||||
/// </summary>
|
||||
@@ -144,6 +155,21 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
this.txtWorkPackageId.Text = registration.WorkPackageName;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
this.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);
|
||||
txtRegisterDef.Text = risk.LicenseDes;
|
||||
drpUnit.SelectedValue = risk.UnitId;
|
||||
drpWorkArea.SelectedValue = risk.WorkAreaId;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user