|
|
|
@ -86,6 +86,7 @@ export class HomeComponent implements OnInit {
|
|
|
|
this.basicDetailsSegment = false;
|
|
|
|
this.basicDetailsSegment = false;
|
|
|
|
this.addressSegment = false;
|
|
|
|
this.addressSegment = false;
|
|
|
|
this.familyMemberSegment = false;
|
|
|
|
this.familyMemberSegment = false;
|
|
|
|
|
|
|
|
this.contactSegment = false;
|
|
|
|
} else if (this.targetValue === 'basicDetails') {
|
|
|
|
} else if (this.targetValue === 'basicDetails') {
|
|
|
|
this.personalInfoSegment = false;
|
|
|
|
this.personalInfoSegment = false;
|
|
|
|
this.basicDetailsSegment = true;
|
|
|
|
this.basicDetailsSegment = true;
|
|
|
|
@ -95,6 +96,7 @@ export class HomeComponent implements OnInit {
|
|
|
|
this.personalInfoSegment = false;
|
|
|
|
this.personalInfoSegment = false;
|
|
|
|
this.basicDetailsSegment = false;
|
|
|
|
this.basicDetailsSegment = false;
|
|
|
|
this.addressSegment = true;
|
|
|
|
this.addressSegment = true;
|
|
|
|
|
|
|
|
this.contactSegment = true;
|
|
|
|
this.familyMemberSegment = false;
|
|
|
|
this.familyMemberSegment = false;
|
|
|
|
} else if (this.targetValue === 'fmaily') {
|
|
|
|
} else if (this.targetValue === 'fmaily') {
|
|
|
|
this.personalInfoSegment = false;
|
|
|
|
this.personalInfoSegment = false;
|
|
|
|
@ -105,6 +107,7 @@ export class HomeComponent implements OnInit {
|
|
|
|
this.personalInfoSegment = true;
|
|
|
|
this.personalInfoSegment = true;
|
|
|
|
this.basicDetailsSegment = false;
|
|
|
|
this.basicDetailsSegment = false;
|
|
|
|
this.addressSegment = false;
|
|
|
|
this.addressSegment = false;
|
|
|
|
|
|
|
|
this.contactSegment = false;
|
|
|
|
this.familyMemberSegment = false;
|
|
|
|
this.familyMemberSegment = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -172,8 +175,8 @@ export class HomeComponent implements OnInit {
|
|
|
|
if (user) {
|
|
|
|
if (user) {
|
|
|
|
console.log(user);
|
|
|
|
console.log(user);
|
|
|
|
this.personalInfo = user;
|
|
|
|
this.personalInfo = user;
|
|
|
|
this.getPhoneNumbers();
|
|
|
|
// this.getPhoneNumbers();
|
|
|
|
this.getContactInfo();
|
|
|
|
// this.getContactInfo();
|
|
|
|
let jobTitle = user.POSITION_NAME.split('.');
|
|
|
|
let jobTitle = user.POSITION_NAME.split('.');
|
|
|
|
if (jobTitle && jobTitle.length > 1) {
|
|
|
|
if (jobTitle && jobTitle.length > 1) {
|
|
|
|
this.jobName = jobTitle[0] + " " + jobTitle[1];
|
|
|
|
this.jobName = jobTitle[0] + " " + jobTitle[1];
|
|
|
|
@ -321,7 +324,7 @@ export class HomeComponent implements OnInit {
|
|
|
|
case "contact":
|
|
|
|
case "contact":
|
|
|
|
this.personalInfoSegment = false;
|
|
|
|
this.personalInfoSegment = false;
|
|
|
|
this.basicDetailsSegment = false;
|
|
|
|
this.basicDetailsSegment = false;
|
|
|
|
this.addressSegment = false;
|
|
|
|
this.addressSegment = true;
|
|
|
|
this.editBasic = false;
|
|
|
|
this.editBasic = false;
|
|
|
|
this.editAddress = false;
|
|
|
|
this.editAddress = false;
|
|
|
|
this.familyMemberSegment = false;
|
|
|
|
this.familyMemberSegment = false;
|
|
|
|
@ -343,13 +346,15 @@ export class HomeComponent implements OnInit {
|
|
|
|
this.cs.sharedService.setSharedData({ dirfromNotificationPage: false, submitEITObjList: undefined, transNo: this.transactionNo }, 'AddEITData');
|
|
|
|
this.cs.sharedService.setSharedData({ dirfromNotificationPage: false, submitEITObjList: undefined, transNo: this.transactionNo }, 'AddEITData');
|
|
|
|
this.openAddBasicDetails();
|
|
|
|
this.openAddBasicDetails();
|
|
|
|
} else if (allowVal == 'contact') {
|
|
|
|
} else if (allowVal == 'contact') {
|
|
|
|
|
|
|
|
// this.openAddAddress();
|
|
|
|
this.openContact()
|
|
|
|
this.openContact()
|
|
|
|
} else if ('add-update-contact') {
|
|
|
|
}
|
|
|
|
this.transactionNo++;
|
|
|
|
// else if ('add-update-contact') {
|
|
|
|
this.cs.sharedService.setSharedData({ dirfromNotificationPage: false, submitEITObjList: undefined, transNo: this.transactionNo }, 'AddEITData');
|
|
|
|
// this.transactionNo++;
|
|
|
|
this.cs.openAddUpdateContact();
|
|
|
|
// this.cs.sharedService.setSharedData({ dirfromNotificationPage: false, submitEITObjList: undefined, transNo: this.transactionNo }, 'AddEITData');
|
|
|
|
} else {
|
|
|
|
// this.cs.openAddUpdateContact();
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
else {
|
|
|
|
this.openAddAddress();
|
|
|
|
this.openAddAddress();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|