20230316新增人员出入记录操作日志
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user