diff --git a/SGGL/BLL/Person/Person_PersonTrainService.cs b/SGGL/BLL/Person/Person_PersonTrainService.cs
index 0273e636..f7da6fab 100644
--- a/SGGL/BLL/Person/Person_PersonTrainService.cs
+++ b/SGGL/BLL/Person/Person_PersonTrainService.cs
@@ -32,6 +32,9 @@ namespace BLL
///
public static IEnumerable getListData(string personId, Grid Grid1)
{
+ Model.SGGLDB db = Funs.DB;
+ IQueryable getDataLists = from x in Funs.DB.Person_PersonTrain
+ select x;
IQueryable 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,