[OperationContract]//删除申请信息 public bool DeleteViewapplications(string[] viewapplicationsID) { using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL()) { return(cvb.DeleteViewapplications(viewapplicationsID)); } }
public T_OA_CONTRACTVIEW GetContractViewById(string contractViewID) { using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL()) { T_OA_CONTRACTVIEW ContractView = cvb.GetContractViewById(contractViewID); return(ContractView == null ? null : ContractView); } }
[OperationContract]//(更新合同查看申请)提交审核 public string UpdateContractView(T_OA_CONTRACTVIEW contractView) { using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL()) { string result = ""; if (!cvb.UpdateContractView(contractView)) { result = "更新数据失败!"; } return(result); } }
[OperationContract]//添加合同查看申请 public string ContractViewapplicationsAdd(T_OA_CONTRACTVIEW ContractApplicationView) { using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL()) { string returnStr = ""; if (!cvb.ContractViewapplicationsAdd(ContractApplicationView)) { returnStr = "添加数据失败"; } return(returnStr); } }
[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 T_OA_CONTRACTVIEW GetContractViewById(string contractViewID) { using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL()) { T_OA_CONTRACTVIEW ContractView = cvb.GetContractViewById(contractViewID); return ContractView == null ? null : ContractView; } }
[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 //通过工作流获取用户要审批的申请信息 { FLOW_FLOWRECORDDETAIL_T flowInfo = new FLOW_FLOWRECORDDETAIL_T(); //审核人 操作 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(); } } } }
[OperationContract]//删除申请信息 public bool DeleteViewapplications(string[] viewapplicationsID) { using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL()) { return cvb.DeleteViewapplications(viewapplicationsID); } }
[OperationContract]//(更新合同查看申请)提交审核 public string UpdateContractView(T_OA_CONTRACTVIEW contractView) { using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL()) { string result = ""; if (!cvb.UpdateContractView(contractView)) { result = "更新数据失败!"; } return result; } }
[OperationContract]//添加合同查看申请 public string ContractViewapplicationsAdd(T_OA_CONTRACTVIEW ContractApplicationView) { using (ContractViewapplicationsBLL cvb = new ContractViewapplicationsBLL()) { string returnStr = ""; if (!cvb.ContractViewapplicationsAdd(ContractApplicationView)) { returnStr = "添加数据失败"; } return returnStr; } }