54 lines
2.8 KiB
HTML
54 lines
2.8 KiB
HTML
<app-loading-panel></app-loading-panel>
|
|
<div class="col-12">
|
|
<kendo-grid [data]="adparameters" class="grid-header-nowrap grid-cell-wrap"
|
|
(add)="addHandler()"
|
|
|
|
(edit)="editHandler($event)">
|
|
|
|
<ng-template kendoGridToolbarTemplate>
|
|
<button class="gh-add" themeColor="primary" kendoGridAddCommand [svgIcon]="apiService.KendoSVGIcon['plus']">Add New</button>
|
|
|
|
<input type="checkbox"
|
|
id="enableConfirmCheck"
|
|
kendoCheckBox [(ngModel)]="isActiveList" (change)="GetList(isActiveList)" />
|
|
<label class="k-checkbox-label" for="enableConfirmCheck" >Active List</label>
|
|
<input placeholder="Search in all columns..." kendoTextBox />
|
|
</ng-template>
|
|
|
|
<kendo-grid-column field="allowDeductName" title="Allowance/Deduction" [width]="20">
|
|
</kendo-grid-column>
|
|
<kendo-grid-column field="gradeNames" title="Grades" [width]="40">
|
|
</kendo-grid-column>
|
|
<kendo-grid-column field="periodicity" title="Periodicity" [width]="10">
|
|
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
|
{{preodicityString(rowIndex)}}
|
|
</ng-template>
|
|
</kendo-grid-column>
|
|
<kendo-grid-column field="isTaxable" title="Taxable ?" [width]="10">
|
|
<ng-template kendoGridCellTemplate let-dataItem>
|
|
{{dataItem.isTaxable ? 'Yes' : 'No'}}
|
|
</ng-template>
|
|
</kendo-grid-column>
|
|
<kendo-grid-column field="isOnBalancing" title="On Balancing ?" [width]="10">
|
|
<ng-template kendoGridCellTemplate let-dataItem>
|
|
{{dataItem.isOnBalancing ? 'Yes' : 'No'}}
|
|
</ng-template>
|
|
</kendo-grid-column>
|
|
<kendo-grid-command-column title="Active" [width]="10">
|
|
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
|
<button themeColor="primary" kendoButton (click)="DoActiveInActive(rowIndex)" >{{dataItem.isCurrentlyActive ==true ? 'In-Active' : 'Active' }}</button>
|
|
</ng-template>
|
|
</kendo-grid-command-column>
|
|
<kendo-grid-command-column title="Edit/Delete" [width]="10">
|
|
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
|
<button kendoGridEditCommand themeColor="primary" [svgIcon]="apiService.KendoSVGIcon['edit']"></button>
|
|
<button kendoButton [svgIcon]="apiService.KendoSVGIcon['delete']" (click)="Delete(rowIndex)" class="kt-delete"></button>
|
|
<!--<input type="button" class="btn btn-primary" value="active" />-->
|
|
<!--<button pButton type="button" label="Active" class="ui-button-success ui-button-raised"></button>-->
|
|
</ng-template>
|
|
</kendo-grid-command-column>
|
|
</kendo-grid>
|
|
|
|
</div>
|
|
|