diff --git a/Mohem/src/app/home/home.page.ts b/Mohem/src/app/home/home.page.ts index c56a3766..2ae0e2b3 100644 --- a/Mohem/src/app/home/home.page.ts +++ b/Mohem/src/app/home/home.page.ts @@ -513,12 +513,12 @@ showPerformanceAppraisal() { } convertInSeconds(time: any) { - const hours = parseInt(time[0], 10); - const minutes = parseInt(time[1], 10); - let seconds = parseInt(time[2], 10); - seconds = seconds + (hours * 60 * 60) + (minutes * 60); - return seconds; - } + const hours = parseInt(time[0], 10); + const minutes = parseInt(time[1], 10); + let seconds = parseInt(time[2], 10); + seconds = seconds + (hours * 60 * 60) + (minutes * 60); + return seconds; +} convertAndAssignTime(data) { console.log(data); @@ -548,7 +548,7 @@ openPeriodDateDashbored() { }); } -openNotificationsDashbored() { // work list +openNotificationsDashbored() { this.DS.getOpenNotifications(() => { console.log('Error '); }).subscribe((result: GetOpenNotificationsResponse) => { if (this.common.validResponse(result)) { const key = 'P_OPEN_NTF_NUMBER'; @@ -560,8 +560,8 @@ openNotificationsDashbored() { // work list getSubordinatesLeaves() { const request: GetSubordinatesLeavesRequest = new GetSubordinatesLeavesRequest(); - request.P_DATE_FROM = '/Date(1578603600000+0300)/'; // test - request.P_DATE_TO = '/Date(1576011600000+0300)/'; // test + request.P_DATE_FROM = '/Date(1578603600000+0300)/'; + request.P_DATE_TO = '/Date(1576011600000+0300)/'; this.DS.getSubordinatesLeaves(request, () => { console.log('Error '); }).subscribe((result: GetSubordinatesLeavesResponse) => { if (this.common.validResponse(result)) { console.log('response'); @@ -642,13 +642,6 @@ openStatsButton(link: string) { this.common.openPage(link); } - - - - - - - ////// calling time and date to load it in calendar/////// public getDayHoursTypeDetails() { const dayAndHoursReqObj = new GetDayAndHoursDetailsRequest(); this.monthName = moment().format('MMMM');