人力预警
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user