HSE巡检调整
This commit is contained in:
@@ -90,19 +90,19 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
UnitWorkService.InitUnitWorkDownList(this.drpWorkArea, this.CurrUser.LoginProjectId, true);
|
||||
UserService.InitUserProjectIdUnitTypeDropDownList(this.drpResponsibleMan, this.CurrUser.LoginProjectId, Const.ProjectUnitType_2, true);
|
||||
|
||||
this.drpRegisterTypes.DataTextField = "RegisterTypesName";
|
||||
this.drpRegisterTypes.DataValueField = "RegisterTypesId";
|
||||
if (Type=="1")
|
||||
{
|
||||
this.drpRegisterTypes.DataSource = BLL.HSSE_Hazard_HazardRegisterTypesService.GetHazardRegisterTypesList("4"); //安全巡检类型
|
||||
//this.drpRegisterTypes.DataTextField = "RegisterTypesName";
|
||||
//this.drpRegisterTypes.DataValueField = "RegisterTypesId";
|
||||
//if (Type=="1")
|
||||
//{
|
||||
// this.drpRegisterTypes.DataSource = BLL.HSSE_Hazard_HazardRegisterTypesService.GetHazardRegisterTypesList("4"); //安全巡检类型
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
this.drpRegisterTypes.DataSource = BLL.HSSE_Hazard_HazardRegisterTypesService.GetHazardRegisterTypesList("1"); //安全巡检类型
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// this.drpRegisterTypes.DataSource = BLL.HSSE_Hazard_HazardRegisterTypesService.GetHazardRegisterTypesList("1"); //安全巡检类型
|
||||
|
||||
}
|
||||
this.drpRegisterTypes.DataBind();
|
||||
//}
|
||||
//this.drpRegisterTypes.DataBind();
|
||||
this.HazardRegisterId = Request.Params["HazardRegisterId"];
|
||||
//新增初始化
|
||||
this.txtCheckManName.Text = this.CurrUser.UserName;
|
||||
@@ -132,10 +132,10 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
{
|
||||
this.drpWorkArea.SelectedValue = registration.Place;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(registration.RegisterTypesId))
|
||||
{
|
||||
this.drpRegisterTypes.SelectedValue = registration.RegisterTypesId;
|
||||
}
|
||||
//if (!string.IsNullOrEmpty(registration.RegisterTypesId))
|
||||
//{
|
||||
// this.drpRegisterTypes.SelectedValue = registration.RegisterTypesId;
|
||||
//}
|
||||
if (!string.IsNullOrEmpty(registration.CheckCycle))
|
||||
{
|
||||
this.ckType.SelectedValue = registration.CheckCycle;
|
||||
@@ -245,7 +245,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
|
||||
Model.HSSE_Hazard_HazardRegister register = new Model.HSSE_Hazard_HazardRegister();
|
||||
register.ProjectId = this.CurrUser.LoginProjectId;
|
||||
register.ProblemTypes = "1"; //安全隐患问题
|
||||
register.RegisterTypesId = this.drpRegisterTypes.SelectedValue;
|
||||
//register.RegisterTypesId = this.drpRegisterTypes.SelectedValue;
|
||||
register.CheckCycle = this.ckType.SelectedValue;
|
||||
register.Risk_Level = this.dpRiskLevel.SelectedText;
|
||||
register.IsEffective = "1";
|
||||
|
||||
Reference in New Issue
Block a user