人员管理补充公司级树

This commit is contained in:
2025-04-08 18:30:09 +08:00
parent 5a6796f656
commit a37909b608
14 changed files with 312 additions and 149 deletions
@@ -33,11 +33,11 @@ namespace FineUIPro.Web.Door
{
this.ProjectId = Request.Params["projectId"];
}
this.InitDropDownList();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
Funs.DropDownPageSize(this.ddlPageSize);
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true);
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
@@ -48,11 +48,15 @@ namespace FineUIPro.Web.Door
}
}
}
private void InitDropDownList()
{
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
}
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true);
this.InitDropDownList();
this.GetPersonStatistic();
}
/// <summary>
+7 -3
View File
@@ -35,11 +35,10 @@ namespace FineUIPro.Web.Door
{
this.ProjectId = Request.Params["projectId"];
}
this.InitDropDownList();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
Funs.DropDownPageSize(this.ddlPageSize);
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
@@ -57,9 +56,14 @@ namespace FineUIPro.Web.Door
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.InitDropDownList();
this.GetPersonStatistic();
}
private void InitDropDownList()
{
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
}
#region
/// <summary>
@@ -240,7 +244,7 @@ namespace FineUIPro.Web.Door
{
if (registrationId != null)
{
var registration = (from x in Funs.DB.T_d_facerecord where x.NewID == registrationId select x).FirstOrDefault();
var registration = (from x in Funs.DB.T_d_facerecord where x.NewID == registrationId.ToString() select x).FirstOrDefault();
// registration.Des1 = "FileUpload/Registration/20247/2024-07/638556302997373049_QQ截图20220817171229_-_副本.png";
if (registration != null)
{
@@ -33,11 +33,11 @@ namespace FineUIPro.Web.Door
{
this.ProjectId = Request.Params["projectId"];
}
this.InitDropDownList();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
Funs.DropDownPageSize(this.ddlPageSize);
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true);
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
@@ -49,11 +49,14 @@ namespace FineUIPro.Web.Door
}
}
}
private void InitDropDownList()
{
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
}
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true);
this.InitDropDownList();
this.GetPersonStatistic();
}
/// <summary>
@@ -33,11 +33,10 @@ namespace FineUIPro.Web.Door
{
this.ProjectId = Request.Params["projectId"];
}
this.InitDropDownList();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
Funs.DropDownPageSize(this.ddlPageSize);
UnitService.InitUnitDownList(this.drpUnit, this.ProjectId, true);
Funs.FineUIPleaseSelect(this.drpWorkTeam);
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true);
@@ -55,12 +54,14 @@ namespace FineUIPro.Web.Door
}
}
}
private void InitDropDownList()
{
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
}
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
UnitService.InitUnitDownList(this.drpUnit, this.ProjectId, true);
Funs.FineUIPleaseSelect(this.drpWorkTeam);
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true);
this.InitDropDownList();
this.GetPersonStatistic();
}
/// <summary>
@@ -35,9 +35,10 @@ namespace FineUIPro.Web.Door
{
this.ProjectId = Request.Params["projectId"];
}
this.InitDropDownList();
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, false);
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
UnitService.InitUnitDownList(this.drpUnit, this.ProjectId, true);
this.txtDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
Search();
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
@@ -47,11 +48,14 @@ namespace FineUIPro.Web.Door
}
}
}
private void InitDropDownList()
{
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
}
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
UnitService.InitUnitDownList(this.drpUnit, this.ProjectId, false);
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, false);
this.InitDropDownList();
}
#region