diff --git a/src/pages/pd-question/pd-question-general-info/pd-question-general-info.html b/src/pages/pd-question/pd-question-general-info/pd-question-general-info.html index 4260a00f..aeea0d67 100755 --- a/src/pages/pd-question/pd-question-general-info/pd-question-general-info.html +++ b/src/pages/pd-question/pd-question-general-info/pd-question-general-info.html @@ -102,7 +102,7 @@ - @@ -270,7 +270,21 @@ - + + + + Select + + {{val.isdisplayvalue}} + + KYC Required + + + + + diff --git a/src/pages/pd-question/pd-question-general-info/pd-question-general-info.ts b/src/pages/pd-question/pd-question-general-info/pd-question-general-info.ts index ea5a6612..c5e6cf4d 100755 --- a/src/pages/pd-question/pd-question-general-info/pd-question-general-info.ts +++ b/src/pages/pd-question/pd-question-general-info/pd-question-general-info.ts @@ -3,7 +3,7 @@ import { IonicPage, NavController, NavParams, ModalController, CardTitle, Conten import { AwsServiceProvider } from '../../../providers/aws-service/aws-service'; import { QuestionCategoryProvider } from '../../../providers/question-category/question-category'; import { ToastProvider } from '../../../providers/common-provider/toast'; -import { FormGroup, FormBuilder,FormArray,Validator, Validators } from '@angular/forms'; +import { FormGroup, FormBuilder,FormArray,Validator, Validators, FormControl } from '@angular/forms'; import { PdQuestionGeneralOtherApplicantPage } from './pd-question-general-other-applicant/pd-question-general-other-applicant'; import { DatePipe} from '@angular/common'; import { SearchRelationPipe } from '../../../pipes/search-relation/search-relation'; @@ -87,10 +87,14 @@ export class PdQuestionGeneralInfoPage { imageBucket: any=[]; tab: any='0'; +<<<<<<< HEAD pd_value_params:any; @ViewChild('childComp') child: PdGeneralImagesPage @ViewChild('individualPersonScroll') individualPersonScroll:ElementRef @ViewChild('companyScroll') companyScroll:ElementRef +======= + public KYC: any = [{value:"yes",isdisplayvalue:"Yes"},{value:"no",isdisplayvalue:"No"}]; +>>>>>>> c7fef7d1b46ea9a66ff81084eb86ae62ad411496 constructor(public navCtrl: NavController, public navParams: NavParams, public aws:AwsServiceProvider,public qustCat:QuestionCategoryProvider, @@ -126,6 +130,8 @@ export class PdQuestionGeneralInfoPage { company_with_relationships:this.fb.array([]), rental_income_rcv_in_years:[''], rental_income_rcv_in_month:[''], + is_kyc: '', + kyc_and_captur_the_name: '', general_remark:'' }); @@ -1202,6 +1208,8 @@ console.log('1)',this.temp); saveRecords.persons_with_relationships=answerData.persons_with_relationships; // saveRecords.company_with_relationships=answerData.company_with_relationships saveRecords.general_remark=answerData.general_remark; + saveRecords.is_kyc=answerData.is_kyc; + saveRecords.kyc_and_captur_the_name=answerData.kyc_and_captur_the_name; this.spinner_access=true; this.cons.getGeoTag().then(res=>{ // console.log("Geo Coords",res) @@ -1289,6 +1297,8 @@ console.log('1)',this.temp); this.generalForm.controls['general_remark'].setValue(this.data_all.general_remark); + this.generalForm.controls['is_kyc'].setValue(this.data_all.is_kyc); + this.generalForm.controls['kyc_and_captur_the_name'].setValue(this.data_all.kyc_and_captur_the_name); // var arrlist_indi:any=[] @@ -1627,4 +1637,9 @@ console.log('1)',this.temp); }) } } + + kycchange(event){ + // console.log(event); + if(event === 'yes') {event.value =='yes' ? this.generalForm.addControl('kyc_and_captur_the_name', new FormControl('')) : this.generalForm.removeControl('kyc_and_captur_the_name');} + } }