提交代码
This commit is contained in:
@@ -36,14 +36,16 @@ namespace BLL
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static IEnumerable getListData(string personId, Grid Grid1)
|
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();
|
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
|
||||||
join y in db1.Training_TestPlan on x.TestPlanId equals y.TestPlanId
|
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
|
join z in db1.Training_Plan on y.PlanId equals z.PlanId into g
|
||||||
|
|||||||
Reference in New Issue
Block a user