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