|
|
|
@ -8,6 +8,7 @@ export class MyTeamService {
|
|
|
|
public static EMPLOYEE_SHARED_DATA = 'employee';
|
|
|
|
public static EMPLOYEE_SHARED_DATA = 'employee';
|
|
|
|
public static getMyTeam = 'Services/ERP.svc/REST/GET_EMPLOYEE_SUBORDINATES';
|
|
|
|
public static getMyTeam = 'Services/ERP.svc/REST/GET_EMPLOYEE_SUBORDINATES';
|
|
|
|
public static getSuborinateStatus = 'Services/ERP.svc/REST/GET_SUBORDINATES_ATTD_STATUS';
|
|
|
|
public static getSuborinateStatus = 'Services/ERP.svc/REST/GET_SUBORDINATES_ATTD_STATUS';
|
|
|
|
|
|
|
|
public static getUserInfo ='Services/ERP.svc/REST/Get_UserInformation';
|
|
|
|
constructor(
|
|
|
|
constructor(
|
|
|
|
public con: ConnectorService,
|
|
|
|
public con: ConnectorService,
|
|
|
|
private authService: AuthenticationService
|
|
|
|
private authService: AuthenticationService
|
|
|
|
@ -24,4 +25,11 @@ export class MyTeamService {
|
|
|
|
return this.con.post(MyTeamService.getSuborinateStatus, request, onError, errorLabel);
|
|
|
|
return this.con.post(MyTeamService.getSuborinateStatus, request, onError, errorLabel);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public getUserInfo(absence: any, onError?: any, errorLabel?: string){
|
|
|
|
|
|
|
|
const request = absence;
|
|
|
|
|
|
|
|
this.authService.authenticateRequest(request);
|
|
|
|
|
|
|
|
return this.con.post(MyTeamService.getUserInfo, request, onError, errorLabel);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|