提交代码
This commit is contained in:
@@ -37,7 +37,9 @@ namespace BLL
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IEnumerable getListData(string projectId, string personName, Grid Grid1)
|
public static IEnumerable getListData(string projectId, string personName, Grid Grid1)
|
||||||
{
|
{
|
||||||
IQueryable<Model.SitePerson_Person> getDataList = getDataLists;
|
var db1 = Funs.DB;
|
||||||
|
IQueryable<Model.SitePerson_Person> getDataList = from x in db1.SitePerson_Person
|
||||||
|
select x;
|
||||||
if (!string.IsNullOrEmpty(projectId))
|
if (!string.IsNullOrEmpty(projectId))
|
||||||
{
|
{
|
||||||
getDataList = getDataList.Where(e => e.ProjectId == projectId);
|
getDataList = getDataList.Where(e => e.ProjectId == projectId);
|
||||||
@@ -53,7 +55,7 @@ namespace BLL
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
||||||
var db1 = Funs.DB;
|
|
||||||
return from x in getDataList
|
return from x in getDataList
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user