This commit is contained in:
2026-04-02 10:15:56 +08:00
parent a7044c64ea
commit eaa0147cb1
+4 -1
View File
@@ -30,6 +30,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;
var getDataLists = from x in db.Person_Duty
select x;
IQueryable<Model.Person_Duty> getDataList = getDataLists.Where(x => x.DutyPersonId == personId); IQueryable<Model.Person_Duty> getDataList = getDataLists.Where(x => x.DutyPersonId == personId);
count = getDataList.Count(); count = getDataList.Count();
if (count == 0) if (count == 0)
@@ -46,7 +49,7 @@ namespace BLL
x.CompilePersonId, x.CompilePersonId,
x.CompileTime, x.CompileTime,
x.WorkPostId, 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.ApprovePersonId,
x.ApproveTime, x.ApproveTime,
x.State, x.State,