ri changes in 4 forms : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-03-25 17:37:27 +05:30
parent bea0ce373f
commit 6762a6f237
3 changed files with 26 additions and 14 deletions

View File

@ -223,7 +223,8 @@
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
<div *ngIf="sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 5">
<!-- <div *ngIf="sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 5"> -->
<div *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 4 || sup.get('assets_mode').value == 5">
<div fxFlex="33">
<mat-form-field style="width:100%">
<input type="number" matInput placeholder="Approximate Market Value" formControlName="approximate_market_value" (keyup)="inWords($event.target.value,i,4)">

View File

@ -313,7 +313,7 @@
</mat-card>
</div>
<mat-card>
<mat-card *ngIf="customer_segment_abbr != 'SE-RI'">
<div formArrayName="company_with_relationships">
<mat-card-header>
<mat-card-title style="font-size:16px;font-weight:bold"> Relationship of Individuals to Company / Firm</mat-card-title>

View File

@ -81,6 +81,7 @@ export class PdQuestionGeneralInfoPage {
//this.maxDate=new Date(get_max_date)
this.FormId = this.navParams.get('FormId');
this.customer_segment_abbr = this.pdDetails.customer_segment_abbr;
console.log('this.customer_segment_abbr',this.customer_segment_abbr)
this.users = this.aws.getlocale();
this.getdropdown();
@ -875,19 +876,29 @@ console.log('1)',this.temp);
}
}
saveRecords.individuals=valuesData_indi;
saveRecords.companies=valuesData
saveRecords.pdid=answerData.pdid;
saveRecords.formid=answerData.formid;
saveRecords.fk_createdby=this.users;
saveRecords.persons_with_relationships=answerData.persons_with_relationships;
if (this.customer_segment_abbr != 'SE-RI') {
saveRecords.companies=valuesData
saveRecords.company_with_relationships=answerData.company_with_relationships
saveRecords.general_remark=answerData.general_remark;
saveRecords.rental_income_rcv_in_years = null;
saveRecords.rental_income_rcv_in_month = null;
//saveRecords.applicant_relation=answerData.applicant_relation;
}
else if (this.customer_segment_abbr == 'SE-RI') {
saveRecords.companies = [];
saveRecords.company_with_relationships = [];
saveRecords.rental_income_rcv_in_years = answerData.rental_income_rcv_in_years;
saveRecords.rental_income_rcv_in_month = answerData.rental_income_rcv_in_month;
//saveRecords.applicant_relation=answerData.applicant_relation;
}
saveRecords.individuals=valuesData_indi;
// saveRecords.companies=valuesData
saveRecords.pdid=answerData.pdid;
saveRecords.formid=answerData.formid;
saveRecords.fk_createdby=this.users;
saveRecords.persons_with_relationships=answerData.persons_with_relationships;
// saveRecords.company_with_relationships=answerData.company_with_relationships
saveRecords.general_remark=answerData.general_remark;
this.qustCat.saveForm(saveRecords).subscribe(dataResult=>{
if(dataResult['dataStatus']==true){