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.
72 lines
2.0 KiB
TypeScript
72 lines
2.0 KiB
TypeScript
|
5 years ago
|
import { Component, OnInit } from '@angular/core';
|
||
|
|
import { Platform, Events, MenuController } 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';
|
||
|
|
import { AuthenticatedUser } from 'src/app/hmg-common/services/authentication/models/authenticated-user';
|
||
|
|
import { SharedDataService } from 'src/app/hmg-common/services/shared-data-service/shared-data.service';
|
||
|
5 years ago
|
import { MowadhafiService } from '../mowadhafi.service';
|
||
|
5 years ago
|
import { Location } from '@angular/common';
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: 'app-my-request',
|
||
|
|
templateUrl: './my-request.component.html',
|
||
|
|
styleUrls: ['./my-request.component.scss'],
|
||
|
|
})
|
||
|
|
export class MyRequestComponent implements OnInit {
|
||
|
|
public direction : String;
|
||
|
|
|
||
|
|
|
||
|
|
constructor(
|
||
|
|
public ts: TranslatorService,
|
||
|
|
public cs: CommonService,
|
||
|
|
public authService: AuthenticationService,
|
||
|
|
public sharedData: SharedDataService,
|
||
|
|
public events: Events,
|
||
|
5 years ago
|
public MowadhafiService: MowadhafiService,
|
||
|
5 years ago
|
private location: Location,
|
||
|
|
private menu: MenuController,
|
||
|
|
|
||
|
|
) {
|
||
|
|
this.direction = TranslatorService.getCurrentLanguageName();
|
||
|
|
}
|
||
|
|
|
||
|
5 years ago
|
ngOnInit() {
|
||
|
|
this.getTicketsByEmployee();
|
||
|
|
}
|
||
|
5 years ago
|
|
||
|
|
goback() {
|
||
|
|
this.location.back();
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
public openHRRequestPage() {
|
||
|
|
this.cs.openHRRequestPage();
|
||
|
|
this.menu.toggle();
|
||
|
|
}
|
||
|
|
|
||
|
5 years ago
|
public openRequestDetailsPage() {
|
||
|
|
this.cs.openRequestDetailsPage();
|
||
|
|
this.menu.toggle();
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
getTicketsByEmployee(){
|
||
|
|
const request = {
|
||
|
|
// TokenID:"xxx",
|
||
|
|
// EmployeeNumber:"191817",
|
||
|
|
ItgPageSize:10,
|
||
|
|
ItgPageNo:1
|
||
|
|
|
||
|
|
};
|
||
|
|
this.MowadhafiService.getTicketsByEmployee(request, ()=> {} , this.ts.trPK('general', 'retry')).subscribe((result)=>
|
||
|
|
{
|
||
|
|
this.handlegetTicketsByEmployeeResult(result);
|
||
|
|
|
||
|
|
}) }
|
||
|
|
handlegetTicketsByEmployeeResult(result){
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
5 years ago
|
}
|