diff --git a/Mohem/src/app/hmg-common/hmg-common.module.ts b/Mohem/src/app/hmg-common/hmg-common.module.ts index 173b2452..7c7b1abe 100644 --- a/Mohem/src/app/hmg-common/hmg-common.module.ts +++ b/Mohem/src/app/hmg-common/hmg-common.module.ts @@ -101,7 +101,7 @@ import { OpenNativeSettings } from '@ionic-native/open-native-settings/ngx'; import { AccordinCustomComponent } from './ui/accordin-custom/accordin-custom.component'; import { AccordinTabCustomComponent} from './ui/accordin-custom/accordin-tab-custom/accordin-tab-custom.component' import {DashboredService} from './services/dashbored/dashbored.service'; -import {NgxGaugeModule} from 'ngx-gauge'; +// import {NgxGaugeModule} from 'ngx-gauge'; import { StatsButtonComponent } from './ui/stats-button/stats-button.component'; import { ServicesButtonComponent } from './ui/services-button/services-button.component'; import {ConfirmLoginComponent} from '../authentication/confirm-login/confirm-login.component' @@ -125,7 +125,7 @@ import { CardFilterComponent} from './ui/card-filter/card-filter.component'; PdfViewerModule, NgCircleProgressModule.forRoot(), ChartModule, - NgxGaugeModule + // NgxGaugeModule ], declarations: [ FabButtonComponent, @@ -243,7 +243,7 @@ import { CardFilterComponent} from './ui/card-filter/card-filter.component'; FileUploderProfileComponent, AccordinTabCustomComponent, AccordinCustomComponent, - NgxGaugeModule, + // NgxGaugeModule, StatsButtonComponent, ServicesButtonComponent, ConfirmLoginComponent, diff --git a/Mohem/src/app/notification/home/home.component.ts b/Mohem/src/app/notification/home/home.component.ts index 75e2523c..0947abe6 100644 --- a/Mohem/src/app/notification/home/home.component.ts +++ b/Mohem/src/app/notification/home/home.component.ts @@ -37,7 +37,6 @@ export class HomeComponent implements OnInit { inputDate: string; filteredNotificationList: any; isReachEnd = false; - public isAll = true; public isPR = false; public isPO = false; @@ -47,11 +46,11 @@ export class HomeComponent implements OnInit { public isITG = false; public isSearch = false; public direction = 'ltr'; - public ITGCount: number = 0; - public ITGSegment:{name: string, code:any, data: any, style: boolean} [] =[]; + public ITGCount = 0; + public ITGSegment: {name: string, code: any, data: any, style: boolean} [] = []; public ITGAllItem: any = []; public selectedITGToActive = false; - public ITGItem: any =[] + public ITGItem: any = []; public activeSegment: any; public currentActiveIndex = 0; @@ -179,14 +178,14 @@ export class HomeComponent implements OnInit { } else if (notification.ITEM_TYPE === 'INVMOA') { this.filters[4].value = notification.OPEN_NTF_NUMBER; this.data.datasets[0].data[3] = notification.OPEN_NTF_NUMBER; - }else if (notification.ITEM_TYPE === 'ITG') { + } else if (notification.ITEM_TYPE === 'ITG') { this.filters[5].value = notification.OPEN_NTF_NUMBER; this.data.datasets[0].data[4] = notification.OPEN_NTF_NUMBER; } } } - + activeFilter(index: number) { if (this.currentActiveIndex !== index) { @@ -269,7 +268,7 @@ export class HomeComponent implements OnInit { this.WorkListObj.P_SEARCH_SUBJECT = this.selectedValue === '2' ? this.inputSearch : ''; this.WorkListObj.P_SEARCH_SENT_DATE = (this.inputDate && this.selectedValue === '3') ? moment(this.inputDate).format('DD-MMM-YYYY') : ''; - this.WorkListObj.P_SEARCH_ITEM_TYPE_DSP_NAME = this.selectedValue === '4' ? this.inputSearch : '';; + this.WorkListObj.P_SEARCH_ITEM_TYPE_DSP_NAME = this.selectedValue === '4' ? this.inputSearch : ''; ; this.WorkListObj.P_ITEM_TYPE = this.itemType !== '' ? this.itemType : ''; this.WorkListObj.P_NOTIFICATION_TYPE = this.notificationType !== '' ? this.notificationType : '1'; if (this.selectedValue === '5') { @@ -399,8 +398,13 @@ export class HomeComponent implements OnInit { Count() { this.workListService.getITGCount() .subscribe((result: any) => { - 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}; + 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 + }; } }); } @@ -427,26 +431,27 @@ export class HomeComponent implements OnInit { this.isSearch = !this.isSearch; } - setActive(selectedSegment){ - this.ITGItem =[]; - let count=0; + setActive(selectedSegment) { + this.ITGItem = []; + let count = 0; this.activeSegment = selectedSegment; - for(let i =0; i< this.ITGSegment.length; i++){ - if(this.ITGSegment[i].code === selectedSegment){ + // tslint:disable-next-line: prefer-for-of + for (let i = 0; i < this.ITGSegment.length; i++) { + if (this.ITGSegment[i].code === selectedSegment) { this.ITGSegment[i].style = true; this.ITGItem[count] = this.ITGSegment[i].data; count++; - }else{ + } else { this.ITGSegment[i].style = false; } } } - openITG(segmentInfo){ + openITG(segmentInfo) { this.common.sharedService.setSharedData(segmentInfo, HomeComponent.REQUSET_INFO); this.common.sharedService.setSharedData(this.activeSegment, HomeComponent.REQUSET_NAME); - this.common.sharedService.setSharedData(this.ITGItem,HomeComponent.ALL_REQUEST); + this.common.sharedService.setSharedData(this.ITGItem, HomeComponent.ALL_REQUEST); this.common.openWorklistITGPage(); } }