From 2569d4d5fa53ccd5f7edbdbbdf75ff6a2bfc32ec Mon Sep 17 00:00:00 2001 From: xiaj <1784803958@qq.com> Date: Fri, 16 May 2025 18:11:33 +0800 Subject: [PATCH] 1 --- .../HSSE/SitePerson/PersonListEdit.aspx.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs index bca114a..12877f6 100644 --- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs @@ -88,7 +88,7 @@ namespace FineUIPro.Web.HSSE.SitePerson this.UnitId = Request.Params["UnitId"]; this.PersonId = Request.Params["PersonId"]; this.InitDropDownList(); - this.drpIdcardType.SelectedValue = "SHENFEN_ZHENGJIAN"; + this.drpIdcardType.SelectedValue = "SHENFEN_ZHENGJIAN"; if (!string.IsNullOrEmpty(this.PersonId)) { @@ -285,7 +285,7 @@ namespace FineUIPro.Web.HSSE.SitePerson BasicDataService.InitBasicDataProjectUnitDropDownList(this.drpPoliticsStatus, "POLITICAL_LANDSCAPE", true); BasicDataService.InitBasicDataProjectUnitDropDownList(this.drpNation, "MINZU_TYPE", true); SynchroSetService.InitCountryDropDownList(this.drpCountryCode, true); - Funs.FineUIPleaseSelect(this.drpProvinceCode); + Funs.FineUIPleaseSelect(this.drpProvinceCode); BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true); } @@ -546,9 +546,9 @@ namespace FineUIPro.Web.HSSE.SitePerson //if (!BLL.PersonService.IsExistPersonByUnit(this.UnitId, this.txtPersonName.Text.Trim(), this.ProjectId)) //{ - this.PersonId = SQLHelper.GetNewID(typeof(Model.SitePerson_Person)); - person.PersonId = this.PersonId; - BLL.PersonService.AddPerson(person); + this.PersonId = SQLHelper.GetNewID(typeof(Model.SitePerson_Person)); + person.PersonId = this.PersonId; + BLL.PersonService.AddPerson(person); //} 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); - if (user!=null && user.UnitId != person.UnitId) + var user = Funs.DB.Sys_User.FirstOrDefault(x => x.IdentityCard == person.IdentityCard); + if (user != null && user.UnitId != person.UnitId) { user.UnitId = person.UnitId; Funs.DB.SubmitChanges(); @@ -624,7 +624,7 @@ namespace FineUIPro.Web.HSSE.SitePerson ///上传人脸库 var getProject = ProjectService.GetProjectByProjectId(person.ProjectId); if (!string.IsNullOrEmpty(person.PhotoUrl) && getProject != null && getProject.IsFace == true) - { + { Alert.ShowInParent(APIPersonService.PersonFace(person), MessageBoxIcon.Warning); } }