葛恒:奖惩

This commit is contained in:
2026-03-16 20:12:55 +08:00
parent 13364fcbf7
commit ab33ffa365
53 changed files with 6455 additions and 1032 deletions
@@ -83,7 +83,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
Type = Request.Params["Type"];
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
ConstValue.InitConstValueDropDownList(drpHiddenType, "Hiddendangertype", false);
UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, Const.ProjectUnitType_2, true);
@@ -126,7 +126,13 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
this.drpResponsibleMan.DataBind();
this.drpWorkArea.SelectedValue = BLL.Const._Null;
this.drpResponsibleMan.SelectedValue = BLL.Const._Null;
BLL.PersonService.InitPersonByProjectUnitDropDownList(this.drpPunishPerson, this.CurrUser.LoginProjectId, registration.ResponsibleUnit, false);//添加人员下拉
}
if (!string.IsNullOrEmpty(registration.PunishPerson))
{
this.drpPunishPerson.SelectedValue = registration.PunishPerson;
}
this.txtRequirements.Text = registration.Requirements;
if (!string.IsNullOrEmpty(registration.Place))
{
@@ -194,6 +200,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
where y.ProjectId == this.CurrUser.LoginProjectId && x.UnitId == this.drpUnit.SelectedValue
select x;
this.drpResponsibleMan.DataBind();
BLL.PersonService.InitPersonByProjectUnitDropDownList(this.drpPunishPerson, this.CurrUser.LoginProjectId, this.drpUnit.SelectedValue, false);//添加人员下拉
}
Funs.FineUIPleaseSelect(this.drpWorkArea);
Funs.FineUIPleaseSelect(this.drpResponsibleMan);
@@ -249,8 +256,8 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
register.CheckCycle = this.ckType.SelectedValue;
register.Risk_Level = this.dpRiskLevel.SelectedText;
register.IsEffective = "1";
var RegisterTypesDt =BLL.HSSE_Hazard_HazardRegisterTypesService.GetTitleByRegisterTypesId(register.RegisterTypesId);
if (RegisterTypesDt != null && RegisterTypesDt .HazardRegisterType=="4")
var RegisterTypesDt = BLL.HSSE_Hazard_HazardRegisterTypesService.GetTitleByRegisterTypesId(register.RegisterTypesId);
if (RegisterTypesDt != null && RegisterTypesDt.HazardRegisterType == "4")
{
register.Type = 1; //常规巡检
@@ -259,6 +266,10 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
{
register.Type = 0; //日常巡检
}
if (this.drpPunishPerson.SelectedValue != BLL.Const._Null)
{
register.PunishPerson = this.drpPunishPerson.SelectedValue;
}
if (this.drpUnit.SelectedValue != BLL.Const._Null)
{
register.ResponsibleUnit = this.drpUnit.SelectedValue;