diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html index a932c765d..dddcbbc31 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html @@ -9,27 +9,18 @@ - Office - Clinic - Factory - Warehouse - Shop - Residence cum Office - Residence - Other (PD officer to fill) + {{m_addressType.address_type}} + + - Commercial (Office type) Area - - Commercial (shop type) Area - Industrial Area - Residential Area - Mix use (Comment mandatory) - Rural (Village) area - Others (Please specify) + {{m_locality.locality_name}} + @@ -72,8 +63,9 @@ - Yes - No + {{m_neighbourStatus}} + @@ -83,9 +75,10 @@ - Yes - No - Dont Know + + {{m_applicantOwner}} + { - console.log('data', data); + getMasterDetails(table:string,type:number){ + this._pd.getAllMasterDatas(table).subscribe(data => { data.records.forEach(val => { - if (val.isactive == 1) { + if (type==1 && val.isactive == 1) { this.locationdata.push(val); } - }) - }); - } - getComment() { - let master_name = 'COMMENTSONLOCALITY'; - this._pd.getAllMasterDatas(master_name).subscribe(data => { - console.log('data', data); - data.records.forEach(val => { - if (val.isactive == 1) { + else if(type==2 && val.isactive == 1){ this.commentData.push(val); } - }) - }); - } - getCustomer() { - let master_name = 'CUSTOMERBEHAVIOUR'; - this._pd.getAllMasterDatas(master_name).subscribe(data => { - console.log('data', data); - data.records.forEach(val => { - if (val.isactive == 1) { + else if(type==3 && val.isactive == 1){ this.customerData.push(val); } + else if(type==4 && val.isactive == 1){ + this.localityData.push(val); + } + else if(type==5 && val.isactive == 1){ + this.addressData.push(val); + } }) }); } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html index 4975b3966..9871211b6 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html @@ -30,16 +30,16 @@ - - {{education}} + + {{education.qualification_name}} - - {{earning}} + + {{earning.earning_member_status}} @@ -83,8 +83,8 @@ - - {{education}} + + {{education.qualification_name}} @@ -92,8 +92,8 @@ - - {{earning}} + + {{earning.earning_member_status}} diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.ts index 08bb05415..785fec0d7 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.ts @@ -11,9 +11,12 @@ import { Key } from 'protractor'; }) export class PersonalInfoComponent implements OnInit { - qualifications:any=["Graduate","Under Graduate","Post Graduate","Professional"]; - earningStatus:any=["Earning Member","House Wife","Student","Retired","Pensioner","Other Non earning member"]; + //qualifications:any=["Graduate","Under Graduate","Post Graduate","Professional"]; + //earningStatus:any=["Earning Member","House Wife","Student","Retired","Pensioner","Other Non earning member"]; + earningStatus:any=[]; + qualifications:any=[]; relationShipList:any=[]; + @Input() pdid : string; @Input() pd_all_details:any; form_id:number; @@ -39,7 +42,9 @@ export class PersonalInfoComponent implements OnInit { ngOnInit() { this.loadPDDetails(this.pdid,this.form_id); - this.getRelationMaster(); + this.getMasterDetails('RELATIONSHIPS',1); + this.getMasterDetails('EARNINGMEMBERSSTATUS',2); + this.getMasterDetails('EDUQUALIFICATION',3); this.mainApplicantDetails = this.pd_all_details.pdapplicants_detials.filter(item => item.applicant_type == 1); // console.log(this.mainApplicantDetails) this.coApplicantDetails = this.pd_all_details.pdapplicants_detials.filter(item => item.applicant_type == 0); @@ -194,16 +199,26 @@ this.loadDataStatus = true; get pdCoapplicant() {return this._personalForm.get('coItem') as FormArray;} // get relation master details - getRelationMaster(){ - let relation ="RELATIONSHIPS"; - this._pd.getAllMasterDatas(relation).subscribe( + getMasterDetails(table:string,type:number){ + //let relation ="RELATIONSHIPS"; + this._pd.getAllMasterDatas(table).subscribe( data => { if (data.status == 200) { - this.relationShipList=data.records; + if(type==1){ + this.relationShipList=data.records.filter(item => item.isactive == 1); + } + else if(type==2){ + this.earningStatus=data.records.filter(item => item.isactive == 1); + } + else if(type==3){ + this.qualifications=data.records.filter(item => item.isactive == 1); + } + } }, error => this.errorMessage = error); } +// get earning master details // submit forms details submitPersonalForm(formData:any) { diff --git a/ng6-seed/src/app/template/questions/add/add.component.html b/ng6-seed/src/app/template/questions/add/add.component.html index 433d85fc7..6e401d019 100644 --- a/ng6-seed/src/app/template/questions/add/add.component.html +++ b/ng6-seed/src/app/template/questions/add/add.component.html @@ -1,13 +1,17 @@ -{{pageTitle}} + + {{pageTitle}} + close + + - - - + + + {{ ct.category_name }} You must Select Category. @@ -39,14 +43,12 @@ - - - + + {{ ans.answer_type_name }} You must Select Answer Type. - - + @@ -64,20 +66,21 @@ {{ gp.group_name }} - --> - + --> + 1" (click)="removeLanguage(i)"> - delete + delete - add - + + add + settings_backup_restore save @@ -85,5 +88,5 @@ - Cancel + \ No newline at end of file diff --git a/ng6-seed/src/app/template/questions/edit/edit.component.html b/ng6-seed/src/app/template/questions/edit/edit.component.html index f39261d1d..fead08903 100644 --- a/ng6-seed/src/app/template/questions/edit/edit.component.html +++ b/ng6-seed/src/app/template/questions/edit/edit.component.html @@ -1,12 +1,15 @@ -{{pageTitle}} + + {{pageTitle}} + close + - - - + + + {{ ct.category_name }} You must Select Category. @@ -37,15 +40,13 @@ - - - - + + + {{ ans.answer_type_name }} You must Select Answer Type. - - + - - - + + 1" (click)="removeLanguage(i)"> - delete + delete - add @@ -94,6 +93,9 @@ --> + add + settings_backup_restore save @@ -103,6 +105,6 @@ - Cancel - - \ No newline at end of file + + + \ No newline at end of file