人力预警

This commit is contained in:
geh
2026-01-23 11:37:01 +08:00
parent 7100520461
commit 179eed5b87
5 changed files with 554 additions and 8 deletions
@@ -185,6 +185,15 @@ namespace FineUIPro.Web.JDGL.SGManPower
var getData = Funs.DB.SitePerson_Checking_Statistics.Where(x =>
x.ProjectId == this.CurrUser.LoginProjectId && x.IntoOutTime >= Convert.ToDateTime(StartTime) && x.IntoOutTime <= Convert.ToDateTime(EndTime));
if (!string.IsNullOrEmpty(this.UnitId) && this.UnitId != Const._Null)
{
getData = getData.Where(x => x.UnitId == this.UnitId);
}
if (drpWorkPost.SelectedValue != Const._Null)
{
getData = getData.Where(x => x.WorkPostId == drpWorkPost.SelectedValue);
}
DataTable dt = this.LINQToDataTable(getData.ToList());
// 创建一个新的DataTable来存储处理后的数据
DataTable processedDt = dt.Clone();