-
-
Additional Unit #{{i+1}}
+
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 aedb2ec08..4c6af9b66 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
@@ -134,19 +134,19 @@ export class AddressComponent implements OnInit {
let selectedAddressType = this.addressData.filter(element =>element.address_type_id == data.records.address_type);
this.selectedAddressType(selectedAddressType);
- if(data.records.address_type == 12) {
+ if(data.records.address_type == 1) {
this.addressForm.controls.address_type_others.setValue(data.records.address_type_others);
this.selectedAddressType(data.records.address_type_others);
}
this.addressForm.controls.comment_locality.setValue(data.records.comment_locality);
- if(data.records.comment_locality == 10){
+ if(data.records.comment_locality == 1){
this.addressForm.controls.other_comment_locality.setValue(data.records.other_comment_locality);
}
// this.addressForm.controls.customer_behaviour.setValue(data.records.customer_behaviour);
this.addressForm.controls.locality.setValue(data.records.locality);
- if(data.records.locality == 7 ){
+ if(data.records.locality == 1 ){
this.addressForm.controls.locality_others.setValue(data.records.locality_others);
}
this.addressForm.controls.address_form_remark.setValue(data.records.address_form_remark);
@@ -349,20 +349,21 @@ export class AddressComponent implements OnInit {
this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!');
return;
}
- if(this.address.value.other_premises_bussiness_activity != ''){
- if(this.address.value.bussiness_activity_remark != ''){
+ // console.log(this.addressForm.controls.bussiness_activity_remark.value);
+ // console.log(this.address.value.bussiness_activity_remark);
+ if(this.address.value.bussiness_activity_remark == ''){
this.notifier.notify('warning', 'Fill Remark!');
return;
- }}
+ }
let records: any = {};
records.address = this.address.value;
records.address_type = this.addressType.value;
- if (this.addressType.value == 12) {
+ if (this.addressType.value == 1) {
records.address_type_others = this.addressForm.controls.address_type_others.value;
}
records.locality = this.locality.value;
- if (this.locality.value == 7) {
+ if (this.locality.value == 1) {
records.locality_others = this.addressForm.controls.locality_others.value;
}
records.pd_location = this.pdLocation.value;
@@ -394,7 +395,9 @@ export class AddressComponent implements OnInit {
this._pd.saveForm(records).subscribe(data => {
if(data.status == 200) {
this.notifier.notify('success', 'Saved Successfully.');
- this.dialogRef.close();
+ setTimeout(() =>{
+ this.dialogRef.close();
+ },3000);
}
else {
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts
index 633287a26..93a016b6c 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts
@@ -536,6 +536,7 @@ export class GeneralInfoComponent implements OnInit {
if (this._generalForm.invalid) {
// console.log('if',this._generalForm.value);
this.validateAllFormFields(this._generalForm);
+ this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!');
return;
}
// else if(formData.applicant_relation.length==0){
@@ -556,7 +557,7 @@ export class GeneralInfoComponent implements OnInit {
this._pd.savePDFormDetailsWithID(saveRecords).subscribe(
dataresult => {
if (dataresult.status == 200) {
- this.notifier.notify('success', 'General Information Updated.!');
+ this.notifier.notify('success', 'Saved Successfully.');
setTimeout(() =>{
this.dialogRef.close();
},3000);
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/lender-representative/lender-representative.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/lender-representative/lender-representative.component.html
index e1e868f49..bc1bc7bb3 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/lender-representative/lender-representative.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/lender-representative/lender-representative.component.html
@@ -164,4 +164,5 @@
-
\ No newline at end of file
+
+