コード例 #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;
            }
        }