removed unnecessary code

myteam
umasoodch 6 years ago
parent a78477c192
commit 7ecc3e5048

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

Loading…
Cancel
Save