[OperationContract]//根据条件查询福利标准申请信息 private bool IsExistWelfareProvision(string WelfareProvision, string WelfareStandardID) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { return(wpbll.IsExistWelfareProvision(WelfareProvision, WelfareStandardID)); } }
[OperationContract]//删除申请信息 public bool DeleteWelfareProvision(string[] WelfareStandardID) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { return(wpbll.DeleteWelfareProvision(WelfareStandardID)); } }
[OperationContract]//根据公司Id查询福利标准信息 public T_OA_WELFAREMASERT GetWelfareByCompanyId(string companyId, string welfreRoId, DateTime releaseTime, string checkState, string welfareId) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { return(wpbll.GetWelfareByCompanyId(companyId, welfreRoId, releaseTime, checkState, welfareId)); } }
[OperationContract]//根据福利项目ID查询出所有的公司 public List <T_OA_WELFAREMASERT> GetWelfareByWelfareproID(string welfareproID, string checkState) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { return(wpbll.GetWelfareByWelfareproID(welfareproID, checkState)); } }
[OperationContract]//获取所有的申请信息 public List <T_OA_WELFAREDISTRIBUTEMASTER> GetWelfareProvisionInfo() { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { IQueryable <T_OA_WELFAREDISTRIBUTEMASTER> WelfareStandardList = wpbll.GetWelfareProvisionStandard(); return(WelfareStandardList == null ? null : WelfareStandardList.ToList()); } }
[OperationContract]//根据申请ID获取申请信息 public T_OA_WELFAREDISTRIBUTEMASTER GetProvisionById(string WelfareID) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { T_OA_WELFAREDISTRIBUTEMASTER WelfareStandard = wpbll.GetWelfareProvisionById(WelfareID); return(WelfareStandard == null ? null : WelfareStandard); } }
[OperationContract]//根据福利标准申请ID关联发放申请ID public T_OA_WELFAREMASERT GetWelfareMasert(string welfareId) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { T_OA_WELFAREMASERT MyContract = wpbll.GetWelfareMasert(welfareId); return(MyContract); } }
[OperationContract]//更新申请信息 public string UpdateWelfareProvision(T_OA_WELFAREDISTRIBUTEMASTER WelfareStandardInfo) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { string result = ""; if (!wpbll.UpdateWelfareProvision(WelfareStandardInfo)) { result = "修改数据失败!"; } return(result); } }
public List <V_WelfareProvision> GetWelfareProvisionListByUserId(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { List <V_WelfareProvision> ArchivesList = null; if (checkState != ((int)CheckStates.WaittingApproval).ToString()) //获取用户的提交申请信息 { if (checkState != ((int)CheckStates.ALL).ToString()) { ArchivesList = wpbll.GetWelfareProvisionInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { ArchivesList = wpbll.GetWelfareProvisionInfo(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_WELFAREDISTRIBUTEMASTER", 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 = wpbll.GetWelfareProvisionInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, flowAppList, checkState, loginUserInfo.userID); if (ArchivesList == null) { return(null); } else { return(ArchivesList.ToList()); } } } }
[OperationContract]//查询发放记录 public List <V_WelfareProvision> GetWelfarePSelectRecord(int pageIndex, int pageSize, string sort, object[] paras, ref int pageCount, string checkState) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { List <V_WelfareProvision> WelfarePSelectRecordList = wpbll.GetWelfarePSelectRecord(pageIndex, pageSize, sort, paras, ref pageCount, checkState); if (WelfarePSelectRecordList == null) { return(null); } else { return(WelfarePSelectRecordList.ToList()); } } }
[OperationContract]//添加福利发放申请信息 public string WelfareProvisionAdd(T_OA_WELFAREDISTRIBUTEMASTER WelfareProvision, List <T_OA_WELFAREDISTRIBUTEDETAIL> WelfareDetails) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { string returnStr = ""; if (!this.IsExistWelfareProvision(WelfareProvision.WELFAREDISTRIBUTETITLE, WelfareProvision.CONTENT)) { if (!wpbll.WelfareProvisionAdd(WelfareProvision, WelfareDetails)) { returnStr = "添加数据失败"; } } return(returnStr); } }
[OperationContract]//根据福利项目ID查询出所有的公司 public List<T_OA_WELFAREMASERT> GetWelfareByWelfareproID(string welfareproID, string checkState) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { return wpbll.GetWelfareByWelfareproID(welfareproID, checkState); } }
[OperationContract]//获取所有的申请信息 public List<T_OA_WELFAREDISTRIBUTEMASTER> GetWelfareProvisionInfo() { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { IQueryable<T_OA_WELFAREDISTRIBUTEMASTER> WelfareStandardList = wpbll.GetWelfareProvisionStandard(); return WelfareStandardList == null ? null : WelfareStandardList.ToList(); } }
[OperationContract]//根据福利标准申请ID关联发放申请ID public T_OA_WELFAREMASERT GetWelfareMasert(string welfareId) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { T_OA_WELFAREMASERT MyContract = wpbll.GetWelfareMasert(welfareId); return MyContract; } }
[OperationContract]//根据申请ID获取申请信息 public T_OA_WELFAREDISTRIBUTEMASTER GetProvisionById(string WelfareID) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { T_OA_WELFAREDISTRIBUTEMASTER WelfareStandard = wpbll.GetWelfareProvisionById(WelfareID); return WelfareStandard == null ? null : WelfareStandard; } }
[OperationContract]//更新申请信息 public string UpdateWelfareProvision(T_OA_WELFAREDISTRIBUTEMASTER WelfareStandardInfo) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { string result = ""; if (!wpbll.UpdateWelfareProvision(WelfareStandardInfo)) { result = "修改数据失败!"; } return result; } }
[OperationContract]//根据条件查询福利标准申请信息 private bool IsExistWelfareProvision(string WelfareProvision, string WelfareStandardID) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { return wpbll.IsExistWelfareProvision(WelfareProvision, WelfareStandardID); } }
[OperationContract]//删除申请信息 public bool DeleteWelfareProvision(string[] WelfareStandardID) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { return wpbll.DeleteWelfareProvision(WelfareStandardID); } }
[OperationContract]//添加福利发放申请信息 public string WelfareProvisionAdd(T_OA_WELFAREDISTRIBUTEMASTER WelfareProvision, List<T_OA_WELFAREDISTRIBUTEDETAIL> WelfareDetails) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { string returnStr = ""; if (!this.IsExistWelfareProvision(WelfareProvision.WELFAREDISTRIBUTETITLE, WelfareProvision.CONTENT)) { if (!wpbll.WelfareProvisionAdd(WelfareProvision, WelfareDetails)) { returnStr = "添加数据失败"; } } return returnStr; } }
public List<V_WelfareProvision> GetWelfareProvisionListByUserId(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string checkState, LoginUserInfo loginUserInfo) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { List<V_WelfareProvision> ArchivesList = null; if (checkState != ((int)CheckStates.WaittingApproval).ToString()) //获取用户的提交申请信息 { if (checkState != ((int)CheckStates.ALL).ToString()) { ArchivesList = wpbll.GetWelfareProvisionInfo(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null, checkState, loginUserInfo.userID); } else { ArchivesList = wpbll.GetWelfareProvisionInfo(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_WELFAREDISTRIBUTEMASTER", 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 = wpbll.GetWelfareProvisionInfo(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_WELFAREMASERT GetWelfareByCompanyId(string companyId, string welfreRoId, DateTime releaseTime, string checkState, string welfareId) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { return wpbll.GetWelfareByCompanyId(companyId, welfreRoId, releaseTime, checkState, welfareId); } }
[OperationContract]//查询发放记录 public List<V_WelfareProvision> GetWelfarePSelectRecord(int pageIndex, int pageSize, string sort, object[] paras, ref int pageCount, string checkState) { using (WelfareProvisionBLL wpbll = new WelfareProvisionBLL()) { List<V_WelfareProvision> WelfarePSelectRecordList = wpbll.GetWelfarePSelectRecord(pageIndex, pageSize, sort, paras, ref pageCount, checkState); if (WelfarePSelectRecordList == null) { return null; } else { return WelfarePSelectRecordList.ToList(); } } }