From 1a8d49560f2fc1c70ff25d48926e286ed213b55f Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 15 Nov 2018 13:05:41 +0530 Subject: [PATCH 1/2] famil form changes --- .../family-details.component.html | 2 +- .../family-details.component.ts | 23 ++++++++++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html index b002c681c..d1cfcc450 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html @@ -88,7 +88,7 @@ - + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts index 6b53a6e5c..f5c65ad57 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts @@ -145,7 +145,7 @@ export class FamilyDetailsComponent implements OnInit { return this.fb.group({ relationship: ['', Validators.compose([Validators.required])], occupation: ['', Validators.compose([Validators.required])], - retired: ['', Validators.compose([Validators.required])], + retired: [''], }); } @@ -194,31 +194,38 @@ export class FamilyDetailsComponent implements OnInit { if (!this.familyForm.valid) { return; } - console.log('data', this.familyForm.value); let records: any = {}; records.no_of_years = this.years.value; - if (this.ownership.value == 'Others') { + if (this.ownership.value == 4) { records.ownership_others = this.ownershipOther.value; } records.ownership = this.ownership.value; records.residence = this.residence.value; - if (this.ownership.value == 'Rented') { + if (this.ownership.value == 3) { records.what_rent = this.rent.value; } - if (this.person.value == 'Other') { + if (this.person.value == 8) { records.person_met_other = this.personOther.value; } records.person_met = this.person.value; records.family_members = this.members.value; records.earning_members = this.familyForm.controls['earningMembers'].value; - records.non_earning_members = this.familyForm.controls['nonEarningMembers'].value; + // filter retired conditions + let non_earning_members_filter = this.familyForm.controls['nonEarningMembers'].value.map(function(obj) { + if(obj.occupation==3){ + return obj; + } + else{ + obj.retired=''; + return obj; + } + }); + records.non_earning_members = non_earning_members_filter; records.family_details_form_remark = this.familyForm.controls['family_details_form_remark'].value; records.pdid = this.pdid; records.formid = '6'; // records.fk_createdby = '251'; - console.log('params', records); this._pd.saveForm(records).subscribe(data => { - console.log('data', data); this.notifier.notify('success', 'Saved Successfully.'); }, error => { this.notifier.notify('warning', 'Something Wents Wrong Try Again.!'); From 20427dfbe9f98581e4731193401e0f7e985b8392 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Thu, 15 Nov 2018 13:06:07 +0530 Subject: [PATCH 2/2] merge : kms --- .../forms/address/address.component.html | 14 ++-- .../assets-info/assets-info.component.html | 24 +++--- .../banking-details.component.html | 6 +- .../business-info.component.html | 83 ++++++++++--------- .../business-info.component.scss | 8 +- .../current-loan/current-loan.component.html | 6 +- .../employment-info.component.html | 18 ++-- .../financial-info.component.html | 24 +++--- .../financial-info.component.scss | 1 + .../loan-details/loan-details.component.html | 30 +++++-- .../loan-details/loan-details.component.ts | 62 ++++++++++++++ .../other-income/other-income.component.html | 6 +- .../personal-info.component.html | 5 +- .../start-pd/forms/stock/stock.component.html | 35 ++++---- .../supplier-info.component.html | 14 ++-- 15 files changed, 219 insertions(+), 117 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 dddcbbc31..78cda05de 100644 --- 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 @@ -28,14 +28,14 @@ formControlName="locality_others"> - + {{data.description}} - + {{data.rating}} @@ -57,7 +57,7 @@
- @@ -81,12 +81,12 @@ - -
- +
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html index e5baf4036..03dbbc63b 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assets-info/assets-info.component.html @@ -10,16 +10,13 @@
-
-
- +
+ {{ asset.name }} - -
-
+
@@ -28,8 +25,8 @@
- - + + {{ prop.name }} @@ -199,7 +196,7 @@
- +
@@ -231,7 +228,7 @@
- +
@@ -241,9 +238,7 @@
- -
+
+ +
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html index b5d90be4a..910aa3602 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html @@ -132,8 +132,8 @@ delete -
-
@@ -150,7 +150,7 @@ - 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 a508f499c..1563deb3d 100644 --- 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 @@ -5,7 +5,7 @@
- +

Designation -

+

- -
@@ -65,7 +65,7 @@ - @@ -85,7 +85,7 @@

Partners / Directors / Shareholders -

+

- - -
@@ -122,7 +122,7 @@

Employees As per applicant -

+

@@ -142,7 +142,7 @@

As per PD Officer -

+

@@ -162,15 +162,15 @@

Investments -

+

- - @@ -178,9 +178,9 @@

Location -

+

- +

Business Setup -

+

- + - self owned Rented @@ -208,11 +208,11 @@ - - @@ -220,7 +220,7 @@

Is the below documents seen and photo captured ? -

+

@@ -231,28 +231,28 @@
- Yes No - Yes No - Yes No - Yes No @@ -273,7 +273,7 @@ - Yes No @@ -282,17 +282,17 @@
- + - -
@@ -306,6 +306,9 @@
- +
+ +
\ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.scss index 3be75d28c..96152853a 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.scss +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.scss @@ -8,13 +8,19 @@ width: 100%; } .matcard > * { - width: 80%; + width: 45%; } .card mat-form-field { margin: 0 2%; + width: 40%; } .matcard mat-form-field { margin: 0 2%; + width: 40%; +} +.matcards mat-form-field { + margin: 0 2%; + width: 98%; } .address .button { float: right; diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html index ca8fb72ff..4e2407234 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html @@ -35,11 +35,11 @@ - - @@ -56,7 +56,7 @@
-
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html index 0f16f392e..66bd26b06 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html @@ -1,7 +1,8 @@ +

Employement Information

- + @@ -14,7 +15,7 @@ - + - Yes No @@ -50,15 +51,15 @@ - - - @@ -71,6 +72,9 @@ - +
+ +
\ No newline at end of file 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 720f89fc3..d8f448ac2 100644 --- 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 @@ -1,8 +1,9 @@ +

Financial Information

-

Data as per Financial statements

+

Data as Per Financial Statements

- +
@@ -63,15 +64,15 @@ - +
@@ -85,6 +86,9 @@ - +
+ +
\ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.scss index efbc1400d..833488467 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.scss +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.scss @@ -9,6 +9,7 @@ } .matcard mat-form-field { margin: 0 2%; + width:26% } .address .button { float: right; 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])], diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html index fc82feab0..1e7bf2973 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html @@ -80,11 +80,11 @@ {{frq.name}} - - @@ -101,7 +101,7 @@
-
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html index 9871211b6..1623f9e05 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html @@ -1,4 +1,6 @@ -
+ +

Personal Details

+ @@ -136,3 +138,4 @@ +
\ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html index 3a55530a2..d293f4b58 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html @@ -1,4 +1,5 @@ +

Stock Details

@@ -18,20 +19,20 @@ - - + + - - + + @@ -54,20 +55,20 @@ - - + + - - + + @@ -81,6 +82,10 @@ - +
+ +
+
\ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.html index d7ffad568..d70281fbc 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.html @@ -5,7 +5,7 @@
- + You must Include Raw Material Details.
@@ -40,7 +40,7 @@
- + {{ pm.name }} @@ -61,7 +61,7 @@
- + {{ feq.name }} @@ -75,7 +75,7 @@
- +
@@ -84,11 +84,11 @@
- -
+
+