Exemple #1
0
        /// <summary>
        /// 读取满足指定条件的计划信息
        /// </summary>
        /// <param name="mSearchPlan">查询条件类的实例</param>
        /// <returns></returns>
        public static async Task <Lib.PlanDtoPages> ReadPlans(Lib.PlanDtoSearch mSearchPlan)
        {
            Lib.PlanDtoPages SearchResult = null;
            string           urlParams    = DataApiRepository.CreateUrlParams(mSearchPlan);

            if (urlParams.Length > 0)
            {
                SearchResult = await DataApiRepository.GetApiUri <Lib.PlanDtoPages>(_ApiUrlBase + "Plan/Search" + urlParams).ConfigureAwait(false);
            }
            return(SearchResult);
        }
        /// <summary>
        /// 读取满足指定条件的实体
        /// </summary>
        /// <param name="mSearchMember">查询条件类的实例</param>
        /// <returns></returns>
        public static async Task <List <Lib.MemberInfoDto> > ReadDtos(Lib.MemberInfoSearch mSearchMember)
        {
            List <Lib.MemberInfoDto> MemberList = new List <Lib.MemberInfoDto>();
            string urlParams = DataApiRepository.CreateUrlParams(mSearchMember);

            if (urlParams.Length > 0)
            {
                MemberList = await DataApiRepository.GetApiUri <List <Lib.MemberInfoDto> >(_ApiUrlBase + "ReadDtos" + urlParams);
            }
            return(MemberList);
        }
        /// <summary>
        /// 查询满足指定条件的计划信息
        /// </summary>
        /// <param name="mSearchMember">查询条件类的实例</param>
        /// <returns></returns>
        public static async Task <Lib.MemberInfoEntity> ReadEntity(string EntityId)
        {
            Lib.MemberInfoEntity TheEntity = null;
            string urlParams = DataApiRepository.CreateUrlParams(EntityId);

            if (urlParams.Length > 0)
            {
                TheEntity = await DataApiRepository.GetApiUri <Lib.MemberInfoEntity>(_ApiUrlBase + "ReadEntity" + urlParams);
            }
            return(TheEntity);
        }
        /// <summary>
        /// 获取指定条件的待遇发放信息表
        /// </summary>
        /// <param name="SearchCondition"></param>
        /// <returns></returns>
        public static async Task <string> GetMemberPaySheet(MemberPaySheetSearch SearchCondition)
        {
            //创建查询url参数
            string urlParams = DataApiRepository.CreateUrlParams(SearchCondition);

            if (urlParams.Length > 0)
            {
                return(await DataApiRepository.GetApiUri <string>(_ApiUrlBase + "MemberPaySheet/GetMemberPaySheet" + urlParams).ConfigureAwait(false));
            }
            return(null);
        }
        /// <summary>
        /// 按条件查询数据
        /// </summary>
        /// <param name="SearchCondition"></param>
        /// <returns></returns>
        public static async Task <Lib.NoteDtoPages> GetRecords(Lib.NoteDtoSearch SearchCondition)
        {
            Lib.NoteDtoPages SearchResult = null;
            //创建查询url参数
            string urlParams = DataApiRepository.CreateUrlParams(SearchCondition);

            if (urlParams.Length > 0)
            {
                SearchResult = await DataApiRepository.GetApiUri <Lib.NoteDtoPages>(_ApiUrlBase + "Note/Search" + urlParams).ConfigureAwait(false);
            }
            return(SearchResult);
        }
Exemple #6
0
        /// <summary>
        /// 按条件查询数据
        /// </summary>
        /// <param name="SearchCondition"></param>
        /// <returns></returns>
        public static async Task <List <Lib.MemberScoreDto> > GetRecords(MemberScoreDtoSearch SearchCondition)
        {
            List <Lib.MemberScoreDto> RecordList = new List <Lib.MemberScoreDto>();
            //创建查询url参数
            string urlParams = DataApiRepository.CreateUrlParams(SearchCondition);

            if (urlParams.Length > 0)
            {
                RecordList = await DataApiRepository.GetApiUri <List <Lib.MemberScoreDto> >(_ApiUrlBase + "MemberScore/Search" + urlParams).ConfigureAwait(false);
            }
            return(RecordList);
        }
        /// <summary>
        /// 按条件查询数据
        /// </summary>
        /// <param name="SearchCondition"></param>
        /// <returns></returns>
        public static async Task <IEnumerable <Lib.MemberPayItemDto> > GetRecords(Lib.MemberPayItemDtoSearch SearchCondition)
        {
            IEnumerable <Lib.MemberPayItemDto> RecList = null;
            //创建查询url参数
            string urlParams = DataApiRepository.CreateUrlParams(SearchCondition);

            if (urlParams.Length > 0)
            {
                RecList = await DataApiRepository.GetApiUri <IEnumerable <Lib.MemberPayItemDto> >(_ApiUrlBase + "MemberPayItem/Search" + urlParams).ConfigureAwait(false);
            }
            return(RecList);
        }
        /// <summary>
        /// 读取指定查询条件的文件列表。
        /// </summary>
        /// <param name="mSearchFile">查询条件类的实例</param>
        /// <returns></returns>
        public static async Task <Lib.PlanFileDtoPages> ReadFiles(Lib.PlanFileDtoSearch mSearchFile)
        {
            Lib.PlanFileDtoPages FileSearchResult = null;
            //创建查询url参数
            string urlParams = DataApiRepository.CreateUrlParams(mSearchFile);

            if (urlParams.Length > 0)
            {
                FileSearchResult = await DataApiRepository.GetApiUri <Lib.PlanFileDtoPages>(_ApiUrlBase + "PlanFile/Search" + urlParams).ConfigureAwait(false);
            }
            return(FileSearchResult);
        }
        /// <summary>
        /// 读取指定查询条件的文件列表。
        /// </summary>
        /// <param name="mSearchFile">查询条件类的实例</param>
        /// <returns></returns>
        public static async Task <IEnumerable <Lib.MemberFileDto> > ReadFiles(Lib.MemberFileDtoSearch mSearchFile)
        {
            IEnumerable <Lib.MemberFileDto> FileList = null;
            //创建查询url参数
            string urlParams = DataApiRepository.CreateUrlParams(mSearchFile);

            if (urlParams.Length > 0)
            {
                FileList = await DataApiRepository.GetApiUri <IEnumerable <Lib.MemberFileDto> >(_ApiUrlBase + "MemberFile/Search" + urlParams).ConfigureAwait(false);
            }
            return(FileList);
        }