集成人员同步,专项检查同步

This commit is contained in:
2026-02-28 10:57:21 +08:00
parent 8f8f970ed5
commit 37ec112f65
51 changed files with 10342 additions and 20 deletions
@@ -71,6 +71,9 @@ namespace FineUIPro.Web.ProjectData
UserService.InitUserDropDownList(this.drpDriveManager, string.Empty, true);
UnitService.InitBranchUnitDropDownList(this.drpUnit, true, true);
GetUnitLists();//从集团获取的所有单位列表
ConstValue.InitConstValueDropDownList(this.drpProjectState2, ConstValue.GroupId_ProjectState, true);
this.drpUnit.SelectedValue = Const.UnitId_CWCEC;
if (!String.IsNullOrEmpty(this.ProjectId))
@@ -217,6 +220,15 @@ namespace FineUIPro.Web.ProjectData
{
this.txtProgress.Text = project.Progress.ToString();
}
if (!string.IsNullOrEmpty(project.SubjectUnit))
{
this.drpSubjectUnit.SelectedValue = project.SubjectUnit;
drpSubjectUnit_OnSelectedIndexChanged(sender, e);
}
if (!string.IsNullOrEmpty(project.SubjectProject))
{
this.drpSubjectProject.SelectedValue = project.SubjectProject;
}
}
}
}
@@ -273,6 +285,15 @@ namespace FineUIPro.Web.ProjectData
{
project.MasterSysId = this.drpMasterBox1.Value;
}
if (this.drpSubjectUnit.SelectedValue != BLL.Const._Null)
{
project.SubjectUnit = this.drpSubjectUnit.SelectedValue;
}
if (this.drpSubjectProject.SelectedValue != BLL.Const._Null)
{
project.SubjectProject = this.drpSubjectProject.SelectedValue;
}
//Country = this.txtCountry.Text.Trim(),
/// Province = this.drpProvince.SelectedValue,
@@ -1974,5 +1995,45 @@ namespace FineUIPro.Web.ProjectData
#endregion
#region
/// <summary>
/// 获取集团单位列表
/// </summary>
protected void GetUnitLists()
{
var returnValue = UnitService.getUnitLists();
if (returnValue.Count > 0)
{
drpSubjectUnit.DataValueField = "BaseInfoId";
drpSubjectUnit.DataTextField = "BaseInfoName";
drpSubjectUnit.DataSource = returnValue;
drpSubjectUnit.DataBind();
Funs.FineUIPleaseSelect(drpSubjectUnit);
}
}
#endregion
#region
/// <summary>
/// 单位下拉框事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void drpSubjectUnit_OnSelectedIndexChanged(object sender, EventArgs e)
{
var userId = this.drpSubjectUnit.SelectedValue;
var units = BLL.UnitService.getProjectListByUnitId(userId);
if (units != null)
{
drpSubjectProject.DataValueField = "BaseInfoId";
drpSubjectProject.DataTextField = "BaseInfoName";
drpSubjectProject.DataSource = units;
drpSubjectProject.DataBind();
}
}
#endregion
}
}