|
|
|
|
@ -8,6 +8,12 @@ import { OpenMissingSwipesResponse } from './open-missing-swipes.response';
|
|
|
|
|
import { PerformanceAppraisalResponse } from './performance-appraisal.response';
|
|
|
|
|
import {AttendanceTrackingResponse} from './attendance-tracking.response'
|
|
|
|
|
|
|
|
|
|
import {OpenPeriodDatesResponse} from '../../services/dashbored/models/openPeriodDatesResponse'
|
|
|
|
|
import {GetSubordinatesLeavesRequest} from './models/GetSubordinatesLeavesRequest';
|
|
|
|
|
import {GetSubordinatesLeavesResponse} from './models/GetSubordinatesLeavesResponse';
|
|
|
|
|
import {GetSubordinatesAttdStatusRequest} from './models/GetSubordinatesAttdStatusRequest';
|
|
|
|
|
import {GetSubordinatesAttdStatusResponse} from './models/GetSubordinatesAttdStatusResponse';
|
|
|
|
|
import {GetOpenNotificationsResponse} from './models/GetOpenNotificationsResponse'
|
|
|
|
|
|
|
|
|
|
@Injectable({
|
|
|
|
|
providedIn: 'root'
|
|
|
|
|
@ -18,6 +24,10 @@ export class DashboredService {
|
|
|
|
|
public static performanceappraisalUrl="Services/ERP.svc/REST/GET_Performance_Appraisal"
|
|
|
|
|
public static attendancetrackingUrl="Services/ERP.svc/REST/GET_Attendance_Tracking"
|
|
|
|
|
|
|
|
|
|
public static getOpenPeriodDates = 'Services/ERP.svc/REST/GET_OPEN_PERIOD_DATES';
|
|
|
|
|
public static getOpenNotifications = 'Services/ERP.svc/REST/GET_OPEN_NOTIFICATIONS';
|
|
|
|
|
public static getSubordinatesLeaves = 'Services/ERP.svc/REST/GET_SUBORDINATES_LEAVES';
|
|
|
|
|
public static getSubordinatesAttStatus = 'Services/ERP.svc/REST/GET_SUBORDINATES_ATTD_STATUS';
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
|
public con: ConnectorService,
|
|
|
|
|
@ -66,6 +76,24 @@ public getAttendanceTracking(onError ?:any ,oerrorLable ?:any):Observable<Attend
|
|
|
|
|
oerrorLable
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
public getOpenPeriodDates( onError?: any, errorLabel?: string): Observable<OpenPeriodDatesResponse> {
|
|
|
|
|
const request = new Request();
|
|
|
|
|
this.authService.authenticateRequest(request);
|
|
|
|
|
return this.con.post(DashboredService.getOpenPeriodDates, request, onError, errorLabel);
|
|
|
|
|
}
|
|
|
|
|
public getOpenNotifications( onError?: any, errorLabel?: string): Observable<GetOpenNotificationsResponse> {
|
|
|
|
|
const request = new Request();
|
|
|
|
|
this.authService.authenticateRequest(request);
|
|
|
|
|
return this.con.post(DashboredService.getOpenNotifications, request, onError, errorLabel);
|
|
|
|
|
}
|
|
|
|
|
public getSubordinatesLeaves( req:GetSubordinatesLeavesRequest,onError?: any, errorLabel?: string): Observable<GetSubordinatesLeavesResponse> {
|
|
|
|
|
this.authService.authenticateRequest(req);
|
|
|
|
|
return this.con.post(DashboredService.getSubordinatesLeaves, req, onError, errorLabel);
|
|
|
|
|
}
|
|
|
|
|
public getSubordinatesAttStatus( req:GetSubordinatesAttdStatusRequest, onError?: any, errorLabel?: string): Observable<GetSubordinatesAttdStatusResponse> {
|
|
|
|
|
this.authService.authenticateRequest(req);
|
|
|
|
|
return this.con.post(DashboredService.getSubordinatesAttStatus, req, onError, errorLabel);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|