This commit is contained in:
parent
a228d483db
commit
f7d6d708f3
|
|
@ -79,12 +79,17 @@ namespace FineUIPro.Web.HSSE.Manager
|
||||||
{
|
{
|
||||||
MonthReportId = Request.Params["MonthReportId"];
|
MonthReportId = Request.Params["MonthReportId"];
|
||||||
}
|
}
|
||||||
|
var units = BLL.ProjectUnitService.GetProjectUnitListByProjectIdUnitType(this.CurrUser.LoginProjectId,BLL.Const.ProjectUnitType_1);
|
||||||
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.CompileManId, this.CurrUser.LoginProjectId, Const.UnitId_SEDIN, null, false);
|
string unitId = Const.UnitId_SEDIN;
|
||||||
|
if (units.Count > 0)
|
||||||
|
{
|
||||||
|
unitId = units[0].UnitId;
|
||||||
|
}
|
||||||
|
BLL.Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.CompileManId, this.CurrUser.LoginProjectId, unitId, null, false);
|
||||||
this.CompileManId.SelectedValue = this.CurrUser.PersonId;
|
this.CompileManId.SelectedValue = this.CurrUser.PersonId;
|
||||||
|
|
||||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.AuditManId, this.CurrUser.LoginProjectId, Const.UnitId_SEDIN, Const.ProjectSafetyDirector, false);
|
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.AuditManId, this.CurrUser.LoginProjectId, unitId, Const.ProjectSafetyDirector, false);
|
||||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.ApprovalManId, this.CurrUser.LoginProjectId, Const.UnitId_SEDIN, Const.ProjectAssistantManager + "," + Const.ProjectManager, false);
|
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.ApprovalManId, this.CurrUser.LoginProjectId, unitId, Const.ProjectAssistantManager + "," + Const.ProjectManager, false);
|
||||||
|
|
||||||
string montvalues = ReporMonth.Text;
|
string montvalues = ReporMonth.Text;
|
||||||
var getMont = Funs.DB.SeDin_MonthReport.FirstOrDefault(x => x.MonthReportId == this.MonthReportId);
|
var getMont = Funs.DB.SeDin_MonthReport.FirstOrDefault(x => x.MonthReportId == this.MonthReportId);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue