-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
+ -->
+
+
-
+
+
+
+ Time Left Today
+
+
+
+
diff --git a/Mohem/src/app/home/home.page.scss b/Mohem/src/app/home/home.page.scss
index 280c4b4a..8143cf6e 100644
--- a/Mohem/src/app/home/home.page.scss
+++ b/Mohem/src/app/home/home.page.scss
@@ -1,153 +1,145 @@
-.button-menutoggle.button-menutoggle-md,button-menutoggle.button-menutoggle-ios,
-.bar-buttons.bar-buttons-ios.button.button-ios.button-default.button-default-ios.button-menutoggle.button-menutoggle-ios{
- box-shadow: none;
- -webkit-box-shadow:none;
- -moz-box-shadow: none;
- background: transparent !important;
- }
- .colorBG{
- --background: #f0efef;
- }
+ion-row {
+ margin-bottom: 15px;
+ margin-top: 10px;
+}
- .menubutton{
- white-space: normal;
- color: var(--light);
- text-transform: capitalize;
- min-height: 47px;
- background: transparent;
- font-size: 2rem;
- position: absolute;
- top: 40px;
- }
- .menubuttonTrans{
- white-space: normal;
- color: var(--light);
- text-transform: capitalize;
- min-height: 47px;
- background: transparent;
- font-size: 2rem;
- position: absolute;
- top: 40px;
- left: 315px
- }
- #homeBadgeBtn{
- position: absolute;
- top: 2px;
- width: 20px;
- font-size: 10px;
- height: 20px;
- padding: 0px;
- line-height: 2;
- min-width: auto;
- min-height: auto;
- border-radius: 50%;
- }
- .homeBox{
-
-
- }
- .header-div{
- background:var(--primary);
- background: -moz-linear-gradient(45deg, var(--primary) 0%, var(--secondary) 36%,var(--secondary) 59%, var(--customnavy) 100%);
- background: -webkit-linear-gradient(45deg, (--primary) 0%, var(--secondary) 36%,var(--secondary) 59%, var(--customnavy) 100%);
- background: linear-gradient(90deg, #85C48D 0%, #85C48D 13%, #2BB5C6 98%, #2BB5C6 100%);
- color:var(--light);
- text-transform: capitalize;
-
- display: block;
+.header-toolbar-new{
+ --background: #22c6b3;
+}
+.profile-image-container{
position: relative;
- height: 210px;
- margin-bottom:60px;
- border-radius: 0px 0px 70px 70px;
- }
-
- .dash-header{
- text-align: center;
- margin: 16px 0 0 0;
-
- }
-
- .TxtPlace {
- margin: 0;
- padding: 50px 0 10px 0;
+ z-index: 999;
+ img {
+ width: 32px;
+ float: right;
+ margin-top: -42px;
+ border-radius: 20px;
+ height: 32px;
+ margin-right: 4px;
+ }
+}
+ion-title{
+ color: white;
+ position: absolute;
+ top: 0;
text-align: center;
- width:100%;
- }
-
- .serviceItem {
- // min-height: 160px !important;
- // padding: 0;
- // width: 95%;
- // border: 0px solid #e4e5e7;
- // background: white;
- // color: var(--dark);
- // border-radius: 7px;
- min-height: 200px !important;
- padding-top: 0;
- width: 95%;
- margin-left: 4px;
- margin-bottom: 13px;
- border: 0px solid #e4e5e7;
- background: white;
- color: var(--dark);
- border-radius: 7px;
- p{
- margin-top: 0px; margin-bottom:0px;
- font-weight: normal;
+ left: 15%;
+ right: 15%;
+ font-size: 0.42cm;
+ font-weight: bold;
+ height: 100%;
+}
+ion-label{
+ display: block;
+ color: black !important;
font-size: 14px;
- min-height: 20px;
- // white-space: normal;
- text-align: center;
- -webkit-line-clamp: 3;
- -webkit-box-orient: vertical;
- overflow: hidden;
+ font-weight: bold;
+}
+.main-dashboard-container{
+ position: relative;
+ width: 100%;
+}
+.header-md:after {
+ height: 0px !important;
+ display: none !important;
+}
+.contentBg:before {
+ position: absolute;
+ content: "";
+ background: #22c6b3;
+ height: 100px;
+ width: 100%;
+ left: 0;
+ top: 0px;
+ z-index: 1;
+}
+.main-container{
+ position: relative;
+ z-index: 2;
+ padding-right: 15px;
+ padding-left: 15px;
+ padding-bottom: 130px;
+}
+.attendance-module{
+ border-radius: 20px;
+ background-color: #094875;
+ padding: 10px;
+ color: white;
+ width: 100%;
+ h3{
+ font-size: 18px;
+ font-weight: bold;
+ margin: 0;
}
- span {
- display: block;
-
+ span{
+ font-size: 13px;
+ display: block;
}
- .serviceItemImg {
- min-width: 60px !important;
- min-height: 70px !important;
- width: 80px;
- height: 80px;
- margin: 10px auto;
- background: transparent !important;
+ img{
+ display: block;
+ margin: 10px auto;
+ width: 80%;
}
-
- }
- .serviceItem.button,.serviceItem.button-md, .serviceItem.button-ios{
- background: transparent !important;
- color:var(--dark);
- box-shadow: none;
- -webkit-box-shadow:none;
- -moz-box-shadow: none;
- border: 2px solid var(--gray);
- min-width: auto;
- }
- //test
- .changeImgBtn{
- margin: 0;
- position: absolute;
- top: 80%;
- left: 53%;
- -ms-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- }
-//test
- .changeIcon{
- background: #c1c1c1;
- width: 40px;
- height: 39px;
- border-radius: 50% !important;
- position: relative;
- left: 51px;
- top:16px;
- }
- .menuImg{
- max-width: 30px;
- }
- .transImg{
- max-width: 45px;
- }
-
+ ion-button{
+ border-radius: 10px;
+ padding: 10px;
+ background: #3CB9DF;
+ --background: transparent;
+ --box-shadow: none !important;
+ height: auto;
+ min-height: inherit;
+ margin-top: 10px;
+ font-size: 12px;
+ }
+}
+.swiper-container {
+ margin: 0 !important;
+ width: 100% !important;
+}
+.fixed-shift-timer{
+ position: fixed;
+ bottom: 20px;
+ right: 20px;
+ z-index: 2;
+ span.subTitle {
+ position: absolute;
+ left: 50%;
+ top: 62%;
+ transform: translate(-50%, -50%);
+ color: white;
+ width: 80%;
+ text-align: center;
+ font-size: 11px;
+ text-transform: uppercase;
+ }
+}
+
+// .attendance-timer {
+// position: fixed;
+// bottom: 20px;
+// right: 20px;
+// z-index: 2;
+// height: 112px;
+// width: 112px;
+// background-color: #094875;
+// border-radius: 50%;
+// display: inline-block;
+// img {
+// position: absolute;
+// left: 33%;
+// top: 8%;
+// width: 35%;
+// }
+// span {
+// position: absolute;
+// left: 50%;
+// top: 70%;
+// -webkit-transform: translate(-50%, -50%);
+// transform: translate(-50%, -50%);
+// color: white;
+// width: 80%;
+// text-align: center;
+// font-size: 11px;
+// text-transform: uppercase;
+// }
+// }
diff --git a/Mohem/src/app/home/home.page.ts b/Mohem/src/app/home/home.page.ts
index dee4f44b..95e58003 100644
--- a/Mohem/src/app/home/home.page.ts
+++ b/Mohem/src/app/home/home.page.ts
@@ -1,28 +1,24 @@
-import { EitService } from "./../eit/services/eit.service";
-import { Component, OnInit } from "@angular/core";
-import { TranslatorService } from "src/app/hmg-common/services/translator/translator.service";
-import { MenuController, Events, ActionSheetController } from "@ionic/angular";
-import { AuthenticationService } from "src/app/hmg-common/services/authentication/authentication.service";
-import { AuthenticatedUser } from "src/app/hmg-common/services/authentication/models/authenticated-user";
-import { MenuService } from "src/app/hmg-common/services/menu/menuservice.service";
-import { MenuResponse } from "src/app/hmg-common/services/menu/models/menu-response";
-import { CommonService } from "src/app/hmg-common/services/common/common.service";
-import { Geolocation } from "@ionic-native/geolocation/ngx";
-import { ZBar, ZBarOptions } from "@ionic-native/zbar/ngx";
+import { EitService } from './../eit/services/eit.service';
+import { Component, OnInit } from '@angular/core';
+import { TranslatorService } from 'src/app/hmg-common/services/translator/translator.service';
+import { MenuController, Events, ActionSheetController } from '@ionic/angular';
+import { AuthenticationService } from 'src/app/hmg-common/services/authentication/authentication.service';
+import { AuthenticatedUser } from 'src/app/hmg-common/services/authentication/models/authenticated-user';
+import { MenuService } from 'src/app/hmg-common/services/menu/menuservice.service';
+import { MenuResponse } from 'src/app/hmg-common/services/menu/models/menu-response';
+import { CommonService } from 'src/app/hmg-common/services/common/common.service';
+import { Geolocation } from '@ionic-native/geolocation/ngx';
+import { ZBar, ZBarOptions } from '@ionic-native/zbar/ngx';
import { BarcodeScanner } from '@ionic-native/barcode-scanner/ngx';
-import { Device } from "@ionic-native/device/ngx";
-import { attendanceSwipeScannerRequest } from "./models/attendanceSwipe.Request";
-import { Response } from "src/app/hmg-common/services/models/response";
-import { AttendanceService } from "./services/attendance.services";
-import { LoginRequest } from "../hmg-common/services/authentication/models/login.request";
+import { Device } from '@ionic-native/device/ngx';
+import { attendanceSwipeScannerRequest } from './models/attendanceSwipe.Request';
+import { Response } from 'src/app/hmg-common/services/models/response';
+import { AttendanceService } from './services/attendance.services';
+import { LoginRequest } from '../hmg-common/services/authentication/models/login.request';
import {FileUploaderComponent} from '../hmg-common/ui/file-uploader/file-uploader.component'
-import { Camera, CameraOptions,PictureSourceType} from "@ionic-native/Camera/ngx";
-//import { FileChooser } from "@ionic-native/file-chooser/ngx";
-import { File } from "@ionic-native/file/ngx";
+import { Camera} from '@ionic-native/Camera/ngx';
+import { File } from '@ionic-native/file/ngx';
import { DomSanitizer } from '@angular/platform-browser';
-//import { FilePath } from "@ionic-native/file-path/ngx";
-//import { Base64 } from "@ionic-native/base64/ngx";
-import {FileUploderProfileComponent} from '../hmg-common/ui/file-uploder-profile/file-uploder-profile.component'
import { SharedDataService } from '../hmg-common/services/shared-data-service/shared-data.service';
import { DevicePermissionsService } from '../hmg-common/services/device-permissions/device-permissions.service';
import { DashboredService } from '../hmg-common/services/dashbored/dashbored.service';
@@ -33,19 +29,19 @@ import { AttendanceTrackingResponse } from '../hmg-common/services/dashbored/att
import { OpenPeriodDatesResponse } from '../hmg-common/services/dashbored/models/openPeriodDatesResponse';
import {GetSubordinatesAttdStatusRequest} from '../hmg-common/services/dashbored/models/GetSubordinatesAttdStatusRequest';
import {GetSubordinatesLeavesRequest} from '../hmg-common/services/dashbored/models/GetSubordinatesLeavesRequest'
-import {GetOpenNotificationsResponse}from '../hmg-common/services/dashbored/models/GetOpenNotificationsResponse'
-import {GetSubordinatesAttdStatusResponse}from '../hmg-common/services/dashbored/models/GetSubordinatesAttdStatusResponse'
-import {GetSubordinatesLeavesResponse}from '../hmg-common/services/dashbored/models/GetSubordinatesLeavesResponse'
-
+import {GetOpenNotificationsResponse} from '../hmg-common/services/dashbored/models/GetOpenNotificationsResponse'
+import {GetSubordinatesAttdStatusResponse} from '../hmg-common/services/dashbored/models/GetSubordinatesAttdStatusResponse'
+import {GetSubordinatesLeavesResponse} from '../hmg-common/services/dashbored/models/GetSubordinatesLeavesResponse'
+import { AccrualService } from '../accrual-balances/services/accrual.service';
@Component({
- selector: "app-home",
- templateUrl: "./home.page.html",
- styleUrls: ["./home.page.scss"]
+ selector: 'app-home',
+ templateUrl: './home.page.html',
+ styleUrls: ['./home.page.scss']
})
export class HomePage implements OnInit {
userData: any = {};
- user_image: any = "../assets/imgs/profile.png";
+ userImage: any = '../assets/imgs/profile.png';
menuList: any = [];
zbarOptions: any;
scannedResult: any;
@@ -53,11 +49,75 @@ export class HomePage implements OnInit {
lat: any;
longt: any;
deviceID: string;
- public maxFileSize =10 * 1024 * 1024;
- public fileUploder :FileUploaderComponent;
- // public fileUploderProfile:FileUploderProfileComponent
+ public maxFileSize = 10 * 1024 * 1024;
+ public fileUploder: FileUploaderComponent;
location: boolean;
- camera: boolean
+ camera: boolean;
+ public statsButtons = [
+ {
+ title: 'Work List',
+ statsValue: 0,
+ icon: 'assets/icon/new-design/work_list.png'
+ },
+ {
+ title: 'Pending Request',
+ statsValue: 13,
+ icon: 'assets/icon/new-design/pending_request.png'
+ },
+ {
+ title: 'Missing Swipes',
+ statsValue: 0,
+ icon: 'assets/icon/new-design/missing_swipe.png'
+ },
+ {
+ title: 'Leave Balance',
+ statsValue: 0,
+ icon: 'assets/icon/new-design/leave_balance.png'
+ },
+ {
+ title: 'Ticket Balance',
+ statsValue: 0,
+ icon: 'assets/icon/new-design/ticket_balance.png'
+ }
+ ];
+
+ // public employeeServicesButtons = [
+ // {
+ // title: 'Leave Management',
+ // icon: 'assets/icon/new-design/leave_management.png'
+ // },
+ // {
+ // title: 'Advance Payments',
+ // icon: 'assets/icon/new-design/advance_payments.png'
+ // },
+ // {
+ // title: 'Medical Insurance',
+ // icon: 'assets/icon/new-design/medical_insurance.png'
+ // },
+ // {
+ // title: 'Pay Slip',
+ // icon: 'assets/icon/new-design/pay_slip.png'
+ // }
+ // ];
+
+ public slideOptsOne = {
+ slidesPerView: 3.5,
+ spaceBetween: 10
+ };
+ public slideOptsTwo = {
+ slidesPerView: 3.2,
+ spaceBetween: 10
+ };
+ public runTimer = false;
+ public hasStarted = false;
+ public hasFinished = false;
+ public remainingTime: any;
+ public scheduledTime: any;
+ public isCheckedIn = undefined;
+ public displayTime: any;
+ public menuEntries: any;
+ public percent: any;
+
constructor(
public ts: TranslatorService,
public menu: MenuController,
@@ -68,68 +128,98 @@ export class HomePage implements OnInit {
private device: Device,
private zbar: ZBar,
private geolocation: Geolocation,
- private attendance_service: AttendanceService,
+ private attendanceService: AttendanceService,
private eitService: EitService,
private barcodeScanner: BarcodeScanner,
public actionSheetCtrl: ActionSheetController,
private cameraController: Camera,
public sharedData: SharedDataService,
private sanitizer: DomSanitizer,
- //private transfer: Transfer,
- private file: File,
- //private filePath: FilePath
+ private file: File,
private permissions: DevicePermissionsService,
- public DS :DashboredService
-
+ public DS: DashboredService,
+ public accrualService: AccrualService
) {
- this.events.subscribe("img-change", displayImg => {
-
- // this.user_image = "data:image/jpeg;base64"+displayImg;
- // alert("home app: ");
- this.user_image = this.sanitizer.bypassSecurityTrustUrl("data:Image/*;base64,"+displayImg);
- console.log("html saved img: "+this.user_image);
+ this.events.subscribe('img-change', displayImg => {
+ this.userImage = this.sanitizer.bypassSecurityTrustUrl('data:Image/*;base64,' + displayImg);
+ console.log('html saved img: ' + this.userImage);
});
}
-
ngOnInit() {
this.getUserDetails();
- this.getMenu();
- this.setServicesPrivilage();
- this.getCount();
+ // this.getCount();
+ // this.events.subscribe('getNotCount', badge => {
+ // this.notBadge = badge;
+ // });
+ }
-
- this.events.subscribe("getNotCount", badge => {
- this.notBadge = badge;
- });
+ initTimer() {
+ this.runTimer = false;
+ this.hasStarted = false;
+ this.hasFinished = false;
+ this.percent = 100 - ((this.remainingTime / this.scheduledTime) * 100);
+ this.displayTime = this.getSecondsAsDigitalClock(this.remainingTime);
+ this.startTimer();
+ }
+
+ startTimer() {
+ this.runTimer = true;
+ this.hasStarted = true;
+ this.timerTick();
+ }
+
+ timerTick() {
+ setTimeout(() => {
+ if (!this.runTimer) { return; }
+ this.remainingTime--;
+ this.displayTime = this.getSecondsAsDigitalClock(this.remainingTime);
+ if (this.remainingTime > 0) {
+ const newPercent: any = ((this.remainingTime / this.scheduledTime) * 100).toFixed(2);
+ this.percent = 100 - newPercent;
+ this.timerTick();
+ } else {
+ this.hasFinished = true;
+ }
+ }, 1000);
+ }
+
+ getSecondsAsDigitalClock(inputSeconds: number) {
+ const secNum = parseInt(inputSeconds.toString(), 10); // don't forget the second param
+ const hours = Math.floor(secNum / 3600);
+ const minutes = Math.floor((secNum - (hours * 3600)) / 60);
+ const seconds = secNum - (hours * 3600) - (minutes * 60);
+ let hoursString = '';
+ let minutesString = '';
+ let secondsString = '';
+ hoursString = (hours < 10) ? '0' + hours : hours.toString();
+ minutesString = (minutes < 10) ? '0' + minutes : minutes.toString();
+ secondsString = (seconds < 10) ? '0' + seconds : seconds.toString();
+ return hoursString + ':' + minutesString + ':' + secondsString;
}
getDeviceLocation() {
- let isVirtual = this.device.isVirtual;
- if(isVirtual==true){
- alert("emulater>>>>>>>"+isVirtual);
- alert("You are using virtual device");
+ const isVirtual = this.device.isVirtual;
+ if (isVirtual === true){
+ alert('emulater>>>>>>>' + isVirtual);
+ alert('You are using virtual device');
return false;
}
-
this.permissions.requestLocationAutherization().then(granted => {
this.location = granted as boolean;
if (this.location) {
this.geolocation
.getCurrentPosition({ maximumAge: 3000, timeout: 10000, enableHighAccuracy: true })
.then(resp => {
- // console.log(resp.coords.latitude);
- // console.log(resp.coords.longitude);
this.lat = resp.coords.latitude;
this.longt = resp.coords.longitude;
this.attendance();
})
.catch(error => {
- console.log("Error getting location", error);
+ console.log('Error getting location', error);
});
-
} else {
return false;
}
@@ -137,15 +227,16 @@ export class HomePage implements OnInit {
}
-
setServicesPrivilage() {
- for (let i = 0; i < AuthenticationService.servicePrivilage.length; i++)
- if (AuthenticationService.servicePrivilage[i].Previlege == false) {
- document.getElementById(AuthenticationService.servicePrivilage[i].ServiceName).setAttribute("disabled", "disabled");
- document.getElementById(AuthenticationService.servicePrivilage[i].ServiceName).style.filter = "grayscale(1)"
+ for (const servicePrivilage of AuthenticationService.servicePrivilage) {
+ if (servicePrivilage.Previlege === false) {
+ document.getElementById(servicePrivilage.ServiceName).setAttribute('disabled', 'disabled');
+ document.getElementById(servicePrivilage.ServiceName).style.filter = 'grayscale(1)';
}
+ }
}
- getCount() {
+
+ // getCount() {
// const req: any = {};
// this.menuService.getNotificationCount(req).subscribe((result: any) => {
// if (this.common.validResponse(result)) {
@@ -157,323 +248,354 @@ export class HomePage implements OnInit {
// this.events.publish("getNotCount", this.notBadge);
// }
// });
- }
- // ionViewDidLoad() {
- // this.geolocation
- // .getCurrentPosition()
- // .then(resp => {
- // // resp.coords.latitude
- // // resp.coords.longitude
- // console.log(resp.coords.latitude);
- // console.log(resp.coords.longitude);
- // })
- // .catch(error => {
- // console.log("Error getting location", error);
- // });
- // this.geolocation.getCurrentPosition().then((resp) => {
- // // resp.coords.latitude
- // // resp.coords.longitude
- // console.log(resp.coords.latitude);
- // console.log(resp.coords.longitude);
- // }).catch((error) => {
- // console.log('Error getting location', error);
- // });
// }
ionViewDidLoad() {
- this.getUserDetails();
- console.log("getUserDetails");
this.geolocation
.getCurrentPosition()
.then(resp => {
- // resp.coords.latitude
- // resp.coords.longitude
- //console.log("Loc 1");
- console.log(resp.coords.latitude);
- console.log(resp.coords.longitude);
this.lat = resp.coords.latitude;
this.longt = resp.coords.longitude;
})
.catch(error => {
- console.log("Error getting location", error);
+ console.log('Error getting location', error);
});
}
+
private openMenu() {
this.menu.toggle();
}
+
private getUserDetails() {
+
this.authService
.loadAuthenticatedUser()
.subscribe((user: AuthenticatedUser) => {
if (user) {
- this.events.publish("setMenu");
+ this.events.publish('setMenu');
this.userData = user;
- //set User Info
this.sharedData.setSharedData(this.userData, AuthenticatedUser.SHARED_DATA);
- this.user_image = user.EMPLOYEE_IMAGE
- ? "data:image/png;base64," + user.EMPLOYEE_IMAGE
- : this.user_image;
- console.log(user);
+ this.userImage = user.EMPLOYEE_IMAGE ? 'data:image/png;base64,' + user.EMPLOYEE_IMAGE : this.userImage;
+ this.callDashboardServices();
} else {
console.log(user);
}
});
- }
- public Vacation_Rule() {
- this.common.navigateForward("/vacation-rule/home");
- }
- private getMenu() {
- this.menuService.getMenu().subscribe((result: MenuResponse) => {
- this.handleMenuResult(result);
- });
- }
- private handleMenuResult(result) {
- if (this.common.validResponse(result)) {
- if (this.common.hasData(result.List_Menu)) {
- console.log("list menu");
- this.menuList = result.List_Menu;
+ }
+
+ callDashboardServices() {
+ this.getMenu();
+ this.setServicesPrivilage();
+ this.openNotificationsDashbored();
+ this.showOpenMissingSwipes();
+ this.showAttendanceTracking();
+ this.getAccrualBalance();
+ }
+
+ public Vacation_Rule() {
+ this.common.navigateForward('/vacation-rule/home');
+ }
+
+ private getMenu() {
+ this.menuService.getMenu().subscribe((result: MenuResponse) => {
+ this.handleMenuResult(result);
+ });
+ }
+
+ private handleMenuResult(result) {
+ if (this.common.validResponse(result)) {
+ if (this.common.hasData(result.List_Menu)) {
+ console.log('list menu');
+ this.menuList = result.List_Menu;
+ this.getMenuDetails();
+ }
}
}
- }
- private accrualBalance() {
- this.common.openAccuralPage();
- }
- private changeImage() {
- this.common.openChangeImagePage();
- }
+ private accrualBalance() {
+ this.common.openAccuralPage();
+ }
- public getMeunDetails(index) {
- let item = this.menuList[index];
- let selMenu: MenuResponse = new MenuResponse();
- selMenu.List_Menu = item;
- selMenu.userid = this.userData.EMPLOYEE_NUMBER;
- console.log("menu: "+selMenu.List_Menu);
- this.common.sharedService.setSharedData(selMenu, MenuResponse.SHARED_DATA);
- if (item.MENU_TYPE == "M") {
- this.common.openMyTeamPage();
- // this.navCtrl.push("MySubordinatePage");
- } else if (item.MENU_TYPE == "S") {
- this.common.sharedService.setSharedData(item, 'mySpecList');
- this.common.openMySpecialistPage();
- //this.navCtrl.push('MySpecialistPage',{"mySpecList":item});
- } else {
+ private changeImage() {
+ this.common.openChangeImagePage();
+ }
+
+ public getMenuDetails() {
+ const item = this.menuList[0];
+ const selMenu: MenuResponse = new MenuResponse();
+ selMenu.List_Menu = item;
+ selMenu.userid = this.userData.EMPLOYEE_NUMBER;
+ console.log('menu: ' + selMenu.List_Menu);
+ this.common.sharedService.setSharedData(selMenu, MenuResponse.SHARED_DATA);
this.getMenuEntries(item);
+ // if (item.MENU_TYPE === 'M') {
+ // this.common.openMyTeamPage();
+ // // this.navCtrl.push("MySubordinatePage");
+ // } else if (item.MENU_TYPE === 'S') {
+ // this.common.sharedService.setSharedData(item, 'mySpecList');
+ // this.common.openMySpecialistPage();
+ // // this.navCtrl.push('MySpecialistPage',{"mySpecList":item});
+ // } else {
+ // this.getMenuEntries(item);
+ // }
}
- }
- getMenuEntries(item) {
- let request: any = {};
- let selEmpNo: string = null;
- let nationality: string = null;
- request.P_SELECTED_RESP_ID = -999;
- if (item.MENU_TYPE == "S") {
- request.P_SELECTED_RESP_ID = item.RESP_ID;
- } else {
- selEmpNo = this.common.sharedService.getSharedData(
- LoginRequest.SHARED_DATA,
+ getMenuEntries(item) {
+ const request: any = {};
+ let selEmpNo: string = null;
+ let nationality: string = null;
+ request.P_SELECTED_RESP_ID = -999;
+ if (item.MENU_TYPE === 'S') {
+ request.P_SELECTED_RESP_ID = item.RESP_ID;
+ } else {
+ selEmpNo = this.common.sharedService.getSharedData(
+ LoginRequest.SHARED_DATA,
+ false
+ );
+ }
+ nationality = this.common.sharedService.getSharedData(
+ LoginRequest.NATIONALITY_CODE,
false
);
- }
- nationality = this.common.sharedService.getSharedData(
- LoginRequest.NATIONALITY_CODE,
- false
- );
- request.P_SELECTED_EMPLOYEE_NUMBER = selEmpNo;
- request.P_MENU_TYPE = item.MENU_TYPE;
- request.NationalityCode = nationality;
- //set emp and resp id
- console.log("set data");
- this.common.sharedService.setSharedData(
- selEmpNo,
- MenuResponse.SHARED_SEL_EMP
- );
- this.common.sharedService.setSharedData(
- request.P_SELECTED_RESP_ID,
- MenuResponse.SHARED_SEL_RESP_ID
- );
-
- this.eitService
- .getMenuEntries(request)
- .subscribe((result: MenuResponse) => {
- this.handleMenuEntiresResult(result);
- });
- }
+ request.P_SELECTED_EMPLOYEE_NUMBER = selEmpNo;
+ request.P_MENU_TYPE = item.MENU_TYPE;
+ request.NationalityCode = nationality;
+ // set emp and resp id
+ console.log('set data');
+ this.common.sharedService.setSharedData(
+ selEmpNo,
+ MenuResponse.SHARED_SEL_EMP
+ );
+ this.common.sharedService.setSharedData(
+ request.P_SELECTED_RESP_ID,
+ MenuResponse.SHARED_SEL_RESP_ID
+ );
- sortMenuEntires(list) {
- let tree = this.common.list_to_tree(list);
- this.common.sharedService.setSharedData(tree, "menuEntries");
- // this.common.navigateForward("/eit/homepage");
- this.common.openEITPage();
- }
+ this.eitService
+ .getMenuEntries(request)
+ .subscribe((result: MenuResponse) => {
+ this.handleMenuEntiresResult(result);
+ });
+ }
- private handleMenuEntiresResult(result) {
- if (this.common.validResponse(result)) {
- if (this.common.hasData(result.GetMenuEntriesList)) {
- this.sortMenuEntires(result.GetMenuEntriesList);
- }
+ sortMenuEntires(list) {
+ const tree = this.common.list_to_tree(list);
+ this.menuEntries = tree;
+ console.log(this.menuEntries);
+ this.common.sharedService.setSharedData(tree, 'menuEntries');
+ // this.common.navigateForward("/eit/homepage");
+ // this.common.openEITPage();
}
- }
- private Change_password() {
- this.common.openChangePassword();
- }
- private openPayslip() {
- this.common.openPayslipPage();
- }
- private attendance() {
- // this.zbarOptions = {
- // flash: "off",
- // drawSight: false
- // };
- //console.log("your currnt location is");
- //console.log("Loc");
- this.permissions.requestCameraAutherization().then(granted => {
- this.camera = granted as boolean;
- if (this.camera) {
- this.scanCode();
+ private handleMenuEntiresResult(result) {
+ if (this.common.validResponse(result)) {
+ if (this.common.hasData(result.GetMenuEntriesList)) {
+ this.sortMenuEntires(result.GetMenuEntriesList);
}
}
- );
- }
+ }
- scanCode() {
- // this.zbar
- // .scan(this.zbarOptions)
- // .then(result => {
- // console.log(result); // Scanned code
- // let strResult = JSON.parse(result);
- // console.log(strResult.QRValue);
- // this.scannedResult = result;
- // this.deviceID = this.device.uuid;
- // this.swipeAttendance();
- // })
- // .catch(error => {
- // alert(error); // Error message
- // });
-
- this.barcodeScanner.scan().then(barcodeData => {
- console.log('Barcode data', barcodeData);
- // let strResult = JSON.parse(barcodeData);
- // console.log(strResult.QRValue);
- this.scannedResult = barcodeData;
- this.deviceID = this.device.uuid;
- this.swipeAttendance();
- }).catch(err => {
- console.log('Error', err);
- });
- }
+ parentFn($event: string) {
+ console.log($event); // this will output 'hello from child'
+ }
- swipeAttendance() {
- let request: attendanceSwipeScannerRequest = new attendanceSwipeScannerRequest();
- request.Latitude = this.lat;
- request.Longitude = this.longt;
- request.QRValue = this.scannedResult.text;
- request.UID = this.deviceID;
- request.UserName = this.userData.EMPLOYEE_NUMBER;
- console.log("request");
- console.log(JSON.stringify(request));
- this.attendance_service
- .attendanceSwipeScanner(request, () => {
- console.log("Error inside in swipe attendance");
- })
- .subscribe((result: Response) => {
- if (this.common.validResponse(result)) {
- console.log("response");
- console.log(result);
- this.common.presentAlert(this.ts.trPK("home", "swipeAlertSuccess"));
- } else {
- this.common.presentAlert(this.ts.trPK("home", "swipeAlertFailed"));
- }
- });
- }
- openPersonalInfo() {
- this.common.openProfile();
- }
+ private Change_password() {
+ this.common.openChangePassword();
+ }
+ private openPayslip() {
+ this.common.openPayslipPage();
+ }
-/*************************************Dashboards Services**********************************************************8 */
+ private attendance() {
+ this.permissions.requestCameraAutherization().then(granted => {
+ this.camera = granted as boolean;
+ if (this.camera) {
+ this.scanCode();
+ }
+ }
+ );
+ }
-showOrganizationSalaries(){
- this.DS.getOrganizationSalaries() .subscribe((result: OrganizationSalariesResponse ) => {
+ scanCode() {
+ this.barcodeScanner.scan().then(barcodeData => {
+ this.scannedResult = barcodeData;
+ this.deviceID = this.device.uuid;
+ this.swipeAttendance();
+ }).catch(err => {
+ console.log('Error', err);
+ });
+ }
- });;
-}
+ swipeAttendance() {
+ const request: attendanceSwipeScannerRequest = new attendanceSwipeScannerRequest();
+ request.Latitude = this.lat;
+ request.Longitude = this.longt;
+ request.QRValue = this.scannedResult.text;
+ request.UID = this.deviceID;
+ request.UserName = this.userData.EMPLOYEE_NUMBER;
+ console.log(JSON.stringify(request));
+ this.attendanceService
+ .attendanceSwipeScanner(request, () => {
+ console.log('Error inside in swipe attendance');
+ })
+ .subscribe((result: Response) => {
+ if (this.common.validResponse(result)) {
+ this.common.presentAlert(this.ts.trPK('home', 'swipeAlertSuccess'));
+ this.showAttendanceTracking();
+ } else {
+ this.common.presentAlert(this.ts.trPK('home', 'swipeAlertFailed'));
+ }
+ });
+ }
-showOpenMissingSwipes(){
- this.DS.getOpenMissingSwipes() .subscribe((result: OpenMissingSwipesResponse) => {
+ openPersonalInfo() {
+ this.common.openProfile();
+ }
- });;
-}
-showPerformanceAppraisal(){
- this.DS.getPerformanceAppraisal() .subscribe((result: PerformanceAppraisalResponse) => {
+/*************************************Dashboards Services**********************************************************8 */
- });
+ showOrganizationSalaries() {
+ this.DS.getOrganizationSalaries() .subscribe((result: OrganizationSalariesResponse ) => {
+ });
+ }
+ showOpenMissingSwipes() {
+ this.DS.getOpenMissingSwipes() .subscribe((result: OpenMissingSwipesResponse) => {
+ if (this.common.validResponse(result)) {
+ const key = 'GetOpenMissingSwipesList';
+ this.statsButtons[2].statsValue = result[key].P_OPEN_MISSING_SWIPES;
+ }
+ });
+ }
-}
+ showPerformanceAppraisal() {
+ this.DS.getPerformanceAppraisal() .subscribe((result: PerformanceAppraisalResponse) => {
+ });
+ }
-showAttendanceTracking(){
- this.DS.getAttendanceTracking() .subscribe((result: AttendanceTrackingResponse) => {
+ 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;
+ }
- });;
-}
+ convertAndAssignTime(data) {
+ console.log(data);
+ this.remainingTime = this.convertInSeconds(data.P_REMAINING_HOURS.split(':'));
+ this.scheduledTime = this.convertInSeconds(data.P_SCHEDULED_HOURS.split(':'));
+ this.isCheckedIn = this.remainingTime === this.scheduledTime ? false : true;
+ this.initTimer();
+ console.log('remainingTime: ' + this.remainingTime);
+ console.log('scheduledTime: ' + this.scheduledTime);
+ console.log('isCheckedIn: ' + this.isCheckedIn);
+ }
- openPeriodDateDashbored(){
- this.DS.getOpenPeriodDates( ()=> {console.log("Error ");} ).subscribe((result:OpenPeriodDatesResponse)=>{
+ showAttendanceTracking() {
+ this.DS.getAttendanceTracking() .subscribe((result: AttendanceTrackingResponse) => {
if (this.common.validResponse(result)) {
- console.log("response");
+ const key = 'GetAttendanceTrackingList';
+ this.convertAndAssignTime(result[key]);
}
-
});
-
}
- openNotificationsDashbored(){
- this.DS.getOpenNotifications( ()=> {console.log("Error ");} ).subscribe((result:GetOpenNotificationsResponse)=>{
+ openPeriodDateDashbored() {
+ this.DS.getOpenPeriodDates( () => {console.log('Error '); } ).subscribe((result: OpenPeriodDatesResponse) => {
if (this.common.validResponse(result)) {
- console.log("response");
- console.log(result);
+ console.log('response');
}
-
});
+ }
+ openNotificationsDashbored() { // work list
+ this.DS.getOpenNotifications( () => { console.log('Error '); }).subscribe((result: GetOpenNotificationsResponse) => {
+ if (this.common.validResponse(result)) {
+ const key = 'P_OPEN_NTF_NUMBER';
+ this.statsButtons[0].statsValue = result[key];
+ }
+ });
}
- getSubordinatesLeaves(){
- let request:GetSubordinatesLeavesRequest=new GetSubordinatesLeavesRequest();
- request.P_DATE_FROM="/Date(1578603600000+0300)/"; //test
- request.P_DATE_TO="/Date(1576011600000+0300)/"; //test
-
- this.DS.getSubordinatesLeaves( request,()=> {console.log("Error ");} ).subscribe((result:GetSubordinatesLeavesResponse)=>{
+ getSubordinatesLeaves() {
+ const request: GetSubordinatesLeavesRequest = new GetSubordinatesLeavesRequest();
+ request.P_DATE_FROM = '/Date(1578603600000+0300)/'; // test
+ request.P_DATE_TO = '/Date(1576011600000+0300)/'; // test
+ this.DS.getSubordinatesLeaves( request, () => {console.log('Error '); } ).subscribe((result: GetSubordinatesLeavesResponse) => {
if (this.common.validResponse(result)) {
- console.log("response");
+ console.log('response');
console.log(result);
}
-
});
}
- getSubordinatesAttStatus(){
- let request: GetSubordinatesAttdStatusRequest = new GetSubordinatesAttdStatusRequest();
- request.P_SCHEDULE_DATE_FROM="/Date(1578603600000+0300)/"; //test
- request.P_SCHEDULE_DATE_TO="/Date(1576011600000+0300)/";//test
-
- this.DS.getSubordinatesAttStatus( request,()=> {console.log("Error ");} ).subscribe((result:GetSubordinatesAttdStatusResponse)=>{
+ getSubordinatesAttStatus() {
+ const request: GetSubordinatesAttdStatusRequest = new GetSubordinatesAttdStatusRequest();
+ request.P_SCHEDULE_DATE_FROM = '/Date(1578603600000+0300)/'; // test
+ request.P_SCHEDULE_DATE_TO = '/Date(1576011600000+0300)/'; // test
+ this.DS.getSubordinatesAttStatus( request, () => {console.log('Error '); }).subscribe((result: GetSubordinatesAttdStatusResponse) => {
if (this.common.validResponse(result)) {
- console.log("response");
+ console.log('response');
console.log(result);
}
-
});
+ }
+
+ openPage(subMenu) {
+ let selMenu: MenuResponse = new MenuResponse();
+ selMenu = this.common.sharedService.getSharedData(MenuResponse.SHARED_DATA, false);
+ selMenu.GetMenuEntriesList = subMenu;
+ this.common.sharedService.setSharedData(selMenu, MenuResponse.SHARED_DATA);
+ if (subMenu.REQUEST_TYPE === 'ABSENCE') {
+ this.common.openAbsencePage();
+ } else if (subMenu.REQUEST_TYPE === 'EIT') {
+ this.common.openEitListPage();
+ }
+ if (subMenu.REQUEST_TYPE === 'PAYSLIP') {
+ this.common.openPayslipPage();
+ }
+ }
+ getAccrualBalance() {
+ const today = new Date();
+ const day = today.getDate();
+ const month = today.getMonth() + 1;
+ const year = today.getFullYear();
+ const todayDate = month + '/' + day + '/' + year;
+ const effectiveDate = todayDate;
+ const request = {
+ P_SELECTED_EMPLOYEE_NUMBER: this.userData.EMPLOYEE_NUMBER,
+ P_EFFECTIVE_DATE: effectiveDate
+ };
+ this.accrualService
+ .getAccrualBalances(request)
+ .subscribe((result: any) => {
+ if (this.common.validResponse(result)) {
+ let totalTicketsLeft = 0;
+ for (const accrualBalance of result.GetAccrualBalancesList) {
+ if (accrualBalance.ACCURAL_PLAN_NAME === 'HMG Annual Vacation Accrual Plan') {
+ this.statsButtons[3].statsValue = accrualBalance.ACCRUAL_NET_ENTITLEMENT;
+ } else {
+ totalTicketsLeft = totalTicketsLeft + accrualBalance.ACCRUAL_NET_ENTITLEMENT;
+ }
+ }
+ this.statsButtons[4].statsValue = totalTicketsLeft;
+ }
+ });
}
-
+ openattentracking() {
+ this.common.openAttenTrackingpage();
+ }
+
+ openProfilePage() {
+ this.common.openProfile();
+ }
-
}
diff --git a/Mohem/src/assets/icon/new-design/advance_payments.png b/Mohem/src/assets/icon/new-design/advance_payments.png
new file mode 100644
index 00000000..f867e013
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/advance_payments.png differ
diff --git a/Mohem/src/assets/icon/new-design/attendance_button_icon.png b/Mohem/src/assets/icon/new-design/attendance_button_icon.png
new file mode 100644
index 00000000..ef62408c
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/attendance_button_icon.png differ
diff --git a/Mohem/src/assets/icon/new-design/borrowing_passport.png b/Mohem/src/assets/icon/new-design/borrowing_passport.png
new file mode 100644
index 00000000..5c1824ee
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/borrowing_passport.png differ
diff --git a/Mohem/src/assets/icon/new-design/employee_certificate.png b/Mohem/src/assets/icon/new-design/employee_certificate.png
new file mode 100644
index 00000000..e54f21bf
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/employee_certificate.png differ
diff --git a/Mohem/src/assets/icon/new-design/id_badge_request.png b/Mohem/src/assets/icon/new-design/id_badge_request.png
new file mode 100644
index 00000000..2af2dff7
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/id_badge_request.png differ
diff --git a/Mohem/src/assets/icon/new-design/it_forms.png b/Mohem/src/assets/icon/new-design/it_forms.png
new file mode 100644
index 00000000..793d983c
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/it_forms.png differ
diff --git a/Mohem/src/assets/icon/new-design/leave_balance.png b/Mohem/src/assets/icon/new-design/leave_balance.png
new file mode 100644
index 00000000..c915cc7e
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/leave_balance.png differ
diff --git a/Mohem/src/assets/icon/new-design/leave_management.png b/Mohem/src/assets/icon/new-design/leave_management.png
new file mode 100644
index 00000000..8b32b4ca
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/leave_management.png differ
diff --git a/Mohem/src/assets/icon/new-design/medical_insurance.png b/Mohem/src/assets/icon/new-design/medical_insurance.png
new file mode 100644
index 00000000..21196156
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/medical_insurance.png differ
diff --git a/Mohem/src/assets/icon/new-design/missing_swipe.png b/Mohem/src/assets/icon/new-design/missing_swipe.png
new file mode 100644
index 00000000..8f8b3fdc
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/missing_swipe.png differ
diff --git a/Mohem/src/assets/icon/new-design/pay_slip.png b/Mohem/src/assets/icon/new-design/pay_slip.png
new file mode 100644
index 00000000..7aab9d1e
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/pay_slip.png differ
diff --git a/Mohem/src/assets/icon/new-design/pending_request.png b/Mohem/src/assets/icon/new-design/pending_request.png
new file mode 100644
index 00000000..e427ee6a
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/pending_request.png differ
diff --git a/Mohem/src/assets/icon/new-design/recreational_activities.png b/Mohem/src/assets/icon/new-design/recreational_activities.png
new file mode 100644
index 00000000..26e20956
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/recreational_activities.png differ
diff --git a/Mohem/src/assets/icon/new-design/separation_resignation.png b/Mohem/src/assets/icon/new-design/separation_resignation.png
new file mode 100644
index 00000000..420ab0fe
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/separation_resignation.png differ
diff --git a/Mohem/src/assets/icon/new-design/ticket_balance.png b/Mohem/src/assets/icon/new-design/ticket_balance.png
new file mode 100644
index 00000000..f769f41c
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/ticket_balance.png differ
diff --git a/Mohem/src/assets/icon/new-design/ticket_request.png b/Mohem/src/assets/icon/new-design/ticket_request.png
new file mode 100644
index 00000000..f455ce2e
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/ticket_request.png differ
diff --git a/Mohem/src/assets/icon/new-design/uniform_request.png b/Mohem/src/assets/icon/new-design/uniform_request.png
new file mode 100644
index 00000000..3e104c70
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/uniform_request.png differ
diff --git a/Mohem/src/assets/icon/new-design/vacation_rules.png b/Mohem/src/assets/icon/new-design/vacation_rules.png
new file mode 100644
index 00000000..ab4d5676
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/vacation_rules.png differ
diff --git a/Mohem/src/assets/icon/new-design/work_list.png b/Mohem/src/assets/icon/new-design/work_list.png
new file mode 100644
index 00000000..6b7b2dd6
Binary files /dev/null and b/Mohem/src/assets/icon/new-design/work_list.png differ
diff --git a/Mohem/src/assets/localization/i18n.json b/Mohem/src/assets/localization/i18n.json
index e922a87b..9d52c4fd 100644
--- a/Mohem/src/assets/localization/i18n.json
+++ b/Mohem/src/assets/localization/i18n.json
@@ -2131,6 +2131,50 @@
}
},
+ "attendance-tracking": {
+ "title":{
+ "en": "Mark Attendance",
+ "ar":"Mark Attendance "
+ },
+ "check-in":{
+ "en": "Check In",
+ "ar":"Check In"
+ },
+ "check-out":{
+ "en": "Check Out",
+ "ar":"Check Out"
+ },
+ "regular":{
+ "en": "Regular",
+ "ar":"Regular"
+ },
+ "late-in":{
+ "en": "Late In",
+ "ar":"Late In"
+ },
+ "today-time-left":{
+ "en": "TODAY TIME LEFT",
+ "ar":"TODAY TIME LEFT"
+ },
+
+
+ "confirm-alert1":{
+ "en": "Are you sure, you want to",
+ "ar":"Are you sure, you want to"
+ },
+ "confirm-alert2":{
+ "en":" check out",
+ "ar":" check out"
+ },
+ "confirm-alert3":{
+ "en":"You did't complate today shift",
+ "ar":"You did't complate today shift"
+ },
+ "shift-time":{
+ "en":"SHIFT TIME",
+ "ar":"SHIFT TIME"
+ }
+},
"sms": {
"title": {
"en": "SMS",
@@ -2149,4 +2193,9 @@
"ar": "واتس اب"
}
}
+
+
+
+
+
}
\ No newline at end of file
diff --git a/Mohem/src/theme/styles.scss b/Mohem/src/theme/styles.scss
index 0c58e3cc..755291de 100644
--- a/Mohem/src/theme/styles.scss
+++ b/Mohem/src/theme/styles.scss
@@ -279,6 +279,7 @@ ion-datetime.datetime.datetime-ios.ng-valid.ng-dirty.ng-touched {
.alert-md .alert-head,.alert-ios .alert-head{
background-color:var(--grayBG);
color: var(--light);
+
}
/********profile grid************/
// .profile-grid{
@@ -845,6 +846,41 @@ color: var(--dark);
margin: 8px !important;
}
+.checkOutOkBtn{
+ margin-left: 55px !important;
+ margin-right: 55px !important;
+ margin-top: 10px !important;
+ margin-bottom: 10px !important;
+ border-radius: 5px !important;
+ height: 32px !important;
+ min-height: 30px !important;
+ background: var(--lightblue) !important;
+ -webkit-box-flex: 1;
+ flex: 1 1 auto;
+ border-top: 0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);
+ border-right: 0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);
+ color: white !important;
+ border: none !important;
+
+}
+
+.checkOutCancelBtn{
+ margin-left: 55px !important;
+ margin-right: 55px !important;
+ margin-top: 10px !important;
+ margin-bottom: 10px !important;
+ border-radius: 5px !important;
+ height: 32px !important;
+ min-height: 30px !important;
+ background: var(--darkblue) !important;
+ -webkit-box-flex: 1;
+ flex: 1 1 auto;
+ border-top: 0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);
+ border-right: 0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);
+ color: white !important;
+ border: none !important;
+}
+
.buttonClassWhite {
border-radius: 10px !important;
width: 95% !important;
@@ -916,25 +952,48 @@ border:0px
--min-height: 1.6cm !important;
width: 315px;
}
-// .slides-gray-bullets .swiper-wrapper {
-// margin-top: 14px !important;
-// }
// .swiper-container-horizontal>.swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction {
// /* bottom: 10px; */
// left: 0;
// width: 100%;
//
-// .filters-row {
-// margin-left:-15px;
-// margin-right:-15px;
+// .employee-slider .custom-button{
+// padding: 13px !important;
// }
-// .filters-row .swiper-container .swiper-wrapper .swiper-slide:first-child {
-// margin-left:32px;
+// .employee-slider .iconBox img{
+// max-width: 40% !important;
// }
.advanced-search-modal {
--height: 9cm !important;
--width: 88% !important;
--border-radius: 0.6cm;
-}
\ No newline at end of file
+}
+.slideFullWidth {
+ margin-left:-15px;
+ margin-right:-15px;
+}
+.slideFullWidth .swiper-container .swiper-wrapper .swiper-slide:first-child {
+ margin-left:15px;
+}
+.alert-button-group.sc-ion-alert-md,
+.alert-button.sc-ion-alert-ios {
+ text-align: center;
+}
+
+
+.alert-message.sc-ion-alert-md,
+.alert-message.sc-ion-alert-ios,
+.alert-sub-title.sc-ion-alert-md,
+.alert-title.sc-ion-alert-md,
+.alert-sub-title.sc-ion-alert-ios,
+.alert-title.sc-ion-alert-ios {
+
+ text-align: center;
+}
+
+.alert-button-inner.sc-ion-alert-md {
+
+ justify-content: center !important;
+}
diff --git a/Mohem/tsconfig.json b/Mohem/tsconfig.json
index b271fd9f..1d9c2de7 100644
--- a/Mohem/tsconfig.json
+++ b/Mohem/tsconfig.json
@@ -18,5 +18,10 @@
"es2018",
"dom"
]
+ },
+ "angularCompilerOptions": {
+ "fullTemplateTypeCheck": true,
+ "strictInjectionParameters": true
}
}
+