1575 lines
121 KiB
HTML
1575 lines
121 KiB
HTML
<app-loading-panel></app-loading-panel>
|
|
<div class="card card-w-title">
|
|
<div class="grid" style="margin: auto;">
|
|
<div class="col-2" style="margin: auto;">
|
|
<label style="font-weight: bold">Total Requests:</label>
|
|
</div>
|
|
<div class="col-4" style="margin: auto;">
|
|
<p>{{this.puRequestList.length}}</p>
|
|
</div>
|
|
<div class="col-2" style="margin: auto;">
|
|
<label style="font-weight: bold">Filter By Request Type:</label>
|
|
</div>
|
|
<div class="col-4" style="margin: auto;">
|
|
<kendo-dropdownlist [(ngModel)]="selectedType" [data]="type"
|
|
[defaultItem]="{ name: 'Select Type..', value: null }" [textField]="'name'" [valueField]="'value'"
|
|
(valueChange)="refreshObject($event)" style="width:100%" [valuePrimitive]="true"
|
|
class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<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>
|
|
{{dataItem.requestDate | date: 'MMM dd, yyyy'}}
|
|
</ng-template>
|
|
</kendo-grid-column>
|
|
<kendo-grid-column field="puRequestType" title="Type" width="11%">
|
|
<ng-template kendoGridCellTemplate let-dataItem>
|
|
{{enumPURequestType[dataItem.puRequestType]}}
|
|
</ng-template>
|
|
</kendo-grid-column>
|
|
<kendo-grid-column field="employeeNo" title="Employee Id" width="8%">
|
|
</kendo-grid-column>
|
|
<kendo-grid-column field="employeeName" title="Employee Name" width="11%">
|
|
</kendo-grid-column>
|
|
<kendo-grid-column field="requestDescription" title="Description" width="22%">
|
|
</kendo-grid-column>
|
|
<kendo-grid-column field="requestRemarks" title="Remarks" width="20%">
|
|
</kendo-grid-column>
|
|
<kendo-grid-column field="puRequestStatus" title="Status" width="8%">
|
|
<ng-template kendoGridCellTemplate let-dataItem>
|
|
{{enumPURequestStatus[dataItem.puRequestStatus]}}
|
|
</ng-template>
|
|
</kendo-grid-column>
|
|
<kendo-grid-command-column title="Action" width="8%">
|
|
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
|
<!-- <button class="gh-view" kendoGridEditCommand>Details</button> -->
|
|
<button class="gh-view" kendoGridEditCommand [svgIcon]="apiService.KendoSVGIcon['search']" themeColor="primary">Details</button>
|
|
</ng-template>
|
|
</kendo-grid-command-column>
|
|
</kendo-grid>
|
|
@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>
|
|
<button class="gh-approve" kendoButton (click)="approveAll()" style="width: 120px">Approve</button>
|
|
</div>
|
|
}
|
|
</div>
|
|
|
|
@if (isDisplay) {
|
|
<kendo-dialog class="blur-background" (close)="onPopUpClose()" title="Profile Modification Request" [minWidth]="950" [width]="850"
|
|
[maxHeight]="650">
|
|
<app-loading-panel></app-loading-panel>
|
|
<div class="dialog-body-scrollable">
|
|
<div class="card card-w-title">
|
|
@if (enumPURequestType.Mobile_Phone_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Mobile Phone Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="grid">
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="mobileNo">Mobile No.:</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="mobileNo" [(ngModel)]="puRequest.mobileNo" kendoTextBox style="width:100%" type="text" (keypress)="AcceptOnlyPlusAndNumber($event)">
|
|
@if (!isValidBangladeshiNumber(puRequest.mobileNo) && puRequest.mobileNo.length > 0) {
|
|
<p style="color: var(--gh-dn);">Invalid mobile no</p>
|
|
}
|
|
</div>
|
|
<div class="col-6" style="margin:auto"> </div>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
@if (extension === 'pdf') {
|
|
<iframe [src]="src" width="100%" height="600px"></iframe>
|
|
}
|
|
<!-- <pdf-viewer [src]="src"></pdf-viewer> -->
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.National_ID_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
National Id Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="nidNo">National ID Card No:</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="nidNo" [(ngModel)]="puRequest.nationalID" kendoTextBox style="width:100%" type="text" onkeypress="return /[0-9]/.test(event.key)" maxlength="17">
|
|
@if (!validateNID() && puRequest.nationalID.length > 0) {
|
|
<p style="color: var(--gh-dn);">Invalid NID no</p>
|
|
}
|
|
</div>
|
|
<div class="col-6" style="margin:auto"> </div>
|
|
<!-- <div class="col-2" style="margin:auto">
|
|
<label for="remarks">Remarks:</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%" pInputTextarea rows="1"></textarea>
|
|
</div> -->
|
|
<div class="col-12">
|
|
<!-- <label for="remarks">Remarks:</label> <br> -->
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%" kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
@if (extension === 'pdf') {
|
|
<iframe [src]="src" width="100%" height="600px"></iframe>
|
|
}
|
|
<!-- <pdf-viewer [src]="src"></pdf-viewer> -->
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Blood_Group_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Blood Group Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="bloodGroup">Blood Group:</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.bloodGroup" [data]="bloodGroup"
|
|
[defaultItem]="{ name: 'Select Blood Group..', value: null }" [textField]="'name'"
|
|
[valueField]="'value'" style="width:100%" [valuePrimitive]="true" id="bloodGroup"
|
|
class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-6" style="margin:auto"> </div>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
@if (src) {
|
|
<iframe
|
|
[src]="src"
|
|
width="100%"
|
|
height="600px"
|
|
style="border: none;">
|
|
</iframe>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.TIN_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
TIN Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="tin">TIN No:</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="tin" [(ngModel)]="puRequest.tin" type="text" kendoTextBox style="width: 100%" onkeypress="return /[0-9]/.test(event.key)" maxlength="12">
|
|
@if (!validTIN() && puRequest.tin.length > 0) {
|
|
<p style="color: var(--gh-dn);">Invalid TIN no</p>
|
|
}
|
|
</div>
|
|
<div class="col-6" style="margin:auto"> </div>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
@if (extension === 'pdf') {
|
|
<iframe [src]="src" width="100%" height="600px"></iframe>
|
|
}
|
|
<!-- <pdf-viewer [src]="src"></pdf-viewer> -->
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Passport_No_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Passport Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="passportNo">Passport No:</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="passportNo" [(ngModel)]="puRequest.passportNo" type="text" kendoTextBox style="width: 100%" required onkeypress="return /[a-zA-Z0-9]/.test(event.key)" maxlength="9">
|
|
@if (!validatePassport() && puRequest.passportNo.length > 0) {
|
|
<p style="color: var(--gh-dn);">Invalid Passport no</p>
|
|
}
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="passportNo">Expiry Date:</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-datepicker [format]="'dd-MMM-yyyy'" [(ngModel)]="puRequest.passportExpiryDate" id="passportExpDate" [required]="true" style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
@if (extension === 'pdf') {
|
|
<iframe [src]="src" width="100%" height="600px"></iframe>
|
|
}
|
|
<!-- <pdf-viewer [src]="src"></pdf-viewer> -->
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Picture_Upload === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Picture Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-12" style="text-align:center">
|
|
<img height="132px" id="imgProfilePicture" [src]="employeePhoto" width="150px"
|
|
(error)="onPhotoError()" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Parental_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Parental Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2">
|
|
<label for="fatherName">Father Name:</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="fatherName" [(ngModel)]="puRequest.fatherName" type="text" kendoTextBox
|
|
style="width: 100%">
|
|
</div>
|
|
<div class="col-2">
|
|
<label>Father's Occupation:</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.fatherOccupationID" [data]="occupations"
|
|
[defaultItem]="{ description: 'Select a occupation', id: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="motherName">Mother Name:</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="motherName" [(ngModel)]="puRequest.motherName" type="text" kendoTextBox
|
|
style="width: 100%">
|
|
</div>
|
|
<div class="col-2">
|
|
<label>Mother's Occupation:</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.motherOccupationID" [data]="occupations"
|
|
[defaultItem]="{ description: 'Select a occupation', id: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Permanent_Contact_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Permanent Contact Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2">
|
|
<label for="txtPermanentAddress">Permanent Address</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<textarea id="txtPermanentAddress" [(ngModel)]="puRequest.permanentAddress" kendoTextArea required placeholder="Enter permanent address" style="width:100%" minlength="10" maxlength="250" rows="1"></textarea>
|
|
@if ((puRequest.permanentAddress?.length > 0 && puRequest.permanentAddress?.length < 10) || (puRequest.permanentAddress?.length > 250)) {
|
|
<p style="color: var(--gh-dn);">
|
|
Provide address between (10-250) letters
|
|
</p>
|
|
}
|
|
<!-- <textarea id="txtPermanentAddress" [(ngModel)]="puRequest.permanentAddress" pInputText style="width:100%"></textarea> -->
|
|
</div>
|
|
<div class="col-2">
|
|
<label>District</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.permanentDistrictID" [data]="districts"
|
|
[defaultItem]="{ name: 'Select District..', value: null }" [textField]="'name'"
|
|
[valueField]="'id'" style="width: 100%" (valueChange)="loadPermanentThana($event)"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2">
|
|
<label>Thana</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.permanentThanaID" [data]="permanentThanas"
|
|
[defaultItem]="{ name: 'Select Thana..', value: null }" [textField]="'name'"
|
|
[valueField]="'id'" style="width: 100%" [valuePrimitive]="true"
|
|
class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="txtPermanentLandPhone">Land Phone No(s)</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="txtPermanentLandPhone" [(ngModel)]="puRequest.permanentLandPhone" type="text"
|
|
kendoTextBox style="width:100%">
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="txtPermanentMobilePhone">Mobile Phone</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="txtPermanentMobilePhone" [(ngModel)]="puRequest.permanentMobile" type="text"
|
|
kendoTextBox style="width:100%">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Present_Contact_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Present Contact Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2">
|
|
<label for="txtPresentAddress">Address</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<textarea id="txtPresentAddress" [(ngModel)]="puRequest.presentAddress" kendoTextArea required style="width:100%" minlength="10" maxlength="250" placeholder="Enter present address" ></textarea>
|
|
@if ((puRequest.presentAddress?.length > 0 && puRequest.presentAddress?.length < 10) || (puRequest.presentAddress?.length > 250)) {
|
|
<p style="color: var(--gh-dn);">
|
|
Provide address between (10-250) letters
|
|
</p>
|
|
}
|
|
<!-- <textarea id="txtPresentAddress" [(ngModel)]="puRequest.presentAddress" pInputText style="width:100%"></textarea> -->
|
|
</div>
|
|
<div class="col-2">
|
|
<label>District</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.presentDistrictID" [data]="districts"
|
|
[defaultItem]="{ name: 'Select District..', value: null }" [textField]="'name'"
|
|
[valueField]="'id'" style="width: 100%" (valueChange)="loadPresentThana($event)"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2">
|
|
<label>Thana</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.presentThanaID" [data]="presentThanas"
|
|
[defaultItem]="{ name: 'Select Thana', value: null }" [textField]="'name'"
|
|
[valueField]="'id'" style="width: 100%" [valuePrimitive]="true"
|
|
class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="txtPresentLandPhone">Land Phone No(s)</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="txtPresentLandPhone" [(ngModel)]="puRequest.presentLandPhone" type="text"
|
|
kendoTextBox style="width:100%">
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="txtPresentMobilePhone">Mobile Phone</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="txtPresentMobilePhone" [(ngModel)]="puRequest.presentMobile" type="text"
|
|
kendoTextBox style="width:100%">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Emergency_Contact_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Emergency Contact Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2">
|
|
<label for="txtEmergencyContactPerson">Contact Person</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="txtEmergencyContactPerson" [(ngModel)]="puRequest.emergencyContactPerson"
|
|
type="text" kendoTextBox style="width:100%">
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="txtEmergencyAddress">Address</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<textarea id="txtEmergencyAddress" [(ngModel)]="puRequest.emergencyAddress" kendoTextArea required style="width:100%" minlength="10" maxlength="250" placeholder="Enter contact person address" ></textarea>
|
|
@if ((puRequest.emergencyAddress?.length > 0 && puRequest.emergencyAddress?.length < 10) || (puRequest.emergencyAddress?.length > 250)) {
|
|
<p style="color: var(--gh-dn);">
|
|
Provide address between (10-250) letters
|
|
</p>
|
|
}
|
|
<!-- <input id="txtEmergencyAddress" [(ngModel)]="puRequest.emergencyAddress" type="text" pInputText style="width:100%"> -->
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="txtEmergencyLandPhone">Land Phone No(s)</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="txtEmergencyLandPhone" [(ngModel)]="puRequest.emergencyLandPhone" type="text"
|
|
kendoTextBox style="width:100%">
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="txtEmergencyMobileNo">Mobile No(s)</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="txtEmergencyMobileNo" [(ngModel)]="puRequest.emergencyMobileNo" type="text"
|
|
kendoTextBox style="width:100%">
|
|
</div>
|
|
<!--<div class="col-4">
|
|
<label>Relation</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<app-dynamic-picker [dynamicPickerView]="emergencyRelationPicker"></app-dynamic-picker>
|
|
</div>-->
|
|
<div class="col-2">
|
|
<label>Relation</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.emergencyRelationID" [data]="relations"
|
|
[defaultItem]="{ description: 'Select a relation', id: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Spouse_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Spouse Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2">
|
|
<label for="txtSpouseName">Name</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="txtSpouseName" [(ngModel)]="puRequest.spouseName" type="text"
|
|
style="width:100%" kendoTextBox required>
|
|
</div>
|
|
<div class="col-2">
|
|
<label>Level of Education</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.spouseEducationLevelID"
|
|
[data]="allEducationLevels"
|
|
[defaultItem]="{ description: 'Select Education Level..', id: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2">
|
|
<label>Occupation</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.spouseOccupationID" [data]="occupations"
|
|
[defaultItem]="{ description: 'Select a occupation', id: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="dtpSpouseBirthDate">Spouse Birth Date</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-datepicker [format]="'dd-MMM-yyyy'" [(ngModel)]="puRequest.spouseBirthDate"
|
|
id="dtpSpouseBirthDate" style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="dtpMarriageDate">Marriage Date</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-datepicker [format]="'dd-MMM-yyyy'" [(ngModel)]="puRequest.spouseMarriageDate"
|
|
id="dtpMarriageDate" style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-2" style="margin:auto"></div>
|
|
<div class="col-4"></div>
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Children_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Children Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2">
|
|
<label for="txtchildName">Name</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="txtchildName" [(ngModel)]="puRequest.childName" type="text"
|
|
style="width:100%" kendoTextBox required>
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="gender">Gender</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.childGender" [data]="genderType"
|
|
[defaultItem]="{ name: 'Select Gender..', value: null }" [textField]="'name'"
|
|
[valueField]="'value'" style="width: 100%" [valuePrimitive]="true"
|
|
class="form-control form-control-sm input-sm" id="gender">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="dtpBirthDate">Birth Date</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-datepicker [format]="'dd-MMM-yyyy'" [(ngModel)]="puRequest.childBirthDate"
|
|
id="dtpBirthDate" style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-2">
|
|
<label>Occupation</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.childOccupationID" [data]="occupations"
|
|
[defaultItem]="{ description: 'Select a occupation', id: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="ddlMaritalStatus">Marital Status</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.childMaritalStatus" [data]="maritalStatus"
|
|
[defaultItem]="{ name: 'Select Marital Status..', value: null }"
|
|
[textField]="'name'" [valueField]="'value'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm"
|
|
id="ddlMaritalStatus">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<!-- <div class="col-2">
|
|
<label for="txtchildPassportNo">Passport No</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="txtchildPassportNo" style="width: 100%" placeholder="Enter Passport No"
|
|
[(ngModel)]="puRequest.childPassportNo" type="text" pInputText >
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="txtchildPassportIssuePlace">Passport Issue Place</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<input id="txtchildPassportIssuePlace" style="width: 100%"
|
|
[(ngModel)]="puRequest.childPassportIssuePlace" type="text" pInputText required>
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="dtpchildPassportIssueDate">Passport Issue Date</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-datepicker [format]="'dd-MMM-yyyy'"
|
|
[(ngModel)]="puRequest.childPassportIssueDate" id="dtpchildPassportIssueDate"
|
|
style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-2">
|
|
<label for="dtpchildPassportExpDate">Passport Exp Date</label>
|
|
</div>
|
|
<div class="col-4">
|
|
<kendo-datepicker [format]="'dd-MMM-yyyy'"
|
|
[(ngModel)]="puRequest.childPassportExpiryDate" id="dtpchildPassportExpDate"
|
|
style="width:100%"></kendo-datepicker>
|
|
</div> -->
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Educational_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Educational Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2" style="margin:auto">
|
|
<label>Education Platform</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.academicEducationTypeID"
|
|
[data]="educationTypes"
|
|
[defaultItem]="{ description: 'Please Select Education Type..', id: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm" (valueChange)="selectEducationTypeEvent($event)">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label>Education Level</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.academicDegreeID" [data]="educationLevels"
|
|
[defaultItem]="{ description: 'Please Select Degree..', id: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label>Discipline</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.academicDisciplineID" [data]="disciplines"
|
|
[defaultItem]="{ description: 'Please Select Discipline/Department..', id: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label>University/Board</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.academicUniversityBoardID"
|
|
[data]="institutions"
|
|
[defaultItem]="{ name: 'Please Select University/Board..', id: null }"
|
|
[textField]="'name'" [valueField]="'id'" style="width: 100%" [valuePrimitive]="true"
|
|
class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="txtInstituteName">Institute Name</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="txtInstituteName" [(ngModel)]="puRequest.academicInstitute" type="text"
|
|
kendoTextBox style="width:100%">
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="txtExamHeld">Exam Held On</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="txtExamHeld" type="number" [(ngModel)]="puRequest.academicExamHeldOn"
|
|
kendoTextBox style="width:100%">
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="txtPassingYear">Passing Year</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="txtPassingYear" type="number" [(ngModel)]="puRequest.academicPassingYear"
|
|
kendoTextBox style="width:100%">
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label>Result</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.academicResultID" [data]="resultTypes"
|
|
[defaultItem]="{ description: 'Select Result..', id: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="txtCgpaObtained">CGPA</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="txtCgpaObtained" type="number" [(ngModel)]="puRequest.academicGPA" kendoTextBox
|
|
style="width:100%">
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="txtCgpaOutOf">Out of</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="txtCgpaOutOf" type="number" [(ngModel)]="puRequest.academicOutOf" kendoTextBox
|
|
style="width:100%">
|
|
</div>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
<!-- <pdf-viewer [src]="src"></pdf-viewer> -->
|
|
@if (src) {
|
|
<iframe
|
|
[src]="src"
|
|
width="100%"
|
|
height="600px"
|
|
style="border: none;">
|
|
</iframe>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Training_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Training Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid form-group">
|
|
<div class="col-2" style="margin:auto">
|
|
<label>Training Type</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.trainingTypeId" [data]="trainingTypes"
|
|
[defaultItem]="{ name: 'select a training type', id: null }" [textField]="'name'"
|
|
[valueField]="'id'" style="width: 100%" [valuePrimitive]="true"
|
|
(valueChange)="loadTraining($event)" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label>Nature of Training</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.natureOfTrainingId" [data]="trainings"
|
|
[defaultItem]="{ name: 'select a training', id: null }" [textField]="'name'"
|
|
[valueField]="'id'" style="width: 100%" [valuePrimitive]="true"
|
|
class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="txtTrainingTitle">Training Title</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="txtTrainingTitle" [(ngModel)]="puRequest.trainingTitle" type="text"
|
|
style="width:100%" kendoTextBox />
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="txtDescription">Description</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="txtDescription" [(ngModel)]="puRequest.trainingDescription" type="text"
|
|
style="width:100%" kendoTextBox />
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label>Institution</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.trainingInstitutionId" [data]="institutions"
|
|
[defaultItem]="{ name: 'select an Institute', id: null }" [textField]="'name'"
|
|
[valueField]="'id'" style="width: 100%" [valuePrimitive]="true"
|
|
class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="txtInstituteName">Institute Place</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="txtInstituteName" [(ngModel)]="puRequest.trainingInstituteName" type="text"
|
|
style="width:100%" kendoTextBox />
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="dtpFromDate">From Date</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-datepicker [(ngModel)]="puRequest.trainingFromDate" [format]="'dd-MMM-yyyy'"
|
|
id="dtpFromDate" style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="dtpToDate">To Date</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<kendo-datepicker [(ngModel)]="puRequest.trainingToDate" [format]="'dd-MMM-yyyy'" id="dtpToDate" style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
@if (extension === 'pdf') {
|
|
<iframe [src]="src" width="100%" height="600px"></iframe>
|
|
}
|
|
<!-- <pdf-viewer [src]="src"></pdf-viewer> -->
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Experience_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Experience Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid form-group">
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="txtEmployer form-control-sm">Employer</label>
|
|
</div>
|
|
<div class="col-4 form-control-sm" style="margin:auto">
|
|
<input kendoTextBox id="txtEmployer" [(ngModel)]="puRequest.experienceEmployer"
|
|
style="width:100%" type="text" />
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="txtBusinessType">Business Type</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input kendoTextBox id="txtBusinessType" type="text" style="width:100%"
|
|
[(ngModel)]="puRequest.experienceBusinessType" />
|
|
</div>
|
|
<div class="col-2 form-control-sm" style="margin:auto">
|
|
<label for="txtContactPerson">Employer Contact Person</label>
|
|
</div>
|
|
<div class="col-4 form-control-sm" style="margin:auto">
|
|
<input [(ngModel)]="puRequest.experienceEmployerContactInfo" kendoTextBox
|
|
style="width:100%" id="txtContactPerson" type="text" />
|
|
</div>
|
|
<div class="col-2 form-control-sm" style="margin:auto">
|
|
<label>Designation</label>
|
|
</div>
|
|
<div class="col-4 form-control-sm" style="margin:auto">
|
|
<input [(ngModel)]="puRequest.experienceDesignation" kendoTextBox id="txtContactPerson"
|
|
style="width:100%" type="text" />
|
|
</div>
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="txtAddress form-control-sm">Address</label>
|
|
</div>
|
|
<div class="col-4 form-control-sm" style="margin:auto">
|
|
<textarea id="txtAddress" [(ngModel)]="puRequest.experienceAddress" kendoTextArea required style="width:100%" minlength="10" maxlength="250" placeholder="Enter address"></textarea>
|
|
@if ((puRequest.experienceAddress?.length > 0 && puRequest.experienceAddress?.length < 10) || (puRequest.experienceAddress?.length > 250)) {
|
|
<p style="color: var(--gh-dn);">
|
|
Provide address between (10-250) letters
|
|
</p>
|
|
}
|
|
<!-- <input [(ngModel)]="puRequest.experienceAddress" style="width:100%" pInputText id="txtAddress" type="text" /> -->
|
|
</div>
|
|
<div class="col-2 form-control-sm" style="margin:auto">
|
|
<label for="txtRoleDefinition">Role Definition</label>
|
|
</div>
|
|
<div class="col-4 form-control-sm" style="margin:auto">
|
|
<input kendoTextBox [(ngModel)]="puRequest.experienceRole" style="width:100%"
|
|
id="txtRoleDefinition" type="text" />
|
|
</div>
|
|
<div class="col-2 form-control-sm" style="margin:auto">
|
|
<label for="txtTelephone">Telephone No</label>
|
|
</div>
|
|
<div class="col-4 form-control-sm" style="margin:auto">
|
|
<input [(ngModel)]="puRequest.experienceTelephone" style="width:100%" kendoTextBox
|
|
id="txtTelephone" type="text" />
|
|
</div>
|
|
<div class="col-2 form-control-sm" style="margin:auto">
|
|
<label for="dtpFromDate">From Date</label>
|
|
</div>
|
|
<div class="col-4 form-control-sm" style="margin:auto">
|
|
<!--<input [(ngModel)]="empExperience.fromDate" formControlName="fromDate" id="dtpFromDate"
|
|
pInputText type="date"/>-->
|
|
<kendo-datepicker [(ngModel)]="puRequest.experienceFrom" [format]="'dd-MMM-yyyy'"
|
|
id="dtpFromDate" style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-2 form-control-sm" style="margin:auto">
|
|
<label for="dtpToDate">To Date</label>
|
|
</div>
|
|
<div class="col-4 form-control-sm" style="margin:auto">
|
|
<kendo-datepicker [(ngModel)]="puRequest.experienceTo" [format]="'dd-MMM-yyyy'"
|
|
id="dtpToDate" style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-6" style="margin:auto"> </div>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
@if (extension === 'pdf') {
|
|
<iframe [src]="src" width="100%" height="600px"></iframe>
|
|
}
|
|
<!-- <pdf-viewer [src]="src"></pdf-viewer> -->
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Nominee_Information === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Nominee Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-4">
|
|
<label>Nomination Purpose</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.nomineeNominationPurposeId"
|
|
[data]="nominationPurposes"
|
|
[defaultItem]="{ description: 'Select Nomination Purpose..', value: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="dtpNominationDate">Nomination Date</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<kendo-datepicker [format]="'dd-MMM-yyyy'" [(ngModel)]="puRequest.nominationDate"
|
|
id="dtpNominationDate" style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="txtNomineeName">Nominee Name</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<input id="txtNomineeName" [(ngModel)]="puRequest.nomineeName" type="text" kendoTextBox
|
|
style="width:100%">
|
|
</div>
|
|
<div class="col-4">
|
|
<label>Relation</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.nomineeRelationID" [data]="relations"
|
|
[defaultItem]="{ description: 'Select Relations..', value: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="txtPercentage">Percentage</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<input id="txtPercentage" [(ngModel)]="puRequest.nomineePercent" type="number"
|
|
kendoTextBox style="width:100%">
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="dtpDateOfBirth">Birth Date</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<kendo-datepicker [format]="'dd-MMM-yyyy'" [(ngModel)]="puRequest.nomineeDateOfBirth"
|
|
id="dtpDateOfBirth" style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-4">
|
|
<label>Occupation</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<kendo-dropdownlist [(ngModel)]="puRequest.nomineeOccupationID" [data]="occupations"
|
|
[defaultItem]="{ description: 'Select Occupations..', value: null }"
|
|
[textField]="'description'" [valueField]="'id'" style="width: 100%"
|
|
[valuePrimitive]="true" class="form-control form-control-sm input-sm">
|
|
</kendo-dropdownlist>
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="txtAddress">Address</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<textarea id="txtNomineeAddress" [(ngModel)]="puRequest.nomineeAddress" kendoTextArea required style="width:100%" minlength="10" maxlength="250" placeholder="Enter nominee address" rows="1"></textarea>
|
|
@if ((puRequest.nomineeAddress?.length > 0 && puRequest.nomineeAddress?.length < 10) || (puRequest.nomineeAddress?.length > 250)) {
|
|
<p style="color: var(--gh-dn);">
|
|
Provide address between (10-250) letters
|
|
</p>
|
|
}
|
|
<!-- <input id="txtAddress" type="text" [(ngModel)]="puRequest.nomineeAddress" pInputText style="width:100%"> -->
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="txtTelephone">Telephone</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<input id="txtTelephone" type="text" [(ngModel)]="puRequest.nomineeTelephone" kendoTextBox
|
|
style="width:100%">
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="txtEmail">Email</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<input id="txtEmail" type="text" [(ngModel)]="puRequest.nomineeEmail" kendoTextBox
|
|
style="width:100%">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<!-- <div class="grid">
|
|
<div class="col-12">
|
|
<p style="color: var(--gh-dn)">
|
|
N.B. Fields with RED marks are MANDATORY
|
|
</p>
|
|
</div>
|
|
</div> -->
|
|
</div>
|
|
}
|
|
<!--<div class="col-12" *ngIf="enumPURequestType.Nominee === SeletedPuRequestType">
|
|
<p-panel header="Nominee Information">
|
|
<div class="col-8 p-lg-offset-2">
|
|
<div class="grid">
|
|
<div class="col-4">
|
|
<label>Nomination Purpose</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<app-dynamic-picker [dynamicPickerView]="nominationPurposePicker"></app-dynamic-picker>
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="dtpNominationDate">Nomination Date</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<kendo-datepicker [format]="'dd-MMM-yyyy'" [(ngModel)]="puRequest.nominationDate"
|
|
id="dtpNominationDate"
|
|
style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="txtNomineeName">Nominee Name</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<input id="txtNomineeName" [(ngModel)]="puRequest.nomineeName" type="text" pInputText
|
|
style="width:100%">
|
|
</div>
|
|
<div class="col-4">
|
|
<label>Relation</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<app-dynamic-picker [dynamicPickerView]="nomineeRelationPicker"></app-dynamic-picker>
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="txtPercentage">Percentage</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<input id="txtPercentage" [(ngModel)]="puRequest.nomineePercent" type="number" pInputText
|
|
style="width:100%">
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="dtpDateOfBirth">Birth Date</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<kendo-datepicker [format]="'dd-MMM-yyyy'" [(ngModel)]="puRequest.nomineeDateOfBirth"
|
|
id="dtpDateOfBirth"
|
|
style="width:100%"></kendo-datepicker>
|
|
</div>
|
|
<div class="col-4">
|
|
<label>Occupation</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<app-dynamic-picker [dynamicPickerView]="nomineeOccupationPicker"></app-dynamic-picker>
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="txtAddress">Address</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<input id="txtAddress" type="text" [(ngModel)]="puRequest.nomineeAddress" pInputText
|
|
style="width:100%">
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="txtTelephone">Telephone</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<input id="txtTelephone" type="text" [(ngModel)]="puRequest.nomineeTelephone" pInputText
|
|
style="width:100%">
|
|
</div>
|
|
<div class="col-4">
|
|
<label for="txtEmail">Email</label>
|
|
</div>
|
|
<div class="col-8">
|
|
<input id="txtEmail" type="text" [(ngModel)]="puRequest.nomineeEmail" pInputText style="width:100%">
|
|
</div>
|
|
</div>
|
|
<div class="col-12" align="right" *ngIf="this.userType == '1'">
|
|
<button class="k-primary gh-submit" (click)="submitProfile()" [svgIcon]="apiService.KendoSVGIcon['save']" kendoButton>Submit</button>
|
|
</div>
|
|
<div class="col-12" align="right" *ngIf="this.userType == '2'">
|
|
<button class="k-primary gh-approve" (click)="submitProfile()" [svgIcon]="apiService.KendoSVGIcon['save']" kendoButton>Approve</button>
|
|
</div>
|
|
</div>
|
|
</p-panel>
|
|
</div>-->
|
|
<!--<div class="col-12">
|
|
<span class="p-float-label">
|
|
<label for="float-input">Remarks</label>
|
|
<textarea id="float-input" [(ngModel)]="puRequest.requestRemarks" style="width: 100%" pInputTextarea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<kendo-upload [saveUrl]="uploadSaveUrl" [removeUrl]="uploadRemoveUrl">
|
|
</kendo-upload>
|
|
</div>-->
|
|
@if (enumPURequestType.Achievement === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Achievement Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="Achievement">Achievement:</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="Achievement" [(ngModel)]="puRequest.achievementTitle" kendoTextBox style="width:100%"
|
|
type="text">
|
|
</div>
|
|
<div class="col-6" style="margin:auto"> </div>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
@if (extension === 'pdf') {
|
|
<iframe [src]="src" width="100%" height="600px"></iframe>
|
|
}
|
|
<!-- <pdf-viewer [src]="src"></pdf-viewer> -->
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<!-- <div class="grid">
|
|
<div class="col-12">
|
|
<p style="color: var(--gh-dn)">
|
|
N.B. Fields with RED marks are MANDATORY
|
|
</p>
|
|
</div>
|
|
</div> -->
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Extra_Curricular_Activities === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Extra Curricular Activities Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="ECActivities">Extra Curricular Activities:</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="ECActivities" [(ngModel)]="puRequest.extraCurricularActivitiesTitle" kendoTextBox style="width:100%"
|
|
type="text">
|
|
</div>
|
|
<div class="col-6" style="margin:auto"> </div>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%" kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
@if (extension === 'pdf') {
|
|
<iframe [src]="src" width="100%" height="600px"></iframe>
|
|
}
|
|
<!-- <pdf-viewer [src]="src"></pdf-viewer> -->
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<!-- <div class="grid">
|
|
<div class="col-12">
|
|
<p style="color: var(--gh-dn)">
|
|
N.B. Fields with RED marks are MANDATORY
|
|
</p>
|
|
</div>
|
|
</div> -->
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Hobbies === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Hobbies Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="Hobbies">Hobbies:</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="Hobbies" [(ngModel)]="puRequest.hobbiesTitle" kendoTextBox style="width:100%"
|
|
type="text">
|
|
</div>
|
|
<div class="col-6" style="margin:auto"> </div>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
@if (extension === 'pdf') {
|
|
<iframe [src]="src" width="100%" height="600px"></iframe>
|
|
}
|
|
<!-- <pdf-viewer [src]="src"></pdf-viewer> -->
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<!-- <div class="grid">
|
|
<div class="col-12">
|
|
<p style="color: var(--gh-dn)">
|
|
N.B. Fields with RED marks are MANDATORY
|
|
</p>
|
|
</div>
|
|
</div> -->
|
|
</div>
|
|
}
|
|
@if (enumPURequestType.Other_Talents === SeletedPuRequestType) {
|
|
<div class="col-12">
|
|
<kendo-card width="100%">
|
|
<kendo-card-header>
|
|
Other Talents Information
|
|
</kendo-card-header>
|
|
<kendo-card-body>
|
|
<div class="col-12">
|
|
<div class="grid">
|
|
<div class="col-2" style="margin:auto">
|
|
<label for="OtherTalents">Other Talents:</label>
|
|
</div>
|
|
<div class="col-4" style="margin:auto">
|
|
<input id="OtherTalents" [(ngModel)]="puRequest.otherTalentsTitle" kendoTextBox style="width:100%"
|
|
type="text">
|
|
</div>
|
|
<div class="col-6" style="margin:auto"> </div>
|
|
<div class="col-12">
|
|
<span class="p-float-label">
|
|
<textarea [(ngModel)]="puRequest.adminRemarks" placeholder="Remarks" style="width: 100%"
|
|
kendoTextArea></textarea>
|
|
</span>
|
|
</div>
|
|
<div class="col-12">
|
|
<label>Attachment:</label>
|
|
</div>
|
|
@if (extension === 'pdf') {
|
|
<div class="col-12">
|
|
<div style="height:650px; overflow:auto; padding:1.143em; margin:-1.143em;width:auto;">
|
|
@if (extension === 'pdf') {
|
|
<iframe [src]="src" width="100%" height="600px"></iframe>
|
|
}
|
|
<!-- <pdf-viewer [src]="src"></pdf-viewer> -->
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (extension === 'jpg' || extension === 'png' || extension === 'jpeg') {
|
|
<div class="col-12" style="text-align:center"
|
|
>
|
|
<img height="132px" [src]="employeePhoto" width="150px" />
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</kendo-card-body>
|
|
</kendo-card>
|
|
<!-- <div class="grid">
|
|
<div class="col-12">
|
|
<p style="color: var(--gh-dn)">
|
|
N.B. Fields with RED marks are MANDATORY
|
|
</p>
|
|
</div>
|
|
</div> -->
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
<kendo-dialog-actions class="dialog-actions-fixed">
|
|
<div class="col-12" align="right">
|
|
<button class="k-primary gh-cancel" style="width: 150px; margin-right: 5px;" (click)="onCancel()" [svgIcon]="apiService.KendoSVGIcon['cancel']"
|
|
kendoButton>Cancel
|
|
</button>
|
|
<button class="k-primary gh-reject" style="margin-right: 5px; width: 150px;" (click)="rejectRequest()"
|
|
[svgIcon]="apiService.KendoSVGIcon['cross']" kendoButton>Decline
|
|
</button>
|
|
<button class="k-primary gh-approve" style="width: 150px;" (click)="submitProfile()" [svgIcon]="apiService.KendoSVGIcon['save']"
|
|
kendoButton>
|
|
Approve
|
|
</button>
|
|
</div>
|
|
</kendo-dialog-actions>
|
|
</kendo-dialog>
|
|
} |