Browse Source

add validation

master
ganga satish kumar 3 years ago
parent
commit
cf5e7ef307
  1. 6
      src/app/annual-health-checkup/add-dependants/add-dependants.component.html
  2. 1
      src/app/annual-health-checkup/annual-health-checkup.component.html
  3. 1
      src/app/annual-health-checkup/schedule-appointment/schedule-appointment.service.ts
  4. 7
      src/constants/apiConstants.ts

6
src/app/annual-health-checkup/add-dependants/add-dependants.component.html

@ -10,19 +10,19 @@
<div class="align-middle"> <div class="align-middle">
<mat-form-field class="input-field" appearance="outline"> <mat-form-field class="input-field" appearance="outline">
<mat-label>Name of Dependant {{i+1}} *</mat-label> <mat-label>Name of Dependant {{i+1}} *</mat-label>
<input formControlName="nameOfDependant" matInput placeholder="Name of Dependant" value="1234">
<input formControlName="nameOfDependant" matInput placeholder="Name of Dependant" value="">
</mat-form-field> </mat-form-field>
</div> </div>
<div class="align-middle"> <div class="align-middle">
<mat-form-field class="input-field" appearance="outline"> <mat-form-field class="input-field" appearance="outline">
<mat-label>Relation of Employee with Dependant {{i+1}} *</mat-label> <mat-label>Relation of Employee with Dependant {{i+1}} *</mat-label>
<input formControlName="employeeRelation" matInput placeholder="Relation of Employee" value="bajaj">
<input formControlName="employeeRelation" matInput placeholder="Relation of Employee" value="">
</mat-form-field> </mat-form-field>
</div> </div>
<div class="align-middle"> <div class="align-middle">
<mat-form-field class="input-field" appearance="outline"> <mat-form-field class="input-field" appearance="outline">
<mat-label>Age of Dependant {{i+1}} *</mat-label> <mat-label>Age of Dependant {{i+1}} *</mat-label>
<input formControlName="age" matInput placeholder="Age" value="developer">
<input formControlName="age" matInput placeholder="Age" value="">
</mat-form-field> </mat-form-field>
</div> </div>
<div class="align-middle"> <div class="align-middle">

1
src/app/annual-health-checkup/annual-health-checkup.component.html

@ -2,6 +2,7 @@
<main class="main-container"> <main class="main-container">
<section class="content"> <section class="content">
<div class="card"> <div class="card">
<p>Employees who have attained the age of 40 years by 1st April 2022 will be covered under the Annual Health Check-up.</p>
<ul> <ul>
<li class="sub-card" (click)="selectedItem('generateLetter')"> <li class="sub-card" (click)="selectedItem('generateLetter')">
<img class="icon" src="assets/images/generateLetter_thumb.png" /> <img class="icon" src="assets/images/generateLetter_thumb.png" />

1
src/app/annual-health-checkup/schedule-appointment/schedule-appointment.service.ts

@ -56,5 +56,6 @@ export class ScheduleAppointmentService {
<p>Kindly confirm the date and reporting time for visiting the hospital.</p> <p>Kindly confirm the date and reporting time for visiting the hospital.</p>
<p>Thanks & Regards<br>PRADIP PALWE<br>Bajaj Auto Ltd.<br>VP (HR)</p <p>Thanks & Regards<br>PRADIP PALWE<br>Bajaj Auto Ltd.<br>VP (HR)</p
</div>`; </div>`;
} }
} }

7
src/constants/apiConstants.ts

@ -1,10 +1,3 @@
/*
This file maintains only the constant values which are exported
and used in the application where ever it is necessary.
Make sure that the constants are added as per alphabetical order
of the constant name and also the naming convention should be in
all caps.
*/
export const USER_DETAILS_API= 'https://balhecmum.bajajauto.co.in:8004/sap/opu/odata/sap/ZHCM_GW_BUDDY_EMP_MASTER_SRV/es_employee_details(%27%27)?$format=json'; export const USER_DETAILS_API= 'https://balhecmum.bajajauto.co.in:8004/sap/opu/odata/sap/ZHCM_GW_BUDDY_EMP_MASTER_SRV/es_employee_details(%27%27)?$format=json';

Loading…
Cancel
Save