[OperationContract]//删除撤销信息 public bool DeletePaymentWithdrawal(string[] paymentWithdrawalID) { using (WelfarePaymentWithdrawalBLL wpwl = new WelfarePaymentWithdrawalBLL()) { return(wpwl.DeletePaymentWithdrawal(paymentWithdrawalID)); } }
[OperationContract]//根据申请ID获取撤销记录 public T_OA_WELFAREDISTRIBUTEUNDO GetWelfarePaymentWithdrawalById(string beingWithdrawnId) { using (WelfarePaymentWithdrawalBLL wpwl = new WelfarePaymentWithdrawalBLL()) { T_OA_WELFAREDISTRIBUTEUNDO WelfarePaymentWithdrawal = wpwl.GetWelfarePaymentWithdrawalById(beingWithdrawnId); return(WelfarePaymentWithdrawal == null ? null : WelfarePaymentWithdrawal); } }
[OperationContract]//更新申请信息 public string UpdateWelfarePaymentWithdrawal(T_OA_WELFAREDISTRIBUTEUNDO WelfarePaymentWithdrawalView) { using (WelfarePaymentWithdrawalBLL wpwl = new WelfarePaymentWithdrawalBLL()) { string result = ""; if (!wpwl.UpdateWelfarePaymentWithdrawal(WelfarePaymentWithdrawalView)) { result = "修改数据失败!"; } return(result); } }
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 //通过工作流获取用户要审批的申请信息 { 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_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()); } } } }
[OperationContract]//添加福利发放撤销记录 public string WelfarePaymentWithdrawalAdd(T_OA_WELFAREDISTRIBUTEUNDO WelfarePaymentWithdrawalView) { using (WelfarePaymentWithdrawalBLL wpwl = new WelfarePaymentWithdrawalBLL()) { string returnStr = ""; if (!wpwl.IsExistWelfarePaymentWithdrawal(WelfarePaymentWithdrawalView.WELFAREDISTRIBUTEUNDOID, WelfarePaymentWithdrawalView.T_OA_WELFAREDISTRIBUTEMASTER.WELFAREDISTRIBUTEMASTERID)) { if (!wpwl.WelfarePaymentWithdrawalAdd(WelfarePaymentWithdrawalView)) { returnStr = "添加数据失败"; } } return(returnStr); } }
[OperationContract]//删除撤销信息 public bool DeletePaymentWithdrawal(string[] paymentWithdrawalID) { using (WelfarePaymentWithdrawalBLL wpwl = new WelfarePaymentWithdrawalBLL()) { return wpwl.DeletePaymentWithdrawal(paymentWithdrawalID); } }
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(); } } } }
[OperationContract]//根据申请ID获取撤销记录 public T_OA_WELFAREDISTRIBUTEUNDO GetWelfarePaymentWithdrawalById(string beingWithdrawnId) { using (WelfarePaymentWithdrawalBLL wpwl = new WelfarePaymentWithdrawalBLL()) { T_OA_WELFAREDISTRIBUTEUNDO WelfarePaymentWithdrawal = wpwl.GetWelfarePaymentWithdrawalById(beingWithdrawnId); return WelfarePaymentWithdrawal == null ? null : WelfarePaymentWithdrawal; } }
[OperationContract]//更新申请信息 public string UpdateWelfarePaymentWithdrawal(T_OA_WELFAREDISTRIBUTEUNDO WelfarePaymentWithdrawalView) { using (WelfarePaymentWithdrawalBLL wpwl = new WelfarePaymentWithdrawalBLL()) { string result = ""; if (!wpwl.UpdateWelfarePaymentWithdrawal(WelfarePaymentWithdrawalView)) { result = "修改数据失败!"; } return result; } }
[OperationContract]//添加福利发放撤销记录 public string WelfarePaymentWithdrawalAdd(T_OA_WELFAREDISTRIBUTEUNDO WelfarePaymentWithdrawalView) { using (WelfarePaymentWithdrawalBLL wpwl = new WelfarePaymentWithdrawalBLL()) { string returnStr = ""; if (!wpwl.IsExistWelfarePaymentWithdrawal(WelfarePaymentWithdrawalView.WELFAREDISTRIBUTEUNDOID, WelfarePaymentWithdrawalView.T_OA_WELFAREDISTRIBUTEMASTER.WELFAREDISTRIBUTEMASTERID)) { if (!wpwl.WelfarePaymentWithdrawalAdd(WelfarePaymentWithdrawalView)) { returnStr = "添加数据失败"; } } return returnStr; } }