|
|
|
@ -77,7 +77,7 @@ export class AddAddressComponent implements OnInit {
|
|
|
|
selectedCountryName: any;
|
|
|
|
selectedCountryName: any;
|
|
|
|
public effectiveDate: any;
|
|
|
|
public effectiveDate: any;
|
|
|
|
public submitAbsObjList: any = [];
|
|
|
|
public submitAbsObjList: any = [];
|
|
|
|
|
|
|
|
public selectedStatus: any = {};
|
|
|
|
public isUpdate: boolean;
|
|
|
|
public isUpdate: boolean;
|
|
|
|
constructor(
|
|
|
|
constructor(
|
|
|
|
public modalController: ModalController,
|
|
|
|
public modalController: ModalController,
|
|
|
|
@ -141,12 +141,15 @@ export class AddAddressComponent implements OnInit {
|
|
|
|
ngAfterViewInit() {
|
|
|
|
ngAfterViewInit() {
|
|
|
|
console.log("ngAfterViewInit");
|
|
|
|
console.log("ngAfterViewInit");
|
|
|
|
// console.log(this.containerDiv.nativeElement);
|
|
|
|
// console.log(this.containerDiv.nativeElement);
|
|
|
|
|
|
|
|
this.selectedStatus = this.cs.sharedService.getSharedData(ProfileService.SELECTED_STATUS);
|
|
|
|
var addressEntries = this.cs.sharedService.getSharedData(ProfileService.ADRESS_ENTRIES);
|
|
|
|
var addressEntries = this.cs.sharedService.getSharedData(ProfileService.ADRESS_ENTRIES);
|
|
|
|
if (addressEntries && addressEntries.UPDATE_BUTTON === 'Y') {
|
|
|
|
if (addressEntries && addressEntries.UPDATE_BUTTON === 'Y') {
|
|
|
|
this.isUpdate = true;
|
|
|
|
this.isUpdate = true;
|
|
|
|
let countryDetail = this.cs.sharedService.getSharedData(ProfileService.COUNTRY);
|
|
|
|
let countryDetail = this.cs.sharedService.getSharedData(ProfileService.COUNTRY);
|
|
|
|
this.selectedCountryName = countryDetail.name;
|
|
|
|
this.selectedCountryName = countryDetail.name;
|
|
|
|
this.country = countryDetail.code;
|
|
|
|
this.country = countryDetail.code;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.isUpdate = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getEitDffStructure();
|
|
|
|
this.getEitDffStructure();
|
|
|
|
// this.addFieldToDOM(this.buttonInput, 'btnSubmit', this.cs.presentAlert('Clicked!'), true)
|
|
|
|
// this.addFieldToDOM(this.buttonInput, 'btnSubmit', this.cs.presentAlert('Clicked!'), true)
|
|
|
|
@ -1606,7 +1609,7 @@ export class AddAddressComponent implements OnInit {
|
|
|
|
EITTransactionTBL: this.arrValues,
|
|
|
|
EITTransactionTBL: this.arrValues,
|
|
|
|
P_COUNTRY_CODE: this.country,
|
|
|
|
P_COUNTRY_CODE: this.country,
|
|
|
|
P_EFFECTIVE_DATE: moment(this.effectiveDate).format('DD-MMM-YYYY'),
|
|
|
|
P_EFFECTIVE_DATE: moment(this.effectiveDate).format('DD-MMM-YYYY'),
|
|
|
|
P_ACTION: 'NEW'
|
|
|
|
P_ACTION: this.selectedStatus.data == '1' ? 'CHANGE' : this.selectedStatus.data == '2' ? 'CORRECT' : 'NEW'
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
this.profileService
|
|
|
|
this.profileService
|
|
|
|
|