This commit is contained in:
parent
cc86d5a07e
commit
2569d4d5fa
|
@ -546,9 +546,9 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||||
|
|
||||||
//if (!BLL.PersonService.IsExistPersonByUnit(this.UnitId, this.txtPersonName.Text.Trim(), this.ProjectId))
|
//if (!BLL.PersonService.IsExistPersonByUnit(this.UnitId, this.txtPersonName.Text.Trim(), this.ProjectId))
|
||||||
//{
|
//{
|
||||||
this.PersonId = SQLHelper.GetNewID(typeof(Model.SitePerson_Person));
|
this.PersonId = SQLHelper.GetNewID(typeof(Model.SitePerson_Person));
|
||||||
person.PersonId = this.PersonId;
|
person.PersonId = this.PersonId;
|
||||||
BLL.PersonService.AddPerson(person);
|
BLL.PersonService.AddPerson(person);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
BLL.LogService.AddSys_Log(this.CurrUser, person.PersonName, person.PersonId, BLL.Const.PersonListMenuId, BLL.Const.BtnAdd);
|
BLL.LogService.AddSys_Log(this.CurrUser, person.PersonName, person.PersonId, BLL.Const.PersonListMenuId, BLL.Const.BtnAdd);
|
||||||
|
@ -613,8 +613,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var user = Funs.DB.Sys_User.FirstOrDefault(x => x.IdentityCard == person.IdentityCard);
|
var user = Funs.DB.Sys_User.FirstOrDefault(x => x.IdentityCard == person.IdentityCard);
|
||||||
if (user!=null && user.UnitId != person.UnitId)
|
if (user != null && user.UnitId != person.UnitId)
|
||||||
{
|
{
|
||||||
user.UnitId = person.UnitId;
|
user.UnitId = person.UnitId;
|
||||||
Funs.DB.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
|
|
Loading…
Reference in New Issue