You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
968 B
TypeScript
23 lines
968 B
TypeScript
import {Injectable} from '@angular/core';
|
|
import { AuthenticationService } from 'src/app/hmg-common/services/authentication/authentication.service';
|
|
import { ConnectorService } from 'src/app/hmg-common/services/connector/connector.service';
|
|
import { Observable } from 'rxjs';
|
|
import {Request} from '../models/request'
|
|
import { ReplacementServiceRequest } from '../models/replacement-Service.request';
|
|
|
|
@Injectable()
|
|
export class replacmentListService {
|
|
public static getReplacmentEmployeeList = 'Services/ERP.svc/REST/GET_REPLACEMENT_LIST';
|
|
constructor(
|
|
public api: ConnectorService,
|
|
public authService: AuthenticationService,
|
|
|
|
) {
|
|
|
|
}
|
|
public getReplacmentList(req: any, onError?: any, errorLabel?: string): Observable<any> {
|
|
const request = req;
|
|
this.authService.authenticateRequest(request);
|
|
return this.api.post(replacmentListService.getReplacmentEmployeeList, request, onError, errorLabel);
|
|
}
|
|
} |