From 40fa393b313b6cbbafd087a302c4588fe8c80698 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Mon, 22 Apr 2019 20:33:42 +0530 Subject: [PATCH] Chnages : ps --- .../forms/address/address.component.ts | 2 +- .../business-banking-details.component.html | 3 +- .../business-info.component.html | 85 ++++++++++++++++--- .../business-info/business-info.component.ts | 25 +++--- .../client-info/client-info.component.html | 9 +- .../current-loan/current-loan.component.ts | 7 +- .../final-remarks.component.html | 25 +++++- .../final-remarks.component.scss | 4 +- .../final-remarks/final-remarks.component.ts | 37 +++++++- .../general-info/general-info.component.ts | 8 +- .../start-pd/forms/stock/stock.component.html | 15 ++-- .../supplier-info.component.html | 11 ++- .../list-pd/view-pd/view-pd.component.html | 9 +- .../list-pd/view-pd/view-pd.component.ts | 2 +- 14 files changed, 188 insertions(+), 54 deletions(-) diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts index 279e2c066..8896375dc 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts @@ -330,7 +330,7 @@ export class AddressComponent implements OnInit { if (AddressDetails != null) { return this.fb.group({ address: [AddressDetails.address, Validators.compose([Validators.required])], - address_type: [AddressDetails.address_type, Validators.compose([Validators.required])], + address_type: [AddressDetails.address_type || '', Validators.compose([Validators.required])], address_type_others: [AddressDetails.address_type_others], state: [AddressDetails.state], city: [AddressDetails.city], diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.html index ec84e292a..652af2261 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-banking-details/business-banking-details.component.html @@ -102,8 +102,9 @@
+ formControlName="vintage_year" OnlyNumber type="text" (change)="checkWithExistBusinessYear(itemrow,$event.target.value,i)" required> {{yearErrorMessage[i]}} + Year Required Others + Name Required + Name Required
-
- +
+ + @@ -72,10 +75,10 @@
-

No of Years in +

No of Years in Current Business

-
+
{{yearErrorMessage[i]}} + Year Required {{errorMessageForExistTotalWorkExperience[i]}} + Total Work Experience Required
+ Previous Work Experience Details Required
@@ -249,6 +255,7 @@ + Main Product Details Required Export Both + Area of Sale Required @@ -268,6 +276,7 @@ Yes No + Is PAN India Required
@@ -282,14 +291,15 @@ {{SL.state_name}} + Is PAN India Required {{CL.city_name}} - + City Required @@ -355,10 +365,12 @@ {{CL.country_name}} + Country Name Required + Approx % of Sale Required @@ -392,6 +404,7 @@ Yes No + Is PAN India Required
@@ -404,14 +417,15 @@ {{SL.state_name}} + State Required {{CL.city_name}} - + City Required
@@ -681,6 +705,7 @@ {{SL.state_name}} + State Required {{CL.city_name}} + City Required @@ -748,11 +774,13 @@ {{CL.country_name}} + Country Name Required + Approx % of Sale Required @@ -812,6 +840,7 @@ + Main Product Required Export Both + Area of Sale Required @@ -830,6 +860,7 @@ Yes No + Is PAN India Required
@@ -837,20 +868,21 @@ [formGroupName]="s"> - {{SL.state_name}} + State Required {{CL.city_name}} - + City Required @@ -913,11 +945,13 @@ {{CL.country_name}} + Country Name Required + Approx % of Sale Required
@@ -959,14 +994,15 @@ {{SL.state_name}} + State Required {{CL.city_name}} - + City Required @@ -1029,11 +1065,13 @@ {{CL.country_name}} + Country Name Required + Approx % of Sale Required @@ -1092,6 +1130,7 @@ + Services Provided Required Export Both + Area of Service Required @@ -1110,6 +1150,7 @@ Yes No + Is PAN India Required
@@ -1123,6 +1164,7 @@ {{SL.state_name}} + State Required {{CL.city_name}} + City Required
@@ -1237,6 +1283,7 @@ {{SL.state_name}} + Where, In India, Is The Service Provided Required {{CL.city_name}} + City Required
+ Comments Required + Was the Company name board sighted ? Required @@ -1563,6 +1620,7 @@ No Not Applicable + Shop and Est Act Cert Required No Not Applicable + GST Regn Cert Required No Not Applicable + Export / Import cert Required @@ -1586,6 +1646,7 @@ No Not Applicable + Factory Cert Required No Not Applicable + Cert of Practice Required @@ -1601,6 +1663,7 @@ No Not Applicable + PF Regn Required @@ -1608,6 +1671,7 @@ No Not Applicable + ESIC Regn Required @@ -1617,6 +1681,7 @@ No + Do You Want to Add Other Documents? Required
{ let filterList = data.records.filter(val => val.business_entity_type_id == this.generalExistEntityType); - console.log('data.records',data.records); - console.log('filterList',filterList); this.businessEntityTypeList.business_entity_type_id = filterList[0].business_entity_type_id == 1; this.businessEntityTypeList.business_entity_type_name = filterList[0].business_entity_type_id != 1 ? filterList[0].business_entity_type_name : this.generalExistEntityType_other; this.businessEntityTypeList.section_label = filterList[0].business_entity_type_id != 1 ? filterList[0].section_label : this.generalExistEntityType_other; @@ -1230,8 +1228,7 @@ export class BusinessInfoComponent implements OnInit { // if(this.businessForm.controls.partners['controls'].length > 1) // {} - // if (this.businessEntityTypeList.business_entity_type_name == 'OPC (One Person Company)' || this.businessEntityTypeList.business_entity_type_name == 'Sole proprietorship') { - if (this.businessEntityTypeList.business_entity_type_name == 'OPC (One Person Company)' || this.businessEntityTypeList.business_entity_type_name == 'Partnership' || this.businessEntityTypeList.business_entity_type_name == 'Others (Please Specify)') { + if (this.businessEntityTypeList.business_entity_type_name == 'OPC (One Person Company)' || this.businessEntityTypeList.business_entity_type_name == 'Sole proprietorship') { this.EntityTypeFlag = true; } // data.records.forEach(val => { @@ -1462,31 +1459,31 @@ export class BusinessInfoComponent implements OnInit { control2.controls['shareholding'].updateValueAndValidity(); control2.controls['shareholding'].setValue('100'); - + } // control.controls[0].removeControl('shareholding'); // control.controls[0].removeControl('started_business'); // control.controls[0].removeControl('current_business_experiance_year'); // control.controls[0].removeControl('current_business_experiance_month'); // control.controls[0].removeControl('total_business_experiance'); - control2.controls['started_business'].setValue(''); + // control2.controls['started_business'].setValue(''); - control2.controls['current_business_experiance_year'].clearValidators(); - control2.controls['current_business_experiance_year'].updateValueAndValidity(); - control2.controls['current_business_experiance_year'].setValue(''); + // control2.controls['current_business_experiance_year'].clearValidators(); + // control2.controls['current_business_experiance_year'].updateValueAndValidity(); + // control2.controls['current_business_experiance_year'].setValue(''); - control2.controls['current_business_experiance_month'].setValue(''); + // control2.controls['current_business_experiance_month'].setValue(''); - control2.controls['total_business_experiance'].clearValidators(); - control2.controls['total_business_experiance'].updateValueAndValidity(); - control2.controls['total_business_experiance'].setValue(''); + // control2.controls['total_business_experiance'].clearValidators(); + // control2.controls['total_business_experiance'].updateValueAndValidity(); + // control2.controls['total_business_experiance'].setValue(''); // if(control2.controls['total_business_previous_experience'].value !=undefined){ // control2.controls['total_business_previous_experience'].clearValidators(); // control2.controls['total_business_previous_experience'].updateValueAndValidity(); // control2.controls['total_business_previous_experience'].setValue('0'); // } - } + if (!this.businessForm.valid) { this.notifier.notify('warning', "Please Check All Manatory Fields.."); diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html index d38387f74..6ea14fe64 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html @@ -40,7 +40,8 @@ --> - + + Client Name Required
@@ -173,7 +174,8 @@ --> - + + Client Name Required
@@ -306,7 +308,8 @@ - + + Client Name Required
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.ts index 3cc45955b..471724fea 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.ts @@ -170,8 +170,7 @@ export class CurrentLoanComponent implements OnInit { } else { this._pd.getAssetsWithLoanFromBusiness(this.pdid).subscribe(data => { - - +console.log(data); if (data.dataStatus == true) { let AssetData = data.record; @@ -201,7 +200,7 @@ export class CurrentLoanComponent implements OnInit { }) }); } - +console.log('AssetData.other_assests.length',AssetData.other_assests.length,AssetData.other_assests); if (AssetData.other_assests.length > 0) { AssetData.other_assests.map(element => { this.dataFromAssets.push({ @@ -214,7 +213,7 @@ export class CurrentLoanComponent implements OnInit { }) }); } - +console.log('this.dataFromAssets',this.dataFromAssets); // id: "4", name: "Equipments and machinaries", isactive: "1", flag: "1", is_others: "0" // id: "7", name: "Investments", isactive: "1", flag: "0", is_others: "0" // id: "6", name: "Life Insurance Policy", isactive: "1", flag: "0", is_others: "0" 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 08d5b9165..56e0df967 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 @@ -15,10 +15,11 @@ - + Select {{pm.customer_behaviour_id == 1 ? 'Other Negative Behaviour': pm.description }} + Customer Behaviour Required @@ -35,8 +36,8 @@ Fairly Suited Not Suited + Service Provided Required - Service Provided Required
@@ -47,6 +48,7 @@ {{ list.pdofficer_recommendation }} + PD Officers Recommendation Required @@ -119,6 +121,25 @@
+
+ Was the PD Address Outside Geographic Limit (OGL)   + +
+ + + Select + Two Wheeler + Four Wheeler + Public Transport + Others + + Mode of Transport Used to Visit the PD address Required + + + + Specify the Mode of Transport Used to Visit the PD address Required + + Stock Required @@ -95,7 +96,7 @@ + formControlName="is_sufficiant_raw" required> Select {{val.isdisplayvalue}} @@ -105,6 +106,7 @@ + Is the stock of Raw Materials observed, sufficient considering the size of operations Required Please comment on the stock level observed? @@ -128,7 +130,7 @@ + (selectionChange)="checkComments($event.value,2,b);" required> Select Add Stock Details No Stock Observed @@ -205,7 +207,7 @@ + (selectionChange)="checkComments($event.value,3,e)" required> Select Add Stock Details No Stock Observed @@ -285,7 +287,7 @@ + (selectionChange)="checkComments($event.value,4,g)" required> Select Add Stock Details No stock observed @@ -350,7 +352,7 @@
+ formControlName="is_sufficiant_finished_and_traded_goods" required> Select {{val.isdisplayvalue}} @@ -360,6 +362,7 @@ Stock not required to be maintained --> + Is the stock of finished / traded goods observed, sufficient considering the size of operations Required Please comment on the stock level observed? 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 07e3b37ab..f7f0d13ed 100755 --- 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 @@ -31,7 +31,8 @@ - + + Supplier Name Required
@@ -67,7 +68,7 @@ - Enter Valid Mobile Number. + Enter Valid Mobile Number. - + + Supplier Name Required
@@ -204,7 +206,8 @@ - Enter Valid Mobile Number. + Enter Valid Mobile Number. + 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 cf43872c6..bb36c7e3f 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 @@ -192,14 +192,19 @@
+
-
+
{{addresses.addressline1}},
{{addresses.city_name}},
{{addresses.state_name}}-{{addresses.pincode_id == 1 ? addresses.other_pincode : addresses.pincode }}
-
+
+
+
+ people + {{addresses.addtional_pd_data[0].customer_segment_abbr}}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts index 625eb869d..bf132d14a 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts @@ -120,7 +120,7 @@ export class ViewPdComponent implements OnInit, OnDestroy { }); // console.log('data.records.pd_addressdata', data.records.pd_addressdata); this.pdMasterData[0].addresses = data.records.pd_address.filter(item => item.isactive == 1); - // console.log('this.pdMasterData[0].addresses', this.pdMasterData[0].addresses); + console.log('this.pdMasterData[0].addresses', this.pdMasterData[0].addresses); this.currentPDStatus = data.records.pd_master_details[0].pd_status; this.pdAdditionalReqData = data.records.pd_additional_requirements; // enable pd start time