安全危害因素(第一版)
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
using BLL;
|
||||
using System;
|
||||
|
||||
namespace FineUIPro.Web.ReportManage.HazardFactor
|
||||
{
|
||||
public partial class HazardFactorSafetyView : PageBase
|
||||
{
|
||||
#region 定义变量
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string HazardID
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["HazardID"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["HazardID"] = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 项目主键
|
||||
/// </summary>
|
||||
public string ProjectId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.ProjectId = this.CurrUser.LoginProjectId;
|
||||
this.HazardID = Request.Params["HazardID"];
|
||||
if (!string.IsNullOrEmpty(HazardID))
|
||||
{
|
||||
var model = HazardFactorSafetyService.GetHazardFactorSafetyById(HazardID);
|
||||
if (model != null)
|
||||
{
|
||||
|
||||
this.drpYearMonth.SelectedDate = Convert.ToDateTime($"{model.Year}-{model.Month}");
|
||||
this.txtCompileDate.Text = model.CompileDate.ToShortDateString();
|
||||
this.txtCompileManName.Text = model.CompileManName;
|
||||
|
||||
this.txtWorkPlace.Text = model.WorkPlace;
|
||||
this.txtJobStep.Text = model.JobStep;
|
||||
this.txtHazard.Text = model.Hazard;
|
||||
this.txtConsequence.Text = model.Consequence;
|
||||
this.rblIllegality.SelectedValue = model.Illegality ? "1" : "0";
|
||||
this.txtBaseRiskSeverity.Text = model.BaseRiskSeverity.ToString();
|
||||
this.txtBaseRiskProbability.Text = model.BaseRiskProbability.ToString();
|
||||
this.txtBaseRiskScore.Text = model.BaseRiskScore.ToString();
|
||||
this.txtBaseRiskGrade.Text = model.BaseRiskGrade;
|
||||
this.rblBaseRiskAcceptabity.SelectedValue = model.BaseRiskAcceptabity ? "1" : "0";
|
||||
this.txtNetRiskControlMeasures.Text = model.NetRiskControlMeasures;
|
||||
this.txtNetRiskSeverity.Text = model.NetRiskSeverity.ToString();
|
||||
this.txtNetRiskProbability.Text = model.NetRiskProbability.ToString();
|
||||
this.txtNetRiskScore.Text = model.NetRiskScore.ToString();
|
||||
this.txtNetRiskGrade.Text = model.NetRiskGrade;
|
||||
this.rblNetRiskAcceptabity.SelectedValue = model.NetRiskAcceptabity ? "1" : "0";
|
||||
this.txtAdditionalControlMeasures.Text = model.AdditionalControlMeasures;
|
||||
this.txtResponsibleDepartment.Text = model.ResponsibleDepartment;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user