This commit is contained in:
parent
060acdf073
commit
7851532fd1
|
|
@ -32,6 +32,9 @@ namespace BLL
|
|||
/// <returns></returns>
|
||||
public static IEnumerable getListData(string personId, Grid Grid1)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
IQueryable<Model.Person_PersonTrain> getDataLists = from x in Funs.DB.Person_PersonTrain
|
||||
select x;
|
||||
IQueryable<Model.Person_PersonTrain> getDataList = getDataLists.Where(x => x.PersonId == personId);
|
||||
count = getDataList.Count();
|
||||
if (count == 0)
|
||||
|
|
@ -45,7 +48,7 @@ namespace BLL
|
|||
x.PersonTrainId,
|
||||
x.PersonId,
|
||||
x.TrainTypeId,
|
||||
Funs.DB.Base_TrainType.First(u => u.TrainTypeId == x.TrainTypeId).TrainTypeName,
|
||||
db.Base_TrainType.First(u => u.TrainTypeId == x.TrainTypeId).TrainTypeName,
|
||||
x.TrainDate,
|
||||
x.TrainPlace,
|
||||
x.TrainResult,
|
||||
|
|
|
|||
Loading…
Reference in New Issue