예제 #1
0
 public List <T_OA_ARCHIVES> GetArchivesCanBorrow()
 {
     using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
     {
         return(archivesLendingBll.GetArchivesCanBorrow());
     }
 }
예제 #2
0
 public List <string> GetEmployeeNotReturnListByUserId(string StrEmployeeID)
 {
     using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
     {
         return(archivesLendingBll.GetEmployeeNotReturnData(StrEmployeeID));
     }
 }
예제 #3
0
 //查询档案能否被更新
 public bool IsArchivesCanUpdate(T_OA_LENDARCHIVES archivesLendingInfo)
 {
     using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
     {
         return(archivesLendingBll.IsArchivesCanUpdate(archivesLendingInfo));
     }
 }
예제 #4
0
 public bool IsArchivesCanBrowser(string archivesID)
 {
     using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
     {
         return(archivesLendingBll.IsArchivesCanBrowser(archivesID));
     }
 }
예제 #5
0
 public List <T_OA_ARCHIVES> GetArchivesCanBorrowByCondition(string title, string type)
 {
     using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
     {
         return(archivesLendingBll.GetArchivesCanBorrowByCondition(title, type));
     }
 }
예제 #6
0
 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);
     }
 }
예제 #7
0
        //删除档案借阅信息
        public string DeleteArchivesLending(string[] lendingID)
        {
            using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
            {
                string returnStr = "";

                if (!archivesLendingBll.DeleteArchivesLening(lendingID))
                {
                    returnStr = "删除数据失败";
                }
                return(returnStr);
            }
        }
예제 #8
0
        //新增档案借阅信息
        public string AddArchivesLending(T_OA_LENDARCHIVES archivesLendingInfo)
        {
            using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
            {
                string returnStr = "";

                if (!archivesLendingBll.AddArchivesLending(archivesLendingInfo))
                {
                    returnStr = "添加数据失败";
                }
                return(returnStr);
            }
        }
예제 #9
0
        //更新档案借阅信息
        public string UpdateArchivesLending(T_OA_LENDARCHIVES archivesLendingInfo)
        {
            using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
            {
                string returnStr = "";


                if (!archivesLendingBll.UpdateArchivesLending(archivesLendingInfo))
                {
                    returnStr = "更新数据失败";
                }
                //}
                return(returnStr);
            }
        }
예제 #10
0
        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);
            }
        }
예제 #11
0
        //更新档案借阅信息
        public string UpdateArchivesLending(T_OA_LENDARCHIVES archivesLendingInfo)
        {
            using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
            {
                string returnStr = "";


                if (!archivesLendingBll.UpdateArchivesLending(archivesLendingInfo))
                {
                    returnStr = "更新数据失败";
                }
                //}
                return returnStr;
            }
        }
예제 #12
0
 public List<T_OA_ARCHIVES> GetArchivesCanBorrowByCondition(string title, string type)
 {
     using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
     {
         return archivesLendingBll.GetArchivesCanBorrowByCondition(title, type);
     }
 }
예제 #13
0
 public List<string> GetEmployeeNotReturnListByUserId(string StrEmployeeID)
 {
     using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
     {
         return archivesLendingBll.GetEmployeeNotReturnData(StrEmployeeID);
     }
 }
예제 #14
0
 public bool IsArchivesCanBrowser(string archivesID)
 {
     using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
     {
         return archivesLendingBll.IsArchivesCanBrowser(archivesID);
     }
 }
예제 #15
0
 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;
     }
 }
예제 #16
0
        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;
            }
        }
예제 #17
0
 //查询档案能否被更新
 public bool IsArchivesCanUpdate(T_OA_LENDARCHIVES archivesLendingInfo)
 {
     using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
     {
         return archivesLendingBll.IsArchivesCanUpdate(archivesLendingInfo);
     }
 }
예제 #18
0
        //删除档案借阅信息
        public string DeleteArchivesLending(string[] lendingID)
        {
            using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
            {
                string returnStr = "";

                if (!archivesLendingBll.DeleteArchivesLening(lendingID))
                {
                    returnStr = "删除数据失败";
                }
                return returnStr;
            }
        }
예제 #19
0
 public List<T_OA_ARCHIVES> GetArchivesCanBorrow()
 {
     using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
     {
         return archivesLendingBll.GetArchivesCanBorrow();
     }
 }
예제 #20
0
        //新增档案借阅信息
        public string AddArchivesLending(T_OA_LENDARCHIVES archivesLendingInfo)
        {
            using (ArchivesLendingBll archivesLendingBll = new ArchivesLendingBll())
            {
                string returnStr = "";

                if (!archivesLendingBll.AddArchivesLending(archivesLendingInfo))
                {
                    returnStr = "添加数据失败";
                }
                return returnStr;
            }
        }