public List <T_OA_ARCHIVES> GetArchivesCanBorrow() { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { return(archivesLendingBll.GetArchivesCanBorrow()); } }
public List <string> GetEmployeeNotReturnListByUserId(string StrEmployeeID) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { return(archivesLendingBll.GetEmployeeNotReturnData(StrEmployeeID)); } }
//查询档案能否被更新 public bool IsArchivesCanUpdate(T_OA_LENDARCHIVES archivesLendingInfo) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { return(archivesLendingBll.IsArchivesCanUpdate(archivesLendingInfo)); } }
public bool IsArchivesCanBrowser(string archivesID) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { return(archivesLendingBll.IsArchivesCanBrowser(archivesID)); } }
public List <T_OA_ARCHIVES> GetArchivesCanBorrowByCondition(string title, string type) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { return(archivesLendingBll.GetArchivesCanBorrowByCondition(title, type)); } }
public List <T_OA_LENDARCHIVES> GetLendingListByLendingId(string lendingID) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { IQueryable <T_OA_LENDARCHIVES> ArchivesList = archivesLendingBll.GetArchivesLendingInfoById(lendingID); return(ArchivesList != null?ArchivesList.ToList() : null); } }
//删除档案借阅信息 public string DeleteArchivesLending(string[] lendingID) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { string returnStr = ""; if (!archivesLendingBll.DeleteArchivesLening(lendingID)) { returnStr = "删除数据失败"; } return(returnStr); } }
//新增档案借阅信息 public string AddArchivesLending(T_OA_LENDARCHIVES archivesLendingInfo) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { string returnStr = ""; if (!archivesLendingBll.AddArchivesLending(archivesLendingInfo)) { returnStr = "添加数据失败"; } return(returnStr); } }
//更新档案借阅信息 public string UpdateArchivesLending(T_OA_LENDARCHIVES archivesLendingInfo) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { string returnStr = ""; if (!archivesLendingBll.UpdateArchivesLending(archivesLendingInfo)) { returnStr = "更新数据失败"; } //} return(returnStr); } }
public List <T_OA_LENDARCHIVES> GetLendingListByUserId(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { IQueryable <T_OA_LENDARCHIVES> ArchivesList = null; if (checkState != ((int)CheckStates.WaittingApproval).ToString()) //获取用户的提交借阅信息 { if (checkState != ((int)CheckStates.ALL).ToString()) { ArchivesList = archivesLendingBll.GetArchivesLendingInfoQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { ArchivesList = archivesLendingBll.GetArchivesLendingInfoQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } } else //通过工作流获取用户要审批的借阅信息 { V_ArchivesLending a = new V_ArchivesLending(); FLOW_FLOWRECORDDETAIL_T flowInfo = new FLOW_FLOWRECORDDETAIL_T(); //审核人 操作 //FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "0", "archivesLending", loginUserInfo.companyID, loginUserInfo.userID); FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "archivesLending", "", 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(); ArchivesList = archivesLendingBll.GetArchivesLendingInfoQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); } return(ArchivesList != null?ArchivesList.ToList() : null); } }
//更新档案借阅信息 public string UpdateArchivesLending(T_OA_LENDARCHIVES archivesLendingInfo) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { string returnStr = ""; if (!archivesLendingBll.UpdateArchivesLending(archivesLendingInfo)) { returnStr = "更新数据失败"; } //} return returnStr; } }
public List<T_OA_ARCHIVES> GetArchivesCanBorrowByCondition(string title, string type) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { return archivesLendingBll.GetArchivesCanBorrowByCondition(title, type); } }
public List<string> GetEmployeeNotReturnListByUserId(string StrEmployeeID) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { return archivesLendingBll.GetEmployeeNotReturnData(StrEmployeeID); } }
public bool IsArchivesCanBrowser(string archivesID) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { return archivesLendingBll.IsArchivesCanBrowser(archivesID); } }
public List<T_OA_LENDARCHIVES> GetLendingListByLendingId(string lendingID) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { IQueryable<T_OA_LENDARCHIVES> ArchivesList = archivesLendingBll.GetArchivesLendingInfoById(lendingID); return ArchivesList != null ? ArchivesList.ToList() : null; } }
public List<T_OA_LENDARCHIVES> GetLendingListByUserId(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { IQueryable<T_OA_LENDARCHIVES> ArchivesList = null; if (checkState != ((int)CheckStates.WaittingApproval).ToString()) //获取用户的提交借阅信息 { if (checkState != ((int)CheckStates.ALL).ToString()) { ArchivesList = archivesLendingBll.GetArchivesLendingInfoQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { ArchivesList = archivesLendingBll.GetArchivesLendingInfoQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } } else //通过工作流获取用户要审批的借阅信息 { V_ArchivesLending a = new V_ArchivesLending(); FLOW_FLOWRECORDDETAIL_T flowInfo = new FLOW_FLOWRECORDDETAIL_T(); //审核人 操作 //FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "0", "archivesLending", loginUserInfo.companyID, loginUserInfo.userID); FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "archivesLending", "", 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(); ArchivesList = archivesLendingBll.GetArchivesLendingInfoQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); } return ArchivesList != null ? ArchivesList.ToList() : null; } }
//查询档案能否被更新 public bool IsArchivesCanUpdate(T_OA_LENDARCHIVES archivesLendingInfo) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { return archivesLendingBll.IsArchivesCanUpdate(archivesLendingInfo); } }
//删除档案借阅信息 public string DeleteArchivesLending(string[] lendingID) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { string returnStr = ""; if (!archivesLendingBll.DeleteArchivesLening(lendingID)) { returnStr = "删除数据失败"; } return returnStr; } }
public List<T_OA_ARCHIVES> GetArchivesCanBorrow() { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { return archivesLendingBll.GetArchivesCanBorrow(); } }
//新增档案借阅信息 public string AddArchivesLending(T_OA_LENDARCHIVES archivesLendingInfo) { using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll()) { string returnStr = ""; if (!archivesLendingBll.AddArchivesLending(archivesLendingInfo)) { returnStr = "添加数据失败"; } return returnStr; } }