Ejemplo n.º 1
0
        public static async Task <CheckInViewModel> GetCheckInTime(string employeeId, int days = 0)
        {
            var response = await RestAPICaller.Get <CheckInViewModel>(StaticClass.Configuration["ServiceName:HadirAPIName"], $"Today/{employeeId}").ConfigureAwait(false);

            response.ShortTime = response.CheckINDateTime.ToString("HH:mm");
            return(response);
        }
Ejemplo n.º 2
0
        public static async Task <IList <EmpTransModel> > GetTeamAvilabilityAsync(string email)
        {
            var response = await RestAPICaller.Get <IList <EmpTransModel> >(StaticClass.Configuration["ServiceName:ERPWebAPIName"], $"Employee/GetTeamAvilability?email={email}").ConfigureAwait(false);

            return(response);
        }
Ejemplo n.º 3
0
        public static async Task <IList <EmpTransModel> > GetEmployeeScheduleByTypeAsync(long employeeId, int scheduleType)
        {
            var response = await RestAPICaller.Get <IList <EmpTransModel> >(StaticClass.Configuration["ServiceName:ERPWebAPIName"], $"Employee/GetEmployeeSchedule/{employeeId}/{scheduleType}").ConfigureAwait(false);

            return(response);
        }
Ejemplo n.º 4
0
        public static async Task <IList <Employee> > FindSubordinatesAsync(string email)
        {
            var response = await RestAPICaller.Get <IList <Employee> >(StaticClass.Configuration["ServiceName:ERPWebAPIName"], $"Employee/FindSubordinates?email={email}").ConfigureAwait(false);

            return(response);
        }
Ejemplo n.º 5
0
        public static async Task <IList <CertificateAccomplishWithOrder> > GetCOAWithOrdersAsync(long employeeId)
        {
            var response = await RestAPICaller.Get <IList <CertificateAccomplishWithOrder> >(StaticClass.Configuration["ServiceName:ERPWebAPIName"], $"COA/GetCOAWithOrders/{employeeId}").ConfigureAwait(false);

            return(response);
        }
Ejemplo n.º 6
0
        public static async Task <IList <PurchaseOrder> > GetPurchaseOrdersAsync(long employeeId)
        {
            var response = await RestAPICaller.Get <IList <PurchaseOrder> >(StaticClass.Configuration["ServiceName:ERPWebAPIName"], $"PurchaseOrder/GetAllByEmpId/{employeeId}").ConfigureAwait(false);

            return(response);
        }
Ejemplo n.º 7
0
        public static async Task <HRShortageViewModel> GetGabs(string employeeId, int days = 0)
        {
            var response = await RestAPICaller.Get <HRShortageViewModel>(StaticClass.Configuration["ServiceName:HadirAPIName"], $"Gabs/{employeeId}/{days}").ConfigureAwait(false);

            return(response);
        }
Ejemplo n.º 8
0
        public static async Task <IList <RequestViewModel> > GetRequests(string employeeId, int days = 30)
        {
            var response = await RestAPICaller.Get <IList <RequestViewModel> >(StaticClass.Configuration["ServiceName:HadirAPIName"], $"Requests/{employeeId}/{days}").ConfigureAwait(false);

            return(response);
        }