FIXED SFH

TEST-SFH-PENETRATION
umasoodch 3 years ago
parent 4f08b3e03f
commit 5d9983d295

@ -95,17 +95,17 @@ export class HomeComponent implements OnInit {
false false
); );
this.leaveAccrualBalance = this.common.sharedService.getSharedData('leaveAccrualBalance', false); this.leaveAccrualBalance = this.common.sharedService.getSharedData('leaveAccrualBalance', false);
console.log("this.leaveAccrualBalance>>>>>>>>>>" + this.leaveAccrualBalance.ACCRUAL_NET_ENTITLEMENT); // console.log("this.leaveAccrualBalance>>>>>>>>>>" + this.leaveAccrualBalance.ACCRUAL_NET_ENTITLEMENT);
/*** /***
ACCRUAL_NET_ENTITLEMENT: 24.59 ACCRUAL_NET_ENTITLEMENT: 24.59
ACCRUAL_USED_ENTITLEMENT: 0 ACCRUAL_USED_ENTITLEMENT: 0
ACCRUAL_YEARLY_ENTITLEMENT: 50.4*/ ACCRUAL_YEARLY_ENTITLEMENT: 50.4*/
this.accrualNet = this.leaveAccrualBalance.ACCRUAL_NET_ENTITLEMENT; // this.accrualNet = this.leaveAccrualBalance.ACCRUAL_NET_ENTITLEMENT;
this.accrualUsed = this.leaveAccrualBalance.ACCRUAL_USED_ENTITLEMENT; // this.accrualUsed = this.leaveAccrualBalance.ACCRUAL_USED_ENTITLEMENT;
this.accrualYearly = this.leaveAccrualBalance.ACCRUAL_YEARLY_ENTITLEMENT; // this.accrualYearly = this.leaveAccrualBalance.ACCRUAL_YEARLY_ENTITLEMENT;
this.totalnumber = this.accrualNet + this.accrualUsed + this.accrualYearly; // this.totalnumber = this.accrualNet + this.accrualUsed + this.accrualYearly;
this.totalnumber = this.totalnumber.toFixed(3); // this.totalnumber = this.totalnumber.toFixed(3);
this.request = this.common.sharedService.getSharedData('leaveAccrualBalanceDate', false); // this.request = this.common.sharedService.getSharedData('leaveAccrualBalanceDate', false);
console.log("this.request" + this.request.P_EFFECTIVE_DATE); console.log("this.request" + this.request.P_EFFECTIVE_DATE);
this.effectiveDate = this.request.P_EFFECTIVE_DATE; this.effectiveDate = this.request.P_EFFECTIVE_DATE;
this.data = { this.data = {
@ -249,11 +249,11 @@ export class HomeComponent implements OnInit {
P_EFFECTIVE_DATE: effectiveDate P_EFFECTIVE_DATE: effectiveDate
}; };
this.accrualService // this.accrualService
.getAccrualBalances(request) // .getAccrualBalances(request)
.subscribe((result: any) => { // .subscribe((result: any) => {
this.handleAccrualResult(result); // this.handleAccrualResult(result);
}); // });
} }
} }

@ -46,11 +46,11 @@ export class HomeComponent implements OnInit {
P_SELECTED_EMPLOYEE_NUMBER: this.emp_no, P_SELECTED_EMPLOYEE_NUMBER: this.emp_no,
P_EFFECTIVE_DATE: effectiveDate P_EFFECTIVE_DATE: effectiveDate
}; };
this.accrualService // this.accrualService
.getAccrualBalances(request) // .getAccrualBalances(request)
.subscribe((result: any) => { // .subscribe((result: any) => {
this.handleAccrualResult(result); // this.handleAccrualResult(result);
}); // });
} }
} }
handleAccrualResult(result) { handleAccrualResult(result) {

@ -128,11 +128,11 @@ export class EitListComponent implements OnInit {
P_SELECTED_EMPLOYEE_NUMBER: this.selEmp, P_SELECTED_EMPLOYEE_NUMBER: this.selEmp,
P_EFFECTIVE_DATE: effectiveDate P_EFFECTIVE_DATE: effectiveDate
}; };
this.accrualService // this.accrualService
.getAccrualBalances(request) // .getAccrualBalances(request)
.subscribe((result: any) => { // .subscribe((result: any) => {
this.handleAccrualResult(result); // this.handleAccrualResult(result);
}); // });
} }
} }
handleAccrualResult(result) { handleAccrualResult(result) {

@ -142,8 +142,8 @@ export class AuthenticationService {
} else { } else {
mobileType = 'android'; mobileType = 'android';
} }
request.VersionID = 3.2; request.VersionID = 3.8;
request.Channel = 43; request.Channel = 31;
request.LanguageID = TranslatorService.getCurrentLanguageCode(); request.LanguageID = TranslatorService.getCurrentLanguageCode();
request.MobileType = mobileType; request.MobileType = mobileType;

@ -27,8 +27,8 @@ export class ConnectorService {
public static retryTimes = 0; public static retryTimes = 0;
public static timeOut = 180 * 1000; public static timeOut = 180 * 1000;
public static host = 'http://10.10.150.249:1234/'; // public static host = 'http://10.10.150.249:1234/';
// public static host = 'https://uat.hmgwebservices.com/'; public static host = 'https://uat.hmgwebservices.com/';
// public static host = 'https://hmgwebservices.com/'; // public static host = 'https://hmgwebservices.com/';

@ -372,8 +372,8 @@ export class HomePage implements OnInit {
// this.showOpenMissingSwipes(); // this.showOpenMissingSwipes();
// this.showAttendanceTracking(); // this.showAttendanceTracking();
var accrualBalance = this.common.sharedService.getSharedData('leaveAccrualBalance', false); var accrualBalance = this.common.sharedService.getSharedData('leaveAccrualBalance', false);
if (!accrualBalance) // if (!accrualBalance)
this.getAccrualBalance(); // this.getAccrualBalance();
} }
public Vacation_Rule() { public Vacation_Rule() {
@ -788,7 +788,7 @@ export class HomePage implements OnInit {
this.openPage(this.missingSwipeRequestObject); this.openPage(this.missingSwipeRequestObject);
// tslint:disable-next-line: triple-equals // tslint:disable-next-line: triple-equals
} else if (link == '3') { } else if (link == '3') {
this.openPage(this.leaveRequestObject); // this.openPage(this.leaveRequestObject);
// tslint:disable-next-line: triple-equals // tslint:disable-next-line: triple-equals
} else if (link == '4') { } else if (link == '4') {
this.openPage(this.ticketRequestObject); this.openPage(this.ticketRequestObject);

Loading…
Cancel
Save