|
|
|
|
@ -14,6 +14,7 @@ import { SelectInput } from 'src/app/uI-elements/select.input';
|
|
|
|
|
import { TextInput } from 'src/app/uI-elements/text.input';
|
|
|
|
|
import { TimeInput } from 'src/app/uI-elements/time.input';
|
|
|
|
|
import { ReportServiceService } from '../report-service.service';
|
|
|
|
|
import { AuthenticatedUser } from "src/app/hmg-common/services/authentication/models/authenticated-user";
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-concurrent-report',
|
|
|
|
|
@ -42,6 +43,8 @@ export class ConcurrentReportComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
selMenu: MenuResponse;
|
|
|
|
|
public functionName;
|
|
|
|
|
public userData: any;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public headerTitle;
|
|
|
|
|
getPassdirfromNotifiPage: boolean = false;
|
|
|
|
|
@ -54,6 +57,7 @@ export class ConcurrentReportComponent implements OnInit {
|
|
|
|
|
constructor(public cs: CommonService, private elementRef: ElementRef, public reports: ReportServiceService, public ts: TranslatorService, public eitService: EitService) { }
|
|
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
|
this.userData =this.cs.sharedService.getSharedData(AuthenticatedUser.SHARED_DATA,false);
|
|
|
|
|
this.getPassdirfromNotifiPage = this.cs.sharedService.getSharedData('dirfromNotificationPage');
|
|
|
|
|
this.selectedMenu = this.cs.sharedService.getSharedData(MenuResponse.SELECTED_MENU, false);
|
|
|
|
|
this.getConcurrentProgram();
|
|
|
|
|
@ -65,7 +69,8 @@ export class ConcurrentReportComponent implements OnInit {
|
|
|
|
|
getConcurrentProgram() {
|
|
|
|
|
this.cs.startLoading();
|
|
|
|
|
this.reports.getConcurrentProgram({
|
|
|
|
|
P_REQUEST_GROUP_ID: this.selectedMenu.REQUEST_GROUP_ID
|
|
|
|
|
P_REQUEST_GROUP_ID: this.selectedMenu.REQUEST_GROUP_ID,
|
|
|
|
|
P_SELECTED_EMPLOYEE_NUMBER: this.userData.EMPLOYEE_NUMBER
|
|
|
|
|
}, () => { }, this.ts.trPK('general', 'retry')).subscribe((response) => {
|
|
|
|
|
this.cs.stopLoading();
|
|
|
|
|
this.programList = response.GetConcurrentProgramsList;
|
|
|
|
|
@ -75,7 +80,8 @@ export class ConcurrentReportComponent implements OnInit {
|
|
|
|
|
getCppDiffStructure(programList) {
|
|
|
|
|
this.cs.startLoading();
|
|
|
|
|
this.reports.getCPPDiffStructure({
|
|
|
|
|
P_DESC_FLEX_NAME: programList.CONCURRENT_PROGRAM_NAME
|
|
|
|
|
P_DESC_FLEX_NAME: programList.CONCURRENT_PROGRAM_NAME,
|
|
|
|
|
P_SELECTED_EMPLOYEE_NUMBER: this.userData.EMPLOYEE_NUMBER
|
|
|
|
|
}, () => { }, this.ts.trPK('general', 'retry')).subscribe((response) => {
|
|
|
|
|
this.cs.stopLoading();
|
|
|
|
|
this.handleDiffStructure(response);
|
|
|
|
|
@ -923,7 +929,7 @@ export class ConcurrentReportComponent implements OnInit {
|
|
|
|
|
this.eitRequest = new EitRequest();
|
|
|
|
|
const list: any = this.getElementsValues();
|
|
|
|
|
this.eitRequest.EITTransactionTBL = list;
|
|
|
|
|
this.eitRequest.P_SELECTED_EMPLOYEE_NUMBER = this.selEmp;
|
|
|
|
|
this.eitRequest.P_SELECTED_EMPLOYEE_NUMBER = this.userData.EMPLOYEE_NUMBER;
|
|
|
|
|
this.eitRequest.P_MENU_TYPE = this.selectedMenu.MENU_TYPE;
|
|
|
|
|
this.eitRequest.P_SELECTED_RESP_ID = -999;// this.selectedMenu.RESP_ID; // this.selMenu.List_Menu.RESP_ID,//-999,
|
|
|
|
|
this.eitRequest.P_FUNCTION_NAME = this.functionName;
|
|
|
|
|
@ -956,6 +962,8 @@ export class ConcurrentReportComponent implements OnInit {
|
|
|
|
|
request.P_SELECTED_RESP_ID = -999;
|
|
|
|
|
request.P_FUNCTION_NAME = this.functionName;
|
|
|
|
|
request.P_DESC_FLEX_NAME = this.template.CONCURRENT_PROGRAM_NAME;
|
|
|
|
|
request.P_SELECTED_EMPLOYEE_NUMBER = this.userData.EMPLOYEE_NUMBER;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.reports.getTransaction(this.eitRequest, {}, this.ts.trPK('general', 'retry')).subscribe((result: any) => {
|
|
|
|
|
this.cs.stopLoading();
|
|
|
|
|
|