diff --git a/SGGL/BLL/Person/Person_DutyService.cs b/SGGL/BLL/Person/Person_DutyService.cs
index 63850fb3..5d8c918b 100644
--- a/SGGL/BLL/Person/Person_DutyService.cs
+++ b/SGGL/BLL/Person/Person_DutyService.cs
@@ -30,6 +30,9 @@ namespace BLL
///
public static IEnumerable getListData(string personId, Grid Grid1)
{
+ Model.SGGLDB db = Funs.DB;
+ var getDataLists = from x in db.Person_Duty
+ select x;
IQueryable getDataList = getDataLists.Where(x => x.DutyPersonId == personId);
count = getDataList.Count();
if (count == 0)
@@ -46,7 +49,7 @@ namespace BLL
x.CompilePersonId,
x.CompileTime,
x.WorkPostId,
- WorkPostName = Funs.DB.Base_WorkPost.First(U => U.WorkPostId == x.WorkPostId).WorkPostName,
+ WorkPostName = db.Base_WorkPost.First(U => U.WorkPostId == x.WorkPostId).WorkPostName,
x.ApprovePersonId,
x.ApproveTime,
x.State,