general : ps
This commit is contained in:
parent
fc0126f635
commit
fe95c3be4a
@ -88,7 +88,8 @@
|
|||||||
<ng-container matColumnDef="applicant_name">
|
<ng-container matColumnDef="applicant_name">
|
||||||
<mat-header-cell *matHeaderCellDef> Name </mat-header-cell>
|
<mat-header-cell *matHeaderCellDef> Name </mat-header-cell>
|
||||||
<mat-cell *matCellDef="let details;let i = index;" [formGroupName]="i">
|
<mat-cell *matCellDef="let details;let i = index;" [formGroupName]="i">
|
||||||
|
<!-- {{details.value | json}} -->
|
||||||
|
<!-- <input type="hidden" [value]="delivery_extry" /> -->
|
||||||
{{details.value.applicant_name | titlecase}}
|
{{details.value.applicant_name | titlecase}}
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@ -242,9 +242,11 @@ export class GeneralInfoComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
createPersonsWithRelationships(elementValue:any){
|
createPersonsWithRelationships(elementValue:any){
|
||||||
return this._fb.group({
|
return this._fb.group({
|
||||||
|
pd_co_applicant_id: [elementValue.pd_co_applicant_id],
|
||||||
applicant_name: [elementValue.applicant_name],
|
applicant_name: [elementValue.applicant_name],
|
||||||
relationship:[elementValue.relationship],
|
relationship:[elementValue.relationship],
|
||||||
relation_to:[elementValue.relation_to],
|
relation_to:[elementValue.relation_to],
|
||||||
|
individuals_order_id: [elementValue.individuals_order_id],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// create companies
|
// create companies
|
||||||
@ -402,8 +404,9 @@ export class GeneralInfoComponent implements OnInit {
|
|||||||
individualsControl.push(this.createIndividulas(element));
|
individualsControl.push(this.createIndividulas(element));
|
||||||
console.log('Foreach Entry Count with Incremented',this.count);
|
console.log('Foreach Entry Count with Incremented',this.count);
|
||||||
console.log('Final Count',this.count);
|
console.log('Final Count',this.count);
|
||||||
|
|
||||||
let relationControl = <FormArray>this._generalForm.controls['persons_with_relationships'];
|
let relationControl = <FormArray>this._generalForm.controls['persons_with_relationships'];
|
||||||
let applicant_details: any= {'applicant_name':element.applicant_name,'relationship':'','relation_to':''};
|
let applicant_details: any= {'pd_co_applicant_id':element.pd_co_applicant_id,'applicant_name':element.applicant_name,'relationship':'','relation_to':'','individuals_order_id':element.individuals_order_id};
|
||||||
relationControl.push(this.createPersonsWithRelationships(applicant_details));
|
relationControl.push(this.createPersonsWithRelationships(applicant_details));
|
||||||
|
|
||||||
// let relationControl2 = <FormArray>this._generalForm.controls['applicant_relation'];
|
// let relationControl2 = <FormArray>this._generalForm.controls['applicant_relation'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user