示例#1
0
        public static List <WorkingCalendar> GetCalendars()
        {
            AuthenticatedServiceRequest <ServiceListResponse <WorkingCalendar> > req = new Requests.AuthenticatedServiceRequest <ServiceListResponse <WorkingCalendar> >(serviceUrl + qryCA);

            req.QueryStringParams.Add("_filter", "");
            ServiceListResponse <WorkingCalendar> s = req.GetAsync();

            return(s.GetAll());
        }
示例#2
0
        public static List <Position> GetPositions()
        {
            AuthenticatedServiceRequest <ServiceListResponse <Position> > req = new Requests.AuthenticatedServiceRequest <ServiceListResponse <Position> >(serviceUrl + qryPO);

            req.QueryStringParams.Add("_filter", "");
            ServiceListResponse <Position> s = req.GetAsync();

            return(s.GetAll());
        }
示例#3
0
        public static List <Branch> GetBranches()
        {
            AuthenticatedServiceRequest <ServiceListResponse <Branch> > req = new Requests.AuthenticatedServiceRequest <ServiceListResponse <Branch> >(serviceUrl + qryBR);

            req.QueryStringParams.Add("_filter", "");
            ServiceListResponse <Branch> s = req.GetAsync();

            return(s.GetAll());
        }
示例#4
0
        public static List <Department> GetDepartments()
        {
            AuthenticatedServiceRequest <ServiceListResponse <Department> > req = new Requests.AuthenticatedServiceRequest <ServiceListResponse <Department> >(serviceUrl + qryDE);

            req.QueryStringParams.Add("_filter", "");
            ServiceListResponse <Department> s = req.GetAsync();

            return(s.GetAll());
        }
示例#5
0
文件: LM.cs 项目: eliea85/AionHR
        public static List <VacationSchedule> GetVacations()
        {
            AuthenticatedServiceRequest <ServiceListResponse <VacationSchedule> > req = new Requests.AuthenticatedServiceRequest <ServiceListResponse <VacationSchedule> >(serviceUrl + qryVS);

            req.QueryStringParams.Add("_filter", "");
            ServiceListResponse <VacationSchedule> s = req.GetAsync();

            return(s.GetAll());
        }
示例#6
0
        public static List <Employee> GetEmployees(int count, int startAt, out int total)
        {
            AuthenticatedServiceRequest <ServiceListResponse <Employee> > req = new Requests.AuthenticatedServiceRequest <ServiceListResponse <Employee> >(serviceUrl + qryES);

            req.QueryStringParams.Add("_filter", "");
            req.QueryStringParams.Add("_size", count.ToString());
            req.QueryStringParams.Add("_startAt", startAt.ToString());
            ServiceListResponse <Employee> s = req.GetAsync();

            total = s.viewCount;
            return(s.GetAll());
        }
示例#7
0
        public static List <Nationality> GetNationalities()
        {
            AuthenticatedServiceRequest <ServiceListResponse <Nationality> > req = new Requests.AuthenticatedServiceRequest <HRSite.ServiceListResponse <Models.Nationality> >(serviceUrl + qryNA);

            req.QueryStringParams.Add("_filter", "");
            var s = req.GetAsync();

            if (s.statusId != "1")
            {
                return(null);
            }
            return(s.GetAll());
        }