This commit is contained in:
2021-08-29 12:41:15 +08:00
parent c2b5344d0f
commit 969c81925b
5 changed files with 45 additions and 18 deletions
@@ -120,11 +120,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
if (person != null)
{
idCards += person.IdentityCard + ",";
workAreaIds += person.WorkAreaId;
if (!string.IsNullOrEmpty(person.WorkAreaId))
{
workAreaNames += BLL.UnitWorkService.getUnitWorkByUnitWorkId(person.WorkAreaId).UnitWorkName + ",";
}
workAreaIds += person.WorkAreaId;
}
}
if (!string.IsNullOrEmpty(idCards))
@@ -134,11 +130,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
if (!string.IsNullOrEmpty(workAreaIds))
{
this.drpWorkArea.SelectedValueArray = workAreaIds.Split(',');
}
if (!string.IsNullOrEmpty(workAreaNames))
{
this.txtWorkArea.Text = workAreaNames.Substring(0, workAreaNames.LastIndexOf(','));
}
this.txtWorkArea.Text = UnitWorkService.GetUnitWorkName(workAreaIds);
}
}
}
#endregion
@@ -258,7 +251,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
if (!string.IsNullOrEmpty(person.WorkAreaId))
{
personInfo.WorkAreaId = person.WorkAreaId;
personInfo.WorkAreaName = BLL.UnitWorkService.getUnitWorkByUnitWorkId(person.WorkAreaId).UnitWorkName;
personInfo.WorkAreaName = BLL.UnitWorkService.GetUnitWorkName(person.WorkAreaId);
}
}
personInfo.Address = this.txtAddress.Text.Trim();