20210817人员批量离场修改

This commit is contained in:
2021-08-17 20:04:45 +08:00
parent 9b4b36afdd
commit 33835b762e
3 changed files with 33 additions and 20 deletions
@@ -68,7 +68,7 @@
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
OnClick="btnSave_Click" >
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose">
</f:Button>
@@ -3,6 +3,7 @@ using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace FineUIPro.Web.HSSE.SitePerson
{
@@ -85,17 +86,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
{
foreach (var item in this.drpPerson.Values)
{
var person = BLL.PersonService.GetPersonById(item);
if (person != null)
{
person.OutTime = Funs.GetNewDateTime(this.txtChangeTime.Text);
person.IsUsed = true;
person.OutTime = null;
person.ExchangeTime = null;
person.ExchangeTime2 = null;
person.RealNameUpdateTime = null;
Funs.DB.SubmitChanges();
}
DateTime date = Funs.GetNewDateTimeOrNow(this.txtChangeTime.Text);
PersonService.PersonOut(item, date);
}
BLL.LogService.AddSys_Log(this.CurrUser, "人员批量出场", null, BLL.Const.PersonListMenuId, BLL.Const.BtnModify);