This commit is contained in:
2021-07-20 16:02:27 +08:00
parent b3d23a52d9
commit 7700a66999
16 changed files with 178 additions and 90 deletions
@@ -102,6 +102,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
var person = BLL.PersonService.GetPersonById(this.drpPersonId.Value);
if (person != null)
{
this.txtIdCard.Text = person.IdentityCard;
if (!string.IsNullOrEmpty(person.WorkAreaId))
{
this.drpWorkArea.SelectedValue = person.WorkAreaId;
@@ -198,6 +199,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
Model.SitePerson_Checking personInfo = new Model.SitePerson_Checking
{
PersonId = this.drpPersonId.Value,
IdentityCard = this.txtIdCard.Text,
ProjectId = this.ProjectId,
WorkAreaName = this.txtWorkArea.Text.Trim(),
Address = this.txtAddress.Text.Trim()
@@ -215,8 +217,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
}
else
{
string newKeyID = SQLHelper.GetNewID(typeof(Model.SitePerson_Checking));
personInfo.CheckingId = newKeyID;
this.CheckingId = SQLHelper.GetNewID();
personInfo.CheckingId = this.CheckingId;
BLL.SitePerson_CheckingService.AddPersonInfo(personInfo);
BLL.LogService.AddSys_Log(this.CurrUser, personInfo.CardNo, personInfo.CheckingId, BLL.Const.PersonalInfoMenuId, BLL.Const.BtnDelete);
}