This commit is contained in:
高飞 2025-06-25 18:11:28 +08:00
parent 5d8a564f29
commit fded5d4485
1 changed files with 5 additions and 2 deletions

View File

@ -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
{