public List<T_OA_ORGANIZATION> GetOrganList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { // 在此处添加操作实现 IQueryable<T_OA_ORGANIZATION> organList = null; using (OrganManagementBll organBll = new OrganManagementBll()) { if (checkState != ((int)CheckStates.WaittingApproval).ToString()) { if (checkState != ((int)CheckStates.ALL).ToString()) { organList = organBll.GetOrganQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { organList = organBll.GetOrganQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } } else //获取审批列表 { FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "Organization", 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(); organList = organBll.GetOrganQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); } return organList != null ? organList.ToList() : null; } }
public List<V_Travelmanagement> GetTravelmanagementListByUserId(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (TravelmanagementBLL TL = new TravelmanagementBLL()) { List<V_Travelmanagement> TravelmanagementList = null; if (checkState != ((int)CheckStates.WaittingApproval).ToString()) //获取用户的提交申请信息 { if (checkState != ((int)CheckStates.ALL).ToString()) { TravelmanagementList = TL.GetTravelmanagementInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { TravelmanagementList = TL.GetTravelmanagementInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } return TravelmanagementList != null ? TravelmanagementList.ToList() : null; } else //通过工作流获取用户要审批的申请信息 { FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "1", "0", "T_OA_BUSINESSTRIP", loginUserInfo.companyID, loginUserInfo.userID); FLOW_FLOWRECORDDETAIL_T[] ReportflowList = workFlowWS.GetFlowInfo("", "", "1", "0", "T_OA_BUSINESSREPORT", loginUserInfo.companyID, loginUserInfo.userID); FLOW_FLOWRECORDDETAIL_T[] ReimflowList = workFlowWS.GetFlowInfo("", "", "1", "0", "T_OA_TRAVELREIMBURSEMENT", loginUserInfo.companyID, loginUserInfo.userID); List<V_FlowAPP> flowAppList = new List<V_FlowAPP>(); if (flowList != null) { 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); } } //出差报告流程调用 if (ReportflowList != null) { for (int i = 0; i < ReportflowList.Length; i++) { V_FlowAPP App = new V_FlowAPP(); App.Guid = ReportflowList[i].FLOWRECORDDETAILID; App.FormID = ReportflowList[i].FLOW_FLOWRECORDMASTER_T.FORMID; App.EditUserID = ReportflowList[i].EDITUSERID; App.EditUserName = ReportflowList[i].EDITUSERNAME; flowAppList.Add(App); } } //出差报销 if (ReimflowList != null) { for (int i = 0; i < ReimflowList.Length; i++) { V_FlowAPP App = new V_FlowAPP(); App.Guid = ReimflowList[i].FLOWRECORDDETAILID; App.FormID = ReimflowList[i].FLOW_FLOWRECORDMASTER_T.FORMID; App.EditUserID = ReimflowList[i].EDITUSERID; App.EditUserName = ReimflowList[i].EDITUSERNAME; flowAppList.Add(App); } } checkState = ((int)CheckStates.Approving).ToString(); TravelmanagementList = TL.GetTravelmanagementInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); } return TravelmanagementList != null ? TravelmanagementList.ToList() : null; } }
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; } }
public List<T_OA_LICENSEUSER> GetLicenseBorrowList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { IQueryable<T_OA_LICENSEUSER> licenseList = null; using (LicenseBorrowBll licenseBorrowBll = new LicenseBorrowBll()) { if (checkState != ((int)CheckStates.WaittingApproval).ToString()) { if (checkState != ((int)CheckStates.ALL).ToString()) { licenseList = licenseBorrowBll.GetLicenseQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { licenseList = licenseBorrowBll.GetLicenseQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } } else { FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "licenseBorrow", 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(); licenseList = licenseBorrowBll.GetLicenseQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); } return licenseList != null ? licenseList.ToList() : null; } }
[OperationContract]//查询合同查看申请 public List<V_ContractView> GetInquiryViewContractApplication(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL()) { List<V_ContractView> ContractViewList = null; if (checkState != ((int)CheckStates.WaittingApproval).ToString()) //获取用户的提交申请信息 { //List<V_ContractView> ContractViewList = cab.GetInquiryViewContractApplication(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState); if (checkState != ((int)CheckStates.ALL).ToString()) { ContractViewList = cvb.GetInquiryViewContractApplication(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { ContractViewList = cvb.GetInquiryViewContractApplication(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } return ContractViewList != null ? ContractViewList.ToList() : null; } else //通过工作流获取用户要审批的申请信息 { 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_CONTRACTVIEW", 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(); ContractViewList = cvb.GetInquiryViewContractApplication(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); if (ContractViewList == null) { return null; } else { return ContractViewList.ToList(); } } } }
public List<V_ContractApplications> GetApprovalListById(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (ContractApprovalBLL cab = new ContractApprovalBLL()) { List<V_ContractApplications> ArchivesList = null; if (checkState != ((int)CheckStates.WaittingApproval).ToString()) //获取用户的提交申请信息 { if (checkState != ((int)CheckStates.ALL).ToString()) { ArchivesList = cab.GetApprovalInfoPrinting(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState); } else { ArchivesList = cab.GetApprovalInfoPrinting(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, ""); } return ArchivesList != null ? ArchivesList.ToList() : null; } else //通过工作流获取用户要审批的申请信息 { FLOW_FLOWRECORDDETAIL_T flowInfo = new FLOW_FLOWRECORDDETAIL_T(); //审核人 操作 FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "T_OA_CONTRACTAPP", 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(); ArchivesList = cab.GetApprovalInfoPrinting(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState); if (ArchivesList == null) { return null; } else { return ArchivesList.ToList(); } } } }
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; } }
public List<V_WelfarePaymentWithdrawal> GetWelfarePaymentWithdrawal(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (WelfarePaymentWithdrawalBLL wpwl = new WelfarePaymentWithdrawalBLL()) { List<V_WelfarePaymentWithdrawal> ArchivesList = null; if (checkState != ((int)CheckStates.WaittingApproval).ToString()) //获取用户的提交申请信息 { if (checkState != ((int)CheckStates.ALL).ToString()) { ArchivesList = wpwl.GetWelfarePaymentWithdrawal(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { ArchivesList = wpwl.GetWelfarePaymentWithdrawal(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } return ArchivesList != null ? ArchivesList.ToList() : null; } else //通过工作流获取用户要审批的申请信息 { FLOW_FLOWRECORDDETAIL_T flowInfo = new FLOW_FLOWRECORDDETAIL_T(); //审核人 操作 FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "T_OA_WELFAREDISTRIBUTEUNDO", 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(); ArchivesList = wpwl.GetWelfarePaymentWithdrawal(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); if (ArchivesList == null) { return null; } else { return ArchivesList.ToList(); } } } }
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; } }
public List<V_TravelReimbursement> GetTravelReimbursementListByUserId(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (TravelReimbursementBLL TrBll = new TravelReimbursementBLL()) { List<V_TravelReimbursement> ArchivesList = null; if (checkState != ((int)CheckStates.WaittingApproval).ToString())//获取用户的提交报销信息 { if (checkState != ((int)CheckStates.ALL).ToString()) { ArchivesList = TrBll.GetTravelReimbursementInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { ArchivesList = TrBll.GetTravelReimbursementInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } return ArchivesList != null ? ArchivesList.ToList() : null; } else //通过工作流获取用户要审批的报销信息 { 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_TRAVELREIMBURSEMENT", 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(); ArchivesList = TrBll.GetTravelReimbursementInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); } return ArchivesList != null ? ArchivesList.ToList() : null; } }
public List<V_WelfareStandard> GetWelfareListByUserId(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL()) { List<V_WelfareStandard> ArchivesList = null; if (checkState != ((int)CheckStates.WaittingApproval).ToString()) //获取用户的提交申请信息 { //List<V_WelfareStandard> ArchivesList = bal.GetWelfareInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); if (checkState != ((int)CheckStates.ALL).ToString()) { ArchivesList = bal.GetWelfareInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { ArchivesList = bal.GetWelfareInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } return ArchivesList != null ? ArchivesList.ToList() : null; } else //通过工作流获取用户要审批的申请信息 { 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_WELFAREMASERT", 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(); ArchivesList = bal.GetWelfareInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); if (ArchivesList == null) { return null; } else { return ArchivesList.ToList(); } } } }
//[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; } }
//[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; } }
public List<V_HouseHireApp> GetHireAppListPagingByHouseInfoOrList(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (HouseHireAppManagementBll houseHireAppBll = new HouseHireAppManagementBll()) { if (checkState != ((int)CheckStates.WaittingApproval).ToString()) { IQueryable<V_HouseHireApp> ent; if (checkState != ((int)CheckStates.ALL).ToString()) { ent = houseHireAppBll.GetHireAppQueryWithPagingByHouseInfoOrList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { ent = houseHireAppBll.GetHireAppQueryWithPagingByHouseInfoOrList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } return ent.Count() > 0 ? ent.ToList() : null; } else { FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "houseHireApp", 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(); IQueryable<V_HouseHireApp> ent = houseHireAppBll.GetHireAppQueryWithPagingByHouseInfoOrList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); return ent.Count() > 0 ? ent.ToList() : null; } } }
public List<T_OA_HOUSEINFOISSUANCE> GetIssunaceListPaging(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { //IQueryable<T_OA_HOUSEINFOISSUANCE> ent = issuanceBll.QueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount); using (HouseInfoIssuanceBll issuanceBll = new HouseInfoIssuanceBll()) { if (checkState != ((int)CheckStates.WaittingApproval).ToString()) { IQueryable<T_OA_HOUSEINFOISSUANCE> ent = null; if (checkState == ((int)CheckStates.ALL).ToString()) { ent = issuanceBll.GetIssuanceQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, "", loginUserInfo.userID); } else { ent = issuanceBll.GetIssuanceQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } return ent !=null ? ent.ToList() : null; } else { FLOW_FLOWRECORDDETAIL_T[] flowList = workFlowWS.GetFlowInfo("", "", "", "0", "housingIssuance", 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(); IQueryable<T_OA_HOUSEINFOISSUANCE> ent = issuanceBll.GetIssuanceQueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); return ent.Count() > 0 ? ent.ToList() : null; //return null; } } }