20210720
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user