|
|
|
|
@ -44,6 +44,7 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
public menuEntries: any;
|
|
|
|
|
public basicDetailsSubMenu: any;
|
|
|
|
|
public addressSubMenu: any;
|
|
|
|
|
public phoneSubMenu: any;
|
|
|
|
|
public dependentDetails: any;
|
|
|
|
|
public transactionNo = 0;
|
|
|
|
|
public address: any;
|
|
|
|
|
@ -85,17 +86,18 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
this.addressSegment = false;
|
|
|
|
|
this.familyMemberSegment = false;
|
|
|
|
|
this.contactSegment = false;
|
|
|
|
|
this.familyMemberSegment = false;
|
|
|
|
|
} else if (this.targetValue === 'basicDetails') {
|
|
|
|
|
this.personalInfoSegment = false;
|
|
|
|
|
this.basicDetailsSegment = true;
|
|
|
|
|
this.addressSegment = false;
|
|
|
|
|
this.familyMemberSegment = false;
|
|
|
|
|
this.contactSegment = false;
|
|
|
|
|
} else if (this.targetValue === 'family') {
|
|
|
|
|
this.personalInfoSegment = false;
|
|
|
|
|
this.basicDetailsSegment = false;
|
|
|
|
|
this.addressSegment = false;
|
|
|
|
|
this.familyMemberSegment = true;
|
|
|
|
|
this.contactSegment = false;
|
|
|
|
|
} else if (this.targetValue == 'contact') {
|
|
|
|
|
|
|
|
|
|
this.personalInfoSegment = false;
|
|
|
|
|
@ -129,41 +131,27 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
let personalInformationChildren: any;
|
|
|
|
|
let personalInfoNestedChildren: any;
|
|
|
|
|
|
|
|
|
|
console.log(this.menuEntries);
|
|
|
|
|
|
|
|
|
|
//if (this.targetValue === 'sideMenu') {
|
|
|
|
|
for (let i = 0; i < this.menuEntries.length; i++) {
|
|
|
|
|
if (this.menuEntries[i].MENU_NAME === 'MBL_E_PROFESSIONALS_01') {
|
|
|
|
|
if (this.menuEntries[i].MENU_NAME === 'MBL_EMP_PROFILE') {
|
|
|
|
|
personalInformationChildren = this.menuEntries[i].children;
|
|
|
|
|
for (let j = 0; j < personalInformationChildren.length; j++) {
|
|
|
|
|
if (personalInformationChildren[j].MENU_NAME = 'MBL_PERINFO_SS' && personalInformationChildren[j].ENTRY_SEQUENCE === 15) {
|
|
|
|
|
personalInfoNestedChildren = personalInformationChildren[j].children;
|
|
|
|
|
for (let k = 0; k < personalInfoNestedChildren.length; k++) {
|
|
|
|
|
if (personalInfoNestedChildren[k].REQUEST_TYPE === 'BASIC_DETAILS') {
|
|
|
|
|
this.basicDetailsSubMenu = personalInfoNestedChildren[k];
|
|
|
|
|
if (personalInformationChildren[j].REQUEST_TYPE === 'BASIC_DETAILS') {
|
|
|
|
|
this.basicDetailsSubMenu = personalInformationChildren[j];
|
|
|
|
|
}
|
|
|
|
|
if (personalInfoNestedChildren[k].REQUEST_TYPE === 'ADDRESS') {
|
|
|
|
|
this.addressSubMenu = personalInfoNestedChildren[k];
|
|
|
|
|
if (personalInformationChildren[j].REQUEST_TYPE === 'ADDRESS') {
|
|
|
|
|
this.addressSubMenu = personalInformationChildren[j];
|
|
|
|
|
}
|
|
|
|
|
if (personalInfoNestedChildren[k].REQUEST_TYPE === 'CONTACT') {
|
|
|
|
|
this.dependentDetails = personalInfoNestedChildren[k];
|
|
|
|
|
if (personalInformationChildren[j].REQUEST_TYPE === 'CONTACT') {
|
|
|
|
|
this.dependentDetails = personalInformationChildren[j];
|
|
|
|
|
}
|
|
|
|
|
if (personalInformationChildren[j].REQUEST_TYPE === 'PHONE_NUMBERS') {
|
|
|
|
|
this.phoneSubMenu = personalInformationChildren[j];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
//} else {
|
|
|
|
|
// const menuEntriesLocalArray: any = this.menuEntries.children;
|
|
|
|
|
// for (let i = 0; i < menuEntriesLocalArray.length; i++) {
|
|
|
|
|
// if (menuEntriesLocalArray[i].REQUEST_TYPE === 'BASIC_DETAILS') {
|
|
|
|
|
// this.basicDetailsSubMenu = menuEntriesLocalArray[i];
|
|
|
|
|
// }
|
|
|
|
|
// if (menuEntriesLocalArray[i].REQUEST_TYPE === 'ADDRESS') {
|
|
|
|
|
// this.addressSubMenu = menuEntriesLocalArray[i];
|
|
|
|
|
// }
|
|
|
|
|
// if (menuEntriesLocalArray[i].REQUEST_TYPE === 'CONTACT') {
|
|
|
|
|
// this.dependentDetails = menuEntriesLocalArray[i];
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
console.log(this.basicDetailsSubMenu);
|
|
|
|
|
console.log(this.addressSubMenu);
|
|
|
|
|
@ -400,6 +388,7 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
getPhoneNumbers() {
|
|
|
|
|
this.cs.startLoading();
|
|
|
|
|
this.profileService.getPhoneNumbers({
|
|
|
|
|
P_SELECTED_EMPLOYEE_NUMBER: this.personalInfo.EMPLOYEE_NUMBER,
|
|
|
|
|
P_MENU_TYPE: "E",
|
|
|
|
|
P_SELECTED_RESP_ID: -999
|
|
|
|
|
}, () => { }, this.ts.trPK('general', 'retry')).subscribe((response) => {
|
|
|
|
|
@ -415,6 +404,7 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
getContactInfo() {
|
|
|
|
|
this.profileService.getContactInfo({
|
|
|
|
|
P_SELECTED_EMPLOYEE_NUMBER: this.personalInfo.EMPLOYEE_NUMBER,
|
|
|
|
|
P_MENU_TYPE: "E",
|
|
|
|
|
P_SELECTED_RESP_ID: -999
|
|
|
|
|
}, () => { }, this.ts.trPK('general', 'retry')).subscribe((response) => {
|
|
|
|
|
|