20230119
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Model;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.ServiceModel;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace FineUIPro.Web.ProjectData
|
||||
@@ -36,12 +37,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
ProjectTypeService.InitProjectTypeDropDownList(this.drpProjectType, true);
|
||||
ProjectTypeService.InitProvinceDropDownList(this.drpProvince, true);
|
||||
this.ProjectId = Request.QueryString["ProjectId"];
|
||||
///项目经理
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpProjectManager, null, null, null, true);
|
||||
///施工经理
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpConstructionManager, null, null, null, true);
|
||||
///安全经理
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpHSSEManager, null, null, null, true);
|
||||
|
||||
UnitService.InitBranchUnitDropDownList(this.drpUnit, true, true);
|
||||
this.drpUnit.SelectedValue = Const.UnitId_SEDIN;
|
||||
if (!String.IsNullOrEmpty(this.ProjectId))
|
||||
@@ -104,6 +100,10 @@ namespace FineUIPro.Web.ProjectData
|
||||
this.txtEnglishRemark.Text = project.EnglishRemark;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.initProjectRoles();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -267,5 +267,21 @@ namespace FineUIPro.Web.ProjectData
|
||||
this.drpProvince.Required = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.initProjectRoles();
|
||||
}
|
||||
|
||||
protected void initProjectRoles()
|
||||
{
|
||||
string unitId = this.drpUnit.SelectedValue == Const._Null ? Const.UnitId_SEDIN : this.drpUnit.SelectedValue;
|
||||
///项目经理
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpProjectManager, null, unitId, null, true);
|
||||
///施工经理
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpConstructionManager, null, unitId, null, true);
|
||||
///安全经理
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(this.drpHSSEManager, null, unitId, null, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user