|
|
|
@ -37,7 +37,6 @@ export class HomeComponent implements OnInit {
|
|
|
|
inputDate: string;
|
|
|
|
inputDate: string;
|
|
|
|
filteredNotificationList: any;
|
|
|
|
filteredNotificationList: any;
|
|
|
|
isReachEnd = false;
|
|
|
|
isReachEnd = false;
|
|
|
|
|
|
|
|
|
|
|
|
public isAll = true;
|
|
|
|
public isAll = true;
|
|
|
|
public isPR = false;
|
|
|
|
public isPR = false;
|
|
|
|
public isPO = false;
|
|
|
|
public isPO = false;
|
|
|
|
@ -47,11 +46,11 @@ export class HomeComponent implements OnInit {
|
|
|
|
public isITG = false;
|
|
|
|
public isITG = false;
|
|
|
|
public isSearch = false;
|
|
|
|
public isSearch = false;
|
|
|
|
public direction = 'ltr';
|
|
|
|
public direction = 'ltr';
|
|
|
|
public ITGCount: number = 0;
|
|
|
|
public ITGCount = 0;
|
|
|
|
public ITGSegment: {name: string, code: any, data: any, style: boolean} [] = [];
|
|
|
|
public ITGSegment: {name: string, code: any, data: any, style: boolean} [] = [];
|
|
|
|
public ITGAllItem: any = [];
|
|
|
|
public ITGAllItem: any = [];
|
|
|
|
public selectedITGToActive = false;
|
|
|
|
public selectedITGToActive = false;
|
|
|
|
public ITGItem: any =[]
|
|
|
|
public ITGItem: any = [];
|
|
|
|
public activeSegment: any;
|
|
|
|
public activeSegment: any;
|
|
|
|
|
|
|
|
|
|
|
|
public currentActiveIndex = 0;
|
|
|
|
public currentActiveIndex = 0;
|
|
|
|
@ -400,7 +399,12 @@ export class HomeComponent implements OnInit {
|
|
|
|
this.workListService.getITGCount()
|
|
|
|
this.workListService.getITGCount()
|
|
|
|
.subscribe((result: any) => {
|
|
|
|
.subscribe((result: any) => {
|
|
|
|
for (let i = 0; i < result.RequestType.length; i++) {
|
|
|
|
for (let i = 0; i < result.RequestType.length; i++) {
|
|
|
|
this.ITGSegment[i] = {name: result.RequestType[i].RequestTypeName, code: result.RequestType[i].RequestTypeCode, data:result.RequestType[i].RequestDetails, style: false};
|
|
|
|
this.ITGSegment[i] = {
|
|
|
|
|
|
|
|
name: result.RequestType[i].RequestTypeName,
|
|
|
|
|
|
|
|
code: result.RequestType[i].RequestTypeCode,
|
|
|
|
|
|
|
|
data: result.RequestType[i].RequestDetails,
|
|
|
|
|
|
|
|
style: false
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -431,6 +435,7 @@ export class HomeComponent implements OnInit {
|
|
|
|
this.ITGItem = [];
|
|
|
|
this.ITGItem = [];
|
|
|
|
let count = 0;
|
|
|
|
let count = 0;
|
|
|
|
this.activeSegment = selectedSegment;
|
|
|
|
this.activeSegment = selectedSegment;
|
|
|
|
|
|
|
|
// tslint:disable-next-line: prefer-for-of
|
|
|
|
for (let i = 0; i < this.ITGSegment.length; i++) {
|
|
|
|
for (let i = 0; i < this.ITGSegment.length; i++) {
|
|
|
|
if (this.ITGSegment[i].code === selectedSegment) {
|
|
|
|
if (this.ITGSegment[i].code === selectedSegment) {
|
|
|
|
this.ITGSegment[i].style = true;
|
|
|
|
this.ITGSegment[i].style = true;
|
|
|
|
|