diff --git a/src/app/annual-health-checkup/generate-letter/generate-letter.component.html b/src/app/annual-health-checkup/generate-letter/generate-letter.component.html index a49fb0e0..bbdcf760 100644 --- a/src/app/annual-health-checkup/generate-letter/generate-letter.component.html +++ b/src/app/annual-health-checkup/generate-letter/generate-letter.component.html @@ -202,11 +202,116 @@
  • 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.
  • Please send your feedback to employeebenefits@bajajauto.co.in , it will help us to improve process further.
  • +

    Kindly refer to the annexure for package price for dependents.

    +

    Annexure

    +

    Package Cost for Dependents:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Hospital /Service Provider Basic Package + PSAMammo/Pap/ Gynac (For Females) Contact personContact No. Center email ID
    Ruby Hall, PuneRs.7070 + Rs.985Rs.6440Ms. Nisha Mr. Pillai/Ms Jyoti020-66455630 (For Appointments & Bills) 020-66455385 (For reports)health@rubyhall.com
    Deenanath Mangeshkar Hospital, Pune Rs.7975 + Rs.800Rs.3960Ms. Hemalata Joshi/ Ms. Snehal agashe020 – 40151011/020 – 40151015 pr@dmhospital.org
    PCMC HealthCare, Tapaswi Plaza, S.no.17-20, Near Star Bazar, Behind Samsung store, Mumbai Pune Highway, Chinchwad, Pune Rs.4800 + Rs.600Rs.1800Ms. Mona7620254063/020 – 66355886pcmchealthcare@gmail.com
    Apollo Clinic: SHOP NO.: 14 TO 20, CITY PRIDE BUILDING, SECTOR - 25, NEXT TO BHEL CHOWK, NIGADI PRADHIKARAN, PUNE -411004Rs.4500 + Rs.690Rs.2000Mr. Sagar Bhatia(020) 27653312 - 13 - 14 -15corporate@apolloclinic.com CC: sagar.bhatia@apolloclinic.com, sagar.bhatia@apollohl.com
    Apollo Clinic: NYATI MILLENIUM PREMISES, COOPERATIVE SOCIETY LIMITED, SHOP NO. S1 & STILT FLOOR, BUILDING "C", VIMAN NAGARRs.4500 + Rs.690Rs.2000Mr. Sagar Bhatia(020) 2663 4331 - 32 - 34corporate@apolloclinic.com CC: sagar.bhatia@apolloclinic.com, sagar.bhatia@apollohl.com
    Apollo Clinic: “AMBA VATICA”, PLOT NO. B-1, SURVEY NO. 16A/2, WANOWRIE, KHONDAWA KHURD, TALUKA HAVELI, PUNERs.4500 + Rs.690Rs.2000Mr. Sagar Bhatia(020) 2683 0291 - 95/Mob.9121226368corporate@apolloclinic.com CC: sagar.bhatia@apolloclinic.com, sagar.bhatia@apollohl.com
    Apollo Clinic: CENTRIOLE, PLOT #90, SURVEY #129, 130/1+2, ITI ROAD, AUNDHRs.4500 + Rs.690Rs.2000Mr. Sagar Bhatia(020) 2588 7961 - 4/Mob.9730480632corporate@apolloclinic.com CC: sagar.bhatia@apolloclinic.com, sagar.bhatia@apollohl.com
    Apollo Clinic: # 102, B WING, 1ST FLOOR, KUL SCAPES, MAGARPATTA ROAD, OPP: RELIANCE SMART, KHARADI, PUNERs.4500 + Rs.690Rs.2000Mr. Sagar Bhatia(020) 27013333 - 4444corporate@apolloclinic.com CC: sagar.bhatia@apolloclinic.com, sagar.bhatia@apollohl.com
    Express Clinics, office no. -205, Rainbow Plaza, next to Shivar Garden, Pimple Saudagar, PuneRs.2975 + Rs.450Rs.900Ms. Neena Supe020-46781915/7588813476/(Centre MGR)pimpnq@expressclinics.in
    Express Clinics, ground floor. B1 building, Cerebrum IT Park, Kalyani Nagar, PuneRs.2975 + Rs.450Rs.900Dr. Sagar Shinde020-41302272/9637911308(Centre MGR)kalpnq@expressclinics.in
    Express Clinics, Shop No 18, 19, 20, Empire Estate, Old Mumbai-Pune Highway, Chinchwad, Pune – 411019Rs.2975 + Rs.450Rs.900Mr. Shyam Gupta020-46770239/7030944013(Centre MGR)kalpnq@expressclinics.in
    - - -
    + + +
    @@ -329,6 +434,110 @@
  • Please send your feedback to employeebenefits@bajajauto.co.in , it will help us to improve process further.
  • Kindly refer to the annexure for package price for dependents.

    +

    Annexure

    +

    Package Cost for Dependents:

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Hospital /Service Provider Basic Package + PSAMammo/Pap/ Gynac (For Females) Contact personContact No. Center email ID
    Ruby Hall, PuneRs.7070 + Rs.985Rs.6440Ms. Nisha Mr. Pillai/Ms Jyoti020-66455630 (For Appointments & Bills) 020-66455385 (For reports)health@rubyhall.com
    Deenanath Mangeshkar Hospital, Pune Rs.7975 + Rs.800Rs.3960Ms. Hemalata Joshi/ Ms. Snehal agashe020 – 40151011/020 – 40151015 pr@dmhospital.org
    PCMC HealthCare, Tapaswi Plaza, S.no.17-20, Near Star Bazar, Behind Samsung store, Mumbai Pune Highway, Chinchwad, Pune Rs.4800 + Rs.600Rs.1800Ms. Mona7620254063/020 – 66355886pcmchealthcare@gmail.com
    Apollo Clinic: SHOP NO.: 14 TO 20, CITY PRIDE BUILDING, SECTOR - 25, NEXT TO BHEL CHOWK, NIGADI PRADHIKARAN, PUNE -411004Rs.4500 + Rs.690Rs.2000Mr. Sagar Bhatia(020) 27653312 - 13 - 14 -15corporate@apolloclinic.com CC: sagar.bhatia@apolloclinic.com, sagar.bhatia@apollohl.com
    Apollo Clinic: NYATI MILLENIUM PREMISES, COOPERATIVE SOCIETY LIMITED, SHOP NO. S1 & STILT FLOOR, BUILDING "C", VIMAN NAGARRs.4500 + Rs.690Rs.2000Mr. Sagar Bhatia(020) 2663 4331 - 32 - 34corporate@apolloclinic.com CC: sagar.bhatia@apolloclinic.com, sagar.bhatia@apollohl.com
    Apollo Clinic: “AMBA VATICA”, PLOT NO. B-1, SURVEY NO. 16A/2, WANOWRIE, KHONDAWA KHURD, TALUKA HAVELI, PUNERs.4500 + Rs.690Rs.2000Mr. Sagar Bhatia(020) 2683 0291 - 95/Mob.9121226368corporate@apolloclinic.com CC: sagar.bhatia@apolloclinic.com, sagar.bhatia@apollohl.com
    Apollo Clinic: CENTRIOLE, PLOT #90, SURVEY #129, 130/1+2, ITI ROAD, AUNDHRs.4500 + Rs.690Rs.2000Mr. Sagar Bhatia(020) 2588 7961 - 4/Mob.9730480632corporate@apolloclinic.com CC: sagar.bhatia@apolloclinic.com, sagar.bhatia@apollohl.com
    Apollo Clinic: # 102, B WING, 1ST FLOOR, KUL SCAPES, MAGARPATTA ROAD, OPP: RELIANCE SMART, KHARADI, PUNERs.4500 + Rs.690Rs.2000Mr. Sagar Bhatia(020) 27013333 - 4444corporate@apolloclinic.com CC: sagar.bhatia@apolloclinic.com, sagar.bhatia@apollohl.com
    Express Clinics, office no. -205, Rainbow Plaza, next to Shivar Garden, Pimple Saudagar, PuneRs.2975 + Rs.450Rs.900Ms. Neena Supe020-46781915/7588813476/(Centre MGR)pimpnq@expressclinics.in
    Express Clinics, ground floor. B1 building, Cerebrum IT Park, Kalyani Nagar, PuneRs.2975 + Rs.450Rs.900Dr. Sagar Shinde020-41302272/9637911308(Centre MGR)kalpnq@expressclinics.in
    Express Clinics, Shop No 18, 19, 20, Empire Estate, Old Mumbai-Pune Highway, Chinchwad, Pune – 411019Rs.2975 + Rs.450Rs.900Mr. Shyam Gupta020-46770239/7030944013(Centre MGR)kalpnq@expressclinics.in
    diff --git a/src/app/annual-health-checkup/generate-letter/generate-letter.component.ts b/src/app/annual-health-checkup/generate-letter/generate-letter.component.ts index 05f59fe8..4fb3b88a 100644 --- a/src/app/annual-health-checkup/generate-letter/generate-letter.component.ts +++ b/src/app/annual-health-checkup/generate-letter/generate-letter.component.ts @@ -60,7 +60,7 @@ export class GenerateLetterComponent implements OnInit { }; this.generateLetterService - .saveSelectedBike(body) + .getUserDetails(body) .subscribe( (res: { StatusCode: number; IsRequestSuccessfull: any; Data: any }) => { if (res && res?.StatusCode === 200 && res?.IsRequestSuccessfull) { diff --git a/src/app/annual-health-checkup/generate-letter/generate-letter.service.ts b/src/app/annual-health-checkup/generate-letter/generate-letter.service.ts index 044ddbba..31dcf387 100644 --- a/src/app/annual-health-checkup/generate-letter/generate-letter.service.ts +++ b/src/app/annual-health-checkup/generate-letter/generate-letter.service.ts @@ -2,6 +2,7 @@ import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { handleError } from '../../shared/utilities/utils'; import { catchError } from 'rxjs/operators'; +import { USER_DETAILS_API } from 'src/constants/apiConstants'; @Injectable({ providedIn: 'root' @@ -11,10 +12,10 @@ export class GenerateLetterService { constructor(private http: HttpClient) { } - saveSelectedBike(body: any) { + getUserDetails(body: any) { let response; try { - const saveURL = `https://balhecmum.bajajauto.co.in:8004/sap/opu/odata/sap/ZHCM_GW_BUDDY_EMP_MASTER_SRV/es_employee_details(%27%27)?$format=json`; + const saveURL = USER_DETAILS_API; response = this.http.post(saveURL, body).pipe(catchError(handleError())); } catch (error) { response = error; diff --git a/src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.html b/src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.html index 738b1f7c..5cb7f5d5 100644 --- a/src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.html +++ b/src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.html @@ -81,7 +81,7 @@
    - +
    diff --git a/src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.ts b/src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.ts index d575edc1..71179844 100644 --- a/src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.ts +++ b/src/app/annual-health-checkup/schedule-appointment/schedule-appointment.component.ts @@ -14,6 +14,7 @@ import { import { jsPDF } from "jspdf"; import * as pdfMake from "pdfmake/build/pdfmake"; import { MatSelectChange } from "@angular/material/select"; +import { ScheduleAppointmentService } from "./schedule-appointment.service"; var pdfFonts = require("pdfmake/build/vfs_fonts.js"); (pdfMake as any).vfs = pdfFonts.pdfMake.vfs; var htmlToPdfmake = require("html-to-pdfmake"); @@ -38,11 +39,16 @@ export class ScheduleAppointmentComponent implements OnInit { @ViewChild("scheduleAppointmentPDF") scheduleAppointmentPDF!: ElementRef; - constructor(private formBuilder: FormBuilder, private router: Router) {} + constructor(private formBuilder: FormBuilder, private router: Router, private scheduleAppointmentService:ScheduleAppointmentService) {} ngOnInit(): void { this.downloadPDF = false; + this.getUserDetails() this.createNewForm(); + this.initiateForm(); + } + + initiateForm(){ let packageName = ""; this.level = this.scheduleAppointmentForm?.get("level")?.value; packageName = @@ -57,6 +63,28 @@ export class ScheduleAppointmentComponent implements OnInit { this.todayDate.setDate(this.todayDate.getDate() + 1); } + /** + * @description to create the user details. + * @returns Void(); + */ + getUserDetails() { + let response; + const body = { + userId: "E114989", + password: "init1234", + }; + + this.scheduleAppointmentService + .getUserDetails(body) + .subscribe( + (res: { StatusCode: number; IsRequestSuccessfull: any; Data: any }) => { + if (res && res?.StatusCode === 200 && res?.IsRequestSuccessfull) { + response = res && res?.Data ? res.Data : null; + } + } + ); + } + /** * @description to create the new form on the initialization of the component. * @returns Void(); @@ -79,7 +107,7 @@ export class ScheduleAppointmentComponent implements OnInit { }); } - createEnquirySubmitHandler() { + scheduleAppointmentSubmitForm() { let responseObject = { employeeId: this.scheduleAppointmentForm?.get("employeeId")?.value, employeeName: this.scheduleAppointmentForm?.get("employeeName")?.value, @@ -94,10 +122,10 @@ export class ScheduleAppointmentComponent implements OnInit { contactNumber: this.scheduleAppointmentForm?.get("contactNumber")?.value, }; console.log(responseObject); + this.scheduleAppointmentService.sendMail(responseObject); } addDependants() { - console.log('click'); this.router.navigate([ADD_DEPENDENTS]); } diff --git a/src/app/annual-health-checkup/schedule-appointment/schedule-appointment.service.ts b/src/app/annual-health-checkup/schedule-appointment/schedule-appointment.service.ts new file mode 100644 index 00000000..318ddfa4 --- /dev/null +++ b/src/app/annual-health-checkup/schedule-appointment/schedule-appointment.service.ts @@ -0,0 +1,56 @@ +// Angular imports +import { Injectable } from "@angular/core"; +import { HttpClient } from "@angular/common/http"; +import { USER_DETAILS_API } from "src/constants/apiConstants"; +import { catchError } from "rxjs/operators"; +import { handleError } from "src/app/shared/utilities/utils"; + +@Injectable({ + providedIn: "root", +}) +export class ScheduleAppointmentService { + additionalDetailsArr:string[] = []; + constructor(private http: HttpClient) {} + + getUserDetails(body: any) { + let response; + try { + const saveURL = USER_DETAILS_API; + response = this.http + .post(saveURL, body) + .pipe(catchError(handleError())); + } catch (error) { + response = error; + } + return response; + } + + saveAdditionalDetails(data:any){ + this.additionalDetailsArr.push(data); + } + + sendMail(res: any) { + let str = `
    +

    Hi

    +

    I would like schedule an appointment for Annual Health Check-up. PFB my details and kindly confirm the appointment

    +

    Name       : ${res.employeeName}

    +

    Ticket No : 98297

    +

    Level        : ${res.level}

    +

    Package   : ${res.eligiblePackage}

    +

    Date         : ${res.preferredDate}

    +

    Age          :

    +

    Hospital Name :  ${res.hospitalName}

    +

    Additional Test Details        : ${res.additonalTest}

    +

    Employee Contact details:

    +

    Email: pbpalwe@bajajauto.co.in

    +

    Mobile: ${res.contactNumber}

    +

    Additional Member

    +

    Name:

    +

    Relation:

    +

    Age:

    +

    Gender:

    +

    Kindly confirm the date and reporting time for visiting the hospital.

    +

    Thanks & Regards
    PRADIP PALWE
    Bajaj Auto Ltd.
    VP (HR)

    `; + } +} diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 723e3d1f..cc9ce79c 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -77,6 +77,7 @@ import { AnnualHealthCheckupComponent } from './annual-health-checkup/annual-hea import { GenerateLetterService } from './annual-health-checkup/generate-letter/generate-letter.service'; import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'; import { TokenInterceptor } from './shared/helpers/token.interceptor'; +import { ScheduleAppointmentService } from './annual-health-checkup/schedule-appointment/schedule-appointment.service'; @NgModule({ declarations: [ AppComponent, @@ -156,7 +157,7 @@ import { TokenInterceptor } from './shared/helpers/token.interceptor'; ScrollingModule, HttpClientModule ], - providers: [FooterService, RouterService, SelectedScreenService, TranslationContentService, GenerateLetterService,{ + providers: [FooterService, RouterService, SelectedScreenService, TranslationContentService, GenerateLetterService, ScheduleAppointmentService,{ provide: HTTP_INTERCEPTORS, useClass: TokenInterceptor, multi: true, diff --git a/src/constants/apiConstants.ts b/src/constants/apiConstants.ts new file mode 100644 index 00000000..75d70280 --- /dev/null +++ b/src/constants/apiConstants.ts @@ -0,0 +1,13 @@ +/* +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'; + + + + +