20220601 修改Global调用定时器、修改考勤导入列表及导入方法
This commit is contained in:
@@ -248,6 +248,13 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
if (person != null)
|
||||
{
|
||||
personInfo.IdentityCard = person.IdentityCard;
|
||||
personInfo.CardNo = person.CardNo;
|
||||
personInfo.PersonName = person.PersonName;
|
||||
personInfo.UnitId = person.UnitId;
|
||||
if (!string.IsNullOrEmpty(personInfo.UnitId))
|
||||
{
|
||||
personInfo.UnitName = UnitService.GetUnitNameByUnitId(person.UnitId);
|
||||
}
|
||||
if (!string.IsNullOrEmpty(person.WorkAreaId))
|
||||
{
|
||||
personInfo.WorkAreaId = person.WorkAreaId;
|
||||
@@ -259,6 +266,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
string time = string.IsNullOrEmpty(this.txtTime2.Text) ? string.Format("{0:HH:mm:ss}", DateTime.Now) : this.txtTime2.Text.Trim();
|
||||
personInfo.IntoOutTime = Funs.GetNewDateTimeOrNow(date + " " + time);
|
||||
personInfo.IntoOut = this.drpType.SelectedValue.Trim();
|
||||
|
||||
if (!string.IsNullOrEmpty(CheckingId))
|
||||
{
|
||||
personInfo.CheckingId = CheckingId;
|
||||
@@ -273,32 +281,6 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, personInfo.CardNo, personInfo.CheckingId, BLL.Const.PersonalInfoMenuId, BLL.Const.BtnDelete);
|
||||
}
|
||||
}
|
||||
//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()
|
||||
//};
|
||||
//string date = string.IsNullOrEmpty(this.txtTime.Text) ? string.Format("{0:yyyy-MM-dd}", DateTime.Now) : this.txtTime.Text.Trim();
|
||||
//string time = string.IsNullOrEmpty(this.txtTime2.Text) ? string.Format("{0:HH:mm:ss}", DateTime.Now) : this.txtTime2.Text.Trim();
|
||||
//personInfo.IntoOutTime = Funs.GetNewDateTimeOrNow(date + " " + time);
|
||||
//personInfo.IntoOut = this.drpType.SelectedValue.Trim();
|
||||
|
||||
//if (!string.IsNullOrEmpty(CheckingId))
|
||||
//{
|
||||
// personInfo.CheckingId = CheckingId;
|
||||
// BLL.SitePerson_CheckingService.UpdatePersonInfo(personInfo);
|
||||
// BLL.LogService.AddSys_Log(this.CurrUser, personInfo.CardNo, personInfo.CheckingId, BLL.Const.PersonalInfoMenuId, BLL.Const.BtnModify);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// 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);
|
||||
//}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user