From eb333ca20e9d23c420167783dc426e1863565bff Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Wed, 26 Dec 2018 14:37:48 +0530 Subject: [PATCH] test doc sn.1 changes only : ps --- .../list-pd/add-pd/add-pd.component.html | 16 +++++--- .../list-pd/add-pd/add-pd.component.ts | 21 ++++++++++- .../edit-pd-applicant.component.html | 6 ++- .../edit-pd-master.component.html | 6 ++- .../edit-pd-master.component.ts | 13 +++++++ .../list-pd/view-pd/view-pd.component.html | 37 ++++++++----------- 6 files changed, 65 insertions(+), 34 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html index 46efa23f7..4188d4851 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html @@ -81,13 +81,14 @@ + Select - {{CSL.customer_segment}} + {{CSL.abbr}} @@ -106,8 +107,9 @@ - - + + + {{"₹"}} {{loanAmtInWords}} Only Enter valid amount. @@ -184,8 +186,9 @@ Enter Valid Mobile Number. - + + +91 Enter Valid STD Code Number.   -   @@ -264,14 +267,15 @@
- - + +
+ diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts index 8db401982..6c23033f2 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts @@ -33,6 +33,7 @@ export class AddPdComponent implements OnInit, OnDestroy { billingList: any; relationShipList: any; errorMessage: any; + loanAmtInWords : any; // Dynamic co applicant createWithLongContent = false; dynamicCoApplicant = []; @@ -272,6 +273,7 @@ export class AddPdComponent implements OnInit, OnDestroy { // save pd in draft saveDraftPD(formValue: any, status:string){ + alert('Inside The Draft PD'); this.submitPdDetails(formValue, status); } //trigger pd @@ -360,8 +362,11 @@ export class AddPdComponent implements OnInit, OnDestroy { // common function for both draft and process pd submitPdDetails(formValue: any, status:string) { + alert('Inside Function Submit Function'); if(this._PDtriggerForm.invalid) { - this.validateAllFormFields(this._PDtriggerForm) + this.validateAllFormFields(this._PDtriggerForm); + alert('validationError'); + console.log(this._PDtriggerForm); return; } else { @@ -433,7 +438,7 @@ export class AddPdComponent implements OnInit, OnDestroy { if(formValue.addtional_requirements.length > 0){ pd_form.append("addtional_requirements",JSON.stringify(formValue.addtional_requirements)) - } + } this._pd.addPdDetails(pd_form).subscribe(result => { if (result.status == 200) { this.notifier.notify('success', 'PD Saved.'); @@ -490,4 +495,16 @@ validateAllFormFields(formGroup: any) { }); } +/** To Convert Amount into Words */ +inWords(e,flag:number){ + switch(flag){ + case 1 : + this.loanAmtInWords = this._pd.convertNumberToWords(e.target.value); + break; + default: + break; +} +} + + } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.html index beea70bd3..cdee436c6 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.html @@ -31,8 +31,9 @@ Enter Valid Mobile Number.
- + + +91 Enter Valid STD Code.  -  @@ -64,8 +65,9 @@ Enter Valid Phone Number. --> - + + +91 Enter Valid STD Number.  -  diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html index 04d9cd3a5..b0d4e742e 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html @@ -71,7 +71,7 @@ Select - {{CSL.customer_segment}} + {{CSL.abbr}} @@ -88,7 +88,9 @@ - + + + {{"₹"}} {{loanAmtInWords}} Only Enter valid amount. diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts index 38bfe29f5..2c8e9b102 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts @@ -26,6 +26,7 @@ export class EditPdMasterComponent implements OnInit { // PDTriggerStatus: string; enablePDButton: boolean; currentPDStatus: string; + loanAmtInWords : any; public _EditPDtriggerForm:FormGroup; public notifier: NotifierService; // create values for status check @@ -43,6 +44,7 @@ export class EditPdMasterComponent implements OnInit { @Inject(MAT_DIALOG_DATA) public data: any) { this.notifier=notifier this.currentPDStatus = data.records.pd_status; + if(this.data.records.loan_amount){ this.loanAmtInWords = this._pd.convertNumberToWords(this.data.records.loan_amount); } } ngOnInit() { @@ -279,6 +281,17 @@ validateAllFormFields(formGroup: any) { } }); } + +/** To Convert Amount into Words */ +inWords(e,flag:number){ + switch(flag){ + case 1 : + this.loanAmtInWords = this._pd.convertNumberToWords(e.target.value); + break; + default: + break; +} +} } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html index 8c26e9ebf..ba58d97d1 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html @@ -35,7 +35,7 @@ -
+
@@ -64,13 +64,11 @@

{{master.addressline1}}

Remarks : {{master.remarks}}

- - - -
-
+ +
+
- +
@@ -91,7 +89,7 @@     -  {{applicant.landline}} +  +91{{applicant.landline}}
Main Applicant {{applicant.relation_name}} @@ -101,10 +99,10 @@

No Applicant

-
-
+
+
- +
@@ -121,13 +119,8 @@

No Additional Requirements

- - - - -
- -
+
+
@@ -148,8 +141,8 @@

No Document

-
-
+
+
@@ -174,8 +167,8 @@ -
-
+
+