This commit is contained in:
parent
5d8a564f29
commit
fded5d4485
|
|
@ -33,14 +33,17 @@ namespace BLL
|
|||
/// <returns></returns>
|
||||
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();
|
||||
if (count == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
getDataList = SortConditionHelper.SortingAndPaging(getDataList, Grid1.SortField, Grid1.SortDirection, Grid1.PageIndex, Grid1.PageSize);
|
||||
var db1 = Funs.DB;
|
||||
|
||||
return from x in getDataList
|
||||
select new
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue