20230316新增人员出入记录操作日志
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using FineUIPro;
|
||||
using Microsoft.Office.Interop.Excel;
|
||||
using Microsoft.SqlServer.Dts.Runtime;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Linq;
|
||||
@@ -115,7 +116,7 @@ namespace BLL
|
||||
/// 设置人员进出场
|
||||
/// </summary>
|
||||
/// <param name="newitem"></param>
|
||||
public static void SetPersonItemInOut(Model.SitePerson_Person sitePerson)
|
||||
public static void SetPersonItemInOut(Model.SitePerson_Person sitePerson, Model.Sys_Log log)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
@@ -144,7 +145,7 @@ namespace BLL
|
||||
InTime = sitePerson.InTime,
|
||||
};
|
||||
|
||||
AddPersonItem(newPersonItem);
|
||||
AddPersonItem(newPersonItem, log);
|
||||
if (!getPersons.MultiProject.HasValue || getPersons.MultiProject == false)
|
||||
{
|
||||
var getOtherPersons = db.SitePerson_Person.Where(x => x.IdentityCard == sitePerson.IdentityCard && x.ProjectId != sitePerson.ProjectId && x.States == Const.ProjectPersonStates_1);
|
||||
@@ -182,7 +183,7 @@ namespace BLL
|
||||
/// 增加 人员进场
|
||||
/// </summary>
|
||||
/// <param name="newitem">实体</param>
|
||||
public static void AddPersonItem(Model.SitePerson_PersonItem newitem)
|
||||
public static void AddPersonItem(Model.SitePerson_PersonItem newitem, Model.Sys_Log log)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
@@ -271,6 +272,11 @@ namespace BLL
|
||||
db.SitePerson_PersonItem.InsertOnSubmit(newPersonItem);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
///更新人员出入记录日志
|
||||
if (log != null)
|
||||
{
|
||||
LogService.AddSys_Log(log);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user