This commit is contained in:
高飞 2025-07-17 10:49:44 +08:00
parent 060acdf073
commit 7851532fd1
1 changed files with 4 additions and 1 deletions

View File

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