You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mohemm_srca/Mohem/src/app/eit/cei-homepage/cei-homepage.component.ts

44 lines
1.3 KiB
TypeScript

import { Component, OnInit } from '@angular/core';
import { CommonService } from 'src/app/hmg-common/services/common/common.service';
import { TranslatorService } from 'src/app/hmg-common/services/translator/translator.service';
import { EitService } from '../services/eit.service';
@Component({
selector: 'app-cei-homepage',
templateUrl: './cei-homepage.component.html',
styleUrls: ['./cei-homepage.component.scss'],
})
export class CeiHomepageComponent implements OnInit {
public familyMemberData;
public SelectedServiceType;
public direction: string;
myColor: string = 'secondary';
constructor(
private eitService: EitService,
public ts: TranslatorService,
public cs: CommonService
) {
this.eitService.getContactInfo({
P_MENU_TYPE: 'E',
P_SELECTED_RESP_ID: -999
}, () => { }, this.ts.trPK('general', 'retry')).subscribe((response) => {
if (this.cs.validResponse(response)) {
this.familyMemberData = response['GetEmployeeContactsList'];
this.SelectedServiceType = this.familyMemberData[0];
console.log(this.familyMemberData);
}
});
}
ngOnInit() {
this.direction = TranslatorService.getCurrentDirection();
}
selectedUser(user){
this.SelectedServiceType = user;
}
}