accrual balances page added

production
Sultan Khan 7 years ago
commit 40679c2509

@ -8,9 +8,9 @@ const routes: Routes = [
data: { preload: true, delay: 1000 } data: { preload: true, delay: 1000 }
}, },
{ path: 'home', loadChildren: './home/home.module#HomePageModule' }, { path: 'home', loadChildren: './home/home.module#HomePageModule' },
{ path: 'sms-page', loadChildren: './authentication/sms-page/sms-page.module#SmsPagePageModule' },
{ path: 'profile', loadChildren: './profile/profile.module#ProfilePageModule' }, { path: 'profile', loadChildren: './profile/profile.module#ProfilePageModule' },
{ path: 'vacation-rule', loadChildren: './vacation-rule/vacation-rule.module#VacationRulePageModule' }, { path: 'accrual-balances', loadChildren: './accrual-balances/accrual-balances.module#AccrualBalancesPageModule' } { path: 'vacation-rule', loadChildren: './vacation-rule/vacation-rule.module#VacationRulePageModule' },
{ path: 'accrual-balances', loadChildren: './accrual-balances/accrual-balances.module#AccrualBalancesPageModule' }

@ -17,8 +17,9 @@ import { SearchableOptionsModule } from '../hmg-common/ui/searchable-select/sear
import { MobileNumberModule } from 'src/app/hmg-common/ui/mobile-number/mobile-number.module'; import { MobileNumberModule } from 'src/app/hmg-common/ui/mobile-number/mobile-number.module';
import { SmsdialogPageModule } from 'src/app/hmg-common/ui/smsdialog/smsdialog.module'; import { SmsdialogPageModule } from 'src/app/hmg-common/ui/smsdialog/smsdialog.module';
import { SmsPageModule } from 'src/app/hmg-common/ui/sms/sms.module'; import { SmsPageModule } from 'src/app/hmg-common/ui/sms/sms.module';
import { SmsPagePage } from './sms-page/sms-page.page'; import { SmsPageComponent } from './sms-page/sms-page.page';
import { CheckUserComponent } from './check-user/check-user.component'; import { CheckUserComponent } from './check-user/check-user.component';
import { ChangePasswordComponent } from './change-password/change-password.component';
@ -41,11 +42,15 @@ const routes: Routes = [
}, },
{ {
path: 'smspage', path: 'smspage',
component: SmsPagePage component: SmsPageComponent
}, },
{ {
path: 'checkuser', path: 'checkuser',
component: CheckUserComponent component: CheckUserComponent
},
{
path: 'changepassowrd',
component: ChangePasswordComponent
} }
] ]
} }
@ -70,8 +75,9 @@ const routes: Routes = [
LoginComponent, LoginComponent,
ForgotComponent, ForgotComponent,
AgreementComponent, AgreementComponent,
SmsPagePage, SmsPageComponent,
CheckUserComponent CheckUserComponent,
ChangePasswordComponent
], ],
providers:[ providers:[
FingerprintAIO, FingerprintAIO,

@ -0,0 +1,27 @@
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ChangePasswordComponent } from './change-password.component';
describe('ChangePasswordComponent', () => {
let component: ChangePasswordComponent;
let fixture: ComponentFixture<ChangePasswordComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ChangePasswordComponent ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ChangePasswordComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

@ -0,0 +1,14 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-change-password',
templateUrl: './change-password.component.html',
styleUrls: ['./change-password.component.scss'],
})
export class ChangePasswordComponent implements OnInit {
constructor() { }
ngOnInit() {}
}

@ -12,6 +12,7 @@ import { SplashScreen } from "@ionic-native/splash-screen/ngx";
import { SharedDataService } from "src/app/hmg-common/services/shared-data-service/shared-data.service"; import { SharedDataService } from "src/app/hmg-common/services/shared-data-service/shared-data.service";
import { LoginModel } from "../models/LoginModel"; import { LoginModel } from "../models/LoginModel";
import { LoginRequest } from "src/app/hmg-common/services/authentication/models/login.request"; import { LoginRequest } from "src/app/hmg-common/services/authentication/models/login.request";
import { Password } from '../models/password';
@Component({ @Component({
selector: "login", selector: "login",
@ -94,6 +95,11 @@ export class LoginComponent implements OnInit, OnDestroy {
this.loginData.P_USER_NAME=this.username; this.loginData.P_USER_NAME=this.username;
this.sharedData.setSharedData(this.loginData, AuthenticationService.LOGIN_DATA); this.sharedData.setSharedData(this.loginData, AuthenticationService.LOGIN_DATA);
this.cs.stopLoading(); this.cs.stopLoading();
if(result.MessageStatus === 2)
{
this.sharedData.setSharedData(true,Password.IS_EXPIRED_PSW);
}
this.cs.openSMSPage(); this.cs.openSMSPage();
} }
}); });

@ -3,6 +3,7 @@ import { Request } from 'src/app/hmg-common/services/models/request';
export class Password extends Request { export class Password extends Request {
public static IS_FORGET_PSW:string="is_forget_password"; public static IS_FORGET_PSW:string="is_forget_password";
public static IS_EXPIRED_PSW:string="is_expired_password";
public IS_FORGET_PWD:boolean; public IS_FORGET_PWD:boolean;
public P_NEW_PASSWORD: string; public P_NEW_PASSWORD: string;
public P_OLD_PASSWORD:string; public P_OLD_PASSWORD:string;

@ -1,26 +0,0 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { SmsPagePage } from './sms-page.page';
const routes: Routes = [
{
path: '',
component: SmsPagePage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [SmsPagePage]
})
export class SmsPagePageModule {}

@ -15,7 +15,7 @@ import { Password } from "../models/password";
templateUrl: "./sms-page.page.html", templateUrl: "./sms-page.page.html",
styleUrls: ["./sms-page.page.scss"] styleUrls: ["./sms-page.page.scss"]
}) })
export class SmsPagePage implements OnInit { export class SmsPageComponent implements OnInit {
public static LOGIN_DATA = "LOGIN_DATA"; public static LOGIN_DATA = "LOGIN_DATA";
Channel: number = 0; Channel: number = 0;
activationCode: string; activationCode: string;
@ -48,6 +48,8 @@ export class SmsPagePage implements OnInit {
this.startTimer(); this.startTimer();
this.isForgetPwd = this.isForgetPwd =
this.sharedData.getSharedData(Password.IS_FORGET_PSW) || false; this.sharedData.getSharedData(Password.IS_FORGET_PSW) || false;
this.isExpiredPwd =
this.sharedData.getSharedData(Password.IS_EXPIRED_PSW) || false;
} }
initTimer() { initTimer() {

Loading…
Cancel
Save