This commit is contained in:
geh
2026-07-09 16:32:57 +08:00
parent f9d6a03933
commit cfb60fd1d6
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -640,7 +640,7 @@ namespace BLL
} }
newPerson.Address = person.Address; newPerson.Address = person.Address;
newPerson.ProjectId = person.ProjectId; newPerson.ProjectId = person.ProjectId;
newPerson.UnitId = person.UnitId; // newPerson.UnitId = person.UnitId;
newPerson.TeamGroupId = person.TeamGroupId; newPerson.TeamGroupId = person.TeamGroupId;
newPerson.WorkAreaId = person.WorkAreaId; newPerson.WorkAreaId = person.WorkAreaId;
newPerson.WorkPostId = person.WorkPostId; newPerson.WorkPostId = person.WorkPostId;
@@ -123,7 +123,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
foreach (var item in this.drpPerson.Values) foreach (var item in this.drpPerson.Values)
{ {
var person = BLL.PersonService.GetPersonById(item); Model.SitePerson_Person person = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.PersonId == item);
// var person = BLL.PersonService.GetPersonById(item);
if (person != null) if (person != null)
{ {
if (this.drpToUnit.SelectedValue == "0")//如果新单位选择其他,则置空该人员单位 if (this.drpToUnit.SelectedValue == "0")//如果新单位选择其他,则置空该人员单位
@@ -142,7 +143,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
person.TeamGroupId = null; person.TeamGroupId = null;
} }
BLL.PersonService.UpdatePerson(person); Funs.DB.SubmitChanges();
// BLL.PersonService.UpdatePerson(person);
} }
} }