1
This commit is contained in:
@@ -33,14 +33,17 @@ namespace BLL
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IEnumerable getListData(string personId, Grid Grid1)
|
public static IEnumerable getListData(string personId, Grid Grid1)
|
||||||
{
|
{
|
||||||
IQueryable<Model.Person_PersonContract> getDataList = getDataLists.Where(x => x.PersonId == personId);
|
var db1 = Funs.DB;
|
||||||
|
var q= from x in db1.Person_PersonContract
|
||||||
|
select x;
|
||||||
|
IQueryable<Model.Person_PersonContract> getDataList = q.Where(x => x.PersonId == personId);
|
||||||
count = getDataList.Count();
|
count = getDataList.Count();
|
||||||
if (count == 0)
|
if (count == 0)
|
||||||
{
|
{
|
||||||
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