commited my profile code

MOHEMM-Q3-DEV-LATEST
umasoodch 5 years ago
parent 5e53ec783f
commit aa8d2e3d85

@ -235,7 +235,7 @@ export class AppComponent implements OnInit {
}
public profile() {
this.cs.openProfile();
this.cs.openProfile('sideMenu');
this.menu.toggle();
}

@ -31,6 +31,7 @@ export class HomeComponent implements OnInit {
ngOnInit() { }
openPage(page, index) {
console.log(page + "index" + index);
// Reset the content nav to have just this page
// we wouldn't want the back button to show in this scenario
if (page.children.length === 0) {
@ -56,6 +57,10 @@ export class HomeComponent implements OnInit {
this.cs.openAbsencePage();
} else if (menuEntry.REQUEST_TYPE === 'EIT') {
this.cs.openEitListPage();
} else if (menuEntry.REQUEST_TYPE === 'BASIC_DETAILS') {
this.cs.openProfile('basicDetails');
} else if (menuEntry.REQUEST_TYPE === 'ADDRESS') {
this.cs.openProfile('address');
}
if (menuEntry.REQUEST_TYPE === 'PAYSLIP') {
this.cs.openPayslipPage();

@ -7,7 +7,7 @@ import {
Platform,
MenuController
} from '@ionic/angular';
import { Router } from '@angular/router';
import { Router, NavigationExtras } from '@angular/router';
import { TranslatorService } from '../translator/translator.service';
import { AlertControllerService } from '../../ui/alert/alert-controller.service';
//import { Response } from "../models/response";
@ -1099,9 +1099,20 @@ export class CommonService {
public openChangePassword() {
this.nav.navigateForward(['/authentication/changepassowrd']);
}
public openProfile() {
this.nav.navigateForward(['/profile/home']);
// public openProfile() {
// this.nav.navigateForward(['/profile/home']);
// }
public openProfile(target: any) {
const navigationExtras: NavigationExtras = {
queryParams: {
targetValue: target
}
};
this.nav.navigateForward(['/profile/home'], navigationExtras);
}
public openEditProfile() {
this.nav.navigateForward(['/profile/editprofile']);
}

@ -569,7 +569,7 @@ export class HomePage implements OnInit {
}
openPersonalInfo() {
this.common.openProfile();
this.common.openProfile('sideMenu');
}
// Dashboard Services

@ -309,7 +309,7 @@ export class HomeComponent implements OnInit {
}
openProfilePage() {
this.common.openProfile();
this.common.openProfile('sideMenu');
}
disableFilters() {

@ -0,0 +1,42 @@
<!-- <ion-header>
<ion-toolbar class="header-toolbar-new">
<ion-buttons *ngIf="getPassdirfromNotifiPage != true" slot="start">
<nav-buttons backLink=""></nav-buttons>
</ion-buttons>
<ion-title color="light">{{headerTitle}}</ion-title>
<ion-buttons *ngIf="getPassdirfromNotifiPage == true" slot="primary">
<ion-button style="background: none !important;" (click)="closemodal()">
<ion-icon slot="icon-only" name="close"></ion-icon>
</ion-button>
</ion-buttons>
</ion-toolbar>
</ion-header>
-->
<app-generic-header
showBack="!getPassdirfromNotifiPage"
[updateDirection]="getPassdirfromNotifiPage"
[headerText]="headerTitle"
(trigger)="closeModal()"
>
</app-generic-header>
<!-- <app-generic-header
showBack="true"
[headerText]="headerTitle">
</app-generic-header> -->
<ion-content padding>
<div #containerDiv id="containerDiv">
</div>
</ion-content>
<ion-footer>
<div class="centerDiv">
<ion-button class="addEitOkButton" color="customnavy" ion-button (click)="validateEITTransaction()">
{{'vacation-rule, next-label' | translate}}</ion-button>
</div>
</ion-footer>

@ -0,0 +1,40 @@
.footer-button {
border-radius: 2px;
padding: 0 1.1em;
min-height: 45px;
min-width: 200px;
}
ion-label {
color: var(--customnavy) !important;
}
.daynamicForm-Label {
font-size: 16px;
color: #a2a5a6 !important;
display: block;
overflow: hidden;
-webkit-flex: 1;
flex: 1;
font-size: inherit;
white-space: normal;
padding: 5px 0px;
margin: 10px auto;
padding-left: 10px;
}
.header-toolbar-new{
--background: #269DB8;
}
.addEitOkButton{
white-space: normal !important;
text-transform: capitalize !important;
min-height: 45px !important;
min-width: 5px !important;
margin: 8px !important;
background-color: #269DB8;
width: 80% !important;
color: white!important;
border-radius: 16px !important;
}

@ -0,0 +1,27 @@
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { AddBasicDetailsComponent } from './add-basic-details.component';
describe('AddBasicDetailsComponent', () => {
let component: AddBasicDetailsComponent;
let fixture: ComponentFixture<AddBasicDetailsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ AddBasicDetailsComponent ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(AddBasicDetailsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

@ -0,0 +1,27 @@
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ConfirmBasicDetailsComponent } from './confirm-basic-details.component';
describe('ConfirmBasicDetailsComponent', () => {
let component: ConfirmBasicDetailsComponent;
let fixture: ComponentFixture<ConfirmBasicDetailsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ConfirmBasicDetailsComponent ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ConfirmBasicDetailsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

@ -0,0 +1,14 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-confirm-basic-details',
templateUrl: './confirm-basic-details.component.html',
styleUrls: ['./confirm-basic-details.component.scss'],
})
export class ConfirmBasicDetailsComponent implements OnInit {
constructor() { }
ngOnInit() {}
}

@ -1,7 +1,7 @@
<app-generic-header showBack="true" [headerText]="'userProfile,title' | translate">
</app-generic-header>
<ion-content class="colorBG">
<ion-content class="colorBG" *ngIf="personalInfo">
<div class="header-background-style-card">
</div>
<div [ngClass]="direction == 'ltr' ? 'result-graph' : 'result-graph-ar'" style="margin-top: -50px;">
@ -9,7 +9,7 @@
<div class="user-image-container">
<div class="user-image">
<img [ngClass]="direction == 'ltr'? 'img':'img-ar' "
[src]="personalInfo?.EMPLOYEE_IMAGE ? 'data:image/png;base64,'+personalInfo.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'"
[src]="personalInfo.EMPLOYEE_IMAGE ? 'data:image/png;base64,'+personalInfo.EMPLOYEE_IMAGE : '../assets/imgs/profile.png'"
alt="Team Member Image" />
</div>
<div [ngClass]=" direction == 'ltr' ? 'changeImgBtn' : 'changeImgBtn-ar'">
@ -19,18 +19,18 @@
</div>
</div>
<div style="margin-top: 18px;">
<h1>{{User_name_Emp}}</h1>
<span>{{personalInfo?.EMPLOYEE_EMAIL_ADDRESS}}</span>
<h1>{{personalInfo.EMPLOYEE_NAME}}</h1>
<span>{{personalInfo.EMPLOYEE_EMAIL_ADDRESS}}</span>
</div>
<div>
<ion-row>
<ion-col style="border-right: 1px solid rgb(221 221 221);">
<p style="font-size: 12px; color: rgb(128, 124, 124);">{{ts.trPK('userProfile','role')}}</p>
<span class="Boldtext">{{personalInfo?.JOB_NAME}}</span>
<span class="Boldtext">{{personalInfo.JOB_NAME}}</span>
</ion-col>
<ion-col>
<p style="font-size: 12px; color: rgb(128, 124, 124);">{{ts.trPK('userProfile','empNo')}}</p>
<span class="Boldtext">{{personalInfo?.EMPLOYEE_NUMBER}}</span>
<span class="Boldtext">{{personalInfo.EMPLOYEE_NUMBER}}</span>
</ion-col>
</ion-row>
</div>
@ -60,7 +60,7 @@
</ion-col>
</ion-row>
</div>
<ion-grid *ngIf="personalInfo" [ngClass]="direction === 'ltr'? 'grid-card':'grid-card-ar' ">
<ion-grid [ngClass]="direction === 'ltr'? 'grid-card':'grid-card-ar' ">
<div [ngClass]=" direction == 'ltr' ? 'gridService-en' : 'gridService-ar'"
style="background: #002948; border-radius: 0px 0px 10px 10px;">
<ion-row>
@ -121,33 +121,33 @@
<ion-label>
<h3 class="type-label-text-form">{{ts.trPK('userProfile','category')}}</h3>
</ion-label>
<h3 class="result-label-text-form">part-time</h3>
<h3 class="result-label-text-form">{{personalInfo.EMPLOYMENT_CATEGORY_MEANING}}</h3>
<br>
<ion-label>
<!-- <ion-label>
<h3 class="type-label-text-form">{{ts.trPK('userProfile','address')}}</h3>
</ion-label>
<h3 class="result-label-text-form">DR.Sulaiman Alhabib Medical Group</h3>
<br>
<br> -->
<ion-label>
<h3 class="type-label-text-form">{{ts.trPK('userProfile','phone-no')}}</h3>
</ion-label>
<h3 class="result-label-text-form">0567845661</h3>
<h3 class="result-label-text-form">{{personalInfo.EMPLOYEE_MOBILE_NUMBER}}</h3>
<br>
<ion-label>
<h3 class="type-label-text-form">{{ts.trPK('userProfile','busG')}}</h3>
</ion-label>
<h3 class="result-label-text-form">CORP Cloud Solutions</h3>
<h3 class="result-label-text-form">{{personalInfo.BUSINESS_GROUP_NAME}}</h3>
<br>
<ion-label>
<h3 class="type-label-text-form">{{ts.trPK('userProfile','payrol')}}</h3>
</ion-label>
<h3 class="result-label-text-form">Cloud Solutions Payroll</h3>
<h3 class="result-label-text-form">{{personalInfo.PAYROLL_NAME}}</h3>
<br>
</ion-card-content>
</ion-card>
<ion-card *ngIf="basicDetailsSegment" [ngClass]="direction === 'ltr'? 'card-size-info-en': 'card-size-info-ar' ">
<ion-card-content *ngIf="!editBasic">
<ion-card-content *ngIf="!editBasic && (fullName && maritalStatus && birthDate && civilIdentityNumber)">
<ion-grid>
<ion-row>
<ion-col size="10">
@ -166,22 +166,22 @@
<ion-label>
<h3 class="type-label-text-form">{{ts.trPK('general','full-name')}}</h3>
</ion-label>
<h3 class="result-label-text-form">ENAD HILAL NASSER MOHAMMED</h3>
<h3 class="result-label-text-form">{{fullName}}</h3>
<br>
<ion-label>
<h3 class="type-label-text-form">{{ts.trPK('general','marital-status')}}</h3>
</ion-label>
<h3 class="result-label-text-form">Married</h3>
<h3 class="result-label-text-form">{{maritalStatus}}</h3>
<br>
<ion-label>
<h3 class="type-label-text-form">{{ts.trPK('general','birth_date')}}</h3>
</ion-label>
<h3 class="result-label-text-form">01-FEB-1991</h3>
<h3 class="result-label-text-form">{{birthDate}}</h3>
<br>
<ion-label>
<h3 class="type-label-text-form">{{ts.trPK('general','civil-identity-number')}}</h3>
</ion-label>
<h3 class="result-label-text-form">2093486013</h3>
<h3 class="result-label-text-form">{{civilIdentityNumber}}</h3>
<br>
</ion-card-content>
@ -503,112 +503,6 @@
</ion-card-content>
</ion-card>
<!-- <div class="header-div">
<div>
<div class="centerDiv homeBox">
<img class="profileImg" [src]="user_image">
</div>
<div *ngIf="personalInfo">
<p class="empName">{{User_name_Emp}}</p>
<p class="empJob"> {{User_Job_name}}</p>
</div>
</div>
</div>
<ion-grid *ngIf="personalInfo" style="position: relative; display: block; z-index: 5;">
<div [ngClass]=" direction == 'ltr' ? 'gridService-en' : 'gridService-ar'" style="background: #0B4775; border-radius: 20px;">
<ion-row>
<ion-col>
<label style="font-size: 12px; color: white; margin: 10px 0px 0px 0px; display: block; text-align: center;font-weight: bold;">
{{ 'general, appreciate-service' | translate}}
</label>
</ion-col>
</ion-row>
<ion-row [ngClass]=" direction == 'ltr' ? 'service-row-en' : 'service-row-ar'">
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
<ion-grid>
<ion-row style="text-align:center">
<ion-col>
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_YEARS}}</label>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('userProfile','years')}}</label>
</ion-col>
</ion-row>
</ion-grid>
</ion-col>
<ion-col>
<div class="verticalLine"></div>
</ion-col>
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
<ion-grid>
<ion-row style="text-align:center">
<ion-col>
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_MONTHS}}</label>
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('userProfile','months')}}</label>
</ion-col>
</ion-row>
</ion-grid>
</ion-col>
<ion-col>
<div class="verticalLine"></div>
</ion-col>
<ion-col [ngClass]=" direction == 'ltr' ? 'columns' : 'columns-ar'">
<ion-grid>
<ion-row style="text-align:center">
<ion-col>
<label [ngClass]=" direction == 'ltr' ? 'service' : 'service-ar'">{{personalInfo.SERVICE_DAYS}}</label>
</ion-col>
<ion-col>
<label [ngClass]=" direction == 'ltr' ? 'services' : 'services-ar'">{{ts.trPK('absenceList','days')}}</label>
</ion-col>
</ion-row>
</ion-grid>
</ion-col>
</ion-row>
</div>
</ion-grid>
<div class="list">
<ion-list class="list-ios">
<div class="p">
<p>{{ts.trPK('userProfile','Years of Services')}}</p>
</div>
<ion-item class="itemline" (click)="openEditprofile()">
<ion-thumbnail slot="start" class="menu-thumb">
<img style= "height: 22px !important;" src="../assets/imgs/profile_icon.png" item-left>
</ion-thumbnail>
<ion-label class="profile">
{{ts.trPK('userProfile','edit-profile')}}
</ion-label>
<ion-icon [ngClass]=" direction == 'ltr' ? 'arrow' : 'arrow-ar'" name="arrow-forward" item-right></ion-icon>
</ion-item>
<ion-item class="itemlins" (click)="openPerormance()">
<ion-thumbnail slot="start" class="menu-thumb">
<ion-icon style= "width: 23px; height: 24px !important;" name="speedometer" item-left></ion-icon>
</ion-thumbnail>
<ion-label class="profile">
{{ts.trPK('userProfile','performance-evaluation')}}
</ion-label>
<ion-icon [ngClass]=" direction == 'ltr' ? 'arrow' : 'arrow-ar'" name="arrow-forward" item-right></ion-icon>
</ion-item>
</ion-list>
</div> -->
<ion-footer *ngIf="editBasic||editAddress">
<ion-grid>
<ion-row>

@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { Platform, Events, MenuController, ModalController } from '@ionic/angular';
import { Events, MenuController, ModalController } from '@ionic/angular';
import { CommonService } from 'src/app/hmg-common/services/common/common.service';
import { TranslatorService } from 'src/app/hmg-common/services/translator/translator.service';
import { AuthenticationService } from 'src/app/hmg-common/services/authentication/authentication.service';
@ -9,6 +9,9 @@ import { DashboredService } from 'src/app/hmg-common/services/dashbored/dashbore
import { SharedDataService } from 'src/app/hmg-common/services/shared-data-service/shared-data.service';
import { DomSanitizer } from '@angular/platform-browser';
import { EditDetailProfileComponent } from '../modal/edit-detail-profile/edit-detail-profile.component';
import { ProfileService } from '../service/profile.service'
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
@ -16,25 +19,24 @@ import { EditDetailProfileComponent } from '../modal/edit-detail-profile/edit-de
})
export class HomeComponent implements OnInit {
User_name_Emp: string = '';
User_Job_name: string;
public direction: string;
private menu: MenuController;
setImage: any;
// imageSrc: any = "../assets/imgs/profile.png";
user_image: any = '../assets/imgs/profile.png';
personalInfo: any;
appraisalArr: any = [];
public setImage: any;
public user_image: any = '../assets/imgs/profile.png';
public personalInfo: any;
public appraisalArr: any = [];
public performanceData: any = [];
public static PERFORMANCE_DATA = 'perAppData';
public personalInfoSegment = true;
public personalInfoSegment = false;
public basicDetailsSegment = false;
public addressSegment = false;
public editBasic = false;
public editAddress = false;
public targetValue: any;
public employeeBasicDetails: any = [];
public fullName: string;
public maritalStatus: string;
public birthDate: any;
public civilIdentityNumber: any;
constructor(
public ts: TranslatorService,
@ -44,34 +46,66 @@ export class HomeComponent implements OnInit {
public sharedData: SharedDataService,
public events: Events,
private sanitizer: DomSanitizer,
public modalController: ModalController
// private events: Events,
// private sanitizer: DomSanitizer,
public modalController: ModalController,
public profileService: ProfileService,
public router: ActivatedRoute
) {
this.direction = TranslatorService.getCurrentDirection();
this.events.subscribe('img-change', displayImg => {
console.log('app compont: ' + displayImg);
this.user_image = this.sanitizer.bypassSecurityTrustUrl('data:Image/*;base64,' + displayImg);
});
this.router.queryParams.subscribe(params => {
this.targetValue = params.targetValue;
if (this.targetValue === 'sideMenu') {
this.personalInfoSegment = true;
} else if(this.targetValue === 'basicDetails') {
this.basicDetailsSegment = true;
} else if(this.targetValue === 'address') {
this.addressSegment = true;
} else {
this.personalInfoSegment = true;
}
});
}
ngOnInit() {
this.getProfile();
}
getProfile() {
public getBasicDetails() {
const body = {
P_SELECTED_EMPLOYEE_NUMBER: this.personalInfo.EMPLOYEE_NUMBER,
P_MENU_TYPE: "E",
P_SELECTED_RESP_ID: -999
};
this.profileService.getEmployeeBasicDetails(body).subscribe((result: any) => {
if (this.cs.validResponse(result)) {
this.employeeBasicDetails = result.GetEmployeeBasicDetailsList;
console.log(this.employeeBasicDetails);
for( let i = 0; i < this.employeeBasicDetails.length; i++ ){
if (this.employeeBasicDetails[i].APPLICATION_COLUMN_NAME === 'FULL_NAME') {
this.fullName = this.employeeBasicDetails[i].SEGMENT_VALUE_DSP;
} else if (this.employeeBasicDetails[i].APPLICATION_COLUMN_NAME === 'MARITAL_STATUS') {
this.maritalStatus = this.employeeBasicDetails[i].SEGMENT_VALUE_DSP;
} else if (this.employeeBasicDetails[i].APPLICATION_COLUMN_NAME === 'DATE_OF_BIRTH') {
this.birthDate = this.employeeBasicDetails[i].SEGMENT_VALUE_DSP;
} else if (this.employeeBasicDetails[i].APPLICATION_COLUMN_NAME === 'NATIONAL_IDENTIFIER') {
this.civilIdentityNumber = this.employeeBasicDetails[i].SEGMENT_VALUE_DSP;
}
}
}
});
}
public getProfile() {
console.log('getProfile');
this.authService
.loadAuthenticatedUser()
.subscribe((user: AuthenticatedUser) => {
if (user) {
console.log(user);
this.personalInfo = user;
this.User_name_Emp = this.personalInfo.EMPLOYEE_NAME;
this.User_Job_name = this.personalInfo.JOB_NAME;
if (this.cs.getUpdateImage().status) {
this.user_image = this.sanitizer.bypassSecurityTrustUrl('data:image/png;base64,' + this.cs.getUpdateImage().img);
} else {
@ -79,33 +113,24 @@ export class HomeComponent implements OnInit {
? 'data:image/png;base64,' + user.EMPLOYEE_IMAGE
: '../assets/imgs/profile.png';
}
console.log(user);
console.log(this.personalInfo);
console.log('name: ' + this.personalInfo.EMPLOYEE_NAME);
console.log('user name: ' + user.EMPLOYEE_NAME);
console.log('name: ' + this.personalInfo.JOB_NAME);
console.log('job name: ' + user.JOB_NAME);
this.getBasicDetails();
}
});
}
openEditprofile() {
this.cs.openProfile();
public openEditprofile() {
this.cs.openProfile('sideMenu');
}
openPerormance() {
public openPerormance() {
this.showPerformanceAppraisal();
}
showPerformanceAppraisal() {
public showPerformanceAppraisal() {
this.DS.getPerformanceAppraisal(() => {
this.showPerformanceAppraisal();
}).subscribe((result: PerformanceAppraisalResponse) => {
this.handlePerformanceAppraisalResult(result);
});
}
@ -114,24 +139,21 @@ export class HomeComponent implements OnInit {
if (this.cs.hasData(result.GetPerformanceAppraisalList)) {
this.appraisalArr = result.GetPerformanceAppraisalList;
this.performanceData = [];
for (let i = 0; i < this.appraisalArr.length; i++) {
this.performanceData.push({ name: this.appraisalArr[i].APPRAISAL_YEAR, value: parseInt(this.appraisalArr[i].APPRAISAL_SCORE).toFixed() });
}
console.log('PerformanceAppraisalResponse');
this.sharedData.setSharedData(this.performanceData, PerformanceAppraisalResponse.PERFORMANCE_DATA);
//localStorage.setItem("performanceData", this.performanceData)
this.cs.openPerformanceevaluation();
} else {
let msg: string = this.ts.trPK("userProfile", "no-appraisal");
this.cs.presentAlert(msg);
}
}
}
selectedSegment(segmentData) {
switch (segmentData) {
public selectedSegment(segmentData){
switch (segmentData){
case "personal":
this.personalInfoSegment = true;
this.basicDetailsSegment = false;
@ -156,8 +178,8 @@ export class HomeComponent implements OnInit {
}
}
allowEdit(allowVal) {
switch (allowVal) {
public allowEdit(allowVal){
switch(allowVal){
case 1:
this.editBasic = true;
break;
@ -167,8 +189,8 @@ export class HomeComponent implements OnInit {
}
}
disableEdit(disableVal) {
switch (disableVal) {
public disableEdit(disableVal){
switch(disableVal){
case 1:
this.editBasic = false;
break;
@ -176,10 +198,8 @@ export class HomeComponent implements OnInit {
this.editAddress = false;
break;
}
}
async presentModal() {
const modal = await this.modalController.create({
component: EditDetailProfileComponent,

@ -0,0 +1,18 @@
export class EITNotificationBodyItems {
public TRANSACTION_NUMBER :number;
public DESC_FLEX_NAME : string;
public ACTION : string;
public EXTRA_INFO_ID :number;
public DESC_FLEX_CONTEXT_COD : string;
public APPLICATION_COLUMN_NAME : string;
public SEGMENT_SEQ_NUM :number;
public DATATYPE : string;
public SEGMENT_NAME : string;
public VARCHAR2_VALUE : string;
public SEGMENT_PROMPT : string;
public NUMBER_VALUE :number;
public SEGMENT_VALUE_DSP : string;
public DATE_VALUE : string ;
public PREV_SEGMENT_VALUE_DSP : string;
public DISPLAY_FLAG : string ;
}

@ -0,0 +1,8 @@
import { EITNotificationBodyItems } from './EITNotificationBodyItems';
import { Response } from '../../hmg-common/services/models/response';
export class EITNotificatonBodyResponse extends Response {
public static SHARED_DATA = 'Notif_BODY_List';
public static NOT_WORKLIST = 'Notif_WORK_LOST';
public EITNotificationBodyItems: EITNotificationBodyItems [];
}

@ -0,0 +1,13 @@
import { Request } from '../../hmg-common/services/models/request';
export class EITTransactionsRequest extends Request{
public static SUBMIT_EIT_ACTION='submit-eit-action';
public static SHARED_DATA='submit_eit_obj';
public P_PAGE_NUM : Number;
public P_PAGE_LIMIT : Number;
public P_MENU_TYPE:String;
public P_SELECTED_EMPLOYEE_NUMBER:String;
public P_FUNCTION_NAME:String;
public P_SELECTED_RESP_ID : Number;
}

@ -0,0 +1,6 @@
import { Request } from '../../hmg-common/services/models/request';
export class WorkListButtonRequest extends Request{
//public static SHARED_DATA = '';
public P_NOTIFICATION_ID :any;
}

@ -0,0 +1,21 @@
import { Response } from '../../hmg-common/services/models/response';
export class NotificationGetAttachResponse extends Response {
public static SHARED_DATA = '';
public SEQ_NUM = 0;// Int
public FILE_NAME = '';//String
public FILE_DATA = '';//base64
public PK1_VALUE = '';//String
public PK2_VALUE = '';//String
public PK3_VALUE = '';//String
public PK4_VALUE = '';//String
public FILE_CONTENT_TYPE = '';//String
public ATTACHED_DOCUMENT_ID = 0;//Int
public DOCUMENT_ID = 0;//Int
public CATEGORY_ID = 0;//Int
public DATATYPE_ID = 0;//Int
public ENTITY_NAME = '';//String
public FILE_ID = 0;//Int
public PK5_VALUE = '';//String
}

@ -0,0 +1,8 @@
import { Response } from '../../hmg-common/services/models/response';
import { EitRespModel } from './eit.response.model'
export class AddEitResponse extends Response {
public static SHARED_DATA = 'add-eit-response';
SubmitEITTransactionList: EitRespModel;
}

@ -0,0 +1,11 @@
import { EitTransactionModel } from './eit.transaction.model';
export class EitRequest {
public static SHARED_DATA = 'eit-request';
public P_MENU_TYPE: string;
public P_SELECTED_EMPLOYEE_NUMBER: string;
public P_FUNCTION_NAME: string;
public P_SELECTED_RESP_ID: Number;
P_DESC_FLEX_CONTEXT_CODE: string;
EITTransactionTBL: EitTransactionModel[];
}

@ -0,0 +1,6 @@
export class EitRespModel {
P_ITEM_KEY: string;
P_RETURN_MSG:string;
P_RETURN_STATUS:string;
P_TRANSACTION_ID:number;
}

@ -0,0 +1,7 @@
export class EitTransactionModel {
TRANSACTION_NUMBER: number;
NUMBER_VALUE: number;
NAME: string;
DATE_VALUE: string;
VARCHAR2_VALUE: string;
}

@ -0,0 +1,6 @@
// tslint:disable-next-line:class-name
export enum EIT_ACTION {
ADD = 1,
DELETE = 2,
UPDATE=3
}

@ -7,6 +7,8 @@ import { AuthenticationService } from "src/app/hmg-common/services/authenticatio
})
export class ProfileService {
public static updateEmpImage ="Services/ERP.svc/REST/UPDATE_EMPLOYEE_IMAGE";
public static getEmployeeBasicDetails ="Services/ERP.svc/REST/GET_EMPLOYEE_BASIC_DETAILS";
constructor(
public api: ConnectorService,
public authService: AuthenticationService
@ -23,4 +25,10 @@ export class ProfileService {
errorLabel
);
}
public getEmployeeBasicDetails(basicEmployeeDetailsRequest: any, onError?: any, errorLabel?: string): Observable<any> {
const request = basicEmployeeDetailsRequest;
this.authService.authenticateRequest(request);
return this.api.post(ProfileService.getEmployeeBasicDetails, request, onError, errorLabel);
}
}
Loading…
Cancel
Save