20240227本部检查优化

This commit is contained in:
2024-02-27 13:31:39 +08:00
parent 2449c9fa32
commit c6559b1f30
17 changed files with 605 additions and 176 deletions
@@ -53,6 +53,8 @@ namespace FineUIPro.Web.OfficeCheck.Check
BLL.UnitService.InitUnitDropDownList(this.drpUnit, null, true);
DepartService.InitDepartDropDownList(this.drpDepart, true);
if (!string.IsNullOrEmpty(this.CheckTeamId))
{
var checkTeam = BLL.CheckTeamService.GetCheckTeamByCheckTeamId(this.CheckTeamId);
@@ -78,6 +80,7 @@ namespace FineUIPro.Web.OfficeCheck.Check
this.drpUnit.Enabled = false;
}
this.drpSex.SelectedValue = checkTeam.SexName;
this.drpDepart.SelectedValue = checkTeam.DepartId;
}
}
else
@@ -125,6 +128,10 @@ namespace FineUIPro.Web.OfficeCheck.Check
{
newCheckTeam.UnitId = this.drpUnit.SelectedValue;
}
if (this.drpDepart.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpDepart.SelectedValue))
{
newCheckTeam.DepartId = this.drpDepart.SelectedValue;
}
if (!string.IsNullOrEmpty(this.hdUserId.Text))
{
newCheckTeam.UserId = this.hdUserId.Text;
@@ -132,7 +139,7 @@ namespace FineUIPro.Web.OfficeCheck.Check
newCheckTeam.UserName = this.txtUserName.Text.Trim();
if (string.IsNullOrEmpty(this.CheckTeamId))
{
newCheckTeam.CheckTeamId = SQLHelper.GetNewID(typeof(Model.ProjectSupervision_CheckTeam));
newCheckTeam.CheckTeamId = SQLHelper.GetNewID();
BLL.CheckTeamService.AddCheckTeam(newCheckTeam);
}
else
@@ -167,6 +174,7 @@ namespace FineUIPro.Web.OfficeCheck.Check
this.txtPostName.Text = PositionService.GetPositionNameById(sysUser.PositionId);
this.txtWorkTitle.Text = PostTitleService.getPostTitleNameById(sysUser.PostTitleId);
this.hdUserId.Text = sysUser.PersonId;
this.drpDepart.SelectedValue = sysUser.DepartId;
}
}
#endregion