diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html index dd8ad6799..c696112c5 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html @@ -4,7 +4,10 @@ - + {{ enduse.name }} + + @@ -47,12 +50,16 @@ - + {{ sour.name }} + + + @@ -68,6 +75,10 @@ + {{ typeprop.name }} + + + @@ -94,12 +105,17 @@ - + {{ status.name }} + + + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts index 01648a36d..30dff2db8 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts @@ -39,6 +39,10 @@ export class LoanDetailsComponent implements OnInit { isSource: boolean = false; endUserList: any = []; ownerNames: any = []; + m_endUseofLoad = []; + m_sourceofamount = []; + m_mortageTypeProperty = []; + m_statusofCunstruction = []; constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute, private router: Router, private _pd: PdTrigerService) { @@ -48,6 +52,10 @@ export class LoanDetailsComponent implements OnInit { ngOnInit() { this.applicants = this.applicant_details.pdapplicants_detials; this.initloanDetailsForm(); + this.getM_EndUseofLoad(); + this.getM_sourceofamount(); + this.getM_MortageTypeProperty(); + this.getM_StatusofCunstruction(); let params: any = {}; params.pd_id = this.pdid; params.pd_form_id = this.form_id; @@ -102,6 +110,60 @@ export class LoanDetailsComponent implements OnInit { } }) } + +// ============= + + getM_EndUseofLoad() { + this._pd.getAllMasterDatas('ENDUSEOFLOAN').subscribe( + data => { + this.m_endUseofLoad = data.records.filter(data => data.isactive == 1); + }, + error => { + // this.notifier.notify('warning', 'No Category Records Found.!'); + // this.m_assets_type = "No Category Records Found."; + } + ) + } + +getM_sourceofamount() { + this._pd.getAllMasterDatas('SOURCEOFBALANCETRANSFER').subscribe( + data => { + this.m_sourceofamount = data.records.filter(data => data.isactive == 1); + }, + error => { + // this.notifier.notify('warning', 'No Category Records Found.!'); + // this.m_assets_type = "No Category Records Found."; + } + ) + } + + getM_MortageTypeProperty() { + this._pd.getAllMasterDatas('MORTAGEPROPERTYTYPE').subscribe( + data => { + this.m_mortageTypeProperty = data.records.filter(data => data.isactive == 1); + }, + error => { + // this.notifier.notify('warning', 'No Category Records Found.!'); + // this.m_assets_type = "No Category Records Found."; + } + ) + } + + getM_StatusofCunstruction() { + this._pd.getAllMasterDatas('STATUSOFCONSTRUCTION').subscribe( + data => { + this.m_statusofCunstruction = data.records.filter(data => data.isactive == 1); + }, + error => { + // this.notifier.notify('warning', 'No Category Records Found.!'); + // this.m_assets_type = "No Category Records Found."; + } + ) + } + + + +// ================== public initloanDetailsForm(): void { this.loanDetailsForm = this.fb.group({ loan_amount: ['', Validators.compose([Validators.required])],