2026-11-03 13:06:00 +06:00
|
|
|
<app-loading-panel></app-loading-panel>
|
2026-11-15 13:09:32 +06:00
|
|
|
<form [formGroup]="_fromValidator" class="adp-page">
|
|
|
|
|
<!-- Setup: layout only was tidied; every control, binding and event is the same as before. -->
|
|
|
|
|
<div class="card adp-card">
|
2026-11-03 13:06:00 +06:00
|
|
|
<div class="topGrid grid">
|
2026-11-15 13:09:32 +06:00
|
|
|
<!-- General -->
|
|
|
|
|
<div class="col-12 lg:col-5 adp-section">
|
|
|
|
|
<div class="adp-section-title">General</div>
|
|
|
|
|
<div class="adp-field">
|
|
|
|
|
<label class="adp-label form-control-label" for="ddlAllowance">Allowance <span class="adp-required">*</span></label>
|
|
|
|
|
<div class="adp-control">
|
2026-11-03 13:06:00 +06:00
|
|
|
<kendo-dropdownlist
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
class="form-control form-control-sm input-sm"
|
|
|
|
|
formControlName="allowOrDeductID"
|
|
|
|
|
[(ngModel)]="_adPram.allowDeductID"
|
|
|
|
|
id="ddlAllowance"
|
|
|
|
|
[data]="_allowDeducts"
|
2026-11-15 13:09:32 +06:00
|
|
|
[defaultItem]="{
|
|
|
|
|
name: 'Select Allowance',
|
|
|
|
|
id: null
|
|
|
|
|
}"
|
2026-11-03 13:06:00 +06:00
|
|
|
[textField]="'name'"
|
2026-11-15 13:09:32 +06:00
|
|
|
(selectionChange)="
|
|
|
|
|
AllowDeductselectionChange($event)
|
|
|
|
|
"
|
2026-11-03 13:06:00 +06:00
|
|
|
[valueField]="'id'"
|
|
|
|
|
[valuePrimitive]="true"
|
|
|
|
|
required
|
|
|
|
|
>
|
|
|
|
|
</kendo-dropdownlist>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-11-15 13:09:32 +06:00
|
|
|
<div class="adp-field">
|
|
|
|
|
<label class="adp-label" for="ddlPeriodicity">Periodicity <span class="adp-required">*</span></label>
|
|
|
|
|
<div class="adp-control">
|
2026-11-03 13:06:00 +06:00
|
|
|
<kendo-dropdownlist
|
|
|
|
|
class="form-control form-control-sm input-sm"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
id="ddlPeriodicity"
|
|
|
|
|
[data]="_periodicity"
|
2026-11-15 13:09:32 +06:00
|
|
|
[defaultItem]="{
|
|
|
|
|
name: 'Select Periodicity',
|
|
|
|
|
value: null
|
|
|
|
|
}"
|
2026-11-03 13:06:00 +06:00
|
|
|
[textField]="'name'"
|
|
|
|
|
[valueField]="'value'"
|
|
|
|
|
[valuePrimitive]="true"
|
|
|
|
|
formControlName="periodicity"
|
|
|
|
|
[(ngModel)]="_selectedPeriodicity"
|
|
|
|
|
(selectionChange)="changepridicity($event)"
|
|
|
|
|
>
|
|
|
|
|
</kendo-dropdownlist>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-11-15 13:09:32 +06:00
|
|
|
<div class="adp-field">
|
|
|
|
|
<label class="adp-label" for="ddlGender">Gender</label>
|
|
|
|
|
<div class="adp-control">
|
2026-11-03 13:06:00 +06:00
|
|
|
<kendo-dropdownlist
|
|
|
|
|
class="form-control form-control-sm input-sm"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
id="ddlGender"
|
|
|
|
|
[data]="_gender"
|
2026-11-15 13:09:32 +06:00
|
|
|
[defaultItem]="{
|
|
|
|
|
name: 'Select Gender',
|
|
|
|
|
value: null
|
|
|
|
|
}"
|
2026-11-03 13:06:00 +06:00
|
|
|
[textField]="'name'"
|
|
|
|
|
[valueField]="'value'"
|
|
|
|
|
[valuePrimitive]="true"
|
|
|
|
|
formControlName="gender"
|
|
|
|
|
>
|
|
|
|
|
</kendo-dropdownlist>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-11-15 13:09:32 +06:00
|
|
|
<div class="checkBoxGrid adp-checks">
|
|
|
|
|
<label class="k-form-field right adp-check">
|
|
|
|
|
<input
|
|
|
|
|
type="checkbox"
|
|
|
|
|
formControlName="isForConfirmOnly"
|
|
|
|
|
id="enableConfirmCheck"
|
|
|
|
|
[(ngModel)]="_adPram.isForConfirmOnly"
|
|
|
|
|
kendoCheckBox/>
|
|
|
|
|
<label class="k-checkbox-label" for="enableConfirmCheck">Confirmation Required</label>
|
|
|
|
|
</label>
|
|
|
|
|
<label class="k-form-field right adp-check">
|
|
|
|
|
<input
|
|
|
|
|
type="checkbox"
|
|
|
|
|
formControlName="isDependsOnAttendance"
|
|
|
|
|
id="enableDepandentCheck"
|
|
|
|
|
[(ngModel)]="_adPram.isDependsOnAttendance"
|
|
|
|
|
kendoCheckBox/>
|
|
|
|
|
<label class="k-checkbox-label" for="enableDepandentCheck">Is Dependence on Attendance</label>
|
|
|
|
|
</label>
|
|
|
|
|
<label class="k-form-field right adp-check">
|
|
|
|
|
<input
|
|
|
|
|
type="checkbox"
|
|
|
|
|
formControlName="isFractionateApplicable"
|
|
|
|
|
id="enableFractionateCheck"
|
|
|
|
|
[(ngModel)]="_adPram.isFractionateApplicable"
|
|
|
|
|
kendoCheckBox/>
|
|
|
|
|
<label class="k-checkbox-label" for="enableFractionateCheck">Is fractionate Available</label>
|
|
|
|
|
</label>
|
|
|
|
|
<label class="k-form-field right adp-check">
|
|
|
|
|
<input
|
|
|
|
|
type="checkbox"
|
|
|
|
|
formControlName="isTaxable"
|
|
|
|
|
id="enabletaxableCheck"
|
|
|
|
|
[(ngModel)]="_adPram.isTaxable"
|
|
|
|
|
kendoCheckBox/>
|
|
|
|
|
<label class="k-checkbox-label" for="enabletaxableCheck">Taxable</label>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Amount -->
|
|
|
|
|
<div class="col-12 md:col-6 lg:col-3 adp-section">
|
|
|
|
|
<div class="adp-section-title">Amount</div>
|
|
|
|
|
<div class="adp-field">
|
|
|
|
|
<label class="adp-label" for="txtFlatAmount">Flat Amount</label>
|
|
|
|
|
<div class="adp-control">
|
|
|
|
|
<kendo-numerictextbox
|
|
|
|
|
[min]="-10000000"
|
|
|
|
|
[max]="10000000"
|
|
|
|
|
[(ngModel)]="_adPram.flatAmount"
|
|
|
|
|
formControlName="flatAmount"
|
|
|
|
|
>
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="adp-field">
|
|
|
|
|
<label class="adp-label" for="txtBasic">% of Basic</label>
|
|
|
|
|
<div class="adp-control">
|
|
|
|
|
<kendo-numerictextbox
|
|
|
|
|
[min]="-1000"
|
|
|
|
|
[max]="1000"
|
|
|
|
|
[(ngModel)]="_adPram.percentOfBasic"
|
|
|
|
|
formControlName="percentOfBasic"
|
|
|
|
|
>
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="adp-field">
|
|
|
|
|
<label class="adp-label" for="txtGross">% of Gross</label>
|
|
|
|
|
<div class="adp-control">
|
|
|
|
|
<kendo-numerictextbox
|
|
|
|
|
[min]="-1000"
|
|
|
|
|
[max]="1000"
|
|
|
|
|
[(ngModel)]="_adPram.percentOfGross"
|
|
|
|
|
formControlName="percentOfGross"
|
|
|
|
|
>
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="adp-field">
|
|
|
|
|
<label class="adp-label" for="txtMininmum">Mininmum</label>
|
|
|
|
|
<div class="adp-control">
|
|
|
|
|
<kendo-numerictextbox
|
|
|
|
|
[min]="-10000000"
|
|
|
|
|
[max]="10000000"
|
|
|
|
|
[(ngModel)]="_adPram.minAmount"
|
|
|
|
|
formControlName="minAmount"
|
|
|
|
|
>
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="adp-field">
|
|
|
|
|
<label class="adp-label" for="txtMaximum">Maximum</label>
|
|
|
|
|
<div class="adp-control">
|
|
|
|
|
<kendo-numerictextbox
|
|
|
|
|
[min]="-10000000"
|
|
|
|
|
[max]="10000000"
|
|
|
|
|
[(ngModel)]="_adPram.maxAmount"
|
|
|
|
|
formControlName="maxAmount"
|
|
|
|
|
>
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Grades -->
|
|
|
|
|
<div class="col-12 md:col-6 lg:col-4 adp-section">
|
|
|
|
|
<div class="adp-section-title">Grade <span class="adp-required">*</span></div>
|
|
|
|
|
<kendo-grid
|
|
|
|
|
[data]="_grades"
|
|
|
|
|
height="220"
|
|
|
|
|
[(selectedKeys)]="_selectedgrades"
|
|
|
|
|
[kendoGridSelectBy]="'id'"
|
|
|
|
|
>
|
|
|
|
|
<kendo-grid-checkbox-column
|
|
|
|
|
showSelectAll="true"
|
|
|
|
|
[width]="50"
|
|
|
|
|
[headerClass]="{ 'text-center': true }"
|
|
|
|
|
[class]="{ 'text-center': true }"
|
|
|
|
|
></kendo-grid-checkbox-column>
|
|
|
|
|
<kendo-grid-column field="code" title="Code">
|
|
|
|
|
</kendo-grid-column>
|
|
|
|
|
<kendo-grid-column field="name" title="Description">
|
|
|
|
|
</kendo-grid-column>
|
|
|
|
|
</kendo-grid>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2026-11-03 13:06:00 +06:00
|
|
|
|
|
|
|
|
<!-- <hr>
|
|
|
|
|
<div class="checkBoxGrid grid">
|
|
|
|
|
<div>
|
|
|
|
|
<label class="k-form-field right">
|
|
|
|
|
<input
|
|
|
|
|
type="checkbox"
|
|
|
|
|
formControlName="isForConfirmOnly"
|
|
|
|
|
id="enableConfirmCheck"
|
|
|
|
|
[(ngModel)]="_adPram.isForConfirmOnly"
|
|
|
|
|
kendoCheckBox/>
|
|
|
|
|
<label class="k-checkbox-label" for="enableConfirmCheck">Confirmation Required</label>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<label class="k-form-field right">
|
|
|
|
|
<input
|
|
|
|
|
type="checkbox"
|
|
|
|
|
formControlName="isDependsOnAttendance"
|
|
|
|
|
id="enableDepandentCheck"
|
|
|
|
|
[(ngModel)]="_adPram.isDependsOnAttendance"
|
|
|
|
|
kendoCheckBox
|
|
|
|
|
/>
|
|
|
|
|
<label
|
|
|
|
|
class="k-checkbox-label"
|
|
|
|
|
for="enableDepandentCheck"
|
|
|
|
|
>
|
|
|
|
|
Is Dependence on Attendance
|
|
|
|
|
</label>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<label class="k-form-field right">
|
|
|
|
|
<input
|
|
|
|
|
type="checkbox"
|
|
|
|
|
formControlName="isFractionateApplicable"
|
|
|
|
|
id="enableFractionateCheck"
|
|
|
|
|
[(ngModel)]="_adPram.isFractionateApplicable"
|
|
|
|
|
kendoCheckBox
|
|
|
|
|
/>
|
|
|
|
|
<label
|
|
|
|
|
class="k-checkbox-label"
|
|
|
|
|
for="enableFractionateCheck"
|
|
|
|
|
>
|
|
|
|
|
Is fractionate Available
|
|
|
|
|
</label>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<label class="k-form-field right">
|
|
|
|
|
<input
|
|
|
|
|
type="checkbox"
|
|
|
|
|
formControlName="isTaxable"
|
|
|
|
|
id="enabletaxableCheck"
|
|
|
|
|
[(ngModel)]="_adPram.isTaxable"
|
|
|
|
|
kendoCheckBox
|
|
|
|
|
/>
|
|
|
|
|
<label class="k-checkbox-label" for="enabletaxableCheck"
|
|
|
|
|
>Taxable</label
|
|
|
|
|
>
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
2026-11-15 13:09:32 +06:00
|
|
|
</div>
|
2026-11-03 13:06:00 +06:00
|
|
|
<!-- <div class="card" style="padding: 1%;">
|
|
|
|
|
<div class="middleGrid grid">
|
|
|
|
|
<div class="col-6">
|
|
|
|
|
<div class="grid">
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<label for="txtFlatAmount">Flat Amount</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-8">
|
|
|
|
|
<kendo-numerictextbox
|
|
|
|
|
[min]="-10000000"
|
|
|
|
|
[max]="10000000"
|
|
|
|
|
[(ngModel)]="_adPram.flatAmount"
|
|
|
|
|
formControlName="flatAmount"
|
|
|
|
|
>
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="grid">
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<label for="txtBasic">% of Basic</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-8">
|
|
|
|
|
<kendo-numerictextbox
|
|
|
|
|
[min]="-1000"
|
|
|
|
|
[max]="1000"
|
|
|
|
|
[(ngModel)]="_adPram.percentOfBasic"
|
|
|
|
|
formControlName="percentOfBasic"
|
|
|
|
|
>
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="grid">
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<label for="txtGross">% of Gross</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-8">
|
|
|
|
|
<kendo-numerictextbox
|
|
|
|
|
[min]="-1000"
|
|
|
|
|
[max]="1000"
|
|
|
|
|
[(ngModel)]="_adPram.percentOfGross"
|
|
|
|
|
formControlName="percentOfGross"
|
|
|
|
|
>
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="grid">
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<label for="txtMininmum">Mininmum</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-8">
|
|
|
|
|
<kendo-numerictextbox
|
|
|
|
|
[min]="-10000000"
|
|
|
|
|
[max]="10000000"
|
|
|
|
|
[(ngModel)]="_adPram.minAmount"
|
|
|
|
|
formControlName="minAmount"
|
|
|
|
|
>
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="grid">
|
|
|
|
|
<div class="col-4">
|
|
|
|
|
<label for="txtMaximum">Maximum</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-8">
|
|
|
|
|
<kendo-numerictextbox
|
|
|
|
|
[min]="-10000000"
|
|
|
|
|
[max]="10000000"
|
|
|
|
|
[(ngModel)]="_adPram.maxAmount"
|
|
|
|
|
formControlName="maxAmount"
|
|
|
|
|
>
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
|
2026-11-15 13:09:32 +06:00
|
|
|
<!-- Employees -->
|
|
|
|
|
<div class="card adp-card">
|
|
|
|
|
<app-tab-view (onChange)="IndividualChecked($event)">
|
|
|
|
|
@if (_selectedPeriodicity == 1) {
|
|
|
|
|
<app-tab-panel
|
|
|
|
|
header="Exception ( {{
|
|
|
|
|
this._adPram.exception?.length
|
|
|
|
|
}} )"
|
|
|
|
|
leftIcon="pi pi-user"
|
|
|
|
|
>
|
|
|
|
|
</app-tab-panel>
|
|
|
|
|
}
|
|
|
|
|
@if (_selectedPeriodicity == 1) {
|
|
|
|
|
<app-tab-panel
|
|
|
|
|
header="Not Applicable ( {{
|
|
|
|
|
this._adPram.notApplicable?.length
|
|
|
|
|
}} )"
|
|
|
|
|
leftIcon="pi pi-user"
|
|
|
|
|
>
|
|
|
|
|
</app-tab-panel>
|
|
|
|
|
}
|
|
|
|
|
@if (_selectedPeriodicity != 1) {
|
|
|
|
|
<app-tab-panel
|
|
|
|
|
header="Individual ( {{
|
|
|
|
|
this._adPram.adParameterEmployees?.length
|
|
|
|
|
}} )"
|
|
|
|
|
leftIcon="pi pi-user"
|
|
|
|
|
>
|
|
|
|
|
</app-tab-panel>
|
|
|
|
|
}
|
|
|
|
|
</app-tab-view>
|
2026-11-03 13:06:00 +06:00
|
|
|
|
2026-11-15 13:09:32 +06:00
|
|
|
<div class="adp-detail-text">
|
|
|
|
|
<b> {{ _detailLevelText }}</b>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="adp-entry-row">
|
|
|
|
|
<div class="adp-entry-item adp-entry-emp">
|
|
|
|
|
<label class="adp-entry-label" for="txtEmp">Select Emp</label>
|
|
|
|
|
<app-employee-picker [MultiSelect]="true"
|
|
|
|
|
[fixedGrades]="_selectedgrades"
|
|
|
|
|
(ItemSelected)="GetSelectedEmployee($event)"
|
|
|
|
|
></app-employee-picker>
|
|
|
|
|
<!-- <app-employee-picker for="chkIsnew" id="idself" [isActive]="!newEmployee" [setSelectedEmp]="selectedEmployee"
|
|
|
|
|
(ItemSelected)="GetSelectedEmployee($event)"></app-employee-picker> -->
|
|
|
|
|
</div>
|
|
|
|
|
@if (!_ischecknotapplicable) {
|
|
|
|
|
<div class="adp-entry-item">
|
|
|
|
|
<label class="adp-entry-label" for="txtEmp">Amount</label>
|
|
|
|
|
<kendo-numerictextbox
|
|
|
|
|
[min]="-10000000"
|
|
|
|
|
[max]="10000000"
|
|
|
|
|
[(ngModel)]="_individualAmount"
|
|
|
|
|
[ngModelOptions]="{ standalone: true }"
|
|
|
|
|
>
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</div>
|
|
|
|
|
@if (!_ischeckException) {
|
|
|
|
|
<div class="adp-entry-item">
|
|
|
|
|
<label class="adp-entry-label" for="dtpFromDate">From Date</label>
|
|
|
|
|
<kendo-datepicker
|
|
|
|
|
id="dtpFromDate"
|
|
|
|
|
[format]="'dd-MMM-yyyy'"
|
|
|
|
|
[readonly]="this._adPram.periodicity == 2"
|
|
|
|
|
[(ngModel)]="_individualFromDate"
|
|
|
|
|
[ngModelOptions]="{ standalone: true }"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
></kendo-datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="adp-entry-item">
|
|
|
|
|
<label class="k-form-field right adp-entry-label">
|
|
|
|
|
<input
|
|
|
|
|
type="checkbox"
|
|
|
|
|
[(ngModel)]="_checkedToDate"
|
|
|
|
|
[ngModelOptions]="{ standalone: true }"
|
|
|
|
|
[disabled]="this._adPram.periodicity == 2"
|
|
|
|
|
(click)="todateclicked()" kendoCheckBox/>
|
|
|
|
|
<label
|
|
|
|
|
class="k-checkbox-label"
|
|
|
|
|
for="isIndividualEmployee"
|
|
|
|
|
>
|
|
|
|
|
To Date
|
|
|
|
|
</label>
|
|
|
|
|
</label>
|
|
|
|
|
<kendo-datepicker
|
|
|
|
|
id="dtpToDate"
|
|
|
|
|
[format]="'dd-MMM-yyyy'"
|
|
|
|
|
[(ngModel)]="_individualToDate"
|
|
|
|
|
[readonly]="
|
|
|
|
|
this._adPram.periodicity == 2 ||
|
|
|
|
|
_checkedToDate == false
|
|
|
|
|
"
|
|
|
|
|
[ngModelOptions]="{ standalone: true }"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
></kendo-datepicker>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="adp-action-bar">
|
|
|
|
|
<div class="adp-sum">
|
|
|
|
|
Sum: {{get2FloatingPoint(sumofIndividualAmount())}}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="adp-actions">
|
|
|
|
|
<button kendoButton
|
|
|
|
|
[svgIcon]="apiService.KendoSVGIcon['plus']"
|
|
|
|
|
class="k-button k-primary"
|
|
|
|
|
(click)="AddEmployee()">
|
|
|
|
|
Add
|
|
|
|
|
</button>
|
|
|
|
|
<button kendoButton [svgIcon]="apiService.KendoSVGIcon['delete']" class="kt-delete" (click)="RemoveAll()">Remove All</button>
|
|
|
|
|
<button kendoButton [svgIcon]="apiService.KendoSVGIcon['save']" themeColor="primary" (click)="Save()" >Save</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-11-15 13:49:48 +06:00
|
|
|
<!-- <kendo-grid [data]="_individualEmplyees"
|
2026-11-15 13:09:32 +06:00
|
|
|
height="300"
|
2026-11-15 13:49:48 +06:00
|
|
|
(remove)="removeHandler($event)"> -->
|
|
|
|
|
<!-- virtual scrolling: only the rows on screen are built (empGridView = a window of _individualEmplyees) -->
|
|
|
|
|
<kendo-grid [data]="empGridView"
|
|
|
|
|
class="adp-emp-grid"
|
|
|
|
|
[height]="360"
|
|
|
|
|
scrollable="virtual"
|
|
|
|
|
[rowHeight]="40"
|
|
|
|
|
[skip]="empGridSkip"
|
|
|
|
|
[pageSize]="empGridPageSize"
|
|
|
|
|
(pageChange)="onEmpGridPageChange($event)"
|
2026-11-15 13:09:32 +06:00
|
|
|
(remove)="removeHandler($event)">
|
|
|
|
|
<kendo-grid-column field="employeeNo" title="Emp ID">
|
|
|
|
|
</kendo-grid-column>
|
|
|
|
|
<kendo-grid-column field="employeeName" title="Name">
|
|
|
|
|
</kendo-grid-column>
|
|
|
|
|
@if (_ischeckappliedtoInvididual) {
|
|
|
|
|
<kendo-grid-column field="formDate" title="From Month">
|
|
|
|
|
<ng-template kendoGridCellTemplate let-dataItem>
|
|
|
|
|
<kendo-datepicker id="idformDate"
|
|
|
|
|
[(ngModel)]="dataItem.formDate"
|
|
|
|
|
[ngModelOptions]="{ standalone: true }"
|
|
|
|
|
[format]="'dd MMM yyyy'"
|
|
|
|
|
name="formDate">
|
|
|
|
|
</kendo-datepicker>
|
|
|
|
|
</ng-template>
|
|
|
|
|
</kendo-grid-column>
|
|
|
|
|
<kendo-grid-column field="tillDate"
|
|
|
|
|
title="Till Month">
|
|
|
|
|
<ng-template kendoGridCellTemplate let-dataItem>
|
|
|
|
|
<kendo-datepicker id="idtilldate"
|
|
|
|
|
[(ngModel)]="dataItem.tillDate"
|
|
|
|
|
[format]="'dd MMM yyyy'"
|
|
|
|
|
[ngModelOptions]="{ standalone: true }"
|
|
|
|
|
name="tillstartDate">
|
|
|
|
|
</kendo-datepicker>
|
|
|
|
|
</ng-template>
|
|
|
|
|
</kendo-grid-column>
|
|
|
|
|
}
|
|
|
|
|
@if (!_ischecknotapplicable) {
|
|
|
|
|
<kendo-grid-command-column title="Amount">
|
|
|
|
|
<ng-template kendoGridCellTemplate let-dataItem>
|
|
|
|
|
<kendo-numerictextbox [(ngModel)]="dataItem.monthlyAmount"
|
|
|
|
|
[ngModelOptions]="{ standalone: true }"
|
|
|
|
|
[autoCorrect]="true"
|
|
|
|
|
[spinners]="false">
|
|
|
|
|
</kendo-numerictextbox>
|
|
|
|
|
</ng-template>
|
|
|
|
|
</kendo-grid-command-column>
|
|
|
|
|
}
|
|
|
|
|
<kendo-grid-column field="approvalStatus"
|
|
|
|
|
title="Approval Status">
|
|
|
|
|
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
|
|
|
|
{{ statusString(dataItem.approvalStatus)}}
|
|
|
|
|
</ng-template>
|
|
|
|
|
</kendo-grid-column>
|
|
|
|
|
<kendo-grid-command-column title="Action" width="120">
|
|
|
|
|
<ng-template kendoGridCellTemplate
|
|
|
|
|
let-dataItem
|
|
|
|
|
let-rowIndex="rowIndex">
|
|
|
|
|
<button kendoGridRemoveCommand [svgIcon]="apiService.KendoSVGIcon['delete']" class="kt-delete"></button>
|
|
|
|
|
</ng-template>
|
|
|
|
|
</kendo-grid-command-column>
|
|
|
|
|
</kendo-grid>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|