EchoTex_Payroll/HRM.UI/ClientApp/src/app/payroll-ot/overtime-separate-payment-from-salary/overtime-separate-payment-from-salary.component.ts
2024-10-14 10:01:49 +06:00

42 lines
1.1 KiB
TypeScript

import { Component, OnInit } from '@angular/core';
import {FormGroup} from '@angular/forms';
import {AuthService} from '../../_services/auth/auth.service';
import {PayrollType} from '../../_models/Authentication/payrollType';
@Component({
selector: 'app-overtime-separate-payment-from-salary',
templateUrl: './overtime-separate-payment-from-salary.component.html',
styleUrls: ['./overtime-separate-payment-from-salary.component.css']
})
export class OvertimeSeparatePaymentFromSalaryComponent implements OnInit {
separateForm: FormGroup;
processMonth: Date;
disable = true;
private payrollType: PayrollType;
constructor(public authService: AuthService) { }
ngOnInit() {
this.separateForm = new FormGroup({});
}
loadPayroll() {
this.authService.GetPayrollTypeByLoginID().subscribe(
(resp: any) => {
this.payrollType = resp;
},
(err: any) => {
},
() => {
this.processMonth = new Date(this.payrollType.nextPayProcessDate);
}
);
}
onProcess() {
}
onUndo() {
}
}