From 40ab825f3b9fa42adac8cc78af4ac8686875b4f7 Mon Sep 17 00:00:00 2001 From: sriram-at-840620226347 Date: Fri, 24 Jul 2020 12:04:47 +0530 Subject: [PATCH] SMART PD FEEDBACK CHANGES --- .../forms/address/address.component.html | 4 ++-- .../business-assets-info.component.html | 4 ++-- .../business-info/business-info.component.html | 2 +- .../final-remarks/final-remarks.component.html | 18 +++++++++--------- .../final-remarks/final-remarks.component.ts | 15 +++++++++++++-- .../financial-info.component.html | 4 ++-- .../neighbour-hood.component.html | 16 ++++++++-------- .../VendorPdAllocationComponent.ts | 2 +- ng6-seed/src/assets/styles/app.scss | 6 +++++- 9 files changed, 43 insertions(+), 28 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html index d80399894..1791de76a 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html @@ -281,7 +281,7 @@
- + Select @@ -294,7 +294,7 @@ Approach to PD Location Required - + Select diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html index 20279e546..097bbe030 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html @@ -71,7 +71,7 @@
- + @@ -84,7 +84,7 @@ - + Remarks diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html index 7fb1134c4..871adc99b 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html @@ -1609,7 +1609,7 @@ Company Name Board - + Total Required diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html index 436115b3d..561f50b17 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html @@ -31,9 +31,9 @@ Location - + + formControlName="is_service_provided" > Select Well Suited Fairly Suited @@ -136,13 +136,13 @@ -
+
Any additional visit (Godown /multiple rental properties)  
- + + > Select Two Wheeler Four Wheeler @@ -156,11 +156,11 @@ Specify the Mode of Transport Used to Visit the PD address Required - + CLIX MWISE - + Select @@ -176,7 +176,7 @@ Is there Competition to the applicant’s business in the location ( {{ _finalRemarkForm.value.is_competition ===true ? 'Yes' : 'No'}} )
--> -
+
Select @@ -222,7 +222,7 @@ Any sealing activity observed in the locality by PD office ( {{ _finalRemarkForm.value.sealing_activity ===true ? 'Yes' : 'No'}} )
--> -
+
Select diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts index c9aacb7f7..9a1dceb27 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts @@ -116,7 +116,7 @@ export class FinalRemarksComponent implements OnInit { this._finalRemarkForm.controls['mode_of_transport_during_visit'].updateValueAndValidity(); } - if((this.fk_pd_type != '3' && this.fk_pd_type != '2') && (this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.prod_catagory == 'LAEP')){ + if((this.fk_pd_type != '3') && (this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.prod_catagory == 'LAEP')){ this.prod_catagory == 'LAEP' ? this._finalRemarkForm.addControl('outlet_location', new FormControl('', Validators.required)) : this._finalRemarkForm.removeControl('outlet_location'); this._finalRemarkForm.addControl('is_competition', new FormControl('')); this._finalRemarkForm.addControl('sealing_activity', new FormControl('')); @@ -380,6 +380,8 @@ export class FinalRemarksComponent implements OnInit { if (this._finalRemarkForm.invalid) { this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!'); this.validateAllFormFields(this._finalRemarkForm); + let inavalidCtrls = this.findInvalidControls(); + console.log(inavalidCtrls) return; } else { var answerFormValues = this._finalRemarkForm.value; @@ -710,7 +712,16 @@ export class FinalRemarksComponent implements OnInit { } }); } - + public findInvalidControls() { + const invalid = []; + const controls = this._finalRemarkForm.controls; + for (const name in controls) { + if (controls[name].invalid) { + invalid.push(name); + } + } + return invalid; +} /* imageCrop(pic) { // let arr = { 'pic_name':pic_name,'pic':pic,'from_id':this.form_id} pic.pdid = this.pdid; diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html index 2058feb50..3dd040ed1 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html @@ -17,7 +17,7 @@
- +

Data as Per Financial Statements

@@ -507,7 +507,7 @@ No

-
+
Does the Number of Kuccha Bills and Values therein, justify the customer declared turnover?
Yes diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html index b5e10d308..819ab99f1 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html @@ -27,14 +27,14 @@
+ [formGroupName]="n" [ngClass]="{'smartPd':fk_pd_type == '2'}"> - + - + @@ -44,8 +44,8 @@ -
-
+
+
Year @@ -58,7 +58,7 @@ OnlyNumber type="text" (change)="ConvertMonthintoYear(neighbourhood,$event.target.value,1)">
-
+
-
+
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/vendor-pd-allocation/VendorPdAllocationComponent.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/vendor-pd-allocation/VendorPdAllocationComponent.ts index 0aad7bb83..4c251c7d5 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/vendor-pd-allocation/VendorPdAllocationComponent.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/vendor-pd-allocation/VendorPdAllocationComponent.ts @@ -22,7 +22,7 @@ export class VendorPdAllocationComponent implements OnInit { public submitted = false; cityList: any = []; stateList: any = []; - + i: Number = 0; constructor(notifier: NotifierService, private _fb: FormBuilder, private dialogRef: MatDialogRef, diff --git a/ng6-seed/src/assets/styles/app.scss b/ng6-seed/src/assets/styles/app.scss index e6edd5b3e..71ecff61d 100755 --- a/ng6-seed/src/assets/styles/app.scss +++ b/ng6-seed/src/assets/styles/app.scss @@ -51,4 +51,8 @@ Author: TrendSetter Themes @import "~angular-notifier/styles"; // import date time picker styles -@import "~ng-pick-datetime/assets/style/picker.min.css"; \ No newline at end of file +@import "~ng-pick-datetime/assets/style/picker.min.css"; + +.smartPd{ + background-color: #00bcd44f !important; +} \ No newline at end of file