20230316新增人员出入记录操作日志

This commit is contained in:
2023-03-16 10:48:42 +08:00
parent f2a3954a44
commit 2747440a89
15 changed files with 173 additions and 161 deletions
@@ -1,4 +1,5 @@
using BLL;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
@@ -85,7 +86,17 @@ namespace FineUIPro.Web.HSSE.SitePerson
{
person.OutTime = Funs.GetNewDateTime(this.txtChangeTime.Text);
person.States = Const.State_2;
BLL.SitePerson_PersonService.UpdateSitePerson(person);
Model.Sys_Log newlog = new Sys_Log
{
UserId = this.CurrUser.PersonId,
MenuId = Const.PersonListMenuId,
OperationName = "现场人员出场",
OperationLog = "现场人员出场" + person.PersonName,
DataId = person.PersonId,
ProjectId = person.ProjectId,
};
BLL.SitePerson_PersonService.UpdateSitePerson(person, newlog);
}
}
@@ -117,13 +117,13 @@ namespace FineUIPro.Web.HSSE.SitePerson
{
person.TeamGroupId = null;
}
BLL.SitePerson_PersonService.UpdateSitePerson(person);
Funs.DB.SubmitChanges();
var getPerson = Person_PersonsService.GetPerson_PersonsById(person.PersonId);
if (getPerson != null)
{
getPerson.UnitId = person.UnitId;
Person_PersonsService.UpdatePerson(getPerson);
Funs.DB.SubmitChanges();
}
}
}