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.
sfh-mohemm/Mohem/src/app/absence/service/work-list-attach.service.ts

31 lines
961 B
TypeScript

import { Injectable } from "@angular/core";
import { Http, Response, Headers } from "@angular/http";
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 { WorkListButtonRequest } from "src/app/eit/models/NotificationButtonReq";
@Injectable()
export class WorklistAttachService {
public static getAttach = "Services/ERP.svc/REST/GET_ATTACHMENTS";
constructor(
public api: ConnectorService,
public authService: AuthenticationService
) {}
public getAttach(
getAttachReq: WorkListButtonRequest,
onError?: any,
errorLabel?: string
) {
const request = getAttachReq;
this.authService.authenticateRequest(request);
return this.api.post(
WorklistAttachService.getAttach,
request,
onError,
errorLabel
);
}
}