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