Пример #1
0
 //[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
 public List <V_BumfCompanySendDoc> GetSendDocInfosListByWorkFlow(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
 {
     try
     {
         using (BumfCompanySendDocManagementBll SendDocBll = new BumfCompanySendDocManagementBll())
         {
             List <V_BumfCompanySendDoc> CompanyDocList = null;
             if (checkState != ((int)CheckStates.WaittingApproval).ToString())  //获取用户的公司文档信息
             {
                 //List<V_ArchivesLending> CompanyDocList = archivesLendingBll.GetArchivesLendingInfo(userID, searchObj, null, checkState);
                 if (checkState != ((int)CheckStates.ALL).ToString())
                 {
                     CompanyDocList = SendDocBll.GetSendDocInfosListByTypeCompanyDepartmentSearch(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID);
                 }
                 else
                 {
                     CompanyDocList = SendDocBll.GetSendDocInfosListByTypeCompanyDepartmentSearch(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID);
                 }
             }
             else                    //通过工作流获取公司文档信息
             {
                 ServiceClient        workFlowWS = new ServiceClient();
                 V_BumfCompanySendDoc a          = new V_BumfCompanySendDoc();
                 SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T   flowInfo = new SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T(); //审核人 操作
                 SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "T_OA_SENDDOC", 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();
                 CompanyDocList = SendDocBll.GetSendDocInfosListByTypeCompanyDepartmentSearch(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID);
             }
             return(CompanyDocList != null ? CompanyDocList : null);
         }
     }
     catch (Exception ex)
     {
         Tracer.Debug("CompanySendDoc:" + System.DateTime.Now.ToString("d") + " " + ex.ToString());
         return(null);
     }
 }
Пример #2
0
 //函数有重载 以后考虑公司ID 部门ID时再调用
 public List <T_OA_SENDDOC> GetSendDocInfosListBySearch(string StrSendDoc, DateTime DtStart, DateTime DtEnd)
 {
     using (BumfCompanySendDocManagementBll SendDocBll = new BumfCompanySendDocManagementBll())
     {
         List <T_OA_SENDDOC> SendDocList = SendDocBll.GetSendDocInfosListByTypeCompanyDepartmentSearch(StrSendDoc, DtStart, DtEnd);
         if (SendDocList == null)
         {
             return(null);
         }
         else
         {
             return(SendDocList.ToList());
         }
     }
 }
Пример #3
0
        //[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
        public List<V_BumfCompanySendDoc> GetSendDocInfosListByWorkFlow(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
        {
            try
            {
                using (BumfCompanySendDocManagementBll SendDocBll = new BumfCompanySendDocManagementBll())
                {
                    List<V_BumfCompanySendDoc> CompanyDocList = null;
                    if (checkState != ((int)CheckStates.WaittingApproval).ToString())  //获取用户的公司文档信息
                    {
                        //List<V_ArchivesLending> CompanyDocList = archivesLendingBll.GetArchivesLendingInfo(userID, searchObj, null, checkState);
                        if (checkState != ((int)CheckStates.ALL).ToString())
                        {
                            CompanyDocList = SendDocBll.GetSendDocInfosListByTypeCompanyDepartmentSearch(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, checkState, loginUserInfo.userID);
                        }
                        else
                        {
                            CompanyDocList = SendDocBll.GetSendDocInfosListByTypeCompanyDepartmentSearch(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, "", loginUserInfo.userID);
                        }

                    }
                    else                    //通过工作流获取公司文档信息
                    {
                        ServiceClient workFlowWS = new ServiceClient();
                        V_BumfCompanySendDoc a = new V_BumfCompanySendDoc();
                        FLOW_FLOWRECORDDETAIL_T flowInfo = new FLOW_FLOWRECORDDETAIL_T();   //审核人 操作              
                        FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "T_OA_SENDDOC", 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();
                        CompanyDocList = SendDocBll.GetSendDocInfosListByTypeCompanyDepartmentSearch(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, flowAppList, checkState, loginUserInfo.userID);
                    }
                    return CompanyDocList != null ? CompanyDocList : null;
                }
            }
            catch (Exception ex)
            {
                Tracer.Debug("CompanySendDoc:" + System.DateTime.Now.ToString("d") + " " + ex.ToString());
                return null;
            }
        }
Пример #4
0
 //函数有重载 以后考虑公司ID 部门ID时再调用
 public List<T_OA_SENDDOC> GetSendDocInfosListBySearch(string StrSendDoc, DateTime DtStart, DateTime DtEnd)
 {
     using (BumfCompanySendDocManagementBll SendDocBll = new BumfCompanySendDocManagementBll())
     {
         List<T_OA_SENDDOC> SendDocList = SendDocBll.GetSendDocInfosListByTypeCompanyDepartmentSearch(StrSendDoc, DtStart, DtEnd);
         if (SendDocList == null)
         {
             return null;
         }
         else
         {
             return SendDocList.ToList();
         }
     }
 }