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.
mohemmionic5/Mohem/src/app/termination/service/termination-service.service.ts

41 lines
1.4 KiB
TypeScript

import { Injectable } from '@angular/core';
import { AuthenticationService } from 'src/app/hmg-common/services/authentication/authentication.service';
import { CommonService } from 'src/app/hmg-common/services/common/common.service';
import { ConnectorService } from 'src/app/hmg-common/services/connector/connector.service';
@Injectable({
providedIn: 'root'
})
export class TerminationServiceService {
public static GET_TERM_COLS_STRUCTURE = 'Services/ERP.svc/REST/GET_TERM_COLS_STRUCTURE';
public static GET_TERM_DIFF_STRUCTURE = 'Services/ERP.svc/REST/GET_TERM_DFF_STRUCTURE';
public static TERMINATION_PAGE = 'termination-page';
constructor(
public con: ConnectorService,
private authService: AuthenticationService,
public cs: CommonService
) { }
getTerminationColStructure(request, onError, errorLabel) {
this.authService.authenticateRequest(request);
request.P_SELECTED_EMPLOYEE_NUMBER = request.UserName;
return this.con.postNoLoad(
TerminationServiceService.GET_TERM_COLS_STRUCTURE,
request,
onError,
errorLabel
);
}
getTermDiffStructure(request, onError, errorLabel) {
this.authService.authenticateRequest(request);
request.P_SELECTED_EMPLOYEE_NUMBER = request.UserName;
return this.con.postNoLoad(
TerminationServiceService.GET_TERM_DIFF_STRUCTURE,
request,
onError,
errorLabel
);
}
}