20210819单位人员考勤未知人员查询方法修改

This commit is contained in:
2021-08-19 18:33:20 +08:00
parent 33835b762e
commit 04202b8c1c
10 changed files with 119 additions and 80 deletions
@@ -63,8 +63,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
this.drpUnit.SelectedValue = this.CurrUser.UnitId;
this.drpUnit.Enabled = false;
}
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddMonths(-1));
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddDays(1));
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddDays(-1));
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddMinutes(1));
// 绑定表格
BindGrid();
}
@@ -246,9 +246,11 @@ namespace FineUIPro.Web.HSSE.SitePerson
string[] personIds = this.drpPersonId.Value.Split(',');
foreach (var item in personIds)
{
Model.SitePerson_Checking personInfo = new Model.SitePerson_Checking();
personInfo.ProjectId = this.ProjectId;
personInfo.PersonId = item.Trim();
Model.SitePerson_Checking personInfo = new Model.SitePerson_Checking
{
ProjectId = this.ProjectId,
PersonId = item.Trim()
};
var person = BLL.PersonService.GetPersonById(personInfo.PersonId);
if (person != null)
{