Exemplo n.º 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();
                        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;
            }
        }
Exemplo n.º 2
0
        //[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
        public List<V_BumfCompanySendDoc> GetSendDocInfosListByWorkFlowForMVC(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo,ref int recordsTotal)
        {
            try
            {
                using (BumfCompanySendDocManagementBll SendDocBll = new BumfCompanySendDocManagementBll())
                {
                    //HouseInfoManagerBll bll = new HouseInfoManagerBll();
                    //List<string> postIDs = new List<string>();
                    //postIDs.Add("0c7a189f-fdbe-4632-a092-52c3463e0c7b");
                    //postIDs.Add("6dbed528-5d9f-42f9-8278-178c4e5d8b1c");
                    //postIDs.Add("9e0bf63a-023f-4b6a-a18e-fa5dbe057d8b");
                    //List<string> postID1s = new List<string>();
                    //postID1s.Add("c1f72286-eee5-45bd-bded-5993e8a317c9");
                    //postID1s.Add("06aa0d8b-b32e-4eee-9d3c-db08b6a3b1fd");
                    //List<string> postID2s = new List<string>();
                    //postID2s.Add("cafdca8a-c630-4475-a65d-490d052dca36");
                    //postID2s.Add("bac05c76-0f5b-40ae-b73b-8be541ed35ed");
                    //int aa = 99999;
                    //bll.GetHouseAndNoticeInfoToMobile(pageIndex, pageSize, ref pageCount, ref aa, "6ba49ec8-feb0-4f78-b801-2b8ea5387ab3", postID1s, postID2s, postID1s, string.Empty, null,string.Empty);
                    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.GetSendDocInfosListByTypeCompanyDepartmentSearchForMVC(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, checkState, loginUserInfo.userID, ref recordsTotal);
                        }
                        else
                        {
                            CompanyDocList = SendDocBll.GetSendDocInfosListByTypeCompanyDepartmentSearchForMVC(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, "", loginUserInfo.userID, ref recordsTotal);
                        }

                    }
                    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.GetSendDocInfosListByTypeCompanyDepartmentSearchForMVC(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, flowAppList, checkState, loginUserInfo.userID, ref recordsTotal);
                    }
                    return CompanyDocList != null ? CompanyDocList : null;
                }
            }
            catch (Exception ex)
            {
                Tracer.Debug("CompanySendDoc:"+System.DateTime.Now.ToString("d")+" "+ex.ToString());
                return null;
            }
        }