214 lines
13 KiB
JavaScript
214 lines
13 KiB
JavaScript
|
|
"use strict";
|
||
|
|
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
||
|
|
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
||
|
|
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
||
|
|
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
||
|
|
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
||
|
|
var _, done = false;
|
||
|
|
for (var i = decorators.length - 1; i >= 0; i--) {
|
||
|
|
var context = {};
|
||
|
|
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
||
|
|
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
||
|
|
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
||
|
|
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
||
|
|
if (kind === "accessor") {
|
||
|
|
if (result === void 0) continue;
|
||
|
|
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||
|
|
if (_ = accept(result.get)) descriptor.get = _;
|
||
|
|
if (_ = accept(result.set)) descriptor.set = _;
|
||
|
|
if (_ = accept(result.init)) initializers.unshift(_);
|
||
|
|
}
|
||
|
|
else if (_ = accept(result)) {
|
||
|
|
if (kind === "field") initializers.unshift(_);
|
||
|
|
else descriptor[key] = _;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
||
|
|
done = true;
|
||
|
|
};
|
||
|
|
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
||
|
|
var useValue = arguments.length > 2;
|
||
|
|
for (var i = 0; i < initializers.length; i++) {
|
||
|
|
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
||
|
|
}
|
||
|
|
return useValue ? value : void 0;
|
||
|
|
};
|
||
|
|
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
||
|
|
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
||
|
|
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
||
|
|
};
|
||
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
|
exports.FinalSettlementService = void 0;
|
||
|
|
var core_1 = require("@angular/core");
|
||
|
|
var FinalSettlementService = function () {
|
||
|
|
var _classDecorators = [(0, core_1.Injectable)({
|
||
|
|
providedIn: 'root'
|
||
|
|
})];
|
||
|
|
var _classDescriptor;
|
||
|
|
var _classExtraInitializers = [];
|
||
|
|
var _classThis;
|
||
|
|
var FinalSettlementService = _classThis = /** @class */ (function () {
|
||
|
|
function FinalSettlementService_1(apiService) {
|
||
|
|
this.apiService = apiService;
|
||
|
|
}
|
||
|
|
FinalSettlementService_1.prototype.deleteFsHead = function (param) {
|
||
|
|
return this.apiService.httpPost('/finalsettlement/deleteFsHead/', param);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.saveFsHead = function (param) {
|
||
|
|
debugger;
|
||
|
|
return this.apiService.httpPost('/finalsettlement/savefinalsettementhead', param);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.GetFSHeads = function () {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getFSHeads');
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.saveResignationRequest = function (param) {
|
||
|
|
debugger;
|
||
|
|
return this.apiService.httpPost('/finalsettlement/saveResignationRequest', param);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getResignationRequestByStatus = function (param) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getResignationRequestByStatus/' + param);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.updateResignationRequestStatus = function (param) {
|
||
|
|
return this.apiService.httpPost('/finalsettlement/updateResignationRequestStatus', param);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getResignationRequestByEmp = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getResignationRequestByEmp' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getResignationRequest = function (id, employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getResignationRequest' + '/' + id + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.approveResignationRequest = function (param) {
|
||
|
|
return this.apiService.httpPost('/finalsettlement/approveResignationRequest/', param);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.rejectResignationRequest = function (param) {
|
||
|
|
return this.apiService.httpPost('/Claim/RejectRequisition', param);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getEmployeeInfo = function () {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getEmpInfoResignation');
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getResignationEmployeeInfo = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getResignationEmployeeInfo' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getPrevReg = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getPrevReg' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getResignationRequests = function (fromDate, toDate) {
|
||
|
|
var sfromDate = this.apiService.getApiDateString(fromDate);
|
||
|
|
var stoDAte = this.apiService.getApiDateString(toDate);
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getResignationRequests/' +
|
||
|
|
sfromDate + '/' + stoDAte);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getEssFinalSettlementData = function (fromDate, toDate, employeeId) {
|
||
|
|
var sfromDate = this.apiService.getApiDateString(fromDate);
|
||
|
|
var stoDAte = this.apiService.getApiDateString(toDate);
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getEssFinalSettlementData/' +
|
||
|
|
sfromDate + '/' + stoDAte + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getMySettlmentHeads = function () {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getMySettlmentHeads');
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getCurrentEmployeeInfo = function () {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getCurrentEmployeeInfo');
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.saveFsTran = function (param) {
|
||
|
|
debugger;
|
||
|
|
return this.apiService.httpPost('/finalsettlement/saveFStran', param);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.loadPreviousData = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getFStranDetail' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getNoticeDaysAndAmout = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getNoticeDaysAndAmout' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.loadNoticeDays = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getNoticeDays' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getEarnedLeaveDaysAndAmout = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getEarnedLeaveDaysAndAmout' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.loadNoticeAmount = function (employeeId, days) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getNoticePaysAmount' + '/' + days + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.calculateProportionateAmount = function (employeeId, code, nNumber) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getGrossAmount' + '/' + nNumber + '/' + code + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getAllowancesDeductions = function () {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getAllowancesDeductions');
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.calculateGrossAmount = function (employeeId, code, nNumber) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getGrossAmount' + '/' + nNumber + '/' + code + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.fillGratuityAmount = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getGratuityAmount' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.fillPfAmount = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getPFAmount' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.fillGratuityDays = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getAgeCalculation' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getTypeByEmployee = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getTypeByEmployeeForAdmin' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getClearanceNotifications = function (regemployeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getClearanceNotifications' + '/' + regemployeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.sendMailNotification = function (employeeIds, regemployeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/sendMailNotification' + '/' + employeeIds + '/' + regemployeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.loadEmployee = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/Employee/getSearchEmployeebyid' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getMySettlementClearanceStatus = function (empResignationID) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getMySettlementClearanceStatus'
|
||
|
|
+ '/' + empResignationID);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.checkSettlementClearanceStatus = function (empResignationID, employeeid) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/checkSettlementClearanceStatus'
|
||
|
|
+ '/' + empResignationID + '/' + employeeid);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.saveSettlementAdvice = function (param) {
|
||
|
|
return this.apiService.httpPost('/finalsettlement/saveSettlementAdvice', param);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.CalulateSettlementTax = function (param) {
|
||
|
|
return this.apiService.httpPost('/finalsettlement/CalulateSettlementTax', param);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.GetClearanceEmployee = function () {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/GetClearanceEmployee');
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.IsClearanceEmp = function (empid) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/IsClearanceEmp/' + empid);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.GetSettlementAdvices = function (fromDate, toDate) {
|
||
|
|
var sfromDate = this.apiService.getApiDateString(fromDate);
|
||
|
|
var stoDAte = this.apiService.getApiDateString(toDate);
|
||
|
|
return this.apiService.httpGet('/finalsettlement/GetSettlementAdvices/' +
|
||
|
|
sfromDate + '/' + stoDAte);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.checkAllClearanceCompleted = function (resignationRequestID) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/checkSettlementClearanceStatus'
|
||
|
|
+ '/' + resignationRequestID);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.loadBasicAmount = function (employeeId, days) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getBasicAmout' + '/' + employeeId + '/' + days);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.getFractionateSalaryDays = function (employeeId) {
|
||
|
|
return this.apiService.httpGet('/finalsettlement/getFractionateSalaryDays' + '/' + employeeId);
|
||
|
|
};
|
||
|
|
FinalSettlementService_1.prototype.doForcedClearance = function (param) {
|
||
|
|
return this.apiService.httpPost('/finalsettlement/doForcedClearance', param);
|
||
|
|
};
|
||
|
|
return FinalSettlementService_1;
|
||
|
|
}());
|
||
|
|
__setFunctionName(_classThis, "FinalSettlementService");
|
||
|
|
(function () {
|
||
|
|
var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
||
|
|
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
||
|
|
FinalSettlementService = _classThis = _classDescriptor.value;
|
||
|
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
||
|
|
__runInitializers(_classThis, _classExtraInitializers);
|
||
|
|
})();
|
||
|
|
return FinalSettlementService = _classThis;
|
||
|
|
}();
|
||
|
|
exports.FinalSettlementService = FinalSettlementService;
|
||
|
|
//# sourceMappingURL=final-settlement.service.js.map
|