手动打卡
This commit is contained in:
@@ -232,33 +232,46 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
// string[] personIds = this.drpPersonId.Value.Split(',');
|
||||
foreach (var item in this.drpPersonId.Values)
|
||||
{
|
||||
Model.SitePerson_PersonInOut newPersonInfo = new Model.SitePerson_PersonInOut
|
||||
{
|
||||
PersonId = item,
|
||||
ProjectId = this.ProjectId,
|
||||
WorkAreaName = this.txtWorkArea.Text.Trim(),
|
||||
Address = this.txtAddress.Text.Trim(),
|
||||
InOutWay = Const.InOutWay_2,
|
||||
};
|
||||
if (!string.IsNullOrEmpty(this.drpWorkArea.SelectedValue))
|
||||
{
|
||||
newPersonInfo.WorkAreaId = this.drpWorkArea.SelectedValue;
|
||||
}
|
||||
//Model.SitePerson_PersonInOut newPersonInfo = new Model.SitePerson_PersonInOut
|
||||
//{
|
||||
// PersonId = item,
|
||||
// ProjectId = this.ProjectId,
|
||||
// WorkAreaName = this.txtWorkArea.Text.Trim(),
|
||||
// Address = this.txtAddress.Text.Trim(),
|
||||
// InOutWay = Const.InOutWay_2,
|
||||
//};
|
||||
//if (!string.IsNullOrEmpty(this.drpWorkArea.SelectedValue))
|
||||
//{
|
||||
// newPersonInfo.WorkAreaId = this.drpWorkArea.SelectedValue;
|
||||
//}
|
||||
|
||||
//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();
|
||||
//newPersonInfo.ChangeTime = Funs.GetNewDateTimeOrNow(date + " " + time);
|
||||
//if (this.drpType.SelectedValue == "1")
|
||||
//{
|
||||
// newPersonInfo.IsIn = true;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// newPersonInfo.IsIn = false;
|
||||
//}
|
||||
|
||||
//BLL.PersonInOutService.AddPersonInOut(newPersonInfo);
|
||||
|
||||
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();
|
||||
newPersonInfo.ChangeTime = Funs.GetNewDateTimeOrNow(date + " " + time);
|
||||
if (this.drpType.SelectedValue == "1")
|
||||
Model.SitePerson_PersonInOut newInOut = new Model.SitePerson_PersonInOut
|
||||
{
|
||||
newPersonInfo.IsIn = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
newPersonInfo.IsIn = false;
|
||||
}
|
||||
|
||||
BLL.PersonInOutService.AddPersonInOut(newPersonInfo);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, newPersonInfo.IdentityCard, newPersonInfo.PersonInOutId, BLL.Const.PersonalInfoMenuId, BLL.Const.BtnDelete);
|
||||
ProjectId = this.ProjectId,
|
||||
PersonId = item,
|
||||
//IdentityCard = employeeNo,
|
||||
IsIn = true,
|
||||
ChangeTime = Funs.GetNewDateTimeOrNow(date + " " + time),
|
||||
InOutWay = Const.InOutWay_2,
|
||||
};
|
||||
YunMouService.InsertInOut(newInOut);
|
||||
// BLL.LogService.AddSys_Log(this.CurrUser, newPersonInfo.IdentityCard, newPersonInfo.PersonInOutId, BLL.Const.PersonalInfoMenuId, BLL.Const.BtnDelete);
|
||||
}
|
||||
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
|
||||
Reference in New Issue
Block a user