merge : kms
This commit is contained in:
parent
25b0c058ff
commit
48e5ff6767
@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|||||||
@ -30,6 +30,10 @@ import {ActivatedRoute, Router} from "@angular/router";
|
|||||||
})
|
})
|
||||||
|
|
||||||
export class AddressComponent implements OnInit {
|
export class AddressComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
|
||||||
pageTitle: string ="PD Address Details";
|
pageTitle: string ="PD Address Details";
|
||||||
|
|
||||||
@ -91,9 +95,14 @@ export class AddressComponent implements OnInit {
|
|||||||
private dialogRef: MatDialogRef<AddressComponent>,
|
private dialogRef: MatDialogRef<AddressComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) public pd_all_details: any)
|
@Inject(MAT_DIALOG_DATA) public pd_all_details: any)
|
||||||
{
|
{
|
||||||
console.log(this.pd_all_details);
|
// console.log(this.pd_all_details);
|
||||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
this.form_id = 5;
|
this.form_id = 5;
|
||||||
|
//commented
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
// console.log(this.pd_all_details.template_forms.form_id);
|
// console.log(this.pd_all_details.template_forms.form_id);
|
||||||
// console.log(this.pd_all_details.pdmaster_details.customer_segment_abbr);
|
// console.log(this.pd_all_details.pdmaster_details.customer_segment_abbr);
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
{{pageTitle}}
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
|
|||||||
@ -15,6 +15,10 @@ import { ActivatedRoute, Router } from "@angular/router";
|
|||||||
styleUrls: ['./assessed-income.component.scss']
|
styleUrls: ['./assessed-income.component.scss']
|
||||||
})
|
})
|
||||||
export class AssessedIncomeComponent implements OnInit {
|
export class AssessedIncomeComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
pageTitle: string ="Assessed Income Details";
|
pageTitle: string ="Assessed Income Details";
|
||||||
// @Input() pdid: number;
|
// @Input() pdid: number;
|
||||||
@ -58,6 +62,10 @@ public getCustomValues:any = { UOMList: this.UOMList,frequencyList: this.frequen
|
|||||||
this.getAIMaster('BUSINESSEXPENSES',3);
|
this.getAIMaster('BUSINESSEXPENSES',3);
|
||||||
this.getAIMaster('BUSINESSINCOME',4);
|
this.getAIMaster('BUSINESSINCOME',4);
|
||||||
this.getCustomValues.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.getCustomValues.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
|
|
||||||
}
|
}
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
@ -281,7 +282,7 @@
|
|||||||
|
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
|
||||||
<mat-form-field *ngIf="sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 4 || sup.get('assets_mode').value == 5 || sup.get('assets_mode').value == 6 || sup.get('assets_mode').value == 7" style="width:95%">
|
<mat-form-field *ngIf="sup.get('assets_mode').value != ''" style="width:95%">
|
||||||
<mat-select placeholder="Is There a Loan Existing Against This Asset?" formControlName="emi">
|
<mat-select placeholder="Is There a Loan Existing Against This Asset?" formControlName="emi">
|
||||||
<mat-option value="yes">Yes</mat-option>
|
<mat-option value="yes">Yes</mat-option>
|
||||||
<mat-option value="no">No</mat-option>
|
<mat-option value="no">No</mat-option>
|
||||||
|
|||||||
@ -29,7 +29,11 @@ import { element } from '@angular/core/src/render3/instructions';
|
|||||||
styleUrls: ['./assets-info.component.scss']
|
styleUrls: ['./assets-info.component.scss']
|
||||||
})
|
})
|
||||||
export class AssetsInfoComponent implements OnInit {
|
export class AssetsInfoComponent implements OnInit {
|
||||||
pageTitle: string ="Other Assets Details";
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
pageTitle: string = "Other Assets Details";
|
||||||
//@Input() pdid: number;
|
//@Input() pdid: number;
|
||||||
pdid:string;
|
pdid:string;
|
||||||
//businessProfessionName :string;
|
//businessProfessionName :string;
|
||||||
@ -80,6 +84,10 @@ export class AssetsInfoComponent implements OnInit {
|
|||||||
this.applicants = this.applicants.filter(val=>val.applicant_type==0 || val.applicant_type==1)
|
this.applicants = this.applicants.filter(val=>val.applicant_type==0 || val.applicant_type==1)
|
||||||
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
|
|||||||
@ -70,7 +70,8 @@
|
|||||||
<form [formGroup]="bankingForm" class="bankForm">
|
<form [formGroup]="bankingForm" class="bankForm">
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|||||||
@ -28,7 +28,11 @@ import {ActivatedRoute, Router} from "@angular/router";
|
|||||||
styleUrls: ['./banking-details.component.scss']
|
styleUrls: ['./banking-details.component.scss']
|
||||||
})
|
})
|
||||||
export class BankingDetailsComponent implements OnInit {
|
export class BankingDetailsComponent implements OnInit {
|
||||||
pdid: number;
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
pdid: number;
|
||||||
pageTitle: string ="Banking Details of Individuals";
|
pageTitle: string ="Banking Details of Individuals";
|
||||||
public bankingForm: FormGroup;
|
public bankingForm: FormGroup;
|
||||||
step: number;
|
step: number;
|
||||||
@ -60,6 +64,10 @@ export class BankingDetailsComponent implements OnInit {
|
|||||||
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
||||||
this.companies = this.pd_all_details.pdapplicants_detials.filter(val=>val.applicant_type==2)
|
this.companies = this.pd_all_details.pdapplicants_detials.filter(val=>val.applicant_type==2)
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|||||||
@ -15,6 +15,10 @@ import { PdTrigerService } from '../../../../../pd-service/pd-triger.service';
|
|||||||
styleUrls: ['./business-assets-info.component.scss']
|
styleUrls: ['./business-assets-info.component.scss']
|
||||||
})
|
})
|
||||||
export class BusinessAssetsInfoComponent implements OnInit {
|
export class BusinessAssetsInfoComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
|
||||||
pageTitle: string ="Assets used for Business";
|
pageTitle: string ="Assets used for Business";
|
||||||
pdid:string;
|
pdid:string;
|
||||||
@ -78,6 +82,10 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
|||||||
this.company_id =this.pd_all_details.company_id;
|
this.company_id =this.pd_all_details.company_id;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
<form [formGroup]="bankingForm" class="bankForm">
|
<form [formGroup]="bankingForm" class="bankForm">
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|||||||
@ -29,6 +29,10 @@ import {ActivatedRoute, Router} from "@angular/router";
|
|||||||
styleUrls: ['./business-banking-details.component.scss']
|
styleUrls: ['./business-banking-details.component.scss']
|
||||||
})
|
})
|
||||||
export class BusinessBankingDetailsComponent implements OnInit {
|
export class BusinessBankingDetailsComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
|
||||||
pdid: number;
|
pdid: number;
|
||||||
pageTitle: string ="Banking Information";
|
pageTitle: string ="Banking Information";
|
||||||
@ -62,7 +66,10 @@ export class BusinessBankingDetailsComponent implements OnInit {
|
|||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.company_id = this.pd_all_details.company_id;
|
this.company_id = this.pd_all_details.company_id;
|
||||||
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">{{pageTitle}}</div>
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,11 @@ import { BusinessBankingDetailsComponent } from './../../forms/business-banking-
|
|||||||
styleUrls: ['./business-info-group.component.scss']
|
styleUrls: ['./business-info-group.component.scss']
|
||||||
})
|
})
|
||||||
export class BusinessInfoGroupComponent implements OnInit {
|
export class BusinessInfoGroupComponent implements OnInit {
|
||||||
pageTitle: string ="Business Related Information";
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
pageTitle: string = "Business Related Information";
|
||||||
existCompanyList: any = [];
|
existCompanyList: any = [];
|
||||||
pdid: number;
|
pdid: number;
|
||||||
form_id: number;
|
form_id: number;
|
||||||
@ -30,6 +34,10 @@ export class BusinessInfoGroupComponent implements OnInit {
|
|||||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
this.form_id = 13;
|
this.form_id = 13;
|
||||||
// this.waitLoading=false;
|
// this.waitLoading=false;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -60,8 +68,11 @@ export class BusinessInfoGroupComponent implements OnInit {
|
|||||||
if(details.form_id==1){
|
if(details.form_id==1){
|
||||||
const dialogRef = this.dialog.open(SupplierInfoComponent, {
|
const dialogRef = this.dialog.open(SupplierInfoComponent, {
|
||||||
data: this.pd_all_details,
|
data: this.pd_all_details,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -72,8 +83,11 @@ export class BusinessInfoGroupComponent implements OnInit {
|
|||||||
else if(details.form_id==2){
|
else if(details.form_id==2){
|
||||||
const dialogRef = this.dialog.open(ClientInfoComponent, {
|
const dialogRef = this.dialog.open(ClientInfoComponent, {
|
||||||
data: this.pd_all_details,
|
data: this.pd_all_details,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -84,8 +98,11 @@ export class BusinessInfoGroupComponent implements OnInit {
|
|||||||
else if(details.form_id==11){
|
else if(details.form_id==11){
|
||||||
const dialogRef = this.dialog.open(StockComponent, {
|
const dialogRef = this.dialog.open(StockComponent, {
|
||||||
data: this.pd_all_details,
|
data: this.pd_all_details,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -96,8 +113,11 @@ export class BusinessInfoGroupComponent implements OnInit {
|
|||||||
else if(details.form_id==13){
|
else if(details.form_id==13){
|
||||||
const dialogRef = this.dialog.open(BusinessInfoComponent, {
|
const dialogRef = this.dialog.open(BusinessInfoComponent, {
|
||||||
data: this.pd_all_details,
|
data: this.pd_all_details,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -108,8 +128,11 @@ export class BusinessInfoGroupComponent implements OnInit {
|
|||||||
else if(details.form_id==14){
|
else if(details.form_id==14){
|
||||||
const dialogRef = this.dialog.open(FinancialInfoComponent, {
|
const dialogRef = this.dialog.open(FinancialInfoComponent, {
|
||||||
data: this.pd_all_details,
|
data: this.pd_all_details,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -120,8 +143,11 @@ export class BusinessInfoGroupComponent implements OnInit {
|
|||||||
else if(details.form_id==22){
|
else if(details.form_id==22){
|
||||||
const dialogRef = this.dialog.open(BusinessAssetsInfoComponent, {
|
const dialogRef = this.dialog.open(BusinessAssetsInfoComponent, {
|
||||||
data: this.pd_all_details,
|
data: this.pd_all_details,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -132,8 +158,11 @@ export class BusinessInfoGroupComponent implements OnInit {
|
|||||||
else if(details.form_id==21) {
|
else if(details.form_id==21) {
|
||||||
const dialogRef = this.dialog.open(BusinessBankingDetailsComponent, {
|
const dialogRef = this.dialog.open(BusinessBankingDetailsComponent, {
|
||||||
data: this.pd_all_details,
|
data: this.pd_all_details,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
<!-- {{businessEntityTypeList.business_entity_type_name}} -->
|
<!-- {{businessEntityTypeList.business_entity_type_name}} -->
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
@ -30,7 +31,13 @@
|
|||||||
<div fxLayout="row nowrap">
|
<div fxLayout="row nowrap">
|
||||||
<mat-form-field style="width: 45%;">
|
<mat-form-field style="width: 45%;">
|
||||||
<mat-select placeholder="Name" formControlName="partner_name" style="width: 90%;" (selectionChange)="changePartnerGroup(members.value.partner_name,i)" required>
|
<mat-select placeholder="Name" formControlName="partner_name" style="width: 90%;" (selectionChange)="changePartnerGroup(members.value.partner_name,i)" required>
|
||||||
<mat-option *ngFor="let app_par of applicants" [value]="app_par.applicant_name">{{app_par.applicant_name | titlecase}}</mat-option>
|
<!-- <mat-optgroup *ngFor="let group of personsList" [label]="group.applicant_type">
|
||||||
|
<mat-option *ngFor="let val of group" [value]="val.applicant_name">
|
||||||
|
{{val.name}}
|
||||||
|
</mat-option>
|
||||||
|
</mat-optgroup> -->
|
||||||
|
|
||||||
|
<mat-option *ngFor="let app_par of personsList" [value]="app_par.applicant_id">{{app_par.applicant_name | titlecase}}</mat-option>
|
||||||
<mat-option value="Others">Others</mat-option>
|
<mat-option value="Others">Others</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|||||||
@ -30,6 +30,10 @@ import {DatePipe } from '@angular/common';
|
|||||||
styleUrls: ['./business-info.component.scss']
|
styleUrls: ['./business-info.component.scss']
|
||||||
})
|
})
|
||||||
export class BusinessInfoComponent implements OnInit {
|
export class BusinessInfoComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
pipe = new DatePipe('en-US');
|
pipe = new DatePipe('en-US');
|
||||||
pdid: number;
|
pdid: number;
|
||||||
company_id: String;
|
company_id: String;
|
||||||
@ -38,6 +42,7 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
pageTitle: string ="About Business";
|
pageTitle: string ="About Business";
|
||||||
relationData: any = [];
|
relationData: any = [];
|
||||||
titleData: any = [];
|
titleData: any = [];
|
||||||
|
personsList: any = [];
|
||||||
companyRelationShipList: any =[];
|
companyRelationShipList: any =[];
|
||||||
//industryData: any = [];
|
//industryData: any = [];
|
||||||
activityData: any = [];
|
activityData: any = [];
|
||||||
@ -93,6 +98,10 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
this.generalExistEntityType_other = this.pd_all_details.business_entity_type_other;
|
this.generalExistEntityType_other = this.pd_all_details.business_entity_type_other;
|
||||||
this.generalExistBusinessYear = this.pd_all_details.business_years;
|
this.generalExistBusinessYear = this.pd_all_details.business_years;
|
||||||
this.generalExistBusinessMonth = this.pd_all_details.business_month;
|
this.generalExistBusinessMonth = this.pd_all_details.business_month;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
navbar: false,
|
navbar: false,
|
||||||
@ -125,6 +134,7 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
this.initBusinessForm();
|
this.initBusinessForm();
|
||||||
this.getCompanyRelation();
|
this.getCompanyRelation();
|
||||||
this.getTitle();
|
this.getTitle();
|
||||||
|
this.getAllPersons();
|
||||||
// const Desgn = <FormArray>this.businessForm.controls['designation'];
|
// const Desgn = <FormArray>this.businessForm.controls['designation'];
|
||||||
// const Partnr = <FormArray>this.businessForm.controls['partners'];
|
// const Partnr = <FormArray>this.businessForm.controls['partners'];
|
||||||
// const otherDoc = <FormArray>this.businessForm.controls['documents'];
|
// const otherDoc = <FormArray>this.businessForm.controls['documents'];
|
||||||
@ -1061,6 +1071,26 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get title master
|
||||||
|
getAllPersons() {
|
||||||
|
this._pd.getAllPersonsName(this.pdid).subscribe(data => {
|
||||||
|
if(data.dataStatus){
|
||||||
|
this.personsList = data.record;
|
||||||
|
// if(data.record.applicant_type == 1){
|
||||||
|
// this.personsList.push({groupName:'APPLICANTS',groupValues:{name:data.record.applicant_name,group_id:data.record.applicant_type}});
|
||||||
|
// }
|
||||||
|
// if(data.record.applicant_type == 2){
|
||||||
|
// this.personsList.push({groupName:'COMPANIES',groupValues:{name:data.record.applicant_name,group_id:data.record.applicant_type}});
|
||||||
|
// }
|
||||||
|
// if(data.record.applicant_type == 3){
|
||||||
|
// this.personsList.push({groupName:'OTHER FAMILY MEMBER',groupValues:{name:data.record.applicant_name,group_id:data.record.applicant_type}});
|
||||||
|
// }
|
||||||
|
// this.personsList.push({groupName:'COMMON',groupValues:{name:'Others',group_id:4}});
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
getCompanyRelation() {
|
getCompanyRelation() {
|
||||||
let master_name = 'COMPANYRELATIONSHIPS';
|
let master_name = 'COMPANYRELATIONSHIPS';
|
||||||
this._pd.getAllMasterDatas(master_name).subscribe(data => {
|
this._pd.getAllMasterDatas(master_name).subscribe(data => {
|
||||||
@ -1400,7 +1430,7 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
let validationFlag : number = 0;
|
let validationFlag : number = 0;
|
||||||
// let shareHoldValidationFlag : number = 0;
|
// let shareHoldValidationFlag : number = 0;
|
||||||
// console.log(records.partners.length);
|
// console.log(records.partners.length);
|
||||||
console.log(records.partners);
|
// console.log(records.partners);
|
||||||
|
|
||||||
if(records.partners.length > 0){
|
if(records.partners.length > 0){
|
||||||
let total = records.partners.map(shares => shares.shareholding).reduce((a, b) => a + +b, 0);
|
let total = records.partners.map(shares => shares.shareholding).reduce((a, b) => a + +b, 0);
|
||||||
@ -1666,8 +1696,8 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
CheckExport(e,val){
|
CheckExport(e,val){
|
||||||
console.log(e);
|
// console.log(e);
|
||||||
console.log(val);
|
// console.log(val);
|
||||||
let flag: number = 0;
|
let flag: number = 0;
|
||||||
if(val == 1){
|
if(val == 1){
|
||||||
e != "Within India" ?
|
e != "Within India" ?
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">{{pageTitle}}</div>
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right"
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right"
|
||||||
mat-dialog-close><mat-icon>close</mat-icon></button>
|
mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|||||||
@ -29,6 +29,10 @@ import { PdTrigerService } from '../../../../../pd-service/pd-triger.service';
|
|||||||
styleUrls: ['./client-info.component.scss']
|
styleUrls: ['./client-info.component.scss']
|
||||||
})
|
})
|
||||||
export class ClientInfoComponent implements OnInit {
|
export class ClientInfoComponent implements OnInit {
|
||||||
|
main_applicant: any;
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
|
||||||
pageTitle: string = "Client Details";
|
pageTitle: string = "Client Details";
|
||||||
|
|
||||||
@ -82,6 +86,10 @@ export class ClientInfoComponent implements OnInit {
|
|||||||
this.company_id = this.pd_all_details.company_id;
|
this.company_id = this.pd_all_details.company_id;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
navbar: false,
|
navbar: false,
|
||||||
|
|||||||
@ -1,7 +1,10 @@
|
|||||||
<form [formGroup]="currentLoanForm" class="address">
|
<form [formGroup]="currentLoanForm" class="address">
|
||||||
|
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">{{pageTitle}}</div>
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|
||||||
@ -34,7 +37,7 @@
|
|||||||
<div *ngFor="let details of currentLoanForm.get('loan_details').controls; let i=index; let last=last"
|
<div *ngFor="let details of currentLoanForm.get('loan_details').controls; let i=index; let last=last"
|
||||||
[formGroupName]="i">
|
[formGroupName]="i">
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
<mat-card-title><p>Loan Details : {{details.get('label').value}}</p></mat-card-title>
|
<mat-card-title><p>Loan Details {{details.get('label').value}}</p></mat-card-title>
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
<!-- {{frequencyData | json}} -->
|
<!-- {{frequencyData | json}} -->
|
||||||
<!-- Loan type, Loan amount, Lender, Loan Taken By, Instalment Frequency, Instalment Amount, Original Tenure, Balance Tenure -->
|
<!-- Loan type, Loan amount, Lender, Loan Taken By, Instalment Frequency, Instalment Amount, Original Tenure, Balance Tenure -->
|
||||||
|
|||||||
@ -29,6 +29,10 @@ import { ActivatedRoute, Router } from "@angular/router";
|
|||||||
styleUrls: ['./current-loan.component.scss']
|
styleUrls: ['./current-loan.component.scss']
|
||||||
})
|
})
|
||||||
export class CurrentLoanComponent implements OnInit {
|
export class CurrentLoanComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
public currentLoanForm: FormGroup;
|
public currentLoanForm: FormGroup;
|
||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
pageTitle: string ="Existing Loan Obligations";
|
pageTitle: string ="Existing Loan Obligations";
|
||||||
@ -41,6 +45,7 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
lenderData: any = [];
|
lenderData: any = [];
|
||||||
frequencyData: any = [];
|
frequencyData: any = [];
|
||||||
loanTypeData: any = [];
|
loanTypeData: any = [];
|
||||||
|
investmentTypeData: any = [];
|
||||||
applicants: any;
|
applicants: any;
|
||||||
placeholderName : any = [];
|
placeholderName : any = [];
|
||||||
IDXval : any;
|
IDXval : any;
|
||||||
@ -63,6 +68,10 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
this.applicants = this.pd_all_details.pdapplicants_detials;
|
this.applicants = this.pd_all_details.pdapplicants_detials;
|
||||||
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
||||||
//this.OtherFlag[0] = false;
|
//this.OtherFlag[0] = false;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
navbar: false,
|
navbar: false,
|
||||||
@ -88,6 +97,8 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
this.getMasterDetails('BTLENDERLIST',1);
|
this.getMasterDetails('BTLENDERLIST',1);
|
||||||
this.getMasterDetails('FREQUENCY',2);
|
this.getMasterDetails('FREQUENCY',2);
|
||||||
this.getMasterDetails('EXISTINGLOANTYPES',3);
|
this.getMasterDetails('EXISTINGLOANTYPES',3);
|
||||||
|
this.getMasterDetails('INVESTMENTTYPE',4);
|
||||||
|
|
||||||
this.initCurrentloanForm();
|
this.initCurrentloanForm();
|
||||||
this._pd.getCompaniesListsForBusiness(this.pdid).subscribe(data=>{
|
this._pd.getCompaniesListsForBusiness(this.pdid).subscribe(data=>{
|
||||||
if(data.dataStatus){
|
if(data.dataStatus){
|
||||||
@ -143,48 +154,96 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log('else part',value.status);
|
// console.log('else part',value.status);
|
||||||
this._pd.getAssetsWithLoanFromBusiness(this.pdid).subscribe(data=>{
|
this._pd.getAssetsWithLoanFromBusiness(this.pdid).subscribe(data=>{
|
||||||
// console.log(data);
|
// console.log(data);
|
||||||
|
|
||||||
if(data.dataStatus == true){
|
if(data.dataStatus == true){
|
||||||
|
|
||||||
// console.log(data.record);
|
// console.log(data.record);
|
||||||
this.dataFromAssets = data.record;
|
|
||||||
if(this.dataFromAssets.length > 0){
|
let AssetData = data.record;
|
||||||
|
|
||||||
|
// console.log(AssetData.business_assets);
|
||||||
|
// console.log(AssetData.other_assests);
|
||||||
|
|
||||||
|
if(AssetData.business_assets.length>0){
|
||||||
|
AssetData.business_assets.map(element => {
|
||||||
|
this.dataFromAssets.push({mode:element.business_assets_mode,
|
||||||
|
mode_name:element.business_assets_mode_name,
|
||||||
|
details:element.business_details,
|
||||||
|
owner_name:element.business_name_of_the_owner})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if(AssetData.other_assests.length > 0){
|
||||||
|
AssetData.other_assests.map(element => {
|
||||||
|
this.dataFromAssets.push({mode:element.assets_mode,
|
||||||
|
mode_name:element.assets_mode_name,
|
||||||
|
details:element.details,
|
||||||
|
owner_name:element.name_of_the_owner
|
||||||
|
})
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// id: "4", name: "Equipments and machinaries", isactive: "1", flag: "1", is_others: "0"
|
||||||
|
// id: "7", name: "Investments", isactive: "1", flag: "0", is_others: "0"
|
||||||
|
// id: "6", name: "Life Insurance Policy", isactive: "1", flag: "0", is_others: "0"
|
||||||
|
// id: "2", name: "Property", isactive: "1", flag: "1", is_others: "0"
|
||||||
|
// id: "3", name: "Vehicle", isactsive: "1", flag: "1", is_others: "0"
|
||||||
|
// id: "1", name: "Others", isactive: "1", flag: "1", is_others: "1"}
|
||||||
|
|
||||||
|
if(this.dataFromAssets.length > 0){
|
||||||
let labelarray : any = [];
|
let labelarray : any = [];
|
||||||
|
|
||||||
this.dataFromAssets.forEach((val,index) => {
|
this.dataFromAssets.forEach((val,index) => {
|
||||||
|
|
||||||
if(val.business_assets_mode == 1){
|
if(val.mode == 1){
|
||||||
let data;
|
let data;
|
||||||
val.business_details.forEach((v,index) => {
|
val.details.forEach((v,index) => {
|
||||||
|
|
||||||
data = v.any_other_assets;
|
data = v.any_other_assets;
|
||||||
});
|
});
|
||||||
labelarray[index] = val.business_name_of_the_owner +' - '+ data;
|
let description = data != '' ? '( '+ data +' )' : '';
|
||||||
|
labelarray[index] = ' : '+val.owner_name +' - '+ val.mode_name + description;
|
||||||
}
|
}
|
||||||
if(val.business_assets_mode == 2){
|
if(val.mode == 2){
|
||||||
let data;
|
let data;
|
||||||
val.business_details.forEach((v,index) => {
|
val.details.forEach((v,index) => {
|
||||||
data = v.property_type_name;
|
data = v.property_type_name;
|
||||||
});
|
});
|
||||||
labelarray[index] = val.business_name_of_the_owner +' - '+ data;
|
let description = data != '' ? '( '+ data +' )' : '';
|
||||||
|
labelarray[index] = ' : '+val.owner_name +' - '+ val.mode_name + description;
|
||||||
}
|
}
|
||||||
if(val.business_assets_mode == 3){
|
if(val.mode == 3){
|
||||||
let data;
|
let data;
|
||||||
val.business_details.forEach((v,index) => {
|
val.details.forEach((v,index) => {
|
||||||
data = v.manufacturer_model_vehicle;
|
data = v.manufacturer_model_vehicle;
|
||||||
});
|
});
|
||||||
labelarray[index] = val.business_name_of_the_owner +' - '+ data;
|
let description = data != '' ? '( '+ data +' )' : '';
|
||||||
|
labelarray[index] = ' : '+val.owner_name +' - '+ val.mode_name + description;
|
||||||
}
|
}
|
||||||
if(val.business_assets_mode == 4){
|
if(val.mode == 4){
|
||||||
let data;
|
let data;
|
||||||
val.business_details.forEach((v,index) => {
|
val.details.forEach((v,index) => {
|
||||||
data = v.equipment_manufacturing_description;
|
data = v.equipment_manufacturing_description;
|
||||||
});
|
});
|
||||||
labelarray[index] = val.business_name_of_the_owner +' - '+ data;
|
let description = data != '' ? '( '+ data +' )' : '';
|
||||||
|
labelarray[index] = ' : '+val.owner_name +' - '+ val.mode_name + description;
|
||||||
}
|
}
|
||||||
|
if(val.mode == 6){
|
||||||
|
labelarray[index] = ' : '+val.owner_name+' - '+ val.mode_name;
|
||||||
|
}
|
||||||
|
if(val.mode == 7){
|
||||||
|
let data;
|
||||||
|
val.details.forEach((v,index) => {
|
||||||
|
data = v.investments_type != 1
|
||||||
|
? this.investmentTypeData.filter(data => data.id == v.investments_type)[0].name
|
||||||
|
: v.other_investments_type ;
|
||||||
|
|
||||||
|
});
|
||||||
|
let description = data != '' ? '( '+ data +' )' : '';
|
||||||
|
labelarray[index] = ' : '+val.owner_name +' - '+ val.mode_name + description;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
const control = <FormArray>this.currentLoanForm.controls['loan_details'];
|
const control = <FormArray>this.currentLoanForm.controls['loan_details'];
|
||||||
this.labelArr = labelarray;
|
this.labelArr = labelarray;
|
||||||
@ -213,8 +272,13 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
// this.currentLoanForm.controls['existing_loan'].setValue(arr);
|
// this.currentLoanForm.controls['existing_loan'].setValue(arr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
// console.log('else,else.part');
|
||||||
|
control.push(this.createLoanDetail(null));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -398,6 +462,9 @@ export class CurrentLoanComponent implements OnInit {
|
|||||||
else if(type==3 && val.isactive == 1){
|
else if(type==3 && val.isactive == 1){
|
||||||
this.loanTypeData.push(val);
|
this.loanTypeData.push(val);
|
||||||
}
|
}
|
||||||
|
else if(type==4 && val.isactive == 1){
|
||||||
|
this.investmentTypeData.push(val);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<form [formGroup]="employmentForm" class="address">
|
<form [formGroup]="employmentForm" class="address">
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
{{pageTitle}}
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
|
|||||||
@ -29,6 +29,10 @@ import {ActivatedRoute, Router} from '@angular/router';
|
|||||||
styleUrls: ['./employment-info.component.scss']
|
styleUrls: ['./employment-info.component.scss']
|
||||||
})
|
})
|
||||||
export class EmploymentInfoComponent implements OnInit {
|
export class EmploymentInfoComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
|
||||||
pageTitle: string ="Employement Information";
|
pageTitle: string ="Employement Information";
|
||||||
pdid: number;
|
pdid: number;
|
||||||
@ -48,6 +52,10 @@ export class EmploymentInfoComponent implements OnInit {
|
|||||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
this.form_id = 12;
|
this.form_id = 12;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
|
|
||||||
}
|
}
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
@ -181,7 +189,7 @@ export class EmploymentInfoComponent implements OnInit {
|
|||||||
records.bonus_type_other = this.employmentForm.controls['bonus_type_other'].value;
|
records.bonus_type_other = this.employmentForm.controls['bonus_type_other'].value;
|
||||||
records.any_delays = this.employmentForm.controls['any_delays'].value;
|
records.any_delays = this.employmentForm.controls['any_delays'].value;
|
||||||
records.employment_remarks = this.employmentForm.controls['employment_remarks'].value;
|
records.employment_remarks = this.employmentForm.controls['employment_remarks'].value;
|
||||||
console.log('data', records);
|
// console.log('data', records);
|
||||||
this._pd.saveForm(records).subscribe(data => {
|
this._pd.saveForm(records).subscribe(data => {
|
||||||
// console.log('data', data);
|
// console.log('data', data);
|
||||||
// this.notifier.notify('success', 'Saved Successfully.');
|
// this.notifier.notify('success', 'Saved Successfully.');
|
||||||
|
|||||||
@ -261,7 +261,8 @@
|
|||||||
|
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right"
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right"
|
||||||
@ -578,13 +579,15 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex="40" align="end">
|
<div fxFlex="20" align="end">
|
||||||
<!-- <button mat-raised-button mat-icon-button mat-button color="primary" matTooltip="" matTooltipPosition="above"
|
<!-- <button mat-raised-button mat-icon-button mat-button color="primary" matTooltip="" matTooltipPosition="above"
|
||||||
class="mr-1 mb-1 hover-icon" ><mat-icon>add</mat-icon></button> -->
|
class="mr-1 mb-1 hover-icon" ><mat-icon>add</mat-icon></button> -->
|
||||||
<button type="button" mat-flat-button (click)="addMoreApplicantFamilyDetails($event); false"
|
<button type="button" mat-flat-button (click)="addMoreApplicantFamilyDetails($event); false"
|
||||||
matTooltip="Add More" matTooltipPosition="left" color="primary">
|
matTooltip="Add More" matTooltipPosition="left" color="primary">
|
||||||
<strong>Add Family Details of Other Applicant </strong>
|
<strong>Add Family Details of Other Applicant </strong>
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
|
<div fxFlex="20" align="end">
|
||||||
<button type="submit" mat-raised-button mat-icon-button type="submit" matTooltip="Submit" matTooltipPosition="above" (click)="submitFamily()"><mat-icon>save</mat-icon></button>
|
<button type="submit" mat-raised-button mat-icon-button type="submit" matTooltip="Submit" matTooltipPosition="above" (click)="submitFamily()"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</mat-dialog-actions>
|
</mat-dialog-actions>
|
||||||
|
|||||||
@ -295,7 +295,11 @@ import { ActivatedRoute, Router } from "@angular/router";
|
|||||||
styleUrls: ['./family-details.component.scss']
|
styleUrls: ['./family-details.component.scss']
|
||||||
})
|
})
|
||||||
export class FamilyDetailsComponent implements OnInit {
|
export class FamilyDetailsComponent implements OnInit {
|
||||||
IncomePerMonth: any =[];
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
IncomePerMonth: any = [];
|
||||||
RentAmount: any = [];
|
RentAmount: any = [];
|
||||||
FamilyMemberAsLabel: any = [];
|
FamilyMemberAsLabel: any = [];
|
||||||
//@Input() pdid: number;
|
//@Input() pdid: number;
|
||||||
@ -342,11 +346,15 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
private _pd: PdTrigerService,
|
private _pd: PdTrigerService,
|
||||||
private dialogRef: MatDialogRef<FamilyDetailsComponent>,
|
private dialogRef: MatDialogRef<FamilyDetailsComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
|
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
|
||||||
console.log(pd_all_details);
|
// console.log(pd_all_details);
|
||||||
this.selectPerson = this.pd_all_details.pdapplicants_detials;
|
this.selectPerson = this.pd_all_details.pdapplicants_detials;
|
||||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
this.form_id = 6;
|
this.form_id = 6;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getMasterDetails('RELATIONSHIPS', 1);
|
this.getMasterDetails('RELATIONSHIPS', 1);
|
||||||
@ -361,7 +369,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
|
|
||||||
this._pd.getFamilyDetails(this.pdid).subscribe(data=>{
|
this._pd.getFamilyDetails(this.pdid).subscribe(data=>{
|
||||||
console.clear();
|
console.clear();
|
||||||
console.log('data',data);
|
// console.log('data',data);
|
||||||
if(data.dataStatus == true){
|
if(data.dataStatus == true){
|
||||||
|
|
||||||
let Temparr : any = [];
|
let Temparr : any = [];
|
||||||
@ -379,7 +387,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
name:element.applicant_name,
|
name:element.applicant_name,
|
||||||
relationship:element.relationship,
|
relationship:element.relationship,
|
||||||
relation_to:element.relation_to,
|
relation_to:element.relation_to,
|
||||||
age:'',
|
age:element.age,
|
||||||
data_gets_from:'GeneralForm'};
|
data_gets_from:'GeneralForm'};
|
||||||
});
|
});
|
||||||
// console.log('familyMembersGeneralForm',familyMembersGeneralForm);
|
// console.log('familyMembersGeneralForm',familyMembersGeneralForm);
|
||||||
@ -403,7 +411,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
Temparr.push(datas);
|
Temparr.push(datas);
|
||||||
}
|
}
|
||||||
this.apiFamilyMembers = [].concat.apply([],Temparr);
|
this.apiFamilyMembers = [].concat.apply([],Temparr);
|
||||||
console.log(this.apiFamilyMembers);
|
// console.log(this.apiFamilyMembers);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -590,7 +598,7 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
control.push(formData);
|
control.push(formData);
|
||||||
let inx = control.length - 1;
|
let inx = control.length - 1;
|
||||||
this.addFamilyMemberDetailsWithData(inx, val.family_members_details);
|
this.addFamilyMemberDetailsWithData(inx, val.family_members_details);
|
||||||
console.log(control);
|
// console.log(control);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -631,17 +639,44 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
selectedPerson(e,inx){
|
selectedPerson(e,inx){
|
||||||
|
|
||||||
|
// console.log('e,inx',e,inx);
|
||||||
|
// console.log( e,inx, "Logged!");
|
||||||
|
// console.info( e,inx, "Logged!");
|
||||||
|
// console.warn( e,inx, "Logged!");
|
||||||
|
// console.debug(e,inx, "Logged!");
|
||||||
|
// console.error(e,inx, "Logged!");
|
||||||
|
|
||||||
this.FamilyMemberAsLabel[inx] = this.selectPerson.filter(item => item.pd_co_applicant_id == e)[0].applicant_name;
|
this.FamilyMemberAsLabel[inx] = this.selectPerson.filter(item => item.pd_co_applicant_id == e)[0].applicant_name;
|
||||||
|
|
||||||
const control = <FormArray>this.familyForm.controls['family_details']['controls'][inx].controls.family_members_details;
|
const control = <FormArray>this.familyForm.controls['family_details']['controls'][inx].controls.family_members_details;
|
||||||
|
// console.log(control.length);
|
||||||
|
|
||||||
|
let newControlLength: number;
|
||||||
|
let oldControlLength: number = control.length;
|
||||||
|
|
||||||
if(this.apiFamilyMembers.length>0){
|
if(this.apiFamilyMembers.length>0){
|
||||||
|
|
||||||
let arraydata : any;
|
let arraydata : any;
|
||||||
let data = this.apiFamilyMembers.filter(item => item.relation_to == e);
|
let data = this.apiFamilyMembers.filter(item => item.relation_to == e);
|
||||||
|
// console.log('this.apiFamilyMembers',this.apiFamilyMembers);
|
||||||
|
// console.log('selectedPerson data',data);
|
||||||
|
|
||||||
if(data.length > 0){
|
if(data.length > 0){
|
||||||
|
// console.log(control.length);
|
||||||
|
// console.log(data.length);
|
||||||
|
|
||||||
|
newControlLength = data.length;
|
||||||
|
let index: number = 0;
|
||||||
|
while(index < oldControlLength)
|
||||||
|
{
|
||||||
|
control.removeAt(index);
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
oldControlLength = newControlLength
|
||||||
|
|
||||||
|
|
||||||
data.forEach((val,inx) => {
|
data.forEach((val,inx) => {
|
||||||
|
|
||||||
if(val.age){
|
if(val.age){
|
||||||
this.isReadOnly[inx] = true;
|
this.isReadOnly[inx] = true;
|
||||||
}else{
|
}else{
|
||||||
@ -662,15 +697,25 @@ export class FamilyDetailsComponent implements OnInit {
|
|||||||
'non_earning_if_retired_from': '',
|
'non_earning_if_retired_from': '',
|
||||||
'non_earning_if_schoolorcollege': ''
|
'non_earning_if_schoolorcollege': ''
|
||||||
}
|
}
|
||||||
|
control.push(this.initgenerateFamilyMembersDetailsGet(arraydata));
|
||||||
|
|
||||||
});
|
});
|
||||||
control.push(this.initgenerateFamilyMembersDetailsGet(arraydata));
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
||||||
|
let index: number = 0;
|
||||||
|
while(index < oldControlLength)
|
||||||
|
{
|
||||||
|
control.removeAt(index);
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
oldControlLength = 1;
|
||||||
|
|
||||||
control.push(this.generateFamilyMembersDetailsGet());
|
control.push(this.generateFamilyMembersDetailsGet());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
// console.log('main else');
|
||||||
control.push(this.generateFamilyMembersDetailsGet());
|
control.push(this.generateFamilyMembersDetailsGet());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">{{pageTitle}}</div>
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right"
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right"
|
||||||
mat-dialog-close><mat-icon>close</mat-icon></button>
|
mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|||||||
@ -30,6 +30,10 @@ import { analyzeAndValidateNgModules } from '@angular/compiler';
|
|||||||
styleUrls: ['./final-remarks.component.scss']
|
styleUrls: ['./final-remarks.component.scss']
|
||||||
})
|
})
|
||||||
export class FinalRemarksComponent implements OnInit {
|
export class FinalRemarksComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
main_applicant: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
|
||||||
pageTitle: string = "Final Remarks Details";
|
pageTitle: string = "Final Remarks Details";
|
||||||
|
|
||||||
@ -52,6 +56,10 @@ export class FinalRemarksComponent implements OnInit {
|
|||||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
this.form_id = 20;
|
this.form_id = 20;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
this._finalRemarkForm = this._formBuilder.group({
|
this._finalRemarkForm = this._formBuilder.group({
|
||||||
pdid: [this.pdid],
|
pdid: [this.pdid],
|
||||||
formid: ['20'],
|
formid: ['20'],
|
||||||
@ -134,7 +142,7 @@ export class FinalRemarksComponent implements OnInit {
|
|||||||
|
|
||||||
//To Remove The "Null" With Key also
|
//To Remove The "Null" With Key also
|
||||||
Object.keys(answerFormValues).forEach((key) => (answerFormValues[key] == null) && delete answerFormValues[key]);
|
Object.keys(answerFormValues).forEach((key) => (answerFormValues[key] == null) && delete answerFormValues[key]);
|
||||||
console.log(JSON.stringify(answerFormValues));
|
// console.log(JSON.stringify(answerFormValues));
|
||||||
//Add BRANCH data with help Service File
|
//Add BRANCH data with help Service File
|
||||||
this.pdTrigerService.savePDFormDetailsWithID(answerFormValues).subscribe(
|
this.pdTrigerService.savePDFormDetailsWithID(answerFormValues).subscribe(
|
||||||
dataresult => {
|
dataresult => {
|
||||||
|
|||||||
@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|||||||
@ -30,6 +30,10 @@ import {ActivatedRoute, Router} from '@angular/router';
|
|||||||
styleUrls: ['./financial-info.component.scss']
|
styleUrls: ['./financial-info.component.scss']
|
||||||
})
|
})
|
||||||
export class FinancialInfoComponent implements OnInit {
|
export class FinancialInfoComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
//Common Declaration
|
//Common Declaration
|
||||||
pageTitle: string ="Financial Information";
|
pageTitle: string ="Financial Information";
|
||||||
pdid: string;
|
pdid: string;
|
||||||
@ -75,6 +79,10 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
this.company_id =this.pd_all_details.company_id;
|
this.company_id =this.pd_all_details.company_id;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
|
|
||||||
//ViewerOption For Docs Display
|
//ViewerOption For Docs Display
|
||||||
@ -301,7 +309,7 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedProfitOrLossType(e,detail){
|
selectedProfitOrLossType(e,detail){
|
||||||
console.log(e);
|
// console.log(e);
|
||||||
if(e.value == 1){
|
if(e.value == 1){
|
||||||
detail.controls.financial_net_loss.setValue('');
|
detail.controls.financial_net_loss.setValue('');
|
||||||
detail.controls.financial_margin_of_loss.setValue('');
|
detail.controls.financial_margin_of_loss.setValue('');
|
||||||
@ -437,8 +445,8 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
let profit = detail.value.financial_net_profit;
|
let profit = detail.value.financial_net_profit;
|
||||||
let loss = detail.value.financial_net_loss;
|
let loss = detail.value.financial_net_loss;
|
||||||
let salary = detail.value.financial_annual_sale;
|
let salary = detail.value.financial_annual_sale;
|
||||||
console.log('current profit',profit);
|
// console.log('current profit',profit);
|
||||||
console.log('current loss',loss);
|
// console.log('current loss',loss);
|
||||||
if ( (profit != '' || loss != '') && index != 0) {
|
if ( (profit != '' || loss != '') && index != 0) {
|
||||||
if(+profit > +salary){
|
if(+profit > +salary){
|
||||||
|
|
||||||
@ -451,13 +459,13 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
let prev_profit = array.value[index - 1].financial_net_profit != '' ? array.value[index - 1].financial_net_profit : 0;
|
let prev_profit = array.value[index - 1].financial_net_profit != '' ? array.value[index - 1].financial_net_profit : 0;
|
||||||
let prev_loss = array.value[index - 1].financial_net_loss !='' ? array.value[index - 1].financial_net_loss : 0 ;
|
let prev_loss = array.value[index - 1].financial_net_loss !='' ? array.value[index - 1].financial_net_loss : 0 ;
|
||||||
|
|
||||||
console.log('prev_profit',prev_profit);
|
// console.log('prev_profit',prev_profit);
|
||||||
console.log('prev_loss',prev_loss);
|
// console.log('prev_loss',prev_loss);
|
||||||
|
|
||||||
loss = loss != 0 ? loss * (-1) : loss;
|
loss = loss != 0 ? loss * (-1) : loss;
|
||||||
console.log('-1',loss);
|
// console.log('-1',loss);
|
||||||
prev_loss = prev_loss != 0 ? prev_loss * (-1) : prev_loss ;
|
prev_loss = prev_loss != 0 ? prev_loss * (-1) : prev_loss ;
|
||||||
console.log('prev_loss',prev_loss);
|
// console.log('prev_loss',prev_loss);
|
||||||
|
|
||||||
let variation = (((profit != '' ? profit : loss ) - (prev_profit != '' ? prev_profit : prev_loss ))/ (prev_profit != '' ? Math.abs(prev_profit) : Math.abs(prev_loss))) * 100;
|
let variation = (((profit != '' ? profit : loss ) - (prev_profit != '' ? prev_profit : prev_loss ))/ (prev_profit != '' ? Math.abs(prev_profit) : Math.abs(prev_loss))) * 100;
|
||||||
|
|
||||||
@ -497,7 +505,7 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
|
|
||||||
if (salary != '' && profit != '') {
|
if (salary != '' && profit != '') {
|
||||||
if(+profit>+salary){
|
if(+profit>+salary){
|
||||||
alert("profit is greater than salary");
|
alert("profit is greater than Annual Sale ");
|
||||||
detail.controls.financial_net_profit.setValue(0);
|
detail.controls.financial_net_profit.setValue(0);
|
||||||
detail.controls.financial_margin_of_profit.setValue('');
|
detail.controls.financial_margin_of_profit.setValue('');
|
||||||
detail.controls.financial_profit_to_sale_variation.setValue('');
|
detail.controls.financial_profit_to_sale_variation.setValue('');
|
||||||
@ -517,7 +525,7 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
|
|
||||||
if (salary != '' && loss != '') {
|
if (salary != '' && loss != '') {
|
||||||
if(+loss>+salary){
|
if(+loss>+salary){
|
||||||
alert("Loss is greater than salary");
|
alert("Loss is greater than Annual Sale ");
|
||||||
detail.controls.financial_net_loss.setValue(0);
|
detail.controls.financial_net_loss.setValue(0);
|
||||||
detail.controls.financial_margin_of_loss.setValue('');
|
detail.controls.financial_margin_of_loss.setValue('');
|
||||||
detail.controls.financial_profit_to_sale_variation.setValue('');
|
detail.controls.financial_profit_to_sale_variation.setValue('');
|
||||||
@ -536,8 +544,8 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
let array = <FormArray>this.financialForm.controls['date_per_financial'];
|
let array = <FormArray>this.financialForm.controls['date_per_financial'];
|
||||||
let prev_profit_margin = array.value[index - 1].financial__margin_of_profit != '' ? array.value[index - 1].financial_margin_of_profit : 0;
|
let prev_profit_margin = array.value[index - 1].financial_margin_of_profit != '' ? array.value[index - 1].financial_margin_of_profit : 0;
|
||||||
let prev_loss_margin = array.value[index - 1].financial__margin_of_loss !='' ? array.value[index - 1].financial_margin_of_loss : 0 ;
|
let prev_loss_margin = array.value[index - 1].financial_margin_of_loss !='' ? array.value[index - 1].financial_margin_of_loss : 0 ;
|
||||||
|
|
||||||
loss_margin = loss_margin !== undefined ? loss_margin : 0;
|
loss_margin = loss_margin !== undefined ? loss_margin : 0;
|
||||||
prev_loss_margin = prev_loss_margin !== undefined ? prev_loss_margin : 0 ;
|
prev_loss_margin = prev_loss_margin !== undefined ? prev_loss_margin : 0 ;
|
||||||
@ -662,7 +670,7 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
details.controls.estimate_sales_to.setValue(estimate_sales_to!= Infinity ? estimate_sales_to:0);
|
details.controls.estimate_sales_to.setValue(estimate_sales_to!= Infinity ? estimate_sales_to:0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(estimate_sales_from > 5000000 || estimate_sales_from <= 10000000){
|
else if(estimate_sales_from > 5000000 && estimate_sales_from <= 10000000){
|
||||||
if(D >= 15){
|
if(D >= 15){
|
||||||
var r = confirm("Given Sales Range is greater than 15%");
|
var r = confirm("Given Sales Range is greater than 15%");
|
||||||
if (r == true) {
|
if (r == true) {
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
@ -258,8 +259,10 @@
|
|||||||
<mat-card-actions align="center">
|
<mat-card-actions align="center">
|
||||||
<button type="button" mat-flat-button (click)="addCompanyRelationshipDialogue()"
|
<button type="button" mat-flat-button (click)="addCompanyRelationshipDialogue()"
|
||||||
matTooltip="Add More" matTooltipPosition="left" color="primary">
|
matTooltip="Add More" matTooltipPosition="left" color="primary">
|
||||||
<span *ngIf="_generalForm.controls.company_with_relationships['controls'].length>0"><strong>Add Company Relationship</strong></span>
|
<span *ngIf="_generalForm.controls.company_with_relationships['controls'].length == 0;else another;">
|
||||||
<span *ngIf="_generalForm.controls.company_with_relationships['controls'].length>1"><strong>Add More Company Relationship</strong></span>
|
<strong>Add Company Relationship</strong>
|
||||||
|
</span>
|
||||||
|
<ng-template #another><strong>Add More Company Relationship</strong></ng-template>
|
||||||
</button>
|
</button>
|
||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|||||||
@ -16,6 +16,10 @@ import { SearchRelationPipe } from './../../../../../pd-pipes/search-relation.pi
|
|||||||
providers: [SearchRelationPipe],
|
providers: [SearchRelationPipe],
|
||||||
})
|
})
|
||||||
export class GeneralInfoComponent implements OnInit {
|
export class GeneralInfoComponent implements OnInit {
|
||||||
|
subproduct_abbr: any;
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
pipe = new DatePipe('en-US');
|
pipe = new DatePipe('en-US');
|
||||||
pageTitle: string ="General Information";
|
pageTitle: string ="General Information";
|
||||||
pdid : string;
|
pdid : string;
|
||||||
@ -45,6 +49,10 @@ export class GeneralInfoComponent implements OnInit {
|
|||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.form_id = 18;
|
this.form_id = 18;
|
||||||
this.pd_applicants_details = this.pd_all_details.pdapplicants_detials;
|
this.pd_applicants_details = this.pd_all_details.pdapplicants_detials;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,13 @@
|
|||||||
<form [formGroup]="representativeForm" class="address">
|
<form [formGroup]="representativeForm" class="address">
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
{{pageTitle}}
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
|
||||||
|
<!--<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Show Snack Bar" matTooltipPosition="right" (click)="open()"><mat-icon>person</mat-icon></button> -->
|
||||||
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
@ -1,7 +1,24 @@
|
|||||||
.mat-form-field {
|
.mat-form-field {
|
||||||
width: 97%;
|
width: 97%;
|
||||||
}
|
}
|
||||||
|
::ng-deep .cdk-global-overlay-wrapper {
|
||||||
|
align-items: flex-start !important;
|
||||||
|
}
|
||||||
|
::ng-deep .mat-snack-bar-container.mat-snack-bar-center{
|
||||||
|
margin: 5px !important;
|
||||||
|
}
|
||||||
|
::ng-deep .mat-simple-snackbar-action button {
|
||||||
|
text-align: right;
|
||||||
|
padding: 0px;
|
||||||
|
color: #e00201;
|
||||||
|
}
|
||||||
|
// .notificard{
|
||||||
|
// width: 25%;
|
||||||
|
// margin-top: -66px;
|
||||||
|
// position: absolute;
|
||||||
|
// color: #fff !important;
|
||||||
|
// background: rgba(74, 70, 70, 0.30980392156862746);
|
||||||
|
// }
|
||||||
// .address > * {
|
// .address > * {
|
||||||
// width: 100%;
|
// width: 100%;
|
||||||
// }
|
// }
|
||||||
@ -9,9 +26,9 @@
|
|||||||
// margin: 0 2%;
|
// margin: 0 2%;
|
||||||
// width:100%;
|
// width:100%;
|
||||||
// }
|
// }
|
||||||
::ng-deep .cdk-global-overlay-wrapper{
|
// ::ng-deep .cdk-global-overlay-wrapper{
|
||||||
justify-content: center !important;
|
// justify-content: center !important;
|
||||||
}
|
// }
|
||||||
.paragraph_change {
|
.paragraph_change {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
background-color: #e00201 !important;
|
background-color: #e00201 !important;
|
||||||
|
|||||||
@ -4,7 +4,9 @@ import { NotifierService } from 'angular-notifier';
|
|||||||
import {
|
import {
|
||||||
MatDialog,
|
MatDialog,
|
||||||
MatDialogRef,
|
MatDialogRef,
|
||||||
MAT_DIALOG_DATA
|
MAT_DIALOG_DATA,
|
||||||
|
// MatSnackBarConfig,
|
||||||
|
// MatSnackBar,
|
||||||
} from '@angular/material';
|
} from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { PdTrigerService } from '../../../../../pd-service/pd-triger.service';
|
import { PdTrigerService } from '../../../../../pd-service/pd-triger.service';
|
||||||
@ -16,23 +18,45 @@ import { ActivatedRoute, Router } from "@angular/router";
|
|||||||
styleUrls: ['./lender-representative.component.scss']
|
styleUrls: ['./lender-representative.component.scss']
|
||||||
})
|
})
|
||||||
export class LenderRepresentativeComponent implements OnInit {
|
export class LenderRepresentativeComponent implements OnInit {
|
||||||
public representativeForm: FormGroup;
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
// message : any = {};
|
||||||
|
// applicant_name: any;
|
||||||
|
// snackBar: any;
|
||||||
|
public representativeForm: FormGroup;
|
||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
pageTitle: string ="Lender Representative Details";
|
pageTitle: string ="Lender Representative Details";
|
||||||
pdid: number;
|
pdid: number;
|
||||||
form_id: number;
|
form_id: number;
|
||||||
|
|
||||||
|
//snack bar
|
||||||
|
|
||||||
|
|
||||||
constructor(notifier: NotifierService,
|
constructor(notifier: NotifierService,
|
||||||
private fb: FormBuilder,
|
private fb: FormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
|
// private snackBar: MatSnackBar,
|
||||||
private _pd: PdTrigerService,
|
private _pd: PdTrigerService,
|
||||||
private dialogRef: MatDialogRef<LenderRepresentativeComponent>,
|
private dialogRef: MatDialogRef<LenderRepresentativeComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
|
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
|
||||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
|
// console.log(this.main_applicant+','+this.lender_applicant_id+','+this.subproduct_abbr+','+this.customer_segment_abbr);
|
||||||
this.form_id = 15;
|
this.form_id = 15;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
}
|
}
|
||||||
|
// message ='Snack Bar Opened.';
|
||||||
|
// actionButtonLabel = 'Close';
|
||||||
|
// action = true;
|
||||||
|
// setAutohide = true;
|
||||||
|
// autoHide = 1000000;
|
||||||
|
// addExtraClass = false;
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
navbar: false,
|
navbar: false,
|
||||||
toolbar: {
|
toolbar: {
|
||||||
@ -52,7 +76,18 @@ export class LenderRepresentativeComponent implements OnInit {
|
|||||||
flipVertical: 4,
|
flipVertical: 4,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// open() {
|
||||||
|
// // console.log('hai');
|
||||||
|
|
||||||
|
// const config = new MatSnackBarConfig();
|
||||||
|
// config.duration = this.autoHide;
|
||||||
|
// config.panelClass = this.addExtraClass ? ['party'] : null;
|
||||||
|
// this.snackBar.open(this.message, this.action && this.actionButtonLabel, config);
|
||||||
|
// }
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
// this.message.main_applicant = this.main_applicant;
|
||||||
|
// this.message.lender_applicant_id = this.lender_applicant_id;
|
||||||
this.initRepresentative();
|
this.initRepresentative();
|
||||||
let params: any = {};
|
let params: any = {};
|
||||||
params.pd_id = this.pdid;
|
params.pd_id = this.pdid;
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<form [formGroup]="loanDetailsForm" class="address">
|
<form [formGroup]="loanDetailsForm" class="address">
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
{{pageTitle}}
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
|
|||||||
@ -29,6 +29,10 @@ import {ActivatedRoute, Router} from '@angular/router';
|
|||||||
styleUrls: ['./loan-details.component.scss']
|
styleUrls: ['./loan-details.component.scss']
|
||||||
})
|
})
|
||||||
export class LoanDetailsComponent implements OnInit {
|
export class LoanDetailsComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
public loanDetailsForm: FormGroup;
|
public loanDetailsForm: FormGroup;
|
||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
|
|
||||||
@ -97,6 +101,10 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
this.form_id = 10;
|
this.form_id = 10;
|
||||||
this.pdid= this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid= this.pd_all_details.pdmaster_details.pd_id;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
navbar: false,
|
navbar: false,
|
||||||
@ -119,7 +127,7 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
};
|
};
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
console.clear();
|
console.clear();
|
||||||
console.log('this.applicants',this.applicants);
|
// console.log('this.applicants',this.applicants);
|
||||||
this.initloanDetailsForm();
|
this.initloanDetailsForm();
|
||||||
this.getM_EndUseofLoad();
|
this.getM_EndUseofLoad();
|
||||||
this.getM_EndUseForLoan(this.pdid);
|
this.getM_EndUseForLoan(this.pdid);
|
||||||
@ -346,30 +354,30 @@ getM_sourceofamount() {
|
|||||||
let that = this;
|
let that = this;
|
||||||
this.m_mortageTypeProperty = data.records.filter(
|
this.m_mortageTypeProperty = data.records.filter(
|
||||||
function(data){
|
function(data){
|
||||||
console.log(data);
|
// console.log(data);
|
||||||
if(that.productAbbr != "LAP"){
|
if(that.productAbbr != "LAP"){
|
||||||
console.log(that.productAbbr);
|
// console.log(that.productAbbr);
|
||||||
if(data.group_name == that.productAbbr && data.isactive==1){
|
if(data.group_name == that.productAbbr && data.isactive==1){
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(that.productAbbr == "LAP"){
|
else if(that.productAbbr == "LAP"){
|
||||||
console.log(that.productAbbr);
|
// console.log(that.productAbbr);
|
||||||
console.log(that.subProductName);
|
// console.log(that.subProductName);
|
||||||
console.log(data.sub_group_name);
|
// console.log(data.sub_group_name);
|
||||||
if(data.group_name == that.productAbbr && data.sub_group_name == that.subProductName && data.isactive==1){
|
if(data.group_name == that.productAbbr && data.sub_group_name == that.subProductName && data.isactive==1){
|
||||||
console.log('lap with subproduct',data);
|
// console.log('lap with subproduct',data);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
else if(data.group_name == that.productAbbr && data.sub_group_name != null && data.isactive==1) {
|
else if(data.group_name == that.productAbbr && data.sub_group_name != null && data.isactive==1) {
|
||||||
console.log('lap with subproduct null',data);
|
// console.log('lap with subproduct null',data);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.m_mortageTypeProperty
|
this.m_mortageTypeProperty
|
||||||
// mortage_property_id">{{ typeprop.property_name
|
// mortage_property_id">{{ typeprop.property_name
|
||||||
console.log(this.m_mortageTypeProperty);
|
// console.log(this.m_mortageTypeProperty);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
|
|||||||
@ -4,7 +4,8 @@
|
|||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
<div fxLayout="row wrap">
|
<div fxLayout="row wrap">
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -10,7 +10,11 @@ import { parse } from 'url';
|
|||||||
styleUrls: ['./neighbour-hood.component.scss']
|
styleUrls: ['./neighbour-hood.component.scss']
|
||||||
})
|
})
|
||||||
export class NeighbourHoodComponent implements OnInit {
|
export class NeighbourHoodComponent implements OnInit {
|
||||||
pageTitle: string ="Neighbourhood Check / Reference Check";
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
pageTitle: string = "Neighbourhood Check / Reference Check";
|
||||||
public _neighbourhoodForm: FormGroup;
|
public _neighbourhoodForm: FormGroup;
|
||||||
pdid : string;
|
pdid : string;
|
||||||
form_id:number;
|
form_id:number;
|
||||||
@ -30,6 +34,10 @@ export class NeighbourHoodComponent implements OnInit {
|
|||||||
this.pdid = this.data.pdmaster_details.pd_id;
|
this.pdid = this.data.pdmaster_details.pd_id;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.form_id = 19;
|
this.form_id = 19;
|
||||||
|
this.main_applicant = this.data.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.data.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.data.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.data.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
@ -56,8 +57,8 @@
|
|||||||
<mat-form-field style="width:45%">
|
<mat-form-field style="width:45%">
|
||||||
<mat-select placeholder="Income earned by"
|
<mat-select placeholder="Income earned by"
|
||||||
formControlName="income_earned_by">
|
formControlName="income_earned_by">
|
||||||
<mat-option value="{{person}}" *ngFor="let person of incomeEarnedBy">
|
<mat-option value="{{person.applicant_id}}" *ngFor="let person of incomeEarnedBy">
|
||||||
{{person}}
|
{{person.applicant_name}}
|
||||||
</mat-option>
|
</mat-option>
|
||||||
<mat-option value="others">Others</mat-option>
|
<mat-option value="others">Others</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
|
|||||||
@ -31,7 +31,11 @@ import {ActivatedRoute, Router} from '@angular/router';
|
|||||||
})
|
})
|
||||||
|
|
||||||
export class OtherIncomeComponent implements OnInit {
|
export class OtherIncomeComponent implements OnInit {
|
||||||
pageTitle: string ="Other Income Details";
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
pageTitle: string = "Other Income Details";
|
||||||
loadDataStatus: boolean=true;
|
loadDataStatus: boolean=true;
|
||||||
|
|
||||||
|
|
||||||
@ -61,6 +65,10 @@ export class OtherIncomeComponent implements OnInit {
|
|||||||
this.applicants = this.pd_all_details.pdapplicants_detials;
|
this.applicants = this.pd_all_details.pdapplicants_detials;
|
||||||
this.form_id = 9;
|
this.form_id = 9;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
|
|||||||
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|||||||
@ -12,6 +12,10 @@ import { Key } from 'protractor';
|
|||||||
})
|
})
|
||||||
|
|
||||||
export class PersonalInfoComponent implements OnInit {
|
export class PersonalInfoComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
|
||||||
pageTitle: string ="Personal Details";
|
pageTitle: string ="Personal Details";
|
||||||
//qualifications:any=["Graduate","Under Graduate","Post Graduate","Professional"];
|
//qualifications:any=["Graduate","Under Graduate","Post Graduate","Professional"];
|
||||||
@ -65,6 +69,10 @@ export class PersonalInfoComponent implements OnInit {
|
|||||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.form_id = 3;
|
this.form_id = 3;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
navbar: false,
|
navbar: false,
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
{{pageTitle}}
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
|
|||||||
@ -12,6 +12,10 @@ import {Key} from 'protractor';
|
|||||||
styleUrls: ['./rental-info.component.scss']
|
styleUrls: ['./rental-info.component.scss']
|
||||||
})
|
})
|
||||||
export class RentalInfoComponent implements OnInit {
|
export class RentalInfoComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
|
||||||
// @Input() pdid: string;
|
// @Input() pdid: string;
|
||||||
// @Input() pd_all_details: any;
|
// @Input() pd_all_details: any;
|
||||||
@ -36,6 +40,10 @@ export class RentalInfoComponent implements OnInit {
|
|||||||
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.form_id = 17;
|
this.form_id = 17;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
navbar: false,
|
navbar: false,
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
{{pageTitle}}
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right" mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|||||||
@ -18,6 +18,10 @@ import { analyzeAndValidateNgModules } from '@angular/compiler';
|
|||||||
})
|
})
|
||||||
|
|
||||||
export class StockComponent implements OnInit {
|
export class StockComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
|
||||||
pageTitle: string ="Stock Details";
|
pageTitle: string ="Stock Details";
|
||||||
pdid: number;
|
pdid: number;
|
||||||
@ -70,6 +74,10 @@ export class StockComponent implements OnInit {
|
|||||||
this.company_id = this.pd_all_details.company_id;
|
this.company_id = this.pd_all_details.company_id;
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
<h2 mat-dialog-title class="paragraph_change">
|
<h2 mat-dialog-title class="paragraph_change">
|
||||||
<div fxFlex="70" align="left" style="padding: 10px !important;">{{pageTitle}}</div>
|
<div fxFlex="70" align="left" style="padding: 10px !important;">
|
||||||
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
|
{{pageTitle}}
|
||||||
|
</div>
|
||||||
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
<div fxFlex="30" align="end" style="padding: 10px !important;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right"
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="right"
|
||||||
mat-dialog-close><mat-icon>close</mat-icon></button>
|
mat-dialog-close><mat-icon>close</mat-icon></button>
|
||||||
|
|||||||
@ -31,6 +31,10 @@ import { PdTrigerService } from '../../../../../pd-service/pd-triger.service';
|
|||||||
})
|
})
|
||||||
|
|
||||||
export class SupplierInfoComponent implements OnInit {
|
export class SupplierInfoComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
|
||||||
pageTitle: string = "Supplier Details";
|
pageTitle: string = "Supplier Details";
|
||||||
|
|
||||||
@ -55,6 +59,10 @@ export class SupplierInfoComponent implements OnInit {
|
|||||||
this.company_id = this.pd_all_details.company_id
|
this.company_id = this.pd_all_details.company_id
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
this.pageTitle = this.pd_all_details.company_name + ' - ' +this.pageTitle ;
|
||||||
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
|
|
||||||
}
|
}
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
// .child_mat_card mat-card {
|
// .child_mat_card mat-card {
|
||||||
// margin: 2 0%;
|
// margin: 2 0%;
|
||||||
// }
|
// }
|
||||||
|
::ng-deep .mat-dialog-container{
|
||||||
|
overflow: hidden !important;
|
||||||
|
}
|
||||||
::ng-deep .mat-card-header-text{
|
::ng-deep .mat-card-header-text{
|
||||||
margin:0px !important;
|
margin:0px !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -155,8 +155,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==1){
|
if(this.selectedFormsCategory.form_id==1){
|
||||||
const dialogRef = this.dialog.open(SupplierInfoComponent, {
|
const dialogRef = this.dialog.open(SupplierInfoComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -168,8 +171,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==2){
|
if(this.selectedFormsCategory.form_id==2){
|
||||||
const dialogRef = this.dialog.open(ClientInfoComponent, {
|
const dialogRef = this.dialog.open(ClientInfoComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -181,8 +187,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==3){
|
if(this.selectedFormsCategory.form_id==3){
|
||||||
const dialogRef = this.dialog.open(PersonalInfoComponent, {
|
const dialogRef = this.dialog.open(PersonalInfoComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -194,8 +203,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==4){
|
if(this.selectedFormsCategory.form_id==4){
|
||||||
const dialogRef = this.dialog.open(AssetsInfoComponent, {
|
const dialogRef = this.dialog.open(AssetsInfoComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -207,8 +219,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==5){
|
if(this.selectedFormsCategory.form_id==5){
|
||||||
const dialogRef = this.dialog.open(AddressComponent, {
|
const dialogRef = this.dialog.open(AddressComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -220,8 +235,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==6){
|
if(this.selectedFormsCategory.form_id==6){
|
||||||
const dialogRef = this.dialog.open(FamilyDetailsComponent, {
|
const dialogRef = this.dialog.open(FamilyDetailsComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -233,8 +251,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==7){
|
if(this.selectedFormsCategory.form_id==7){
|
||||||
const dialogRef = this.dialog.open(BankingDetailsComponent, {
|
const dialogRef = this.dialog.open(BankingDetailsComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -247,8 +268,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==8){
|
if(this.selectedFormsCategory.form_id==8){
|
||||||
const dialogRef = this.dialog.open(CurrentLoanComponent, {
|
const dialogRef = this.dialog.open(CurrentLoanComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -261,8 +285,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==9){
|
if(this.selectedFormsCategory.form_id==9){
|
||||||
const dialogRef = this.dialog.open(OtherIncomeComponent, {
|
const dialogRef = this.dialog.open(OtherIncomeComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -274,8 +301,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==10){
|
if(this.selectedFormsCategory.form_id==10){
|
||||||
const dialogRef = this.dialog.open(LoanDetailsComponent, {
|
const dialogRef = this.dialog.open(LoanDetailsComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -287,8 +317,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==11){
|
if(this.selectedFormsCategory.form_id==11){
|
||||||
const dialogRef = this.dialog.open(StockComponent, {
|
const dialogRef = this.dialog.open(StockComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -300,8 +333,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==12){
|
if(this.selectedFormsCategory.form_id==12){
|
||||||
const dialogRef = this.dialog.open(EmploymentInfoComponent, {
|
const dialogRef = this.dialog.open(EmploymentInfoComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -313,8 +349,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==13){
|
if(this.selectedFormsCategory.form_id==13){
|
||||||
const dialogRef = this.dialog.open(BusinessInfoGroupComponent, {
|
const dialogRef = this.dialog.open(BusinessInfoGroupComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -326,8 +365,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==14){
|
if(this.selectedFormsCategory.form_id==14){
|
||||||
const dialogRef = this.dialog.open(FinancialInfoComponent, {
|
const dialogRef = this.dialog.open(FinancialInfoComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -339,8 +381,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==15){
|
if(this.selectedFormsCategory.form_id==15){
|
||||||
const dialogRef = this.dialog.open(LenderRepresentativeComponent, {
|
const dialogRef = this.dialog.open(LenderRepresentativeComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -353,8 +398,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==16){
|
if(this.selectedFormsCategory.form_id==16){
|
||||||
const dialogRef = this.dialog.open(AssessedIncomeComponent, {
|
const dialogRef = this.dialog.open(AssessedIncomeComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -366,8 +414,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==17){
|
if(this.selectedFormsCategory.form_id==17){
|
||||||
const dialogRef = this.dialog.open(RentalInfoComponent, {
|
const dialogRef = this.dialog.open(RentalInfoComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
@ -379,8 +430,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
else if(this.selectedFormsCategory.form_id==18){
|
else if(this.selectedFormsCategory.form_id==18){
|
||||||
const generaldialogRef = this.dialog.open(GeneralInfoComponent, {
|
const generaldialogRef = this.dialog.open(GeneralInfoComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
generaldialogRef.afterClosed()
|
generaldialogRef.afterClosed()
|
||||||
@ -392,8 +446,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
else if(this.selectedFormsCategory.form_id==19){
|
else if(this.selectedFormsCategory.form_id==19){
|
||||||
const generaldialogRef = this.dialog.open(NeighbourHoodComponent, {
|
const generaldialogRef = this.dialog.open(NeighbourHoodComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
generaldialogRef.afterClosed()
|
generaldialogRef.afterClosed()
|
||||||
@ -404,8 +461,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
}else if(this.selectedFormsCategory.form_id==20){
|
}else if(this.selectedFormsCategory.form_id==20){
|
||||||
const generaldialogRef = this.dialog.open(FinalRemarksComponent, {
|
const generaldialogRef = this.dialog.open(FinalRemarksComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
generaldialogRef.afterClosed()
|
generaldialogRef.afterClosed()
|
||||||
@ -417,8 +477,11 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
if(this.selectedFormsCategory.form_id==22){
|
if(this.selectedFormsCategory.form_id==22){
|
||||||
const dialogRef = this.dialog.open(BusinessAssetsInfoComponent, {
|
const dialogRef = this.dialog.open(BusinessAssetsInfoComponent, {
|
||||||
data: this.pdFullDetails,
|
data: this.pdFullDetails,
|
||||||
position: { right: '0'},
|
// position: { right: '0'},
|
||||||
width:'80%',
|
maxWidth: '100vw',
|
||||||
|
maxHeight: '100vh',
|
||||||
|
height: '100%',
|
||||||
|
width: '100%',
|
||||||
disableClose: true
|
disableClose: true
|
||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
|
|||||||
@ -510,6 +510,7 @@ export class PdTrigerService {
|
|||||||
|
|
||||||
/** To get Family Member Name For
|
/** To get Family Member Name For
|
||||||
* 1) other income form - (income earned field)
|
* 1) other income form - (income earned field)
|
||||||
|
* 2) bussiness form - (partner_name field)
|
||||||
*/
|
*/
|
||||||
getAllPersonsName(pdid:any): Observable<any> {
|
getAllPersonsName(pdid:any): Observable<any> {
|
||||||
return this._http.post<any>(this.apiUrl + "getAllPersonsName", { "pd_id" : pdid})
|
return this._http.post<any>(this.apiUrl + "getAllPersonsName", { "pd_id" : pdid})
|
||||||
|
|||||||
@ -50,7 +50,6 @@ import { personalDiscussionRoutes } from './personal-discussion.routing';
|
|||||||
TreeModule,
|
TreeModule,
|
||||||
MatDialogModule,MatSortModule,
|
MatDialogModule,MatSortModule,
|
||||||
NgxMatSelectSearchModule,MatTooltipModule, MatExpansionModule,
|
NgxMatSelectSearchModule,MatTooltipModule, MatExpansionModule,
|
||||||
],
|
]
|
||||||
declarations: []
|
|
||||||
})
|
})
|
||||||
export class PersonalDiscussionModule { }
|
export class PersonalDiscussionModule { }
|
||||||
|
|||||||
@ -0,0 +1,3 @@
|
|||||||
|
<p>
|
||||||
|
snack-bar works!
|
||||||
|
</p>
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { SnackBarComponent } from './snack-bar.component';
|
||||||
|
|
||||||
|
describe('SnackBarComponent', () => {
|
||||||
|
let component: SnackBarComponent;
|
||||||
|
let fixture: ComponentFixture<SnackBarComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ SnackBarComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(SnackBarComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-snack-bar',
|
||||||
|
templateUrl: './snack-bar.component.html',
|
||||||
|
styleUrls: ['./snack-bar.component.scss']
|
||||||
|
})
|
||||||
|
export class SnackBarComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user