event
This commit is contained in:
parent
45899dbb09
commit
13d1a5699a
|
|
@ -1,3 +1,55 @@
|
|||
:host ::ng-deep .ng-invalid:not(form) {
|
||||
/* Required-field marker on the fields themselves. Not on wrapper <div [formGroup]>s (inside the
|
||||
employee / cost-center pickers): they turn ng-invalid whenever any field is, which drew a second red line. */
|
||||
:host ::ng-deep .ng-invalid:not(form):not(div) {
|
||||
border-left: 2px solid var(--gh-dn);
|
||||
}
|
||||
}
|
||||
|
||||
/* Header: Employee, Effect Date, Cost Center, Involvement and Add on one row (layout only, palette colours) */
|
||||
.ccc-head {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(120px, auto);
|
||||
align-items: end;
|
||||
gap: 14px 16px;
|
||||
margin-bottom: 12px;
|
||||
padding: 16px !important;
|
||||
background: var(--gh-pb);
|
||||
border: 1px solid var(--gh-bo);
|
||||
border-left: 4px solid var(--gh-btn);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.ccc-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ccc-field > label {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--gh-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.ccc-head {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
.ccc-field--action {
|
||||
grid-column: 1 / -1;
|
||||
justify-self: end;
|
||||
min-width: 140px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.ccc-head {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
.ccc-field--action {
|
||||
justify-self: stretch;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,53 +8,37 @@
|
|||
<!-- <div class="col-12 lg:col-1" style="margin: auto;">
|
||||
<label for="dtpEffectDate">Employee</label>
|
||||
</div> -->
|
||||
<div class="col-12 lg:col-3">
|
||||
<app-employee-picker [pickerFormGroup]="_fromValidator" [pickerformControlName]="'EmployeeID'"
|
||||
(ItemSelected)="GetSelectedEmployee($event)"></app-employee-picker>
|
||||
</div>
|
||||
<div class="col-12 lg:col-1" style="margin: auto;">
|
||||
<label for="dtpEffectDate">Effect Date</label>
|
||||
</div>
|
||||
<div class="col-12 lg:col-2">
|
||||
<kendo-datepicker id="dtpEffectDate" formControlName="EffectDate"
|
||||
[(ngModel)]="_empCostCenter.monthDate" [format]="'dd-MMM-yyyy'"
|
||||
style="width:100%"></kendo-datepicker>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
|
||||
|
||||
<!-- <div class="col-12 card"> -->
|
||||
<!-- <div class="col-12"> -->
|
||||
<!-- <div class="grid">
|
||||
<div class="col-12 lg:col-12"> -->
|
||||
<!-- <legend style="font-weight:bold; font-size: 14px;">Involment To Different Cost Centers</legend>
|
||||
<br />
|
||||
<br /> -->
|
||||
<!-- <div class="grid form-group"> -->
|
||||
<div class="col-12 lg:col-1" style="margin: auto;">
|
||||
<label for="txtCostCenter">Cost Center</label>
|
||||
</div>
|
||||
<div class="col-12 lg:col-2">
|
||||
<app-dynamic-picker [DynamicPickerFormGroup]="_fromValidator" [pickerformControlName]="'costcenter'"
|
||||
[dynamicPickerView]="_costCenterPicker"
|
||||
(onSelectCompleted)="costCenterSelected()"></app-dynamic-picker>
|
||||
</div>
|
||||
<div class="col-12 lg:col-1" style="margin: auto;">
|
||||
<label for="txtInvolvement">Involvement(%)</label>
|
||||
</div>
|
||||
<div class="col-12 lg:col-2">
|
||||
<kendo-numerictextbox formControlName="Percent" [(ngModel)]="_empCostCenter.percentage"
|
||||
style="width:100%">
|
||||
</kendo-numerictextbox>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
<!-- <div class="grid"> -->
|
||||
<div class="col-12 lg:col-10"></div>
|
||||
<div class="col-12 lg:col-2">
|
||||
<button kendoButton class="k-button gh-add" (click)="Add()" themeColor="primary" [svgIcon]="apiService.KendoSVGIcon['plus']"
|
||||
style="width:100%;height:100%;float:right">
|
||||
Add
|
||||
</button>
|
||||
<!-- Header: the four fields + Add on one line, labels above (same bindings and handlers as before) -->
|
||||
<div class="col-12 ccc-head">
|
||||
<div class="ccc-field">
|
||||
<label>Employee</label>
|
||||
<app-employee-picker [pickerFormGroup]="_fromValidator" [pickerformControlName]="'EmployeeID'"
|
||||
(ItemSelected)="GetSelectedEmployee($event)"></app-employee-picker>
|
||||
</div>
|
||||
<div class="ccc-field">
|
||||
<label for="dtpEffectDate">Effect Date</label>
|
||||
<kendo-datepicker id="dtpEffectDate" formControlName="EffectDate"
|
||||
[(ngModel)]="_empCostCenter.monthDate" [format]="'dd-MMM-yyyy'"
|
||||
style="width:100%"></kendo-datepicker>
|
||||
</div>
|
||||
<div class="ccc-field">
|
||||
<label for="txtCostCenter">Cost Center</label>
|
||||
<app-dynamic-picker [DynamicPickerFormGroup]="_fromValidator" [pickerformControlName]="'costcenter'"
|
||||
[dynamicPickerView]="_costCenterPicker"
|
||||
(onSelectCompleted)="costCenterSelected()"></app-dynamic-picker>
|
||||
</div>
|
||||
<div class="ccc-field">
|
||||
<label for="txtInvolvement">Involvement(%)</label>
|
||||
<kendo-numerictextbox formControlName="Percent" [(ngModel)]="_empCostCenter.percentage"
|
||||
style="width:100%">
|
||||
</kendo-numerictextbox>
|
||||
</div>
|
||||
<div class="ccc-field ccc-field--action">
|
||||
<button kendoButton class="k-button gh-add" (click)="Add()" themeColor="primary" [svgIcon]="apiService.KendoSVGIcon['plus']"
|
||||
style="width:100%">
|
||||
Add
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
<div class="grid">
|
||||
|
|
|
|||
|
|
@ -0,0 +1,33 @@
|
|||
/* Status + Name header of the Life Cycle Event dialog (layout only, palette colours) */
|
||||
.lce-head {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 16px 20px;
|
||||
padding: 14px 16px !important;
|
||||
background: var(--gh-pb);
|
||||
border: 1px solid var(--gh-bo) !important;
|
||||
border-left: 4px solid var(--gh-btn) !important;
|
||||
border-radius: 10px !important;
|
||||
}
|
||||
|
||||
.lce-head__field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.lce-head__field label {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--gh-muted);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.lce-head {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,23 +1,17 @@
|
|||
<app-loading-panel></app-loading-panel>
|
||||
|
||||
<div class="ui-g-12 card">
|
||||
<div class="grid">
|
||||
<div class="col-2" style="font-weight:bold;margin: auto;">
|
||||
<label for="ddlStatus">Status</label>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<kendo-dropdownlist class="form-control form-control-sm input-sm" style="width:80%" id="ddlStatus"
|
||||
[(ngModel)]="employeeStatus.empStatus" [data]="statusType"
|
||||
[defaultItem]="{ name: 'Select Status', value: null }" [textField]="'name'" [valueField]="'value'"
|
||||
[valuePrimitive]="true">
|
||||
</kendo-dropdownlist>
|
||||
</div>
|
||||
<div class="col-2" style="font-weight:bold;margin: auto;">
|
||||
<label>Name</label>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<input id="txtName" [(ngModel)]="employeeStatus.description" style="width:80%" type="text" kendoTextBox required placeholder="Enter name">
|
||||
</div>
|
||||
<div class="ui-g-12 card lce-head">
|
||||
<div class="lce-head__field">
|
||||
<label for="ddlStatus">Status</label>
|
||||
<kendo-dropdownlist class="form-control form-control-sm input-sm" style="width:100%" id="ddlStatus"
|
||||
[(ngModel)]="employeeStatus.empStatus" [data]="statusType"
|
||||
[defaultItem]="{ name: 'Select Status', value: null }" [textField]="'name'" [valueField]="'value'"
|
||||
[valuePrimitive]="true">
|
||||
</kendo-dropdownlist>
|
||||
</div>
|
||||
<div class="lce-head__field">
|
||||
<label for="txtName">Name</label>
|
||||
<input id="txtName" [(ngModel)]="employeeStatus.description" style="width:100%" type="text" kendoTextBox required placeholder="Enter name">
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-g-12 card">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
.custom-grid {
|
||||
min-height: 450px; /* Set your minimum height here */
|
||||
max-height: 550px; /* Optional: Set maximum height if needed */
|
||||
overflow-y: auto; /* Enables vertical scrollbar when content exceeds max height */
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,4 +15,71 @@
|
|||
.window-viewer {
|
||||
width: 70%;
|
||||
max-height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* Page header: title + month on the left, Upcoming Confirmation on the right (palette colours) */
|
||||
.ecd-head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px 16px;
|
||||
padding: 14px 16px !important;
|
||||
background: var(--gh-tb);
|
||||
border: 1px solid var(--gh-bo) !important;
|
||||
border-left: 4px solid var(--gh-btn) !important;
|
||||
border-radius: 10px !important;
|
||||
}
|
||||
|
||||
.ecd-head__info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ecd-head__icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
flex-shrink: 0;
|
||||
border-radius: 10px;
|
||||
background: var(--gh-th);
|
||||
color: var(--gh-btn);
|
||||
}
|
||||
|
||||
.ecd-head__icon i {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.ecd-head__text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ecd-head__title {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: var(--gh-ht);
|
||||
}
|
||||
|
||||
.ecd-head__month {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
align-self: flex-start;
|
||||
gap: 6px;
|
||||
padding: 2px 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--gh-lk);
|
||||
background: var(--gh-th);
|
||||
}
|
||||
|
||||
.ecd-head__month i {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,25 +1,17 @@
|
|||
<div class="grid">
|
||||
<div class="col-12 md:col-12">
|
||||
<div class="card" style="padding-left: 10px; padding-right: 10px;">
|
||||
<div class="grid">
|
||||
<div class="col-6">
|
||||
<div class="col-12 padding-bottom-zero">
|
||||
<label>Upcoming confirming employees, Month: {{$safeNavigationMigration(this.payrolltype?.nextPayProcessDate) | date: "MMMM-yyyy"}} </label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<button style="float:left" (click)="upcomingConfirmation()" [svgIcon]="apiService.KendoSVGIcon['print']" kendoButton
|
||||
type="button" themeColor="primary">
|
||||
Upcoming Confirmation
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid">
|
||||
<div class="col-12">
|
||||
|
||||
<div class="card ecd-head">
|
||||
<div class="ecd-head__info">
|
||||
<span class="ecd-head__icon"><i class="pi pi-user-plus"></i></span>
|
||||
<div class="ecd-head__text">
|
||||
<span class="ecd-head__title">Upcoming confirming employees</span>
|
||||
<span class="ecd-head__month"><i class="pi pi-calendar"></i>Month: {{$safeNavigationMigration(this.payrolltype?.nextPayProcessDate) | date: "MMMM-yyyy"}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<button (click)="upcomingConfirmation()" [svgIcon]="apiService.KendoSVGIcon['print']" kendoButton
|
||||
type="button" themeColor="primary">
|
||||
Upcoming Confirmation
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -21,10 +21,9 @@
|
|||
</div>
|
||||
|
||||
|
||||
<div class="col-12">
|
||||
<div class="card card-w-title">
|
||||
<kendo-grid [data]="puRequestListFiltered" [selectable]="true" [selectedKeys]="mySelection"
|
||||
[kendoGridSelectBy]="'id'" (edit)="editHandler($event)" style="height: 440px" (selectedKeysChange)="onSelectionChange($event)">
|
||||
<div class="col-12 card card-w-title">
|
||||
<kendo-grid [data]="puRequestListFiltered" [selectable]="true" [selectedKeys]="mySelection"
|
||||
[kendoGridSelectBy]="'id'" (edit)="editHandler($event)" style="max-height: 440px" (selectedKeysChange)="onSelectionChange($event)">
|
||||
<kendo-grid-checkbox-column width="3%" showSelectAll="true"></kendo-grid-checkbox-column>
|
||||
<kendo-grid-column field="requestDate" title="Date" width="9%">
|
||||
<ng-template kendoGridCellTemplate let-dataItem>
|
||||
|
|
@ -56,7 +55,6 @@
|
|||
</ng-template>
|
||||
</kendo-grid-command-column>
|
||||
</kendo-grid>
|
||||
</div>
|
||||
@if (mySelection.length > 0) {
|
||||
<div class="col-12 md:col-12 lg:col-12" align="right">
|
||||
<button class="gh-reject" kendoButton (click)="declineAll()" style="width: 120px; margin-right: 10px;">Decline</button>
|
||||
|
|
|
|||
|
|
@ -1572,7 +1572,7 @@ margin-right: 0.5rem;
|
|||
border-radius: 3px;
|
||||
background: #ffffff;
|
||||
padding: 5px;
|
||||
margin-bottom: 16px;
|
||||
margin-bottom: 4px;
|
||||
border: 1px solid #EEEEEE;
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user