提交代码
This commit is contained in:
parent
012194002e
commit
b7bc12c355
|
|
@ -36,14 +36,16 @@ namespace BLL
|
|||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string personId, Grid Grid1)
|
||||
{
|
||||
IQueryable<Model.Training_TestRecord> getDataList = getDataLists.Where(x => x.TestManId == personId);
|
||||
var db1 = Funs.DB;
|
||||
IQueryable<Model.Training_TestRecord> getDataList = (from x in db1.Training_TestRecord
|
||||
where x.TestStartTime.HasValue
|
||||
select x).Where(x => x.TestManId == 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
|
||||
join y in db1.Training_TestPlan on x.TestPlanId equals y.TestPlanId
|
||||
join z in db1.Training_Plan on y.PlanId equals z.PlanId into g
|
||||
|
|
|
|||
Loading…
Reference in New Issue