public List <V_HouseHireApp> GetHireAppListPagingByMember(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (HouseHireAppManagementBll houseHireAppBll = new HouseHireAppManagementBll()) { IQueryable <V_HouseHireApp> ent = houseHireAppBll.GetHireAppQueryWithPagingByHouseInfoOrList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); return(ent != null?ent.ToList() : null); } }
public List <V_HouseHireApp> GetHireAppListPagingByHouseInfoOrList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (HouseHireAppManagementBll houseHireAppBll = new HouseHireAppManagementBll()) { if (checkState != ((int)CheckStates.WaittingApproval).ToString()) { IQueryable <V_HouseHireApp> ent; if (checkState != ((int)CheckStates.ALL).ToString()) { ent = houseHireAppBll.GetHireAppQueryWithPagingByHouseInfoOrList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { ent = houseHireAppBll.GetHireAppQueryWithPagingByHouseInfoOrList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } return(ent.Count() > 0 ? ent.ToList() : null); } else { FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "houseHireApp", loginUserInfo.companyID, loginUserInfo.userID); if (flowList == null) { return(null); } List <V_FlowAPP> flowAppList = new List <V_FlowAPP>(); for (int i = 0; i < flowList.Length; i++) { V_FlowAPP App = new V_FlowAPP(); App.Guid = flowList[i].FLOWRECORDDETAILID; App.FormID = flowList[i].FLOW_FLOWRECORDMASTER_T.FORMID; App.EditUserID = flowList[i].EDITUSERID; App.EditUserName = flowList[i].EDITUSERNAME; flowAppList.Add(App); } checkState = ((int)CheckStates.Approving).ToString(); IQueryable <V_HouseHireApp> ent = houseHireAppBll.GetHireAppQueryWithPagingByHouseInfoOrList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); return(ent.Count() > 0 ? ent.ToList() : null); } } }
public List<V_HouseHireApp> GetHireAppListPagingByMember(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (HouseHireAppManagementBll houseHireAppBll = new HouseHireAppManagementBll()) { IQueryable<V_HouseHireApp> ent = houseHireAppBll.GetHireAppQueryWithPagingByHouseInfoOrList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); return ent!=null ? ent.ToList() : null; } }
public List<V_HouseHireApp> GetHireAppListPagingByHouseInfoOrList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (HouseHireAppManagementBll houseHireAppBll = new HouseHireAppManagementBll()) { if (checkState != ((int)CheckStates.WaittingApproval).ToString()) { IQueryable<V_HouseHireApp> ent; if (checkState != ((int)CheckStates.ALL).ToString()) { ent = houseHireAppBll.GetHireAppQueryWithPagingByHouseInfoOrList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { ent = houseHireAppBll.GetHireAppQueryWithPagingByHouseInfoOrList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } return ent.Count() > 0 ? ent.ToList() : null; } else { FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "houseHireApp", loginUserInfo.companyID, loginUserInfo.userID); if (flowList == null) { return null; } List<V_FlowAPP> flowAppList = new List<V_FlowAPP>(); for (int i = 0; i < flowList.Length; i++) { V_FlowAPP App = new V_FlowAPP(); App.Guid = flowList[i].FLOWRECORDDETAILID; App.FormID = flowList[i].FLOW_FLOWRECORDMASTER_T.FORMID; App.EditUserID = flowList[i].EDITUSERID; App.EditUserName = flowList[i].EDITUSERNAME; flowAppList.Add(App); } checkState = ((int)CheckStates.Approving).ToString(); IQueryable<V_HouseHireApp> ent = houseHireAppBll.GetHireAppQueryWithPagingByHouseInfoOrList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); return ent.Count() > 0 ? ent.ToList() : null; } } }