当前位置: 首页>>代码示例>>C#>>正文


C# ServiceClient.GetFlowInfo方法代码示例

本文整理汇总了C#中ServiceClient.GetFlowInfo方法的典型用法代码示例。如果您正苦于以下问题:C# ServiceClient.GetFlowInfo方法的具体用法?C# ServiceClient.GetFlowInfo怎么用?C# ServiceClient.GetFlowInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ServiceClient的用法示例。


在下文中一共展示了ServiceClient.GetFlowInfo方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetApporvalList

 public List<T_OA_APPROVALINFO> GetApporvalList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string flagState, LoginUserInfo loginUserInfo)//0待审核  1已审核
 {
     ApprovalManagementBll approvalBll = new ApprovalManagementBll();
     //using (ApprovalManagementBll approvalBll = new ApprovalManagementBll())
     //{
     if (flagState != "4")//草稿,审核完成(已过,未过)   建立人操作
     {
         IQueryable<T_OA_APPROVALINFO> approvalList = approvalBll.GetApprovalList(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, loginUserInfo.userID, null, flagState);
         if (approvalList == null)
         {
             return null;
         }
         else
         {
             return approvalList.ToList();
         }
     }
     else//审批人
     {
         ServiceClient workFlowWS = new ServiceClient();
         string isView = "1";
         if (flagState == "4")
         {
             isView = "0";
         }
         SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "1", "0", "T_OA_APPROVALINFO", "", loginUserInfo.userID);
         if (flowList == null)
         {
             return null;
         }
         List<string> guidStringList = new List<string>();
         foreach (SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T f in flowList)
         {
             guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T.FORMID);
         }
         if (guidStringList.Count < 1)
         {
             return null;
         }
         IQueryable<T_OA_APPROVALINFO> approList = approvalBll.GetApprovalList(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, loginUserInfo.userID, guidStringList, flagState);
         if (approList == null)
         {
             return null;
         }
         else
         {
             return approList.ToList();
         }
     }
     //}
 }
开发者ID:JuRogn,项目名称:OA,代码行数:51,代码来源:ApprovalManagementService.cs

示例2: GetMaintenanceAppList

 private List<T_OA_MAINTENANCEAPP> GetMaintenanceAppList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     IEnumerable<T_OA_MAINTENANCEAPP> maintenanceAppList = null;
     MaintenanceAPPBll maBll = new MaintenanceAPPBll();
     if (checkState != "4")//草稿,审核完成(已过,未过)   建立人操作
     {
         maintenanceAppList = maBll.GetInfoList(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, null, checkState);
     }
     else//审批人
     {
         ServiceClient workFlowWS = new ServiceClient();
         string isView = "1";
         if (checkState == "4")
         {
             isView = "0";
         }
         SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_MAINTENANCEAPP", companyId, userId);
         if (flowList == null)
         {
             return null;
         }
         List<string> guidStringList = new List<string>();
         foreach (SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T f in flowList)
         {
             guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T .FORMID );
         }
         if (guidStringList.Count < 1)
         {
             return null;
         }
         maintenanceAppList = maBll.GetInfoList(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, guidStringList, checkState);
     }
     if (maintenanceAppList == null)
     {
         return null;
     }
     else
     {
         return maintenanceAppList.ToList();
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:41,代码来源:MaintenanceAPPService.cs

示例3: Gets_VDInfo

 public List<T_OA_VEHICLEDISPATCH> Gets_VDInfo(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
 {
     VehicleDispatchManageBll vehicleDispatchManagerBll = new VehicleDispatchManageBll();
     IQueryable<T_OA_VEHICLEDISPATCH> infoList = null;
     if (checkState != "4")//草稿,审核完成(已过,未过)   建立人操作
     {
         infoList = vehicleDispatchManagerBll.Gets_VDInfo(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, loginUserInfo.userID, null, checkState);
     }
     else//审批人
     {
         ServiceClient workFlowWS = new ServiceClient();
         string isView = "1";
         if (checkState == "4")
         {
             isView = "0";
         }
         SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_VEHICLEDISPATCH", loginUserInfo.companyID, loginUserInfo.userID);
         if (flowList == null)
         {
             return null;
         }
         List<string> guidStringList = new List<string>();
         foreach (SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T f in flowList)
         {
             guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T.FORMID);
         }
         if (guidStringList.Count < 1)
         {
             return null;
         }
         infoList = vehicleDispatchManagerBll.Gets_VDInfo(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, loginUserInfo.userID, guidStringList, checkState);
     }
     if (infoList == null)
     {
         return null;
     }
     else
     {
         return infoList.ToList();
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:41,代码来源:VehicleDispatchManageService.cs

示例4: GetConserVationList

 private List<T_OA_CONSERVATION> GetConserVationList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, int pageCount, string companyId, string userId, string checkState)
 {
     ConserVationManagementBll cvmBll = new ConserVationManagementBll();
     IQueryable<T_OA_CONSERVATION> conserVationList = null;
     if (checkState != "4")//草稿,审核完成(已过,未过)   建立人操作
     {
         conserVationList = cvmBll.GetInfoList(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, null, checkState);
     }
     else//审批人
     {
         ServiceClient workFlowWS = new ServiceClient();
         string isView = "1";
         if (checkState == "4")
         {
             isView = "0";
         }
         SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_CONSERVATION", companyId, userId);//ConserVationForm
         if (flowList == null)
         {
             return null;
         }
         List<string> guidStringList = new List<string>();
         foreach (SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T f in flowList)
         {
             guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T .FORMID);
         }
         if (guidStringList.Count < 1)
         {
             return null;
         }
         conserVationList = cvmBll.GetInfoList(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, guidStringList, checkState);
     }
     if (conserVationList == null)
     {
         return null;
     }
     else
     {
         return conserVationList.ToList();
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:41,代码来源:ConserVationManageService.cs

示例5: GetVehicleUseAppInfoList

 public List<T_OA_VEHICLEUSEAPP> GetVehicleUseAppInfoList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     VehicleUseAppManageBll vehicleUseManagerBll = new VehicleUseAppManageBll();
     IEnumerable<T_OA_VEHICLEUSEAPP> infoList = null;
     if (checkState != "4")//草稿,审核完成(已过,未过)   建立人操作
     {
         infoList = vehicleUseManagerBll.GetVehicleInfoList(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, null, checkState);
     }
     else//审批人
     {
         ServiceClient workFlowWS = new ServiceClient();
         string isView = "1";
         if (checkState == "4")
         {
             isView = "0";
         }
         FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_VEHICLEUSEAPP", companyId, userId);
         if (flowList == null)
         {
             return null;
         }
         List<string> guidStringList = new List<string>();
         foreach (FLOW_FLOWRECORDDETAIL_T f in flowList)
         {
             guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T .FORMID );
         }
         if (guidStringList.Count < 1)
         {
             return null;
         }
         infoList = vehicleUseManagerBll.GetVehicleInfoList(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, guidStringList, checkState);
     }
     if (infoList == null)
     {
         return null;
     }
     else
     {
         return infoList.ToList();
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:41,代码来源:VehicleUseAppManageService.cs

示例6: GetEmployeeSurveyViewList

 public List<V_EmployeeSurvey> GetEmployeeSurveyViewList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     using (EmployeeSurveyViewBll employeeSurveyViewBll = new EmployeeSurveyViewBll())
     {
         IQueryable<V_EmployeeSurvey> infoViewList = null;
         if (checkState != "4")//草稿,审核完成(已过,未过)   建立人操作
         {
             infoViewList = employeeSurveyViewBll.GetEmployeeSurveyViewListByFlag(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, null, checkState);
         }
         else
         {
             string isView = "1";
             if (checkState == "4")
             {
                 isView = "0";
             }
             ServiceClient workFlowWS = new ServiceClient();
             SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_REQUIREMASTER", companyId, userId);
             if (flowList == null)
             {
                 return null;
             }
             List<string> guidStringList = new List<string>();
             foreach (SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T f in flowList)
             {
                 guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T.FORMID);
             }
             if (guidStringList.Count < 1)
             {
                 return null;
             }
             infoViewList = employeeSurveyViewBll.GetEmployeeSurveyViewListByFlag(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, guidStringList, checkState);
         }
         if (infoViewList != null)
         {
             return infoViewList.ToList();
         }
         return null;
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:40,代码来源:EmployeeSurveyViewService.cs

示例7: Get_VCRecords

 public IEnumerable<T_OA_CONSERVATIONRECORD> Get_VCRecords(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
 {
     ConserVationManagementBll cvmBll = new ConserVationManagementBll();
     IEnumerable<T_OA_CONSERVATIONRECORD> infoList = null;
     if (checkState != "4")//草稿,审核完成(已过,未过)   建立人操作
     {
         infoList = cvmBll.Get_VCRecords(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, loginUserInfo.userID, null, checkState);
     }
     else//审批人
     {
         ServiceClient workFlowWS = new ServiceClient();
         string isView = "1";
         if (checkState == "4")
         {
             isView = "0";
         }
         SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_CONSERVATIONRECORD", loginUserInfo.companyID, loginUserInfo.userID);
         if (flowList == null)
         {
             return null;
         }
         List<string> guidStringList = new List<string>();
         foreach (SMT.SaaS.BLLCommonServices.FlowWFService.FLOW_FLOWRECORDDETAIL_T f in flowList)
         {
             guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T.FORMID);
         }
         if (guidStringList.Count < 1)
         {
             return null;
         }
         infoList = cvmBll.Get_VCRecords(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, loginUserInfo.userID, guidStringList, checkState);
     }
     if (infoList == null)
     {
         return null;
     }
     else
     {
         return infoList.ToList();
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:41,代码来源:ConserVationManageService.cs

示例8: GetMeetingInfoListByFlow

        public List<V_MeetingInfo> GetMeetingInfoListByFlow(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
        {
            using (MeetingManagementBll MeetingInfoBLL = new MeetingManagementBll())
            {
                IQueryable<V_MeetingInfo> MeetingInfoList = null;
                if (checkState != ((int)CheckStates.WaittingApproval).ToString())  //获取用户的提交借阅信息
                {
                    if (checkState == ((int)CheckStates.ALL).ToString())
                    {
                        MeetingInfoList = MeetingInfoBLL.GetMeetingInfos(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, "", loginUserInfo.userID);
                    }
                    else
                    {
                        MeetingInfoList = MeetingInfoBLL.GetMeetingInfos(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, checkState, loginUserInfo.userID);
                    }
                }
                else                    //通过工作流获取用户要审批的借阅信息
                {
                    ServiceClient workFlowWS = new ServiceClient();
                    V_MeetingInfo a = new V_MeetingInfo();
                    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", "MeetingInfo", 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();
                    MeetingInfoList = MeetingInfoBLL.GetMeetingInfos(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, flowAppList, checkState, loginUserInfo.userID);
                }
                return MeetingInfoList != null ? MeetingInfoList.ToList() : null;
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:43,代码来源:MeetingManagementService.cs

示例9: GetMeetingRoomAppInfosByFlow

        public List<V_MeetingRoomApp> GetMeetingRoomAppInfosByFlow(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo)
        {
            using (MeetingRoomAppManagementBll RoomAppBll = new MeetingRoomAppManagementBll())
            {
                IQueryable<V_MeetingRoomApp> RoomAppsList = null;

                if (checkState != ((int)CheckStates.WaittingApproval).ToString())  //获取待审核信息
                {
                    if (checkState == ((int)CheckStates.ALL).ToString())
                    {
                        RoomAppsList = RoomAppBll.GetMeetingRoomAppInfosByFlow(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, "", loginUserInfo.userID);
                    }
                    else
                    {
                        RoomAppsList = RoomAppBll.GetMeetingRoomAppInfosByFlow(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, null, checkState, loginUserInfo.userID);
                    }
                }
                else
                {
                    ServiceClient workFlowWS = new ServiceClient();
                    V_MeetingRoomApp a = new V_MeetingRoomApp();
                    FLOW_FLOWRECORDDETAIL_T flowInfo = new FLOW_FLOWRECORDDETAIL_T();   //审核人 操作

                    FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "MeetingRoomApp", 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();
                    RoomAppsList = RoomAppBll.GetMeetingRoomAppInfosByFlow(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, flowAppList, checkState, loginUserInfo.userID);
                }
                return RoomAppsList != null ? RoomAppsList.ToList() : null;
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:45,代码来源:MeetingManagementService.cs

示例10: GetSendDocInfosListByWorkFlow

        //[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;
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:54,代码来源:BumfManagementService.cs

示例11: GetSendDocInfosListByWorkFlowForMVC

        //[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;
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:67,代码来源:BumfManagementService.cs

示例12: Get_SSurveys

 public List<V_Satisfaction> Get_SSurveys(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string companyId, string userId, string checkState)
 {
     using (SatisfactionBll satBll = new SatisfactionBll())
     {
         IQueryable<V_Satisfaction> infoViewList = null;
         if (checkState != "4")//草稿,审核完成(已过,未过)   建立人操作
         {
             infoViewList = satBll.Get_SSurveys(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, null, checkState);
         }
         else
         {
             string isView = "1";
             if (checkState == "4")
             {
                 isView = "0";
             }
             ServiceClient workFlowWS = new ServiceClient();
             FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", isView, "T_OA_SATISFACTIONMASTER", companyId, userId);
             if (flowList == null)
             {
                 return null;
             }
             List<string> guidStringList = new List<string>();
             foreach (FLOW_FLOWRECORDDETAIL_T f in flowList)
             {
                 guidStringList.Add(f.FLOW_FLOWRECORDMASTER_T.FORMID);
             }
             if (guidStringList.Count < 1)
             {
                 return null;
             }
             infoViewList = satBll.Get_SSurveys(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId, guidStringList, checkState);
         }
         if (infoViewList != null)
         {
             return infoViewList.ToList();
         }
         return null;
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:40,代码来源:SatisfactionService.cs


注:本文中的ServiceClient.GetFlowInfo方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。