From 0dd396ca19b7012a31378be00cd7cbc4f79227a1 Mon Sep 17 00:00:00 2001 From: sriram-at-840620226347 Date: Wed, 8 Jan 2020 19:15:03 +0530 Subject: [PATCH] SAL changes done --- .../pd-question-emp-info.html | 22 ++++++++++++++----- .../pd-question-emp-info.ts | 14 ++++++------ 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/pages/pd-question/pd-question-emp-info/pd-question-emp-info.html b/src/pages/pd-question/pd-question-emp-info/pd-question-emp-info.html index 058e94f3..8a128d38 100755 --- a/src/pages/pd-question/pd-question-emp-info/pd-question-emp-info.html +++ b/src/pages/pd-question/pd-question-emp-info/pd-question-emp-info.html @@ -435,21 +435,31 @@ -
-
+
-

Office photographs

+

Office Photographs

+
+ + + +
+ +
+ + +

Name Board Image

-
-
- +
diff --git a/src/pages/pd-question/pd-question-emp-info/pd-question-emp-info.ts b/src/pages/pd-question/pd-question-emp-info/pd-question-emp-info.ts index a9ed4d4d..80bb1735 100755 --- a/src/pages/pd-question/pd-question-emp-info/pd-question-emp-info.ts +++ b/src/pages/pd-question/pd-question-emp-info/pd-question-emp-info.ts @@ -131,7 +131,7 @@ export class PdQuestionEmpInfoPage { bonus_type: [''], bonus_type_other: [''], id_card_issued_company:[''], - office_imgs:[''], + name_board_img:[''], why_company_id_proof_not_available: [''], any_delays: [''], employment_remarks: [''], @@ -337,8 +337,8 @@ this.pd_value_params={pd_id:this.pdDetails.pd_id,form_id:this.FormId.form_id,com return; } } - if (this.employmentForm.controls['office_imgs'].invalid) { - this.toast.pdTriggerappmessage("Office Photographs is required"); + if (this.employmentForm.controls['name_board_img'].invalid) { + this.toast.pdTriggerappmessage("Name board image is required"); this.officePhotoScroll.nativeElement.scrollIntoView({behavior:"smooth",block:"start"}) return; } @@ -430,7 +430,7 @@ this.pd_value_params={pd_id:this.pdDetails.pd_id,form_id:this.FormId.form_id,com records.bonus_type = this.employmentForm.controls['bonus_type'].value; records.bonus_type_other = this.employmentForm.controls['bonus_type_other'].value; - records.office_imgs = this.employmentForm.controls['office_imgs'].value; + records.name_board_img = this.employmentForm.controls['name_board_img'].value; records.id_card_issued_company = this.employmentForm.controls['id_card_issued_company'].value; if(records.id_card_issued_company == 'no'){ records.why_company_id_proof_not_available = this.employmentForm.controls['why_company_id_proof_not_available'].value; @@ -452,7 +452,7 @@ this.pd_value_params={pd_id:this.pdDetails.pd_id,form_id:this.FormId.form_id,com records.hasOwnProperty('id_card_image') && records.id_card_image != '' ? records.id_card_image = 'SAVED' :'' records.hasOwnProperty('attendance_seen_pic') && records.attendance_seen_pic != '' ? records.attendance_seen_pic = 'SAVED' :'' records.hasOwnProperty('sal_reg_seen_pic') && records.sal_reg_seen_pic != '' ? records.sal_reg_seen_pic = 'SAVED' :'' - records.hasOwnProperty('office_imgs') && records.sal_reg_seen_pic != '' ? records.office_imgs = 'SAVED' :'' + records.hasOwnProperty('name_board_img') && records.sal_reg_seen_pic != '' ? records.name_board_img = 'SAVED' :'' this.qustCat.saveForm(records).subscribe(data => { @@ -687,7 +687,7 @@ inWords(val,flag:number){ this.employmentForm.controls['bonus_frequency'].setValue(Emp.bonus_frequency); this.employmentForm.controls['bonus_type'].setValue(Emp.bonus_type); this.employmentForm.controls['bonus_type_other'].setValue(Emp.bonus_type_other); - this.employmentForm.controls['office_imgs'].setValue(Emp.office_imgs); + this.employmentForm.controls['name_board_img'].setValue(Emp.name_board_img); this.employmentForm.controls['id_card_issued_company'].setValue(Emp.id_card_issued_company); if(Emp.id_card_issued_company == 'no'){ this.employmentForm.controls['why_company_id_proof_not_available'].setValue(Emp.why_company_id_proof_not_available); @@ -831,7 +831,7 @@ inWords(val,flag:number){ if (Flag == 1) { this.employmentForm.controls.id_card_image.setValue(res != 'error' ? watermarkedImage : ''); img_name="id_card_image"}//alert('Inside Mobile Upload Function' + Flag);} if (Flag == 2) { this.employmentForm.controls.attendance_seen_pic.setValue(res != 'error' ? watermarkedImage : ''); img_name="attendance_seen_pic"}//alert('Inside Mobile Upload Function' + Flag);} if (Flag == 3) { this.employmentForm.controls.sal_reg_seen_pic.setValue(res != 'error' ? watermarkedImage : ''); img_name="sal_reg_seen_pic"}//alert('Inside Mobile Upload Function' + Flag);} - if (Flag == 4) { this.employmentForm.controls.office_imgs.setValue(res != 'error' ? watermarkedImage : ''); img_name="office_imgs"}//alert('Inside Mobile Upload Function' + Flag);} + if (Flag == 4) { this.employmentForm.controls.name_board_img.setValue(res != 'error' ? watermarkedImage : ''); img_name="name_board_img"}//alert('Inside Mobile Upload Function' + Flag);} let bucket:any=[] bucket.push({ 'image': watermarkedImage, 'Name': img_name, 'link': geoCoordinates });