This commit is contained in:
parent
7d9f4233d1
commit
5a38880a14
|
|
@ -19,12 +19,6 @@ namespace BLL
|
|||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.SitePerson_Checking> getDataLists = from x in Funs.DB.SitePerson_Checking
|
||||
select x;
|
||||
|
||||
/// <summary>
|
||||
/// 数据列表
|
||||
/// </summary>
|
||||
|
|
@ -33,7 +27,9 @@ namespace BLL
|
|||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string projectId, string unitId, string personName, string startDate, string endDate, Grid Grid1)
|
||||
{
|
||||
IQueryable<Model.SitePerson_Checking> getDataList = getDataLists.Where(x => x.ProjectId == projectId);
|
||||
IQueryable<Model.SitePerson_Checking> getDataList = from x in Funs.DB.SitePerson_Checking
|
||||
where x.ProjectId == projectId
|
||||
select x;
|
||||
if (!string.IsNullOrEmpty(unitId) && unitId != Const._Null)
|
||||
{
|
||||
getDataList = getDataList.Where(x => x.UnitId == unitId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue