예제 #1
0
 public T_OA_WELFAREMASERT GetBenefitsAdministrationInfo(string welfreRoId, string companyId, string chckState, string welfareId)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         return(bal.GetBenefitsAdministrationInfo(welfreRoId, companyId, chckState, welfareId));
     }
 }
예제 #2
0
 [OperationContract]//获取所有的岗位
 public List <T_OA_WELFAREDETAIL> GetWelfarePostId()
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         return(bal.GetWelfarePostId());
     }
 }
예제 #3
0
 public bool IsWelfareCanBrowser(string WelfareStandard)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         return(bal.IsCanBrowser(WelfareStandard));
     }
 }
예제 #4
0
 public T_OA_WELFAREMASERT GetBenefitsAdministrationInfo(string welfreRoId, string companyId, string chckState, string welfareId)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         return bal.GetBenefitsAdministrationInfo(welfreRoId, companyId, chckState, welfareId);
     }
 }
예제 #5
0
 [OperationContract]//删除申请信息
 public bool DeleteWelfareStandard(string[] WelfareStandardID)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         return(bal.DeleteWelfare(WelfareStandardID));
     }
 }
예제 #6
0
 [OperationContract]//查询福利标准明细
 public List<T_OA_WELFAREDETAIL> GetBenefitsAdministrationDetails(string welfreRoId, string companyId, string welfareId)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         List<T_OA_WELFAREDETAIL> details = bal.GetBenefitsAdministrationDetails(welfreRoId, companyId, welfareId);
         return details;
     }
 }
예제 #7
0
 [OperationContract]//根据岗位&岗位级别获取福利标准
 public List<T_OA_WELFAREMASERT> GetWelfareStandardById(string PostLevela, string PostLevelb, string PostId)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         List<T_OA_WELFAREMASERT> MyContract = bal.GetWelfareStandardById(PostLevela, PostLevelb, PostId);
         return MyContract == null ? null : MyContract;
     }
 }
예제 #8
0
 [OperationContract]//根据申请ID获取申请信息
 public T_OA_WELFAREMASERT GetWelfareById(string WelfareID)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         T_OA_WELFAREMASERT WelfareStandard = bal.GetWelfareById(WelfareID);
         return WelfareStandard == null ? null : WelfareStandard;
     }
 }
예제 #9
0
 [OperationContract]//获取所有的申请信息
 public List<T_OA_WELFAREMASERT> GetWelfareStandardInfo()
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         IQueryable<T_OA_WELFAREMASERT> WelfareStandardList = bal.GetWelfareStandard();
         return WelfareStandardList == null ? null : WelfareStandardList.ToList();
     }
 }
예제 #10
0
 [OperationContract]//获取所有的申请信息
 public List <T_OA_WELFAREMASERT> GetWelfareStandardInfo()
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         IQueryable <T_OA_WELFAREMASERT> WelfareStandardList = bal.GetWelfareStandard();
         return(WelfareStandardList == null ? null : WelfareStandardList.ToList());
     }
 }
예제 #11
0
 [OperationContract]//根据申请ID获取申请信息
 public T_OA_WELFAREMASERT GetWelfareById(string WelfareID)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         T_OA_WELFAREMASERT WelfareStandard = bal.GetWelfareById(WelfareID);
         return(WelfareStandard == null ? null : WelfareStandard);
     }
 }
예제 #12
0
 [OperationContract]//查询福利标准明细
 public List<T_OA_WELFAREDETAIL> GetBenefitsDetailsAdministration(string welfreRoId, string companyId, DateTime releaseTime, string checkState)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         List<T_OA_WELFAREDETAIL> details = bal.GetBenefitsDetailsAdministration(welfreRoId, companyId, releaseTime, checkState);
         return details;
     }
 }
예제 #13
0
 [OperationContract]//根据岗位&岗位级别获取福利标准
 public List <T_OA_WELFAREMASERT> GetWelfareStandardById(string PostLevela, string PostLevelb, string PostId)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         List <T_OA_WELFAREMASERT> MyContract = bal.GetWelfareStandardById(PostLevela, PostLevelb, PostId);
         return(MyContract == null ? null : MyContract);
     }
 }
예제 #14
0
 [OperationContract]//查询福利标准明细
 public List <T_OA_WELFAREDETAIL> GetBenefitsAdministrationDetails(string welfreRoId, string companyId, string welfareId)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         List <T_OA_WELFAREDETAIL> details = bal.GetBenefitsAdministrationDetails(welfreRoId, companyId, welfareId);
         return(details);
     }
 }
예제 #15
0
 [OperationContract]//查询福利标准明细
 public List <T_OA_WELFAREDETAIL> GetBenefitsDetailsAdministration(string welfreRoId, string companyId, DateTime releaseTime, string checkState)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         List <T_OA_WELFAREDETAIL> details = bal.GetBenefitsDetailsAdministration(welfreRoId, companyId, releaseTime, checkState);
         return(details);
     }
 }
예제 #16
0
 [OperationContract]//更新标准信息
 public string UpdateWelfareStandard(T_OA_WELFAREMASERT Welfare, List <T_OA_WELFAREDETAIL> WelfaredDetails)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         string result = "";
         if (!bal.UpdateWelfare(Welfare, WelfaredDetails))
         {
             result = "修改数据失败!";
         }
         return(result);
     }
 }
예제 #17
0
 [OperationContract]//更新标准信息
 public string UpdateWelfareStandard(T_OA_WELFAREMASERT Welfare, List<T_OA_WELFAREDETAIL> WelfaredDetails)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         string result = "";
         if (!bal.UpdateWelfare(Welfare, WelfaredDetails))
         {
             result = "修改数据失败!";
         }
         return result;
     }
 }
예제 #18
0
        [OperationContract]//添加福利标准申请信息
        public string WelfareStandardAdd(T_OA_WELFAREMASERT WelfareStandard, List <T_OA_WELFAREDETAIL> WelfaredDetails)
        {
            using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
            {
                string returnStr = "";

                if (!bal.WelfareAdd(WelfareStandard, WelfaredDetails))
                {
                    returnStr = "添加数据失败";
                }
                return(returnStr);
            }
        }
예제 #19
0
        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());
                    }
                }
            }
        }
예제 #20
0
 //获取某一福利项目的所有信息
 public List <T_OA_WELFAREMASERT> GetWelfareInformation()
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         List <T_OA_WELFAREMASERT> TypeTemplateList = bal.GetWelfareByInformation();
         if (TypeTemplateList == null)
         {
             return(null);
         }
         else
         {
             return(TypeTemplateList);
         }
     }
 }
예제 #21
0
 public bool IsWelfareCanBrowser(string WelfareStandard)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         return bal.IsCanBrowser(WelfareStandard);
     }
 }
예제 #22
0
 //获取某一福利项目的所有信息
 public List<T_OA_WELFAREMASERT> GetWelfareInformation()
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         List<T_OA_WELFAREMASERT> TypeTemplateList = bal.GetWelfareByInformation();
         if (TypeTemplateList == null)
         {
             return null;
         }
         else
         {
             return TypeTemplateList;
         }
     }
 }
예제 #23
0
 [OperationContract]//获取所有的岗位      
 public List<T_OA_WELFAREDETAIL> GetWelfarePostId()
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         return bal.GetWelfarePostId();
     }
 }
예제 #24
0
 [OperationContract]//删除申请信息
 public bool DeleteWelfareStandard(string[] WelfareStandardID)
 {
     using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
     {
         return bal.DeleteWelfare(WelfareStandardID);
     }
 }
예제 #25
0
        [OperationContract]//添加福利标准申请信息
        public string WelfareStandardAdd(T_OA_WELFAREMASERT WelfareStandard, List<T_OA_WELFAREDETAIL> WelfaredDetails)
        {
            using (BenefitsAdministrationBLL bal = new BenefitsAdministrationBLL())
            {
                string returnStr = "";

                if (!bal.WelfareAdd(WelfareStandard, WelfaredDetails))
                {
                    returnStr = "添加数据失败";
                }
                return returnStr;
            }
        }
예제 #26
0
        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                    //通过工作流获取用户要审批的申请信息
                {
                    FLOW_FLOWRECORDDETAIL_T flowInfo = new FLOW_FLOWRECORDDETAIL_T();   //审核人 操作              
                    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();
                    }
                }
            }
        }