PageSourceSearch

https://tru-x.com/src_app_pages_schedule_schedule_module_ts.js

js tru-x.com collected 2026-10-04 13:34:40 UTC 33,469 bytes, 460 lines download raw bytes

1"use strict";
2(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([["src_app_pages_schedule_schedule_module_ts"],{
3
4/***/ 5591:
5/*!*******************************************!*\
6  !*** ./src/app/models/account/account.ts ***!
7  \*******************************************/
8/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
10__webpack_require__.r(__webpack_exports__);
11/* harmony export */ __webpack_require__.d(__webpack_exports__, {
12/* harmony export */   "Account": () => (/* binding */ Account)
13/* harmony export */ });
14class Account {
15    constructor(ACC_NAM, ACC_STA, ACC_TYP, ACC_FNM, ACC_LNM, ACC_PHN, ACC_PWD, ACC_PWC, ACC_TOK) {
16        this.ACC_ID = 0;
17        this.ACC_NAM = ACC_NAM;
18        this.ACC_STA = ACC_STA;
19        this.ACC_TYP = ACC_TYP;
20        this.ACC_FNM = ACC_FNM;
21        this.ACC_LNM = ACC_LNM;
22        this.ACC_PHN = ACC_PHN;
23        this.ACC_PWD = ACC_PWD;
24        this.ACC_PWC = ACC_PWC;
25        this.ACC_TOK = ACC_TOK;
26    }
27}
28
29
30/***/ }),
31
32/***/ 7198:
33/*!***********************************************************!*\
34  !*** ./src/app/pages/schedule/schedule-routing.module.ts ***!
35  \***********************************************************/
36/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
37
38__webpack_require__.r(__webpack_exports__);
39/* harmony export */ __webpack_require__.d(__webpack_exports__, {
40/* harmony export */   "SchedulePageRoutingModule": () => (/* binding */ SchedulePageRoutingModule)
41/* harmony export */ });
42/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 4929);
43/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 3184);
44/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 2816);
45/* harmony import */ var _schedule_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule.page */ 1645);
46
47
48
49
50const routes = [
51    {
52        path: '',
53        component: _schedule_page__WEBPACK_IMPORTED_MODULE_0__.SchedulePage
54    }
55];
56let SchedulePageRoutingModule = class SchedulePageRoutingModule {
57};
58SchedulePageRoutingModule = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
59    (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgModule)({
60        imports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule.forChild(routes)],
61        exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule],
62    })
63], SchedulePageRoutingModule);
64
65
66
67/***/ }),
68
69/***/ 1839:
70/*!***************************************************!*\
71  !*** ./src/app/pages/schedule/schedule.module.ts ***!
72  \***************************************************/
73/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
74
75__webpack_require__.r(__webpack_exports__);
76/* harmony export */ __webpack_require__.d(__webpack_exports__, {
77/* harmony export */   "SchedulePageModule": () => (/* binding */ SchedulePageModule)
78/* harmony export */ });
79/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ 4929);
80/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 3184);
81/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 6362);
82/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 587);
83/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 3819);
84/* harmony import */ var _schedule_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule-routing.module */ 7198);
85/* harmony import */ var _schedule_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./schedule.page */ 1645);
86
87
88
89
90
91
92
93let SchedulePageModule = class SchedulePageModule {
94};
95SchedulePageModule = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
96    (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgModule)({
97        imports: [
98            _angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule,
99            _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule,
100            _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonicModule,
101            _schedule_routing_module__WEBPACK_IMPORTED_MODULE_0__.SchedulePageRoutingModule
102        ],
103        declarations: [_schedule_page__WEBPACK_IMPORTED_MODULE_1__.SchedulePage]
104    })
105], SchedulePageModule);
106
107
108
109/***/ }),
110
111/***/ 1645:
112/*!*************************************************!*\
113  !*** ./src/app/pages/schedule/schedule.page.ts ***!
114  \*************************************************/
115/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
116
117__webpack_require__.r(__webpack_exports__);
118/* harmony export */ __webpack_require__.d(__webpack_exports__, {
119/* harmony export */   "SchedulePage": () => (/* binding */ SchedulePage)
120/* harmony export */ });
121/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! tslib */ 4929);
122/* harmony import */ var _schedule_page_html_ngResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schedule.page.html?ngResource */ 8601);
123/* harmony import */ var _schedule_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./schedule.page.scss?ngResource */ 786);
124/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 3184);
125/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 2816);
126/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ 3819);
127/* harmony import */ var _services_account_account_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/account/account.service */ 4602);
128
129
130
131
132
133
134
135let SchedulePage = class SchedulePage {
136    constructor(router, navCtrl, accountservice) {
137        this.router = router;
138        this.navCtrl = navCtrl;
139        this.accountservice = accountservice;
140    }
141    ngOnInit() {
142        this.changed = false;
143        this.today = new Date();
144        this.tomorrow = new Date();
145        this.tomorrow.setDate(this.today.getDate() + 1);
146        this.today.setHours(6, 0, 0, 0);
147        this.tomorrow.setHours(6, 0, 0, 0);
148        this.availabilityMA = "0";
149        this.availabilityMP = "0";
150        this.availabilityTA = "0";
151        this.availabilityTP = "0";
152        this.availabilityWA = "0";
153        this.availabilityWP = "0";
154        this.availabilityRA = "0";
155        this.availabilityRP = "0";
156        this.availabilityFA = "0";
157        this.availabilityFP = "0";
158        this.availabilityAA = "0";
159        this.availabilityAP = "0";
160        this.availabilityUA = "0";
161        this.availabilityUP = "0";
162        this.clockin = 0;
163        this.clockout = 0;
164        if (this.accountservice.account.ACC_TYP == 'Employee') {
165            this.accountservice.selectClock(this.accountservice.account.ACC_ID).then((clock) => {
166                if (clock > 0)
167                    this.clockin = clock;
168                if (clock < 0)
169                    this.clockout = clock * -1;
170            });
171        }
172    }
173    selectSchedule() {
174        this.changed = false;
175        if (this.mode == 'schedulefuture' || this.mode == 'schedulepast') {
176            this.accountservice.selectSchedule(this.accountservice.account.ACC_ID).then((schedules) => {
177                this.schedules = schedules;
178                for (let schedule of this.schedules) {
179                    schedule.SCH_STR = new Date(schedule.SCH_STR);
180                    schedule.SCH_END = new Date(schedule.SCH_END);
181                    if (schedule.SCH_IDT.toString() == "")
182                        schedule.SCH_IDT = new Date("1/1/2000");
183                    else
184                        schedule.SCH_IDT = new Date(schedule.SCH_IDT);
185                    if (schedule.SCH_ODT.toString() == "")
186                        schedule.SCH_ODT = new Date("1/1/2000");
187                    else
188                        schedule.SCH_ODT = new Date(schedule.SCH_ODT);
189                }
190            });
191        }
192        else if (this.mode == 'schedulepreference') {
193            this.accountservice.selectAvailability(this.accountservice.account.ACC_ID).then((availability) => {
194                this.availabilityMA = availability.substr(0, 1);
195                this.availabilityMP = availability.substr(1, 1);
196                this.availabilityTA = availability.substr(2, 1);
197                this.availabilityTP = availability.substr(3, 1);
198                this.availabilityWA = availability.substr(4, 1);
199                this.availabilityWP = availability.substr(5, 1);
200                this.availabilityRA = availability.substr(6, 1);
201                this.availabilityRP = availability.substr(7, 1);
202                this.availabilityFA = availability.substr(8, 1);
203                this.availabilityFP = availability.substr(9, 1);
204                this.availabilityAA = availability.substr(10, 1);
205                this.availabilityAP = availability.substr(11, 1);
206                this.availabilityUA = availability.substr(12, 1);
207                this.availabilityUP = availability.substr(13, 1);
208            });
209        }
210    }
211    setChanged() {
212        this.changed = true;
213    }
214    saveAvailability() {
215        this.changed = false;
216        this.accountservice.updateAvailability(this.accountservice.account.ACC_ID + this.availabilityMA + this.availabilityMP + this.availabilityTA + this.availabilityTP + this.availabilityWA + this.availabilityWP + this.availabilityRA + this.availabilityRP + this.availabilityFA + this.availabilityFP + this.availabilityAA + this.availabilityAP + this.availabilityUA + this.availabilityUP);
217    }
218    discardAvailability() {
219        this.changed = false;
220        this.selectSchedule();
221    }
222    updateClockIn(id) {
223        this.accountservice.updateClockIn(id);
224        this.selectSchedule();
225        this.mode == 'schedulefuture';
226    }
227    updateClockOut(id) {
228        this.accountservice.updateClockOut(id);
229        this.selectSchedule();
230        this.mode == 'schedulefuture';
231    }
232    return() {
233        this.navCtrl.navigateBack('/home');
234    }
235};
236SchedulePage.ctorParameters = () => [
237    { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__.Router },
238    { type: _ionic_angular__WEBPACK_IMPORTED_MODULE_4__.NavController },
239    { type: _services_account_account_service__WEBPACK_IMPORTED_MODULE_2__.AccountService }
240];
241SchedulePage = (0,tslib__WEBPACK_IMPORTED_MODULE_5__.__decorate)([
242    (0,_angular_core__WEBPACK_IMPORTED_MODULE_6__.Component)({
243        selector: 'app-schedule',
244        template: _schedule_page_html_ngResource__WEBPACK_IMPORTED_MODULE_0__,
245        styles: [_schedule_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__]
246    })
247], SchedulePage);
248
249
250
251/***/ }),
252
253/***/ 4602:
254/*!*****************************************************!*\
255  !*** ./src/app/services/account/account.service.ts ***!
256  \*****************************************************/
257/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
258
259__webpack_require__.r(__webpack_exports__);
260/* harmony export */ __webpack_require__.d(__webpack_exports__, {
261/* harmony export */   "AccountService": () => (/* binding */ AccountService)
262/* harmony export */ });
263/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ 4929);
264/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 3184);
265/* harmony import */ var _api_api_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../api/api.service */ 5146);
266/* harmony import */ var _models_account_account__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../models/account/account */ 5591);
267
268//import 'rxjs/add/operator/toPromise';
269
270
271
272let AccountService = class AccountService {
273    constructor(apiservice) {
274        this.apiservice = apiservice;
275        if (localStorage.getItem('tru')) {
276            this.account = JSON.parse(localStorage.getItem('tru'));
277        }
278        else {
279            this.account = new _models_account_account__WEBPACK_IMPORTED_MODULE_1__.Account("", 0, "", "", "", "", "", "", "");
280        }
281    }
282    selectOrderStatus() {
283        return this.apiservice.get('selectOrderStatus').then((status) => {
284            return status;
285        }).catch((error) => { console.log(error); });
286    }
287    selectOrderMessage() {
288        return this.apiservice.get('selectOrderMessage').then((message) => {
289            return message;
290        }).catch((error) => { console.log(error); });
291    }
292    selectOrderMessageDineIn() {
293        return this.apiservice.get('selectOrderMessageDineIn').then((message) => {
294            return message;
295        }).catch((error) => { console.log(error); });
296    }
297    selectOrderMessageTakeOut() {
298        return this.apiservice.get('selectOrderMessageTakeOut').then((message) => {
299            return message;
300        }).catch((error) => { console.log(error); });
301    }
302    selectAvailability(account) {
303        return this.apiservice.get('selectAvailability' + '/' + account).then((availability) => {
304            return availability;
305        }).catch((error) => { console.log(error); });
306    }
307    updateAvailability(id) {
308        return this.apiservice.get('updateAvailability' + '/' + id).then((message) => {
309            return message;
310        }).catch((error) => { console.log(error); });
311    }
312    selectClock(account) {
313        return this.apiservice.get('selectClock' + '/' + account).then((clock) => {
314            return clock;
315        }).catch((error) => { console.log(error); });
316    }
317    updateClockIn(id) {
318        return this.apiservice.get('updateClockIn' + '/' + id).then((message) => {
319            return message;
320        }).catch((error) => { console.log(error); });
321    }
322    updateClockOut(id) {
323        return this.apiservice.get('updateClockOut' + '/' + id).then((message) => {
324            return message;
325        }).catch((error) => { console.log(error); });
326    }
327    insertClockIn(account) {
328        return this.apiservice.get('insertClockIn' + '/' + account).then((message) => {
329            return message;
330        }).catch((error) => { console.log(error); });
331    }
332    selectSchedule(account) {
333        return this.apiservice.get('selectSchedule' + '/' + account).then((schedule) => {
334            return schedule;
335        }).catch((error) => { console.log(error); });
336    }
337    selectPayment() {
338        return this.apiservice.post('selectPayment', this.account).then((account) => {
339            this.account.ACC_TKA = "";
340            this.account.ACC_TKB = account.ACC_TKB;
341            return account.ACC_TKA;
342        }).catch((error) => { console.log(error); });
343    }
344    insertPayment() {
345        return this.apiservice.post('insertPayment', this.account).then((account) => {
346            this.account.ACC_TKA = "";
347            this.account.ACC_TKB = "";
348            return account.ACC_TKA;
349        }).catch((error) => { console.log(error); });
350    }
351    signup() {
352        return this.apiservice.post('signup', this.account).then((message) => {
353            return message;
354        }).catch((error) => { console.log(error); });
355    }
356    login() {
357        return this.apiservice.post('login', this.account).then((account) => {
358            if (account['ACC_NAM'].substr(0, 5) != 'ERROR') {
359                this.account = account;
360                localStorage.setItem('tru', JSON.stringify(this.account));
361                return 'SUCCESS';
362            }
363            else {
364                return account['ACC_NAM'];
365            }
366        }).catch((error) => { console.log(error); });
367    }
368    logout() {
369        this.account = new _models_account_account__WEBPACK_IMPORTED_MODULE_1__.Account("", 0, "", "", "", "", "", "", "");
370        localStorage.removeItem('tru');
371    }
372    selectLocations() {
373        return this.apiservice.get('selectLocations').then((locations) => {
374       
374     return locations;
375        }).catch((error) => { console.log(error); });
376    }
377};
378AccountService.ctorParameters = () => [
379    { type: _api_api_service__WEBPACK_IMPORTED_MODULE_0__.ApiService }
380];
381AccountService = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([
382    (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable)({
383        providedIn: 'root'
384    })
385], AccountService);
386
387
388
389/***/ }),
390
391/***/ 5146:
392/*!*********************************************!*\
393  !*** ./src/app/services/api/api.service.ts ***!
394  \*********************************************/
395/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
396
397__webpack_require__.r(__webpack_exports__);
398/* harmony export */ __webpack_require__.d(__webpack_exports__, {
399/* harmony export */   "ApiService": () => (/* binding */ ApiService)
400/* harmony export */ });
401/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 4929);
402/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 3184);
403/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ 8784);
404
405
406
407let ApiService = class ApiService {
408    // api_url: string = 'http://localhost:8100/api';
409    constructor(http) {
410        this.http = http;
411        this.api_url = 'https://tru-x.com/tru-api/forwardservice.svc';
412    }
413    get(endpoint, reqOpts) {
414        let response = this.http.get(this.api_url + '/' + endpoint + '/', reqOpts).toPromise();
415        return response;
416    }
417    post(endpoint, body, reqOpts) {
418        let response = this.http.post(this.api_url + '/' + endpoint + '/', body, reqOpts).toPromise();
419        return response;
420    }
421    post2(endpoint, body, reqOpts) {
422        let response = this.http.post('' + '/' + endpoint + '/', body, reqOpts).toPromise();
423        return response;
424    }
425};
426ApiService.ctorParameters = () => [
427    { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__.HttpClient }
428];
429ApiService = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
430    (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.Injectable)({
431        providedIn: 'root'
432    })
433], ApiService);
434
435
436
437/***/ }),
438
439/***/ 786:
440/*!**************************************************************!*\
441  !*** ./src/app/pages/schedule/schedule.page.scss?ngResource ***!
442  \**************************************************************/
443/***/ ((module) => {
444
445module.exports = "ion-grid {\n  max-width: 600px;\n}\n\nion-segment {\n  margin-bottom: 15px;\n  margin-top: 15px;\n}\n\nion-footer ion-button {\n  --background: #5e88bf;\n  --color: white;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjaGVkdWxlLnBhZ2Uuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxtQkFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBR0U7RUFDRSxxQkFBQTtFQUNBLGNBQUE7QUFBSiIsImZpbGUiOiJzY2hlZHVsZS5wYWdlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJpb24tZ3JpZCB7XHJcbiAgbWF4LXdpZHRoOiA2MDBweDtcclxufVxyXG5cclxuaW9uLXNlZ21lbnQge1xyXG4gIG1hcmdpbi1ib3R0b206IDE1cHg7XHJcbiAgbWFyZ2luLXRvcDogMTVweDtcclxufVxyXG5cclxuaW9uLWZvb3RlciB7XHJcbiAgaW9uLWJ1dHRvbiB7XHJcbiAgICAtLWJhY2tncm91bmQ6ICM1ZTg4YmY7XHJcbiAgICAtLWNvbG9yOiB3aGl0ZTtcclxuICB9XHJcbn1cclxuIl19 */";
446
447/***/ }),
448
449/***/ 8601:
450/*!**************************************************************!*\
451  !*** ./src/app/pages/schedule/schedule.page.html?ngResource ***!
452  \**************************************************************/
453/***/ ((module) => {
454
455module.exports = "<ion-content>\r\n  <ion-grid>\r\n    <ion-segment [(ngModel)]='mode' (click)=\"selectSchedule()\">\r\n      <ion-segment-button value=\"schedulefuture\">\r\n        Future Schedule\r\n      </ion-segment-button>\r\n      <ion-segment-button value=\"schedulepast\">\r\n        Past Schedule\r\n      </ion-segment-button>\r\n      <ion-segment-button value=\"schedulepreference\">\r\n        Schedule Preference\r\n      </ion-segment-button>\r\n    </ion-segment>\r\n\r\n    <ng-container *ngIf='mode==\"schedulefuture\"'>\r\n      <ng-container *ngFor='let schedule of schedules'>\r\n        <ion-row *ngIf='schedule.SCH_STR >= today'>\r\n          <ion-col size=\"5\">\r\n            <ion-label>{{('SunMonTueWedThuFriSat').substr(schedule.SCH_STR.getDay() * 3, 3) + ' ' + (schedule.SCH_STR.getMonth() + 1) + '/' + schedule.SCH_STR.getDate() + ' ' + (schedule.SCH_STR.getHours() % 12 || 12) + '-' + (schedule.SCH_END.getHours() % 12 || 12)}}</ion-label>\r\n          </ion-col>\r\n          <ion-col size=\"2\">\r\n            <ion-label *ngIf='schedule.SCH_IDT.getYear() > 100'>{{(schedule.SCH_IDT.getHours() % 12 || 12) + ':' + ('00' + schedule.SCH_IDT.getMinutes().toString()).substr(schedule.SCH_IDT.getMinutes().toString().length, 2)}}</ion-label>\r\n          </ion-col>\r\n          <ion-col size=\"2\">\r\n            <ion-label *ngIf='schedule.SCH_ODT.getYear() > 100'>{{(schedule.SCH_ODT.getHours() % 12 || 12) + ':' + ('00' + schedule.SCH_ODT.getMinutes().toString()).substr(schedule.SCH_ODT.getMinutes().toString().length, 2)}}</ion-label>\r\n          </ion-col>\r\n          <ion-col size=\"3\">\r\n            <ion-label *ngIf='schedule.SCH_ODT.getYear() > 100'>{{((schedule.SCH_ODT - schedule.SCH_IDT) / 3600000).toFixed(2) + ' Hours'}}</ion-label>\r\n          </ion-col>\r\n        </ion-row>\r\n        <ion-row *ngIf='schedule.SCH_STR >= today && schedule.SCH_STR < tomorrow && schedule.SCH_IDT.getYear() <= 100'>\r\n          <ion-col>\r\n            <ion-button expand=\"block\" (click)=\"updateClockIn(schedule.SCH_ID)\">CLOCK IN</ion-button>\r\n          </ion-col>\r\n        </ion-row>\r\n        <ion-row *ngIf='schedule.SCH_STR >= today && schedule.SCH_STR < tomorrow && schedule.SCH_IDT.getYear() > 100 && schedule.SCH_ODT.getYear() <= 100'>\r\n          <ion-col>\r\n            <ion-button expand=\"block\" (click)=\"updateClockOut(schedule.SCH_ID)\">CLOCK OUT</ion-button>\r\n          </ion-col>\r\n        </ion-row>\r\n      </ng-container>\r\n    </ng-container>\r\n\r\n    <ng-container *ngIf='mode==\"schedulepast\"'>\r\n      <ng-container *ngFor='let schedule of schedules'>\r\n        <ion-row *ngIf='schedule.SCH_STR < today'>\r\n          <ion-col size=\"5\">\r\n            <ion-label>{{('SunMonTueWedThuFriSat').substr(schedule.SCH_STR.getDay() * 3, 3) + ' ' + (schedule.SCH_STR.getMonth() + 1) + '/' + schedule.SCH_STR.getDate() + ' ' + (schedule.SCH_STR.getHours() % 12 || 12) + '-' + (schedule.SCH_END.getHours() % 12 || 12)}}</ion-label>\r\n          </ion-col>\r\n          <ion-col size=\"2\">\r\n            <ion-label *ngIf='schedule.SCH_IDT.getYear() > 100'>{{(schedule.SCH_IDT.getHours() % 12 || 12) + ':' + ('00' + schedule.SCH_IDT.getMinutes().toString()).substr(schedule.SCH_IDT.getMinutes().toString().length, 2)}}</ion-label>\r\n          </ion-col>\r\n          <ion-col size=\"2\">\r\n            <ion-label *ngIf='schedule.SCH_ODT.getYear() > 100'>{{(schedule.SCH_ODT.getHours() % 12 || 12) + ':' + ('00' + schedule.SCH_ODT.getMinutes().toString()).substr(schedule.SCH_ODT.getMinutes().toString().length, 2)}}</ion-label>\r\n          </ion-col>\r\n          <ion-col size=\"3\">\r\n            <ion-label *ngIf='schedule.SCH_ODT.getYear() > 100'>{{((schedule.SCH_ODT - schedule.SCH_IDT) / 3600000).toFixed(2) + ' Hours'}}</ion-label>\r\n          </ion-col>\r\n        </ion-row>\r\n      </ng-container>\r\n    </ng-container>\r\n\r\n    <ng-container *ngIf='mode==\"schedulepreference\"'>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Mon AM 10-4</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityMA' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Mon PM 4-12</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityMP' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Tue AM 10-4</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityTA' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Tue PM 4-12</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityTP' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Wed AM 10-4</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityWA' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Wed PM 4-12</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityWP' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Thu AM 10-4</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityRA' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Thu PM 4-12</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityRP' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Fri AM 10-4</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityFA' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Fri PM 4-12</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityFP' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Sat AM 10-4</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityAA' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Sat PM 4-12</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityAP' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Sun AM 10-4</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityUA' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n          </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n      <ion-row class=\"ion-align-items-center\">\r\n        <ion-col size=\"4\">\r\n          <ion-label>Sun PM 4-12</ion-label>\r\n        </ion-col>\r\n        <ion-col size=\"8\">\r\n          <ion-segment [(ngModel)]='availabilityUP' (click)='setChanged()'>\r\n            <ion-segment-button value=\"0\">No</ion-segment-button>\r\n            <ion-segment-button value=\"1\">Primary</ion-segment-button>\r\n            <ion-segment-button value=\"2\">Seconday</ion-segment-button>\r\n            <ion-segment-button value=\"3\">Tertiary</ion-segment-button>\r\n      
455    </ion-segment>\r\n        </ion-col>\r\n      </ion-row>\r\n    </ng-container>\r\n\r\n  </ion-grid>\r\n</ion-content>\r\n\r\n<ion-footer>\r\n  <ion-grid>\r\n    <ion-row>\r\n      <ion-col>\r\n        <ion-button *ngIf='changed' expand=\"block\" (click)=\"saveAvailability()\">SAVE CHANGES</ion-button>\r\n        <ion-button *ngIf='changed' expand=\"block\" (click)=\"discardAvailability()\">DISCARD CHANGES</ion-button>\r\n        <ion-button *ngIf='!changed' expand=\"block\" (click)=\"return()\">RETURN TO HOME PAGE</ion-button>\r\n      </ion-col>\r\n    </ion-row>\r\n  </ion-grid>\r\n</ion-footer>\r\n";
456
457/***/ })
458
459}]);
460//# sourceMappingURL=src_app_pages_schedule_schedule_module_ts.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.