Merge branch 'master' of https://bitbucket.org/sriramv18/sparqsineedge
This commit is contained in:
commit
455c1ba242
@ -3,6 +3,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;">
|
||||||
|
|||||||
@ -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";
|
||||||
|
|
||||||
@ -94,6 +98,11 @@ export class AddressComponent implements OnInit {
|
|||||||
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;">
|
||||||
@ -17,87 +18,155 @@
|
|||||||
<ng-template matTabContent>
|
<ng-template matTabContent>
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
|
<!-- this is for sales revenue -->
|
||||||
<mat-nav-list>
|
<mat-nav-list>
|
||||||
|
|
||||||
<mat-list-item (click)='matgroup.selectedIndex = 1'>
|
<mat-list-item (click)='matgroup.selectedIndex = 1'>
|
||||||
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="50" fxFlex.lg="40" fxFlex.xl="40">
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60">
|
||||||
<p matLine> a) Cost of Goods Sold </p>
|
<p matLine> a) Cost of Goods Sold </p>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="20" fxFlex.lg="25" fxFlex.xl="25" class="mat_list_center_div">
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
<p matLine> {{sales_value}} </p>
|
<p matLine> {{sumary_details.sales_revenue !='' && sumary_details.sales_revenue!=null ? sumary_details.sales_revenue : '0'}} </p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
<mat-list-item *ngFor="let subDetails of sumary_details.sales_revenue_details">
|
||||||
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60" class="sub_item">
|
||||||
|
<p matLine> {{subDetails.sales_item}} </p>
|
||||||
|
</div>
|
||||||
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
|
<p matLine> {{subDetails.annual_sale_value !='' && subDetails.annual_sale_value!=null ? subDetails.annual_sale_value : '0'}} </p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</mat-list-item>
|
||||||
|
</mat-nav-list>
|
||||||
|
|
||||||
|
<!-- this is for purchase -->
|
||||||
|
<mat-nav-list>
|
||||||
<mat-list-item (click)='matgroup.selectedIndex = 2'>
|
<mat-list-item (click)='matgroup.selectedIndex = 2'>
|
||||||
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="50" fxFlex.lg="40" fxFlex.xl="40">
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60">
|
||||||
<p matLine> b) Purchases </p>
|
<p matLine> b) Purchases </p>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="20" fxFlex.lg="25" fxFlex.xl="25" class="mat_list_center_div">
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
<p matLine> {{purchase_value}} </p>
|
<p matLine> {{sumary_details.purchase !='' && sumary_details.purchase!=null ? sumary_details.purchase : '0'}} </p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
<mat-list-item *ngFor="let subDetails of sumary_details.purchase_details">
|
||||||
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60" class="sub_item">
|
||||||
|
<p matLine> {{subDetails.purchase_item}} </p>
|
||||||
|
</div>
|
||||||
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
|
<p matLine> {{subDetails.annual_purchase_value !='' && subDetails.annual_purchase_value!=null ? subDetails.annual_purchase_value : '0'}} </p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</mat-list-item>
|
||||||
|
</mat-nav-list>
|
||||||
|
<!-- gross profit -->
|
||||||
|
<mat-nav-list>
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="50" fxFlex.lg="40" fxFlex.xl="40">
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60">
|
||||||
<p matLine> c) Gross Profit (a-b) </p>
|
<p matLine> c) Gross Profit (a-b) </p>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="20" fxFlex.lg="25" fxFlex.xl="25" class="mat_list_center_div">
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
<p matLine> {{gross_profit_value}} </p>
|
<p matLine> {{sumary_details.gross_profit}} </p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
</mat-nav-list>
|
||||||
|
|
||||||
|
<!-- other income -->
|
||||||
|
<mat-nav-list>
|
||||||
<mat-list-item (click)='matgroup.selectedIndex = 5'>
|
<mat-list-item (click)='matgroup.selectedIndex = 5'>
|
||||||
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="50" fxFlex.lg="40" fxFlex.xl="40">
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60">
|
||||||
<p matLine> d) Other Income </p>
|
<p matLine> d) Other Income </p>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="20" fxFlex.lg="25" fxFlex.xl="25" class="mat_list_center_div">
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
<p matLine> {{other_income_value}}</p>
|
<p matLine> {{sumary_details.other_business_income !='' && sumary_details.other_business_income !=null ? sumary_details.other_business_income : '0' }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
<mat-list-item *ngFor="let subDetails of sumary_details.other_business_income_details">
|
||||||
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60" class="sub_item">
|
||||||
|
<p matLine> {{subDetails.business_income_item}} </p>
|
||||||
|
</div>
|
||||||
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
|
<p matLine> {{subDetails.annual_income_value !='' && subDetails.annual_income_value!=null ? subDetails.annual_income_value : '0'}} </p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</mat-list-item>
|
||||||
|
</mat-nav-list>
|
||||||
|
<!-- this is expense -->
|
||||||
|
<mat-nav-list>
|
||||||
<mat-list-item (click)='matgroup.selectedIndex = 3'>
|
<mat-list-item (click)='matgroup.selectedIndex = 3'>
|
||||||
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="50" fxFlex.lg="40" fxFlex.xl="40">
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60">
|
||||||
<p matLine> e) Other Expenses </p>
|
<p matLine> e) Other Expenses </p>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="20" fxFlex.lg="25" fxFlex.xl="25" class="mat_list_center_div">
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
<p matLine> {{other_expense_value}} </p>
|
<p matLine> {{sumary_details.business_expense !='' && sumary_details.business_expense !=null ? sumary_details.business_expense : '0'}} </p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
<mat-list-item *ngFor="let subDetails of sumary_details.business_expense_details">
|
||||||
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60" class="sub_item">
|
||||||
|
<p matLine> {{subDetails.expense_item}} </p>
|
||||||
|
</div>
|
||||||
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
|
<p matLine> {{subDetails.annual_expenses_value !='' && subDetails.annual_expenses_value!=null ? subDetails.annual_expenses_value : '0'}} </p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</mat-list-item>
|
||||||
|
</mat-nav-list>
|
||||||
|
<!-- this is for net profit -->
|
||||||
|
<mat-nav-list>
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="50" fxFlex.lg="40" fxFlex.xl="40">
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60">
|
||||||
<p matLine> f) Net Profit (c+d-e) </p>
|
<p matLine> f) Net Profit (c+d-e) </p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="20" fxFlex.lg="25" fxFlex.xl="25" class="mat_list_center_div">
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
<p matLine> {{net_profit_value}} </p>
|
<p matLine> {{sumary_details.net_profit_value!='' && sumary_details.net_profit_value!=null ? sumary_details.net_profit_value : '0'}} </p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
</mat-nav-list>
|
||||||
|
|
||||||
|
<!-- house hold -->
|
||||||
|
<mat-nav-list>
|
||||||
<mat-list-item (click)='matgroup.selectedIndex = 4'>
|
<mat-list-item (click)='matgroup.selectedIndex = 4'>
|
||||||
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="50" fxFlex.lg="40" fxFlex.xl="40">
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60">
|
||||||
<p matLine> g) Household Expenses </p>
|
<p matLine> g) Household Expenses </p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="20" fxFlex.lg="25" fxFlex.xl="25" class="mat_list_center_div">
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
<p matLine> {{house_hold_value}} </p>
|
<p matLine> {{sumary_details.household_expenses}} </p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
<mat-list-item *ngFor="let subDetails of sumary_details.house_hold_expense_details">
|
||||||
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60" class="sub_item">
|
||||||
|
<p matLine> {{subDetails.expense_item}} </p>
|
||||||
|
</div>
|
||||||
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
|
<p matLine> {{subDetails.annual_expense_value !='' && subDetails.annual_expense_value!=null ? subDetails.annual_expense_value : '0'}} </p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</mat-list-item>
|
||||||
|
</mat-nav-list>
|
||||||
|
<!-- disposal value -->
|
||||||
|
<mat-nav-list>
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="50" fxFlex.lg="40" fxFlex.xl="40">
|
<div fxFlex.xs="70" fxFlex.sm="70" fxFlex.md="60" fxFlex.lg="60" fxFlex.xl="60" class="sub_item">
|
||||||
<p matLine> h) Net Disposable Income (f-g) </p>
|
<p matLine> h) Net Disposable Income (f-g) </p>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="20" fxFlex.lg="25" fxFlex.xl="25" class="mat_list_center_div">
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="40" fxFlex.lg="40" fxFlex.xl="40" class="mat_list_center_div">
|
||||||
<p matLine> {{net_disable_income_value}} </p>
|
<p matLine> {{sumary_details.net_disable_income_value !='' && sumary_details.net_disable_income_value !=null ? sumary_details.net_disable_income_value : 0}} </p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
|
||||||
|
|
||||||
</mat-nav-list>
|
</mat-nav-list>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
|
|||||||
@ -120,20 +120,34 @@
|
|||||||
border:1px solid rgba(0, 0, 0, 0.12);
|
border:1px solid rgba(0, 0, 0, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
mat-list-item:nth-child(3) {
|
// mat-list-item:nth-child(3) {
|
||||||
background-color: #f5f5f5;
|
// background-color: #f5f5f5;
|
||||||
|
// }
|
||||||
|
// mat-list-item:nth-child(6) {
|
||||||
|
// background-color: #f5f5f5;
|
||||||
|
// }
|
||||||
|
// mat-list-item:nth-child(8) {
|
||||||
|
// background-color: #f5f5f5;
|
||||||
|
// }
|
||||||
|
mat-list-item:not(:first-child) {
|
||||||
|
cursor: auto;
|
||||||
|
.sub_item{
|
||||||
|
margin-left: 35% !important;
|
||||||
}
|
}
|
||||||
mat-list-item:nth-child(6) {
|
p{
|
||||||
background-color: #f5f5f5;
|
font-size: 1rem !important;
|
||||||
}
|
}
|
||||||
mat-list-item:nth-child(8) {
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
}
|
||||||
|
mat-list-item:first-child {
|
||||||
|
background-color: papayawhip;
|
||||||
|
}
|
||||||
|
|
||||||
.mat_list_right_div {
|
.mat_list_right_div {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
.mat_list_center_div {
|
.mat_list_center_div {
|
||||||
text-align: center;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -15,21 +15,18 @@ 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;
|
||||||
// @Input() form_id: number;
|
// @Input() form_id: number;
|
||||||
pdid: number;
|
pdid: number;
|
||||||
form_id: number;
|
form_id: number;
|
||||||
displayedColumns = ['sno','list','amount'];
|
sumary_details:any={"sales_revenue":0,"sales_revenue_details":[],"purchase":0,"purchase_details":[],"gross_profit":0,"other_business_income":0,"other_business_income_details":[]
|
||||||
sales_value: number;
|
,"business_expense":0,"business_expense_details":[],"net_profit_value":0,"household_expenses":0,"house_hold_expense_details":[],"net_disable_income_value":0};
|
||||||
purchase_value: number;
|
|
||||||
gross_profit_value: number;
|
|
||||||
other_income_value: number;
|
|
||||||
other_expense_value: number;
|
|
||||||
net_profit_value: number;
|
|
||||||
house_hold_value: number;
|
|
||||||
net_disable_income_value: number;
|
|
||||||
public salesCaluatedItem:any= [];
|
public salesCaluatedItem:any= [];
|
||||||
public salesItemMonthWise:any= [];
|
public salesItemMonthWise:any= [];
|
||||||
public purchaseDetails:any= [];
|
public purchaseDetails:any= [];
|
||||||
@ -65,14 +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.sales_value=0;
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
this.purchase_value=0;
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
this.gross_profit_value=0;
|
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
||||||
this.other_income_value=0;
|
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
this.other_expense_value=0;
|
|
||||||
this.net_profit_value=0;
|
|
||||||
this.house_hold_value=0;
|
|
||||||
this.net_disable_income_value=0;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
public viewerOptions: any = {
|
public viewerOptions: any = {
|
||||||
@ -117,35 +110,6 @@ public viewerOptions: any = {
|
|||||||
}
|
}
|
||||||
if(value.records.sales_items_by_monthwise){
|
if(value.records.sales_items_by_monthwise){
|
||||||
this.salesItemMonthWise = value.records.sales_items_by_monthwise;
|
this.salesItemMonthWise = value.records.sales_items_by_monthwise;
|
||||||
// hide table format start
|
|
||||||
|
|
||||||
// this.salesItemMonthWise.forEach((itemElement, itemIndex) => {
|
|
||||||
// this.salesItemMonthWiseBody= Object.keys(itemElement.items).map(key => ({ header:key, value: itemElement.items[key] }));
|
|
||||||
// let combineTableColumn = Object.keys(itemElement.items).map(key => (itemElement.items[key]));
|
|
||||||
// let sumItems: any=[];
|
|
||||||
// combineTableColumn.forEach((sumValue, sumIndex) => {
|
|
||||||
// let calculateItems = sumValue.reduce((acc, calculate) => acc + Number(calculate.sales_value), 0);
|
|
||||||
// sumItems.push({bodyElement:sumValue, bodyElementTotal:calculateItems});
|
|
||||||
// })
|
|
||||||
// let calculateAllItemsTotal:number=sumItems.reduce((racc, rcalculate) => racc + Number(rcalculate.bodyElementTotal), 0);
|
|
||||||
// let convertYear : number = 12 / sumItems.length;
|
|
||||||
// let tableFooterMessage: any=[];
|
|
||||||
// tableFooterMessage.push({
|
|
||||||
// message: sumItems.length + ' Months ' + itemElement.sales_item + ' Sales ',
|
|
||||||
// value:calculateAllItemsTotal,
|
|
||||||
// cols_span_length:sumItems.length * 2 -1,
|
|
||||||
// })
|
|
||||||
// tableFooterMessage.push({
|
|
||||||
// message: ' Yearly ' + itemElement.sales_item + ' Sales Arrived',
|
|
||||||
// value: calculateAllItemsTotal * convertYear,
|
|
||||||
// cols_span_length:sumItems.length * 2 -1 ,
|
|
||||||
// })
|
|
||||||
// this.salesMonthWiseTable.push({salesItem:itemElement.sales_item,headerElement:this.salesItemMonthWiseBody, bodyElements:sumItems, parentTableFooter:tableFooterMessage});
|
|
||||||
// //console.log(this.salesMonthWiseTable)
|
|
||||||
// });
|
|
||||||
// hide table format end
|
|
||||||
|
|
||||||
|
|
||||||
this.salesItemMonthWise.forEach((itemElement, itemIndex) => {
|
this.salesItemMonthWise.forEach((itemElement, itemIndex) => {
|
||||||
let expandBodyContent= Object.keys(itemElement.items).map(key => ({ header:key, value: itemElement.items[key] }));
|
let expandBodyContent= Object.keys(itemElement.items).map(key => ({ header:key, value: itemElement.items[key] }));
|
||||||
let listItems: any=[];
|
let listItems: any=[];
|
||||||
@ -185,26 +149,26 @@ public viewerOptions: any = {
|
|||||||
|
|
||||||
if(value.records.final_data.length >0){
|
if(value.records.final_data.length >0){
|
||||||
// this.finalData = value.records.final_data[0];
|
// this.finalData = value.records.final_data[0];
|
||||||
|
this.sumary_details = value.records.final_data[0];
|
||||||
this.sales_value = value.records.final_data[0].income.sales_revenue !='' && value.records.final_data[0].income.sales_revenue !=null ? value.records.final_data[0].income.sales_revenue : 0;
|
this.sumary_details["sales_revenue"] = value.records.final_data[0].sales_revenue;
|
||||||
this.purchase_value = value.records.final_data[0].expense.purchase !='' && value.records.final_data[0].expense.purchase !=null ? value.records.final_data[0].expense.purchase : 0;
|
this.sumary_details["sales_revenue_details"] = value.records.final_data[0].sales_revenue_details;
|
||||||
this.gross_profit_value = value.records.final_data[0].gross_profit !='' && value.records.final_data[0].gross_profit !=null ? value.records.final_data[0].gross_profit : 0;
|
this.sumary_details["purchase"] = value.records.final_data[0].purchase;
|
||||||
this.other_income_value = value.records.final_data[0].income.other_business_income !='' && value.records.final_data[0].income.other_business_income !=null ? value.records.final_data[0].income.other_business_income : 0;
|
this.sumary_details["purchase_details"] = value.records.final_data[0].purchase_details;
|
||||||
this.other_expense_value = value.records.final_data[0].expense.business_expense !='' && value.records.final_data[0].expense.business_expense !=null ? value.records.final_data[0].expense.business_expense : 0;
|
this.sumary_details["gross_profit"] = value.records.final_data[0].gross_profit;
|
||||||
this.net_profit_value = value.records.final_data[0].expense.net_profit !='' && value.records.final_data[0].expense.net_profit !=null ? value.records.final_data[0].expense.net_profit : 0;
|
this.sumary_details["other_business_income"] = value.records.final_data[0].other_business_income;
|
||||||
this.house_hold_value = 0;
|
this.sumary_details["other_business_income_details"] = value.records.final_data[0].other_business_income_details;
|
||||||
this.net_disable_income_value = this.net_profit_value-this.house_hold_value;
|
this.sumary_details["business_expense"] = value.records.final_data[0].business_expense;
|
||||||
|
this.sumary_details["business_expense_details"] = value.records.final_data[0].business_expense_details;
|
||||||
|
this.sumary_details["net_profit_value"] = value.records.final_data[0].net_profit_value !='' && value.records.final_data[0].net_profit_value!=null ? value.records.final_data[0].net_profit_value : 0;
|
||||||
|
this.sumary_details["household_expenses"] = value.records.final_data[0].household_expenses;
|
||||||
|
this.sumary_details["house_hold_expense_details"] = value.records.final_data[0].house_hold_expense_details !='' && value.records.final_data[0].house_hold_expense_details !=null ? value.records.final_data[0].house_hold_expense_details : 0;
|
||||||
|
this.sumary_details["net_disable_income_value"] = Number(this.sumary_details.net_profit_value) - Number(this.sumary_details.household_expenses);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// get total cost
|
|
||||||
getTotalCost(getItems:any) {
|
|
||||||
return getItems.map(t => t.sales_value).reduce((acc, value) => acc + Number(value), 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
// get common drop down list
|
// get common drop down list
|
||||||
getAIMaster(table:string, type:Number):void {
|
getAIMaster(table:string, type:Number):void {
|
||||||
this._pd.getAllMasterDatas(table).subscribe(
|
this._pd.getAllMasterDatas(table).subscribe(
|
||||||
|
|||||||
@ -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;">
|
||||||
|
|||||||
@ -29,6 +29,10 @@ 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 {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
pageTitle: string = "Other Assets Details";
|
pageTitle: string = "Other Assets Details";
|
||||||
//@Input() pdid: number;
|
//@Input() pdid: number;
|
||||||
pdid:string;
|
pdid: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,6 +70,7 @@
|
|||||||
<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;">
|
||||||
|
<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;">
|
||||||
|
|||||||
@ -28,6 +28,10 @@ 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 {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
pdid: number;
|
pdid: number;
|
||||||
pageTitle: string ="Banking Details of Individuals";
|
pageTitle: string ="Banking Details of Individuals";
|
||||||
public bankingForm: FormGroup;
|
public bankingForm: FormGroup;
|
||||||
@ -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,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;">
|
||||||
|
|||||||
@ -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,6 +1,7 @@
|
|||||||
<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;">
|
||||||
|
<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: ['./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,6 +17,10 @@ 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 {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
pageTitle: string = "Business Related Information";
|
pageTitle: string = "Business Related Information";
|
||||||
existCompanyList: any = [];
|
existCompanyList: any = [];
|
||||||
pdid: number;
|
pdid: 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,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}}
|
||||||
<!-- {{businessEntityTypeList.business_entity_type_name}} -->
|
<!-- {{businessEntityTypeList.business_entity_type_name}} -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -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;
|
||||||
@ -94,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,
|
||||||
|
|||||||
@ -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>
|
||||||
|
|
||||||
|
|||||||
@ -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";
|
||||||
@ -64,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,
|
||||||
|
|||||||
@ -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 = {
|
||||||
|
|||||||
@ -261,6 +261,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;">
|
||||||
|
|||||||
@ -295,6 +295,10 @@ 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 {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
IncomePerMonth: any = [];
|
IncomePerMonth: any = [];
|
||||||
RentAmount: any = [];
|
RentAmount: any = [];
|
||||||
FamilyMemberAsLabel: any = [];
|
FamilyMemberAsLabel: any = [];
|
||||||
@ -347,6 +351,10 @@ export class FamilyDetailsComponent 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 = 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);
|
||||||
|
|||||||
@ -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'],
|
||||||
|
|||||||
@ -3,6 +3,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;">
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;">
|
||||||
|
|||||||
@ -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,9 +1,12 @@
|
|||||||
<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" 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>
|
<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>
|
||||||
|
|||||||
@ -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 {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
|
// message : any = {};
|
||||||
|
// applicant_name: any;
|
||||||
|
// snackBar: any;
|
||||||
public representativeForm: FormGroup;
|
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,
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
<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">
|
||||||
|
<span>{{main_applicant}} ({{lender_applicant_id}}), {{customer_segment_abbr}} - {{subproduct_abbr}} </span><br>
|
||||||
{{pageTitle}}
|
{{pageTitle}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,10 @@ import { parse } from 'url';
|
|||||||
styleUrls: ['./neighbour-hood.component.scss']
|
styleUrls: ['./neighbour-hood.component.scss']
|
||||||
})
|
})
|
||||||
export class NeighbourHoodComponent implements OnInit {
|
export class NeighbourHoodComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
pageTitle: string = "Neighbourhood Check / Reference Check";
|
pageTitle: string = "Neighbourhood Check / Reference Check";
|
||||||
public _neighbourhoodForm: FormGroup;
|
public _neighbourhoodForm: FormGroup;
|
||||||
pdid : string;
|
pdid : string;
|
||||||
@ -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,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;">
|
||||||
|
|||||||
@ -31,6 +31,10 @@ import {ActivatedRoute, Router} from '@angular/router';
|
|||||||
})
|
})
|
||||||
|
|
||||||
export class OtherIncomeComponent implements OnInit {
|
export class OtherIncomeComponent implements OnInit {
|
||||||
|
customer_segment_abbr: any;
|
||||||
|
subproduct_abbr: any;
|
||||||
|
lender_applicant_id: any;
|
||||||
|
main_applicant: any;
|
||||||
pageTitle: string = "Other Income Details";
|
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,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';
|
|||||||
})
|
})
|
||||||
|
|
||||||
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,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;">
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
@ -11,7 +11,6 @@ export class ViewLocationComponent implements OnInit {
|
|||||||
constructor(@Inject(MAT_DIALOG_DATA) public data: any, private dialogRef: MatDialogRef<ViewLocationComponent>) { }
|
constructor(@Inject(MAT_DIALOG_DATA) public data: any, private dialogRef: MatDialogRef<ViewLocationComponent>) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
console.log(this.data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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