Browse Source

updating downloaded pdf styles

master
ganga satish kumar 3 years ago
parent
commit
4e1912b467
  1. 3
      angular.json
  2. 1
      node_modules/.cache/babel-webpack/834b7b95dacb0167ffc66a5365d49267.json
  3. 0
      node_modules/.cli-ngcc/1477aaf33b870f8fb32a33284d4f218a143752f6479f9ad150607974cbf8829a.lock
  4. BIN
      src/app/annual-health-checkup 4 (1).zip
  5. 10
      src/app/annual-health-checkup/add-dependants/add-dependants.component.html
  6. 68
      src/app/annual-health-checkup/add-dependants/add-dependants.component.scss
  7. 78
      src/app/annual-health-checkup/add-dependants/add-dependants.component.ts
  8. 129
      src/app/annual-health-checkup/annual-health-checkup.component.scss
  9. 270
      src/app/annual-health-checkup/generate-letter-pdf/generate-letter-pdf.component.html
  10. 25
      src/app/annual-health-checkup/generate-letter-pdf/generate-letter-pdf.component.spec.ts
  11. 20
      src/app/annual-health-checkup/generate-letter-pdf/generate-letter-pdf.component.ts
  12. 41
      src/app/annual-health-checkup/generate-letter/generate-letter.component.html
  13. 96
      src/app/annual-health-checkup/generate-letter/generate-letter.component.scss
  14. 34
      src/app/annual-health-checkup/generate-letter/generate-letter.component.ts
  15. 4
      src/app/annual-health-checkup/generate-letter/generate-letter.service.ts
  16. 27
      src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.html
  17. 81
      src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.scss
  18. 9
      src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.ts
  19. 36
      src/app/annual-health-checkup/schedule-appointment/schedule-appointment.service.ts
  20. 2
      src/app/app.module.ts
  21. 10
      src/app/home/home.component.ts
  22. 2
      src/app/shared/helpers/token.interceptor.ts

3
angular.json

@ -28,7 +28,8 @@
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
"src/assets",
"src/assets/images"
],
"styles": [
"./node_modules/@angular/material/prebuilt-themes/pink-bluegrey.css",

1
node_modules/.cache/babel-webpack/834b7b95dacb0167ffc66a5365d49267.json
File diff suppressed because it is too large
View File

0
src/app/annual-health-checkup/generate-letter-pdf/generate-letter-pdf.component.scss → node_modules/.cli-ngcc/1477aaf33b870f8fb32a33284d4f218a143752f6479f9ad150607974cbf8829a.lock

BIN
src/app/annual-health-checkup 4 (1).zip

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

@ -1,10 +1,10 @@
<div class="page-container" id="addDependants">
<span class="material-icons back-icon" (click)="navigateToPrevious()">arrow_back_ios_new</span>
<span class="material-icons back-icon" (click)="navigateToPreviousScreen()">arrow_back_ios_new</span>
<form
id="create-enquiry-form"
class="create-enquiry-form"
id="addDependantForm"
class="add-dependant-form"
[formGroup]="addDependantForm"
(submit)="createEnquirySubmitHandler()"
(submit)="submitAddDependants()"
>
<div *ngFor="let item of counterArr; let i=index">
<div class="align-middle">
@ -39,7 +39,7 @@
</div>
<div class="align-middle">
<button class="font-body-xsmall-bold" type="button" (click)="createEnquirySubmitHandler()" [disabled]="isMaxCount">Add Dependants</button>
<button class="font-body-xsmall-bold" type="button" (click)="submitAddDependants()" [disabled]="isMaxCount">Add Dependants</button>
</div>
</form>
</div>

68
src/app/annual-health-checkup/add-dependants/add-dependants.component.scss

@ -1,43 +1,55 @@
#addDependants{
.page-container {
height: 100%;
display: flex;
flex-direction: column;
background-color: #b4e8fd;
}
.font-body-xsmall-bold {
font-size: 0.812rem;
line-height: 1.125rem;
letter-spacing: 1px;
font-family: "Raleway VariableFont";
text-transform: uppercase;
}
#addDependants {
padding: 5%;
margin-bottom: 2.5em;
height: auto;
.back-icon{
}
#addDependants .back-icon {
margin-top: 5% !important;
}
.align-middle{
}
#addDependants .align-middle {
width: 100% !important;
.input-field{
}
#addDependants .align-middle .input-field {
width: 100%;
}
}
::ng-deep .mat-form-field-underline, ::ng-deep .mat-form-field-ripple {
}
#addDependants ::ng-deep .mat-form-field-underline, #addDependants ::ng-deep .mat-form-field-ripple {
background-color: blue !important;
}
.align-middle{
padding:3% 0%;
}
button{
}
#addDependants .align-middle {
padding: 3% 0%;
}
#addDependants button {
border-radius: 10px;
font-size: 15px;
width: 81%;
background: #0b5fa4 0 0 no-repeat padding-box !important;
margin:2%;
}
.generateLetterL3{
position:absolute;
top:1%;
left:5%;
margin: 2%;
}
#addDependants .generateLetterL3 {
position: absolute;
top: 1%;
left: 5%;
background: white !important;
}
.generateLetterL0L1{
}
#addDependants .generateLetterL0L1 {
position: absolute;
top:1%;
left:5%;
top: 1%;
left: 5%;
background: white !important;
}
hr:last-child(){
}
#addDependants hr:last-child() {
display: none;
}
}
}

78
src/app/annual-health-checkup/add-dependants/add-dependants.component.ts

@ -1,8 +1,9 @@
import { Component, ElementRef, OnInit, ViewChild } from "@angular/core";
import { FormBuilder, FormGroup, Validators } from "@angular/forms";
import { FormArray, FormBuilder, FormGroup, Validators } from "@angular/forms";
import { MatSelectChange } from "@angular/material/select";
import { Router } from "@angular/router";
import { GENDER_LIST, SCHEDULE_APPOINTMENT } from "src/constants/constants";
import { GenerateLetterService } from "../generate-letter/generate-letter.service";
import { ScheduleAppointmentService } from "../schedule-appointment/schedule-appointment.service";
@Component({
@ -17,29 +18,70 @@ export class AddDependantsComponent implements OnInit {
@ViewChild("pdfTable", { static: false }) pdfTable: ElementRef | undefined;
@ViewChild("content")
content!: ElementRef;
counterArr: any[] = [0];
counter = 0;
counterArr:any = [];
isMaxCount: boolean = false;
genderList = GENDER_LIST;
dependentObjectList: any[] = [0];
dependentObject={
nameOfDependant: null,
employeeRelation: null,
age: null,
gender: null
}
constructor(private formBuilder: FormBuilder, private router:Router, private scheduleAppointmentService:ScheduleAppointmentService) {
this.createNewForm();
}
ngOnInit(): void {}
ngOnInit(): void {
this.counterArr.push(this.dependentObject);
}
initDependentObject(){
this.dependentObject={
nameOfDependant: null,
employeeRelation: null,
age: null,
gender: null
}
}
createNewForm(): void {
this.addDependantForm = this.formBuilder.group({
nameOfDependant: [''],
employeeRelation: [''],
age: [''],
gender: [''],
gender: ['']
});
}
createEnquirySubmitHandler() {
submitAddDependants() {
this.isMaxCount = false;
let responeObj = this.addDependantForm.value;
let validStatus = this.isFormValid(this.addDependantForm.value);
if (validStatus && this.dependentObjectList.length < 6) {
this.initDependentObject();
this.counterArr.push(this.dependentObject);
console.log(this.counterArr);
this.saveDependentDetails();
} else {
this.isMaxCount = true;
}
if(this.dependentObjectList.length === 6){
this.isMaxCount = true;
}
}
saveDependentDetails(){
let responseObject = this.addDependantForm.value;
this.dependentObject={
nameOfDependant: responseObject.nameOfDependant,
employeeRelation: responseObject.employeeRelation,
age: responseObject.age,
gender: responseObject.gender
}
this.scheduleAppointmentService.saveDependentDetails(this.dependentObject);
}
isFormValid(responeObj:any){
let isValidObj = {
isValid:false,
isNameValid:false,
@ -59,28 +101,17 @@ export class AddDependantsComponent implements OnInit {
if(responeObj.gender.length > 0){
isValidObj.isGenderValid = true;
}
if(isValidObj.isNameValid && isValidObj.isEmployeeRelation && isValidObj.isAgeValid && isValidObj.isGenderValid){
isValidObj.isValid = true;
}
if (isValidObj.isValid && this.counterArr.length < 6) {
//this.createNewForm();
this.counter++;
this.counterArr.push(this.counter);
} else {
this.isMaxCount = true;
return isValidObj.isValid;
}
if(this.counterArr.length === 6){
this.isMaxCount = true;
}
navigateToPreviousScreen(){
let validStatus = this.isFormValid(this.addDependantForm.value);
if(validStatus){
this.saveDependentDetails();
}
navigateToPrevious(){
console.log(JSON.stringify(this.addDependantForm.value));
let responseObject = this.addDependantForm.value;
this.scheduleAppointmentService.saveAdditionalDependentDetails(responseObject);
this.router.navigate([SCHEDULE_APPOINTMENT]);
}
@ -90,7 +121,6 @@ export class AddDependantsComponent implements OnInit {
value: event.value,
text: event.source.triggerValue,
};
//this.addDependantForm.form selectedData.value;
this.addDependantForm.get('gender')?.setValue(selectedData.value);
}
}

129
src/app/annual-health-checkup/annual-health-checkup.component.scss

@ -1,104 +1,57 @@
@import '../../styles.scss';
#home-screen{
background-color: $clr-mania;
.main-container {
background: $clr-mania;
.page-container {
height: 100%;
display: flex;
flex-direction: column;
background-color: #b4e8fd;
}
.font-body-xsmall-bold {
font-size: 0.812rem;
line-height: 1.125rem;
letter-spacing: 1px;
font-family: "Raleway VariableFont";
text-transform: uppercase;
}
#home-screen {
background-color: #b4e8fd;
}
#home-screen .main-container {
background: #b4e8fd;
padding: 0%;
margin-bottom: 20%;
overflow-x: clip;
.content {
background: $clr-grey;
}
#home-screen .main-container .content {
background: #707070;
width: 100%;
@include flex-box(column, center, center);
.clear-content{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#home-screen .main-container .content .clear-content {
width: 90%;
align-items: left;
&.margin-top5{
margin-top: 5%;
}
}
.card {
}
#home-screen .main-container .content .card {
width: 100%;
background: $clr-mania;
background: #b4e8fd;
float: left;
ul{
}
#home-screen .main-container .content .card ul {
display: flex;
height: auto;
flex-wrap: wrap;
padding-top: 10%;
li {
@include flex-box(row, center, right);
margin-bottom:10%;
}
#home-screen .main-container .content .card ul li {
display: flex;
flex-direction: row;
justify-content: center;
align-items: right;
margin-bottom: 10%;
flex: 1 1 50%;
.icon{
}
#home-screen .main-container .content .card ul li .icon {
width: 150px;
height: 150px;
}
}
}
.input-left-align {
padding: 1%;
margin-bottom: 1%;
.input-wrapper {
margin: 2% 3%;
width: 94%;
.clickIcon {
position: absolute;
right: 2%;
}
}
}
&.card-noborder {
border-radius: 0px;
box-shadow: 0px 2px 8px rgba(96, 97, 112, 0.16);
}
}
.onRoadPriceContainer{
width: 98%;
}
.card-accordion {
@include flex-box(row, left, center);
font-size: 1rem;
margin: 3%;
.icon-align {
flex: 1;
justify-content: flex-end;
font-size: 1.875em;
}
}
.card > div {
padding: 5%;
flex: 9;
}
}
button {
margin: 5% 0%;
width: 90%;
box-sizing: border-box;
}
.bottom-section {
@include flex-box(column, center, center);
padding: 5% 5% 7% 5%;
.details {
color: $clr-grey-noresults;
.contact {
color: $clr-blue;
}
}
.disclaimer {
color: $clr-grey-light;
text-align: center;
}
p {
padding: 3%;
}
}
}
}

270
src/app/annual-health-checkup/generate-letter-pdf/generate-letter-pdf.component.html

@ -1,270 +0,0 @@
<div class="page-container">
<div id="generateLetterL0L1" #generateLetterL0L1>
<div class="content">
<p>HR {{location}}</p>
<p>date {{letterDate}}</p>
<h1 style="text-align:center">Annual Health Check-up for Level L0 and L1</h1>
<p>Dear {{title}}</p>
<p>As a part of our health initiatives, we are happy to announce the Annual Health Check-up program for employees in Level L0 and L1. The salient features are as below:</p>
<ul>
<li>Annual health Check-up for level L0 and L1 will commence immediately and will conclude on June 30th, 2022.</li>
<li>The health evaluation is compulsory</li>
<li>Like last year, this year also, we have also done a tie up with other health service providers i.e. Deenanath Mangeshkar Hospital, PCMC Healthcare Hospital, Express Clinics, Apollo Health and Lifestyle Limited along with Ruby Hall Clinic. Kindly refer to the annexure for the details of these hospitals/service providers.
</li>
</ul>
<p>Following medical tests are covered in the health check-up:</p>
<p><b>Basic Package for All Eligible Employees</b></p>
<table class="table table-bordered">
<thead>
<tr>
<th>Biochemical tests: </th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Haemogram</td>
<td>Serum Uric Acid</td>
</tr>
<tr>
<td>Blood Sugar (Fasting/PP) </td>
<td>Lipid Profile</td>
</tr>
<tr>
<td>Blood Urea</td>
<td>Urine routine</td>
</tr>
<tr>
<td>Serum Creatinine</td>
<td>Vitamin B12 levels</td>
</tr>
<tr>
<td>Liver Function Tests</td>
<td>Thyroid Function Test</td>
</tr>
<tr>
<td>Prostate Specific Antigen (PSA)</td>
<td></td>
</tr>
</tbody>
</table>
<table class="table table-bordered">
<thead>
<tr>
<th>Biochemical tests: </th>
</tr>
</thead>
<tbody>
<tr>
<td>Investigations</td>
</tr>
<tr>
<td>Electrocardiogram (ECG)) </td>
</tr>
<tr>
<td>X-Ray Chest-PA View</td>
</tr>
<tr>
<td>CD Heart</td>
</tr>
<tr>
<td>Pulmonary Function Tests</td>
</tr>
</tbody>
</table>
<table class="table table-bordered">
<thead>
<tr>
<th>Other tests</th>
</tr>
</thead>
<tbody>
<tr>
<td>ITreadmill Test (Stress test)</td>
</tr>
</tbody>
</table>
<p><b>Tests for Females:</b></p>
<p>Mammography</p>
<p>Pap Smear & Gynecological consultation</p>
<p>This year we have included Prostate Specific Antigen (PSA) test in the basic package with a view to extend additional benefit to our employees. PSA test will be done once in every two years.</p>
<p>Clinical evaluation will be undertaken by the physician immediately after your blood sample is given for lab tests, and ECG, X-Ray chest are completed. TMT will be completed after breakfast is provided.</p>
<p><b>Please note that you have to avail of the COMPLETE basic package, including clinical evaluation, as Bajaj Auto is billed for the full checkup.</b></p>
<p>Optional tests (cost to be borne by employee)</p>
<ul>
<li>HIV1 & HIV2 – ELISA test</li>
<li>HbA1c</li>
<li>Eye Check & ophthalmologist consultation</li>
<li>USG-Abdomen</li>
<li>Folic Acid</li>
<li>Any other pathology tests available in the hospital/center</li>
</ul>
<p>The hospitals/service providers have agreed to provide discounts on optional tests. However, the employee has to make payment through card/cash at the hospital/wellness center.</p>
<p><b>Health Package for Dependents</b></p>
<ul>
<li>The dependents will be able to avail the same health packages and discounts as the employees. </li>
<li>If a dependent wants to avail negotiated rates for mammography/pap smear/gynecological evaluation, she has to mandatorily take tests mentioned in A, B and C of Basic package.</li>
<li>Gynecological evaluation as well as report of the mammography will be discussed on the same day. One needs to confirm from the gynecologist about the reports of the Pap smear as it takes 3 – 5 days’ time to get them ready.</li>
<li>USG-Abdomen</li>
<li>Please note that a few additional medical tests are carried out only in certain hospitals. Example - Mammography etc. are available in Ruby Hall Clinic, Deenanath Mangeshkar Hospital, PCMC Healthcare & Express Clinics while Apollo has the facility of sono-mammography only. Please, therefore, ensure with respective authorities about these additional test/s while taking appointment</li>
</ul>
<p><b>Pre-requisites for health check-up</b></p>
<ul>
<li>Have dinner by 7.30 pm the day prior to your health evaluation. You have to be fasting for 14 hrs. before the blood sample is taken. Few sips of water in the morning are allowed. </li>
<li>No tea / coffee or eating on the morning of health check-up. </li>
<li>If you are on any medication, please take the morning dose after blood sample is given.</li>
<li>Certain medicines like beta-blockers for high BP have to be stopped 48 hours prior to TMT. Please take the advice of your regular physician regarding the same. You should carry your regular medicines along so that you can take them immediately after the test.<b><u>It is necessary that a family member accompany you since you are undergoing TMT / Stress Test.</u></b>Also, do not undertake TMT unless you have had breakfast offered by the Institution.</li>
<li>Men are Requested to shave their chest to ensure a good ECG/Treadmill Test</li>
<li>Please carry the prescription, reports of earlier medical check-up, if you have any.</li>
<p><b>Attendance on Annual Health Check-up Day</b></p>
<ul>
<li>You can avail half day OD for the health evaluation.</li>
</ul>
<p><b>Payment Modalities for Employees:</b></p>
</ul>
<ul>
<li>Management will pay the bills for the Executive Health Check-up for basic package, directly to the Institution.</li>
<li>The bills for other tests, in addition to the basic package should be paid through cash/card by the employee</li>
</ul>
<p><b>Payment Modalities for Dependents:</b></p>
<ul>
<li>You are advised to settle the bills for dependents by paying through cash/card</li>
</ul>
<p><b>Other administrative points</b></p>
<ul>
<li>Kindly seek appointment for your health evaluation directly from Annual Health Checkup Portal (AHC Portal). Please click on this Link to access the AHC Portal.</li>
<li>To schedule appointment, kindly select the hospital name, preferred date of checkup, additional tests (if any) and enter contact number. You can also add up to six dependants for voluntary health checkup.</li>
<li>Once you click on submit, an email with your details will be triggered to SPOC of your selected hospital. The hospital will revert with your appointment confirmation. In case your preferred slot is unavailable, the hospital SPOC will suggest the next available slot.</li>
<li>In an event of cancellation, please inform the hospital/service provider so that they can assign the time slot to someone else.</li>
<li>Please carry your identity card while going for health check-up.</li>
<li>All hospitals/healthcare service providers except Deenanath Mangeshkar Hospital have agreed to send reports by email. Employees who visit Deenanath Mangeshkar Hospital are requested to download the soft copies of the reports through the website <a>phr@dmhospital.org</a></li>
<li>The employees are requested to collect the hard copies of dependent’s reports directly from the hospital/service provider. The hospitals will send the hard copy of employees’ medical reports to Dr. Nitin Mandhare, DIMH, Bajaj Auto, Akurdi, therefore the same should be collected from DIMH after the completion of the activity.</li>
<li>For any further clarification / difficulties, please feel free to speak to Dr. Nitin Mandhare (Extn. no.: 6499), DIMH or Ms Aarti Patre (Extn. no.: 4160), HR.</li>
<li>Please send your feedback to employeebenefits@bajajauto.co.in , it will help us to improve process further.</li>
</ul>
</div>
</div>
<div id="generateLetterL3" #generateLetterL3>
<div class="content">
<p>HR {{location}}</p>
<p>date {{letterDate}}</p>
<h1 style="text-align:center">Annual Health Check-up for Level L2 and L3</h1>
<p>Dear {{title}}</p>
<p>As a part of our health initiatives, we are happy to announce the Annual Health Check-up program for employees in Level L2 and L3. The salient features are as below:</p>
<ul>
<li>Employees who have attained the age of 40 years by 1st April 2022 will be covered under the Annual Health Check-up.</li>
<li>Annual health Check-up for level L2 and L3 will commence immediately and will conclude on June 30th, 2022.</li>
<li><b>The health evaluation is compulsory.</b></li>
</ul>
<p>Following medical tests are covered in the health check-up:</p>
<p><b>Basic Package for All Eligible Employees</b></p>
<table class="table table-bordered">
<thead>
<tr>
<th>Biochemical tests: </th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>Haemogram</td>
<td>Serum Uric Acid</td>
</tr>
<tr>
<td>Blood Sugar (Fasting/PP) </td>
<td>Lipid Profile</td>
</tr>
<tr>
<td>Blood Urea</td>
<td>Urine analysis</td>
</tr>
<tr>
<td>Serum Creatinine</td>
<td>Liver Function Tests</td>
</tr>
<tr>
<td>Prostate Specific Antigen (PSA)</td>
<td></td>
</tr>
</tbody>
</table>
<table class="table table-bordered">
<thead>
<tr>
<th>Investigations </th>
</tr>
</thead>
<tbody>
<tr>
<td>Electrocardiogram (ECG)) </td>
</tr>
<tr>
<td>X-Ray Chest-PA View</td>
</tr>
</tbody>
</table>
<p><b>Tests for Females:</b></p>
<p>Mammography</p>
<p>Pap Smear & Gynecological consultation</p>
<p>This year we have included Prostate Specific Antigen (PSA) test in the basic package with a view to extend additional benefit to our employees. PSA test will be done once in every two years.</p>
<p>Clinical evaluation will be undertaken by the physician immediately after your blood sample is given for lab tests, and ECG, X-Ray chest are completed.</p>
<p><b>Please note that you have to avail of the COMPLETE basic package, including clinical evaluation, as Bajaj Auto is billed for the full checkup.</b></p>
<p>Optional tests (cost to be borne by employee)</p>
<p>Apart from the above tests, the employees and their dependents can also avail below mentioned <u>optional tests</u> at negotiated rates by paying through cash/card at the hospital/wellness center</p>
<ul>
<li>HIV1 & HIV2 – ELISA test</li>
<li>HbA1c</li>
<li>Eye Check & ophthalmologist consultation</li>
<li>USG-Abdomen</li>
<li>Folic Acid</li>
<li>Blood Sugar-PP</li>
<li>Any other pathology tests available in the hospital/center</li>
</ul>
<p><b>Health Package for Dependents</b></p>
<ul>
<li>The dependents will be able to avail the same health packages and discounts as the employees. </li>
<li>If a dependent wants to avail negotiated rates for mammography/pap smear/gynecological evaluation, she has to mandatorily take tests mentioned in A & B of Basic package.</li>
<li>Gynecological evaluation as well as report of the mammography will be discussed on the same day. One needs to confirm from the gynecologist about the reports of the Pap smear as it takes 3 – 5 days’ time to get them ready.</li>
<li>Please note that a few additional medical tests are carried out only in certain hospitals. Example - Mammography etc. are available in Ruby Hall Clinic, Deenanath Mangeshkar Hospital, PCMC Health Care and Express Clinics while Apollo has the facility of sono-mammography only. Please, therefore, ensure with respective authorities about these additional test/s while taking appointment</li>
</ul>
<p><b>Pre-requisites for health check-up</b></p>
<ul>
<li>Have dinner by 7.30 pm the day prior to your health evaluation. You have to be fasting for 14 hrs. before the blood sample is taken. Few sips of water in the morning are allowed. </li>
<li>No tea / coffee or eating on the morning of health check-up. </li>
<li>If you are on any medication, please take the morning dose after blood sample is given.</li>
<li>Certain medicines like beta-blockers for high BP have to be stopped 48 hours prior to TMT. Please take the advice of your regular physician regarding the same. You should carry your regular medicines along so that you can take them immediately after the test.<b><u>It is necessary that a family member accompany you since you are undergoing TMT / Stress Test.</u></b>Also, do not undertake TMT unless you have had breakfast offered by the Institution.</li>
<li>Men are Requested to shave their chest to ensure a good ECG/Treadmill Test</li>
<li>Please carry the prescription, reports of earlier medical check-up, if you have any.</li>
<p><b>Attendance on Annual Health Check-up Day</b></p>
<ul>
<li>Employees working in the 1st Shift will get Full day special attendance. Full day OD will be marked on the day</li>
<li>Employees working in the general shift will get half day special attendance. Half day OD will be marked on the day</li>
<li>Employees working in the 2nd and 3rd shifts should not opt for a health check-up on the days they are working in 2nd and 3rd shift. They can go for a health check-up when they are working in the first and general shift</li>
<li>All the employees should apply for an OD and get it approved by their manager</li>
</ul>
<p><b>Payment Modalities for Employees:</b></p>
</ul>
<ul>
<li>Management will pay the bills for the Executive Health Check-up for basic package, directly to the Institution.</li>
<li>The bills for other tests, in addition to the basic package should be paid through cash/card by the employee</li>
</ul>
<p><b>Payment Modalities for Dependents:</b></p>
<ul>
<li>You are advised to settle the bills for dependents by paying through cash/card</li>
</ul>
<p><b>Other administrative points</b></p>
<ul>
<li>Kindly seek appointment for your health evaluation directly from <b>Annual Health Checkup Portal (AHC Portal).</b> Please click on this Link to access the AHC Portal.</li>
<li>To schedule appointment, kindly select the hospital name, preferred date of checkup, additional tests (if any) and enter contact number. You can also add up to six dependants for voluntary health checkup.</li>
<li>Once you click on submit, an email with your details will be triggered to SPOC of your selected hospital. The hospital will revert with your appointment confirmation. In case your preferred slot is unavailable, the hospital SPOC will suggest the next available slot.</li>
<li>In an event of cancellation, please inform the hospital/service provider so that they can assign the time slot to someone else.</li>
<li>Please carry your identity card while going for health check-up.</li>
<li>All hospitals/healthcare service providers except Deenanath Mangeshkar Hospital have agreed to send reports by email. Employees who visit Deenanath Mangeshkar Hospital are requested to download the soft copies of the reports through the website <a>phr@dmhospital.org</a></li>
<li>The employees are requested to collect the hard copies of dependent’s reports directly from the hospital/service provider. The hospitals will send the hard copy of employees’ medical reports to Dr. Nitin Mandhare, DIMH, Bajaj Auto, Akurdi, therefore the same should be collected from DIMH after the completion of the activity.</li>
<li>For any further clarification / difficulties, please feel free to speak to Dr. Nitin Mandhare (Extn. no.: 6499), DIMH or Ms Aarti Patre (Extn. no.: 4160), HR.</li>
<li>Please send your feedback to <a>employeebenefits@bajajauto.co.in</a> , it will help us to improve process further.</li>
</ul>
<p>Kindly refer to the annexure for package price for dependents.</p>
</div>
</div>
</div>

25
src/app/annual-health-checkup/generate-letter-pdf/generate-letter-pdf.component.spec.ts

@ -1,25 +0,0 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { GenerateLetterPdfComponent } from './generate-letter-pdf.component';
describe('GenerateLetterPdfComponent', () => {
let component: GenerateLetterPdfComponent;
let fixture: ComponentFixture<GenerateLetterPdfComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ GenerateLetterPdfComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(GenerateLetterPdfComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

20
src/app/annual-health-checkup/generate-letter-pdf/generate-letter-pdf.component.ts

@ -1,20 +0,0 @@
import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'app-generate-letter-pdf',
templateUrl: './generate-letter-pdf.component.html',
styleUrls: ['./generate-letter-pdf.component.scss']
})
export class GenerateLetterPdfComponent implements OnInit {
@Input()
location:string = '';
@Input()
letterDate:string='';
@Input()
title:string='';
constructor() { }
ngOnInit(): void {
}
}

41
src/app/annual-health-checkup/generate-letter/generate-letter.component.html

@ -61,8 +61,16 @@
<div>
<div id="generateLetterL0L1" #generateLetterL0L1 *ngIf="downloadPDFlevel0">
<div class="content">
<div class="flex-row">
<div>
<p>HR {{location}}</p>
<p>date {{letterDate}}</p>
</div>
<div class="align-right">
<img class="icon" class="icon" src="../../../assets/images/logo-indian.png" />" />
</div>
</div>
<h1 style="text-align:center">Annual Health Check-up for Level L0 and L1</h1>
<p>Dear {{title}}</p>
<p>As a part of our health initiatives, we are happy to announce the Annual Health Check-up program for employees in Level L0 and L1. The salient features are as below:</p>
@ -192,7 +200,7 @@
</ul>
<p><b>Other administrative points</b></p>
<ul>
<li>Kindly seek appointment for your health evaluation directly from Annual Health Checkup Portal (AHC Portal). Please click on this Link to access the AHC Portal.</li>
<li>Kindly seek appointment for your health evaluation directly from Annual Health Checkup tab in Ekam App.</li>
<li>To schedule appointment, kindly select the hospital name, preferred date of checkup, additional tests (if any) and enter contact number. You can also add up to six dependants for voluntary health checkup.</li>
<li>Once you click on submit, an email with your details will be triggered to SPOC of your selected hospital. The hospital will revert with your appointment confirmation. In case your preferred slot is unavailable, the hospital SPOC will suggest the next available slot.</li>
<li>In an event of cancellation, please inform the hospital/service provider so that they can assign the time slot to someone else.</li>
@ -315,8 +323,15 @@
</div>
<div id="generateLetterL3" #generateLetterL3 *ngIf="downloadPDFlevel3">
<div class="content">
<div class="flex-row">
<div>
<p>HR {{location}}</p>
<p>date {{letterDate}}</p>
</div>
<div class="align-right">
<img class="icon" src="../../../assets/images/logo-indian.png" />
</div>
</div>
<h1 style="text-align:center">Annual Health Check-up for Level L2 and L3</h1>
<p>Dear {{title}}</p>
<p>As a part of our health initiatives, we are happy to announce the Annual Health Check-up program for employees in Level L2 and L3. The salient features are as below:</p>
@ -423,7 +438,7 @@
</ul>
<p><b>Other administrative points</b></p>
<ul>
<li>Kindly seek appointment for your health evaluation directly from <b>Annual Health Checkup Portal (AHC Portal).</b> Please click on this Link to access the AHC Portal.</li>
<li>Kindly seek appointment for your health evaluation directly from Annual Health Checkup tab in Ekam App.</li>
<li>To schedule appointment, kindly select the hospital name, preferred date of checkup, additional tests (if any) and enter contact number. You can also add up to six dependants for voluntary health checkup.</li>
<li>Once you click on submit, an email with your details will be triggered to SPOC of your selected hospital. The hospital will revert with your appointment confirmation. In case your preferred slot is unavailable, the hospital SPOC will suggest the next available slot.</li>
<li>In an event of cancellation, please inform the hospital/service provider so that they can assign the time slot to someone else.</li>
@ -450,7 +465,7 @@
<tbody>
<tr>
<td>Ruby Hall, Pune</td>
<td>Rs.7070 + Rs.985</td>
<td>Rs.2045 + Rs.985</td>
<td>Rs.6440</td>
<td>Ms. Nisha Mr. Pillai/Ms Jyoti</td>
<td>020-66455630 (For Appointments & Bills) 020-66455385 (For reports)</td>
@ -458,7 +473,7 @@
</tr>
<tr>
<td>Deenanath Mangeshkar Hospital, Pune </td>
<td>Rs.7975 + Rs.800</td>
<td>Rs.2840 + Rs.720</td>
<td>Rs.3960</td>
<td>Ms. Hemalata Joshi/ Ms. Snehal agashe</td>
<td>020 – 40151011/020 – 40151015 </td>
@ -466,7 +481,7 @@
</tr>
<tr>
<td>PCMC HealthCare, Tapaswi Plaza, S.no.17-20, Near Star Bazar, Behind Samsung store, Mumbai Pune Highway, Chinchwad, Pune </td>
<td>Rs.4800 + Rs.600</td>
<td>Rs.1650 + Rs.600</td>
<td>Rs.1800</td>
<td>Ms. Mona</td>
<td>7620254063/020 – 66355886</td>
@ -474,7 +489,7 @@
</tr>
<tr>
<td>Apollo Clinic: SHOP NO.: 14 TO 20, CITY PRIDE BUILDING, SECTOR - 25, NEXT TO BHEL CHOWK, NIGADI PRADHIKARAN, PUNE -411004</td>
<td >Rs.4500 + Rs.690</td>
<td >Rs.1600 + Rs.690</td>
<td >Rs.2000</td>
<td >Mr. Sagar Bhatia</td>
<td >(020) 27653312 - 13 - 14 -15</td>
@ -482,7 +497,7 @@
</tr>
<tr>
<td>Apollo Clinic: NYATI MILLENIUM PREMISES, COOPERATIVE SOCIETY LIMITED, SHOP NO. S1 & STILT FLOOR, BUILDING "C", VIMAN NAGAR</td>
<td >Rs.4500 + Rs.690</td>
<td >Rs.1600 + Rs.690</td>
<td >Rs.2000</td>
<td >Mr. Sagar Bhatia</td>
<td>(020) 2663 4331 - 32 - 34</td>
@ -490,7 +505,7 @@
</tr>
<tr>
<td>Apollo Clinic: “AMBA VATICA”, PLOT NO. B-1, SURVEY NO. 16A/2, WANOWRIE, KHONDAWA KHURD, TALUKA HAVELI, PUNE</td>
<td >Rs.4500 + Rs.690</td>
<td >Rs.1600 + Rs.690</td>
<td >Rs.2000</td>
<td >Mr. Sagar Bhatia</td>
<td>(020) 2683 0291 - 95/Mob.9121226368</td>
@ -498,7 +513,7 @@
</tr>
<tr>
<td>Apollo Clinic: CENTRIOLE, PLOT #90, SURVEY #129, 130/1+2, ITI ROAD, AUNDH</td>
<td >Rs.4500 + Rs.690</td>
<td >Rs.1600 + Rs.690</td>
<td >Rs.2000</td>
<td >Mr. Sagar Bhatia</td>
<td>(020) 2588 7961 - 4/Mob.9730480632</td>
@ -506,7 +521,7 @@
</tr>
<tr>
<td>Apollo Clinic: # 102, B WING, 1ST FLOOR, KUL SCAPES, MAGARPATTA ROAD, OPP: RELIANCE SMART, KHARADI, PUNE</td>
<td >Rs.4500 + Rs.690</td>
<td >Rs.1600 + Rs.690</td>
<td >Rs.2000</td>
<td >Mr. Sagar Bhatia</td>
<td>(020) 27013333 - 4444</td>
@ -514,7 +529,7 @@
</tr>
<tr>
<td>Express Clinics, office no. -205, Rainbow Plaza, next to Shivar Garden, Pimple Saudagar, Pune</td>
<td>Rs.2975 + Rs.450</td>
<td>Rs.1100 + Rs.450</td>
<td>Rs.900</td>
<td>Ms. Neena Supe</td>
<td>020-46781915/7588813476/(Centre MGR)</td>
@ -522,7 +537,7 @@
</tr>
<tr>
<td>Express Clinics, ground floor. B1 building, Cerebrum IT Park, Kalyani Nagar, Pune</td>
<td>Rs.2975 + Rs.450</td>
<td>Rs.1100 + Rs.450</td>
<td>Rs.900</td>
<td>Dr. Sagar Shinde</td>
<td>020-41302272/9637911308(Centre MGR)</td>
@ -530,7 +545,7 @@
</tr>
<tr>
<td>Express Clinics, Shop No 18, 19, 20, Empire Estate, Old Mumbai-Pune Highway, Chinchwad, Pune – 411019</td>
<td>Rs.2975 + Rs.450</td>
<td>Rs.1100 + Rs.450</td>
<td>Rs.900</td>
<td>Mr. Shyam Gupta</td>
<td>020-46770239/7030944013(Centre MGR)</td>

96
src/app/annual-health-checkup/generate-letter/generate-letter.component.scss

@ -1,47 +1,79 @@
@import '../../../styles.scss';
#generateLetter{
.page-container {
height: 100%;
display: flex;
flex-direction: column;
background-color: #b4e8fd;
}
.flex-row {
flex-direction: row;
display: flex;
}
button {
border-radius: 10px;
font-size: 15px;
width: 81%;
background: #0b5fa4 0 0 no-repeat padding-box !important;
margin: 2%;
}
.font-body-xsmall-bold {
font-size: 0.812rem;
line-height: 1.125rem;
letter-spacing: 1px;
font-family: "Raleway VariableFont";
text-transform: uppercase;
}
#generateLetter {
padding: 5%;
margin-bottom: 2.5em;
height: auto;
.align-middle{
}
#generateLetter .align-middle {
width: 100% !important;
.input-field{
}
#generateLetter .align-middle .input-field {
width: 100%;
}
}
::ng-deep .mat-form-field-underline, ::ng-deep .mat-form-field-ripple {
}
#generateLetter .align-middle button {
margin-right: 2%;
}
#generateLetter ::ng-deep .mat-form-field-underline, #generateLetter ::ng-deep .mat-form-field-ripple {
background-color: blue !important;
}
.align-middle{
padding:3% 0%;
}
// button{
// border-radius: 10px;
// font-size: 15px;
// width: 81%;
// background: #0b5fa4 0 0 no-repeat padding-box !important;
// margin:2%;
// }
.generateLetterL3{
position:absolute;
top:1%;
left:5%;
}
#generateLetter .align-middle {
padding: 3% 0%;
}
#generateLetter .generateLetterL3 {
position: absolute;
top: 1%;
left: 5%;
background: white !important;
}
.generateLetterL0L1{
}
#generateLetter .generateLetterL0L1 {
position: absolute;
top:1%;
left:5%;
top: 1%;
left: 5%;
background: white !important;
}
.table{
}
#generateLetter .table {
width: 100%;
table-layout:fixed;
table-layout: fixed;
word-break: break-all;
font-size: 0.688 rem;
}
}
.downloadStatus{
.downloadStatus {
background: white !important;
}
.align-right{
align-items: flex-end;
}
.icon{
width: 50%;
height: 50%;
margin:auto 50%;
text-align: center;
align-items: flex-end;
}
.content{
border:1px solid black;
padding: 1%;
}

34
src/app/annual-health-checkup/generate-letter/generate-letter.component.ts

@ -4,6 +4,8 @@ import { jsPDF } from "jspdf";
import { CookieService } from "ngx-cookie-service";
import * as pdfMake from "pdfmake/build/pdfmake";
import { GenerateLetterService } from "./generate-letter.service";
import { DomSanitizer } from '@angular/platform-browser';
var pdfFonts = require("pdfmake/build/vfs_fonts.js");
(pdfMake as any).vfs = pdfFonts.pdfMake.vfs;
@ -22,6 +24,7 @@ export class GenerateLetterComponent implements OnInit {
printPDF: boolean = false;
level: string = "";
downloadStatus:any = '';
logoPath:any = 'assets/images/logo-indian.png';
@ViewChild("pdfTable", { static: false }) pdfTable: ElementRef | undefined;
@ -49,9 +52,11 @@ export class GenerateLetterComponent implements OnInit {
constructor(
private formBuilder: FormBuilder,
private generateLetterService: GenerateLetterService,
private cookieService: CookieService
private cookieService: CookieService,
private _sanitizer: DomSanitizer
) {
this.createNewForm();
}
/**
@ -73,16 +78,16 @@ export class GenerateLetterComponent implements OnInit {
password: "init1234",
};
this.generateLetterService
.getUserDetails(body)
.subscribe(
(res: { StatusCode: number; IsRequestSuccessfull: any; Data: any }) => {
if (res && res?.StatusCode === 200 && res?.IsRequestSuccessfull) {
this.userDetails = res && res?.Data ? res.Data : null;
}
}
);
this.userDetailsObject = this.generateLetterService.getUserObject();
// this.generateLetterService
// .getUserDetails(body)
// .subscribe(
// (res: { StatusCode: number; IsRequestSuccessfull: any; Data: any }) => {
// if (res && res?.StatusCode === 200 && res?.IsRequestSuccessfull) {
// this.userDetails = res && res?.Data ? res.Data : null;
// }
// }
// );
this.userDetails = this.generateLetterService.getUserObject();
this.initiateControls();
}
@ -111,7 +116,7 @@ export class GenerateLetterComponent implements OnInit {
this.userDetails.department = this.userDetails && this.userDetails?.department?this.userDetails?.department:"MIS"
this.userDetails.level = this.userDetails && this.userDetails?.level?this.userDetails?.level:"L3"
this.userDetails.location = this.userDetails && this.userDetails?.location?this.userDetails?.location:"Akrudi"
this.userDetails.date = this.userDetails &&this.userDetails?.date?this.userDetails?.date:"22/02/2022"
this.userDetails.date = this.userDetails &&this.userDetails?.date?this.userDetails?.date:new Date().toLocaleDateString();
this.userDetails.gender = this.userDetails && this.userDetails?.gender?this.userDetails?.gender:"Male"
this.generateLetterForm.get('employeeId')?.setValue(this.userDetails?.employeeId);
@ -145,7 +150,10 @@ export class GenerateLetterComponent implements OnInit {
//const pdfTable = this.content.nativeElement;
//html to pdf format
var html = htmlToPdfmake(pdfTable.innerHTML);
const documentDefinition = { content: html };
const documentDefinition = { content: [html], defaultStyle: {
fontSize: 10,
bold: true
}};
pdfMake.createPdf(documentDefinition).download();
this.printPDF = false;
this.downloadPDFlevel3 = false;

4
src/app/annual-health-checkup/generate-letter/generate-letter.service.ts

@ -20,7 +20,6 @@ export class GenerateLetterService {
userMobile : '',
mailId : ''
};
constructor(private http: HttpClient, private cookieService: CookieService) {
}
@ -49,8 +48,7 @@ export class GenerateLetterService {
}
return response;
}
sendMail(){
sendMail(arr:any){
}
}

27
src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.html

@ -1,7 +1,7 @@
<div class="page-container" id="scheduleAppointment">
<form
id="create-enquiry-form"
class="create-enquiry-form"
id="schedule-appointment-form"
class="schedule-appointment-form"
[formGroup]="scheduleAppointmentForm"
>
<div class="align-middle">
@ -76,8 +76,27 @@
<input formControlName="contactNumber" matInput placeholder="Contact Number" value="Male">
</mat-form-field>
</div>
<div class="medium-txt font-body-xsmall-bold" (click)="downloadAppointment()">
Click to downlaod price list for each additional test
<div class="download-txt medium-txt font-body-xsmall-bold" (click)="downloadAppointment()">
Click to download price list for each additional test
</div>
<div *ngFor="let dependent of dependentDetails">
<div class="font-body-xxsmall flex-row">
<div>Name of Dependant : </div>
<div>{{dependent.nameOfDependant}}</div>
</div>
<div class="font-body-xxsmall flex-row">
<div>Relation of Employee with Dependant : </div>
<div>{{dependent.employeeRelation}}</div>
</div>
<div class="font-body-xxsmall flex-row">
<div>Age of Dependant : </div>
<div>{{dependent.age}}</div>
</div>
<div class="font-body-xxsmall flex-row">
<div>Gender of Dependant : </div>
<div>{{dependent.gender}}</div>
</div>
<hr/>
</div>
<div class="align-middle flex-row">
<button class="font-body-xsmall-bold" type="button" (click)="addDependants()">Add Dependants</button>

81
src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.scss

@ -1,37 +1,72 @@
#scheduleAppointment{
.page-container {
height: 100%;
display: flex;
flex-direction: column;
background-color: #b4e8fd;
}
.font-body-xsmall-bold {
font-size: 0.812rem;
line-height: 1.125rem;
letter-spacing: 1px;
font-family: "Raleway VariableFont";
text-transform: uppercase;
}
.font-body-xxsmall-bold {
font-size: 0.625;
line-height: 1.125rem;
letter-spacing: 1px;
font-family: "Raleway VariableFont";
text-transform: uppercase;
}
.font-body-xsmall {
font-size: 0.812rem;
line-height: 1.125rem;
letter-spacing: 1px;
font-family: "Raleway VariableFont";
}
.download-txt{
margin-bottom: 2%;
}
#scheduleAppointment {
padding: 5%;
margin-bottom: 2.5em;
height: auto;
.align-middle{
}
#scheduleAppointment .align-middle {
width: 100% !important;
.input-field{
}
#scheduleAppointment .align-middle .input-field {
width: 100%;
}
}
::ng-deep .mat-form-field-underline, ::ng-deep .mat-form-field-ripple {
}
#scheduleAppointment ::ng-deep .mat-form-field-underline, #scheduleAppointment ::ng-deep .mat-form-field-ripple {
background-color: blue !important;
}
.align-middle{
padding:3% 0%;
}
button{
}
#scheduleAppointment .align-middle {
padding: 3% 0%;
}
#scheduleAppointment button {
border-radius: 10px;
font-size: 15px;
width: 81%;
background: #0b5fa4 0 0 no-repeat padding-box !important;
margin:2%;
}
.generateLetterL3{
position:absolute;
top:1%;
left:5%;
margin: 2%;
}
#scheduleAppointment .generateLetterL3 {
position: absolute;
top: 1%;
left: 5%;
background: white !important;
}
.generateLetterL0L1{
}
#scheduleAppointment .generateLetterL0L1 {
position: absolute;
top:1%;
left:5%;
top: 1%;
left: 5%;
background: white !important;
}
}
.medium-txt{
text-decoration: underline;
color: blue;
font-weight: bold;
}

9
src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.ts

@ -25,7 +25,6 @@ var htmlToPdfmake = require("html-to-pdfmake");
})
export class ScheduleAppointmentComponent implements OnInit {
scheduleAppointmentForm!: FormGroup;
name = "Angular Html To Pdf ";
additionalTests: string[] = SENIOR_LEVEL_ADDITONAL_TEST;
hospitalList: any[] = SELECT_HOSPITAL;
todayDate: any = new Date();
@ -34,6 +33,7 @@ export class ScheduleAppointmentComponent implements OnInit {
hospitalObject: any;
additionaltest: any;
interval: any;
dependentDetails:any;
@ViewChild("pdfTable", { static: false }) pdfTable: ElementRef | undefined;
@ViewChild("scheduleAppointmentPDF")
@ -58,6 +58,11 @@ export class ScheduleAppointmentComponent implements OnInit {
this.downloadPDF = false;
this.getUserDetails();
this.initiateForm();
this.getDependentDetails();
}
getDependentDetails(){
this.dependentDetails = this.scheduleAppointmentService.getDependentDetails();
}
initiateForm(){
@ -175,7 +180,7 @@ export class ScheduleAppointmentComponent implements OnInit {
value: event.value,
text: event.source.triggerValue,
};
this.additionaltest = selectedData.value;
this.additionaltest = selectedData.text;
}
downloadAppointment() {

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

@ -11,6 +11,8 @@ import { handleError } from "src/app/shared/utilities/utils";
export class ScheduleAppointmentService {
additionalDetailsArr:any[] = [];
additonalDependent:string = '';
addDependentDetailsArr:any = [];
constructor(private http: HttpClient) {}
getUserDetails(body: any) {
@ -26,18 +28,28 @@ export class ScheduleAppointmentService {
return response;
}
saveAdditionalDependentDetails(data:any){
this.additionalDetailsArr.push(data);
for(var i=0; i<this.additionalDetailsArr.length; i++){
this.additonalDependent +=`<p>Name:${this.additionalDetailsArr[i]?.nameOfDependant}</p>
<p>Relation:${this.additionalDetailsArr[i]?.employeeRelation}</p>
<p>Age:${this.additionalDetailsArr[i]?.age}</p>
<p>Gender:${this.additionalDetailsArr[i]?.gender}</p>`;
saveAdditionalDependentDetails(){
// this.additionalDetailsArr.push(data);
for(var i=0; i<this.addDependentDetailsArr.length; i++){
this.additonalDependent +=`<p>Name : ${this.addDependentDetailsArr[i]?.nameOfDependant}</p>
<p>Relation : ${this.addDependentDetailsArr[i]?.employeeRelation}</p>
<p>Age : ${this.addDependentDetailsArr[i]?.age}</p>
<p>Gender : ${this.addDependentDetailsArr[i]?.gender}</p>`;
}
return this.additonalDependent;
}
saveDependentDetails(data:any){
this.addDependentDetailsArr.push(data);
}
getDependentDetails(){
return this.addDependentDetailsArr;
}
sendMail(res: any) {
let str = `<div>
let str = `<html>
<body><div>
<p>Hi</p>
<p>I would like schedule an appointment for Annual Health Check-up. PFB my details and kindly confirm the appointment</p>
<p>Name       : ${res.employeeName}</p>
@ -52,10 +64,12 @@ export class ScheduleAppointmentService {
<p>Email: pbpalwe@bajajauto.co.in</p>
<p>Mobile: ${res.contactNumber}</p>
<p><b>Additional Member</b></p>
<div>${this.additonalDependent}</div>
<div>${this.saveAdditionalDependentDetails()}</div>
<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
</div>`;
</div>
</body></html>`;
console.log(str);
}
}

2
src/app/app.module.ts

@ -72,7 +72,6 @@ import {MatTreeModule} from '@angular/material/tree';
import {OverlayModule} from '@angular/cdk/overlay';
import { ScheduleAppointmentComponent } from './annual-health-checkup/schedule-appointment/schedule-appointment.component';
import { AddDependantsComponent } from './annual-health-checkup/add-dependants/add-dependants.component';
import { GenerateLetterPdfComponent } from './annual-health-checkup/generate-letter-pdf/generate-letter-pdf.component';
import { AnnualHealthCheckupComponent } from './annual-health-checkup/annual-health-checkup.component';
import { GenerateLetterService } from './annual-health-checkup/generate-letter/generate-letter.service';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
@ -100,7 +99,6 @@ import { CookieService } from 'ngx-cookie-service';
GenerateLetterComponent,
ScheduleAppointmentComponent,
AddDependantsComponent,
GenerateLetterPdfComponent,
AnnualHealthCheckupComponent
],
imports: [

10
src/app/home/home.component.ts

@ -18,24 +18,14 @@ export class HomeComponent implements OnInit {
}
selectedItem(item:string):void {
//console.log(item);
this.showScreen = true;
this.selectedScreenService.saveSelectedScreen(item);
let page = item.split('_thumb.png')[0];
if(page === 'leave'){
//page = 'applyLeave'
page = 'screen';
}
console.log(page);
this.router.navigate([page]);
// if(item === 'attendance_thumb.png'){
// this.router.navigate(['attendance']);
// }else if(item === 'odpnr_thumb.png'){
// this.router.navigate(['odpnr']);
// }else{
// this.router.navigate(['screen']);
// }
}
}

2
src/app/shared/helpers/token.interceptor.ts

@ -24,8 +24,6 @@ export class TokenInterceptor implements HttpInterceptor {
): Observable<HttpEvent<any>> {
const requestUrl = new URL(request.url);
const pathname = requestUrl.pathname;
console.log('kdkdkdkd');
console.log(pathname);
//initial call to get code
this.request = request.clone({
withCredentials: true,

Loading…
Cancel
Save