42 lines
1.1 KiB
TypeScript
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() {
|
||
|
|
||
|
}
|
||
|
}
|