2024-10-14 10:01:49 +06:00
|
|
|
<app-loading-panel> </app-loading-panel>
|
|
|
|
<form>
|
|
|
|
<div class="card card-w-title">
|
|
|
|
<div class="p-grid form-group">
|
2025-03-24 14:29:03 +06:00
|
|
|
<div class="p-col-12 p-md-4">
|
2024-10-14 10:01:49 +06:00
|
|
|
<div class="p-col-12">
|
|
|
|
<label for="processFromDate">Process From</label>
|
|
|
|
</div>
|
|
|
|
<div class="p-col-12">
|
|
|
|
<!--Use Kendo Date Picker-->
|
|
|
|
<kendo-datepicker
|
|
|
|
id="dtpProcessFromDate"
|
|
|
|
[(value)]="fromDate"
|
|
|
|
[format]="'dd-MMM-yyyy'"
|
|
|
|
style="width: 100%"
|
|
|
|
></kendo-datepicker>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2025-03-24 14:29:03 +06:00
|
|
|
<div class="p-col-12 p-md-4">
|
2024-10-14 10:01:49 +06:00
|
|
|
<div class="p-col-12">
|
|
|
|
<label for="processToDate">Process To</label>
|
|
|
|
</div>
|
|
|
|
<div class="p-col-12">
|
|
|
|
<!--Use Kendo Date Picker-->
|
|
|
|
<kendo-datepicker
|
|
|
|
id="dtpProcessToDate"
|
|
|
|
[(value)]="toDate"
|
|
|
|
[format]="'dd-MMM-yyyy'"
|
|
|
|
style="width: 100%"
|
|
|
|
></kendo-datepicker>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="p-col-12 p-md-2">
|
2025-03-24 14:29:03 +06:00
|
|
|
<div class="p-col-12">
|
|
|
|
<label for="chkIWithEmployee">Employee Wise</label>
|
|
|
|
</div>
|
|
|
|
<div class="p-col-12">
|
|
|
|
<input type="checkbox" (change)="checkBoxChange()" [checked]="withEmployee"
|
|
|
|
id="withEmployee" kendoCheckBox/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="p-col-12 p-md-2" *ngIf="withEmployee">
|
2024-10-14 10:01:49 +06:00
|
|
|
<div class="p-col-12">
|
|
|
|
<label for="employeePicker">Select Employee</label>
|
|
|
|
</div>
|
|
|
|
<div class="p-col-12">
|
|
|
|
<app-employee-picker
|
|
|
|
[MultiSelect]="true"
|
2025-03-24 14:29:03 +06:00
|
|
|
[isActive]="withEmployee"
|
2024-10-14 10:01:49 +06:00
|
|
|
(ItemSelected)="GetSelectedEmployee($event)"
|
|
|
|
></app-employee-picker>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="p-grid form-group">
|
|
|
|
<div class="p-col-12 p-md-5">
|
|
|
|
<div class="p-col-12">
|
2025-03-24 14:29:03 +06:00
|
|
|
<!-- <label for="txtLE">(Number of Attendance Employees : {{ employees.length }})</label> -->
|
|
|
|
<label for="txtWP">Number of Employees not in Work Plan : {{ employees.length }}</label>
|
|
|
|
</div>
|
|
|
|
<div class="p-col-12" *ngIf="lastProcessDate != null">
|
|
|
|
<label style="color: red;" for="txtWP">Last Process date : {{ lastProcessDate != null ? (lastProcessDate | date: 'dd MMM yyyy') : '' }}</label>
|
2024-10-14 10:01:49 +06:00
|
|
|
</div>
|
|
|
|
<div class="p-col-12">
|
|
|
|
<button icon="rotate"
|
|
|
|
kendoButton
|
|
|
|
class="k-button k-primary"
|
|
|
|
(click)="onSave($event)">
|
|
|
|
Process Attendance
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="p-col-12">
|
|
|
|
<b> {{processStatus}}</b>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|