|
|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import { Component, OnInit,ViewChild } from "@angular/core";
|
|
|
|
|
import { Location } from "@angular/common";
|
|
|
|
|
import { TranslatorService } from "src/app/hmg-common/services/translator/translator.service";
|
|
|
|
|
import { CommonService } from "src/app/hmg-common/services/common/common.service";
|
|
|
|
|
import { AuthenticationService } from "src/app/hmg-common/services/authentication/authentication.service";
|
|
|
|
|
@ -32,7 +33,8 @@ export class DetailsComponent implements OnInit {
|
|
|
|
|
public common: CommonService,
|
|
|
|
|
public myTeamService: MyTeamService,
|
|
|
|
|
public ts: TranslatorService,
|
|
|
|
|
public modalController: ModalController
|
|
|
|
|
public modalController: ModalController,
|
|
|
|
|
private location: Location
|
|
|
|
|
) {
|
|
|
|
|
console.log("Constuctor called");
|
|
|
|
|
}
|
|
|
|
|
@ -55,6 +57,9 @@ export class DetailsComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
if (this.employee) this.getEmpSubordinate();
|
|
|
|
|
}
|
|
|
|
|
goback() {
|
|
|
|
|
this.location.back();
|
|
|
|
|
}
|
|
|
|
|
getEmpSubordinate() {
|
|
|
|
|
this.modalFlag = this.employee.isModal;
|
|
|
|
|
let selEmpNo: string = null;
|
|
|
|
|
@ -230,6 +235,10 @@ export class DetailsComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
sortMenuEntires(list) {
|
|
|
|
|
let tree = this.common.list_to_tree(list);
|
|
|
|
|
this.common.sharedService.setSharedData(tree, "menuEntries");
|
|
|
|
|
// this.common.navigateForward("/eit/homepage");
|
|
|
|
|
this.common.openEITPage();
|
|
|
|
|
// let tree = this.common.list_to_tree(list);
|
|
|
|
|
// this.navCtrl.push("MenuEntriesPage", { menuEntries: tree });
|
|
|
|
|
}
|
|
|
|
|
|