56 lines
1.9 KiB
TypeScript
56 lines
1.9 KiB
TypeScript
import {Injectable} from '@angular/core';
|
|
import {ApiService} from '../../app.api.service';
|
|
import {ProfileUpdateRequest} from '../../_models/ess/profile-update-request';
|
|
import {EnumPURequestStatus} from '../../_models/enums';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class EssService {
|
|
|
|
constructor(public apiService: ApiService) {
|
|
|
|
}
|
|
getAllPURByEmpId() {
|
|
return this.apiService.httpGet<ProfileUpdateRequest[]>('/Ess/getAllPURByEmpId');
|
|
}
|
|
getPURCountByEmpIdAndStatus(status: EnumPURequestStatus) {
|
|
return this.apiService.httpGet<number>('/Ess/getPURByEmpIdAndStatus' + '/' + status);
|
|
}
|
|
getAllPUR() {
|
|
return this.apiService.httpGet<ProfileUpdateRequest[]>('/Ess/getAllPUR');
|
|
}
|
|
getUserProfile() {
|
|
return this.apiService.httpGet<any>('/Ess/getUserProfile');
|
|
}
|
|
savePUR(param: any) {
|
|
return this.apiService.httpPost<any>('/Ess/savePUR', param);
|
|
}
|
|
updateEmployee(param: any) {
|
|
return this.apiService.httpPost<ProfileUpdateRequest>('/Ess/updateEmployee', param);
|
|
}
|
|
|
|
updateEmployeeRequestBulk(param: any) {
|
|
return this.apiService.httpPost<ProfileUpdateRequest[]>('/Ess/updateEmployeeRequestBulk', param);
|
|
}
|
|
rejectEmployeeRequestBulk(param: any) {
|
|
return this.apiService.httpPost<ProfileUpdateRequest[]>('/Ess/rejectEmployeeRequestBulk', param);
|
|
}
|
|
|
|
updateStatusToRejected(item: ProfileUpdateRequest) {
|
|
return this.apiService.httpPost<ProfileUpdateRequest>('/Ess/updateStatusToRejected', item);
|
|
}
|
|
|
|
getSystemDate() {
|
|
return this.apiService.httpGet<any>('/Ess/getSystemDate');
|
|
}
|
|
|
|
getMemberLedgerBalance(params: any) {
|
|
return this.apiService.httpPost<any[]>('/Ess/getMemberLedgerBalance', params);
|
|
}
|
|
|
|
getMemberLedgerBalanceReport(params: any) {
|
|
return this.apiService.httpPost<any[]>('/Ess/getMemberLedgerBalanceReport', params);
|
|
}
|
|
}
|