1"use strict"; 2(self["webpackChunkapp"] = self["webpackChunkapp"] || []).push([["src_app_pages_stock_stock_module_ts-src_app_services_api_api_service_ts"],{ 3 4/***/ 5529: 5/*!*****************************************************!*\ 6 !*** ./src/app/pages/stock/stock-routing.module.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 */ "StockPageRoutingModule": () => (/* binding */ StockPageRoutingModule) 13/* harmony export */ }); 14/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 4929); 15/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 3184); 16/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 2816); 17/* harmony import */ var _stock_page__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stock.page */ 4786); 18 19 20 21 22const routes = [ 23 { 24 path: '', 25 component: _stock_page__WEBPACK_IMPORTED_MODULE_0__.StockPage 26 } 27]; 28let StockPageRoutingModule = class StockPageRoutingModule { 29}; 30StockPageRoutingModule = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([ 31 (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.NgModule)({ 32 imports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule.forChild(routes)], 33 exports: [_angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterModule], 34 }) 35], StockPageRoutingModule); 36 37 38 39/***/ }), 40 41/***/ 6706: 42/*!*********************************************!*\ 43 !*** ./src/app/pages/stock/stock.module.ts ***! 44 \*********************************************/ 45/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 46 47__webpack_require__.r(__webpack_exports__); 48/* harmony export */ __webpack_require__.d(__webpack_exports__, { 49/* harmony export */ "StockPageModule": () => (/* binding */ StockPageModule) 50/* harmony export */ }); 51/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ 4929); 52/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 3184); 53/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 6362); 54/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 587); 55/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ 3819); 56/* harmony import */ var _stock_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stock-routing.module */ 5529); 57/* harmony import */ var _stock_page__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stock.page */ 4786); 58 59 60 61 62 63 64 65let StockPageModule = class StockPageModule { 66}; 67StockPageModule = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([ 68 (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgModule)({ 69 imports: [ 70 _angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule, 71 _angular_forms__WEBPACK_IMPORTED_MODULE_5__.FormsModule, 72 _ionic_angular__WEBPACK_IMPORTED_MODULE_6__.IonicModule, 73 _stock_routing_module__WEBPACK_IMPORTED_MODULE_0__.StockPageRoutingModule 74 ], 75 declarations: [_stock_page__WEBPACK_IMPORTED_MODULE_1__.StockPage] 76 }) 77], StockPageModule); 78 79 80 81/***/ }), 82 83/***/ 4786: 84/*!*******************************************!*\ 85 !*** ./src/app/pages/stock/stock.page.ts ***! 86 \*******************************************/ 87/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 88 89__webpack_require__.r(__webpack_exports__); 90/* harmony export */ __webpack_require__.d(__webpack_exports__, { 91/* harmony export */ "StockPage": () => (/* binding */ StockPage) 92/* harmony export */ }); 93/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! tslib */ 4929); 94/* harmony import */ var _stock_page_html_ngResource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stock.page.html?ngResource */ 1783); 95/* harmony import */ var _stock_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stock.page.scss?ngResource */ 4592); 96/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 3184); 97/* harmony import */ var _services_category_category_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/category/category.service */ 249); 98 99 100 101 102 103let StockPage = class StockPage { 104 constructor(categoryservice) { 105 this.categoryservice = categoryservice; 106 this.changed = false; 107 } 108 ngOnInit() { 109 } 110 ionViewDidEnter() { 111 this.categoryservice.selectCategorys('stock').then((categorys) => { 112 for (let category of categorys) { 113 for (let inventory of category.INVENTORY) { 114 if (inventory.INV_STA > 0) { 115 inventory.inventoryStatus = 'IN'; 116 } 117 else { 118 inventory.inventoryStatus = 'OUT'; 119 } 120 } 121 } 122 this.categorys = categorys; 123 }); 124 } 125 valid() { 126 this.changed = false; 127 for (let category of this.categorys) { 128 for (let inventory of category.INVENTORY) { 129 if ((inventory.INV_STA < 0 && inventory.inventoryStatus == 'IN') || (inventory.INV_STA > 0 && inventory.inventoryStatus == 'OUT')) { 130 this.changed = true; 131 } 132 } 133 } 134 } 135 done() { 136 for (let category of this.categorys) { 137 for (let inventory of category.INVENTORY) { 138 if ((inventory.INV_STA < 0 && inventory.inventoryStatus == 'IN') || (inventory.INV_STA > 0 && inventory.inventoryStatus == 'OUT')) { 139 inventory.INV_STA = inventory.INV_STA * -1; 140 } 141 else { 142 inventory.INV_STA = 0; 143 } 144 } 145 } 146 this.categoryservice.updateInventoryStatus(this.categorys, ""); 147 } 148}; 149StockPage.ctorParameters = () => [ 150 { type: _services_category_category_service__WEBPACK_IMPORTED_MODULE_2__.CategoryService } 151]; 152StockPage = (0,tslib__WEBPACK_IMPORTED_MODULE_3__.__decorate)([ 153 (0,_angular_core__WEBPACK_IMPORTED_MODULE_4__.Component)({ 154 selector: 'app-stock', 155 template: _stock_page_html_ngResource__WEBPACK_IMPORTED_MODULE_0__, 156 styles: [_stock_page_scss_ngResource__WEBPACK_IMPORTED_MODULE_1__] 157 }) 158], StockPage); 159 160 161 162/***/ }), 163
164/***/ 5146: 165/*!*********************************************!*\ 166 !*** ./src/app/services/api/api.service.ts ***! 167 \*********************************************/ 168/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 169 170__webpack_require__.r(__webpack_exports__); 171/* harmony export */ __webpack_require__.d(__webpack_exports__, { 172/* harmony export */ "ApiService": () => (/* binding */ ApiService) 173/* harmony export */ }); 174/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ 4929); 175/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 3184); 176/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ 8784); 177 178 179 180let ApiService = class ApiService { 181 // api_url: string = 'http://localhost:8100/api'; 182 constructor(http) { 183 this.http = http; 184 this.api_url = 'https://tru-x.com/tru-api/forwardservice.svc'; 185 } 186 get(endpoint, reqOpts) { 187 let response = this.http.get(this.api_url + '/' + endpoint + '/', reqOpts).toPromise(); 188 return response; 189 } 190 post(endpoint, body, reqOpts) { 191 let response = this.http.post(this.api_url + '/' + endpoint + '/', body, reqOpts).toPromise(); 192 return response; 193 } 194 post2(endpoint, body, reqOpts) { 195 let response = this.http.post('' + '/' + endpoint + '/', body, reqOpts).toPromise(); 196 return response; 197 } 198}; 199ApiService.ctorParameters = () => [ 200 { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__.HttpClient } 201]; 202ApiService = (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__decorate)([ 203 (0,_angular_core__WEBPACK_IMPORTED_MODULE_2__.Injectable)({ 204 providedIn: 'root' 205 }) 206], ApiService); 207 208 209 210/***/ }), 211 212/***/ 4592: 213/*!********************************************************!*\ 214 !*** ./src/app/pages/stock/stock.page.scss?ngResource ***! 215 \********************************************************/ 216/***/ ((module) => { 217 218module.exports = ".allinventory {\n margin-top: 10px;\n}\n\n.section {\n background-color: grey;\n color: white;\n text-transform: uppercase;\n}\n\n.section ion-label {\n font-weight: bold;\n margin: 5px;\n}\n\n.section ion-col > ion-row > ion-col {\n font-weight: bold;\n font-size: 0.8em;\n padding: 1px;\n line-height: 0.9em;\n}\n\n.list-ios > .item-block:first-child {\n border-top: none;\n}\n\nion-segment {\n margin-bottom: 15px !important;\n margin-top: 15px !important;\n padding-left: 15px;\n padding-right: 15px;\n}\n\n.menu-item, .menu-item * {\n padding-top: 0 !important;\n padding-bottom: 0 !important;\n}\n\n.menu-item ion-label, .menu-item * ion-label {\n margin: 5px;\n}\n\n.menu-item .item-block, .menu-item * .item-block {\n min-height: 2.2em !important;\n}\n\n.separator {\n border-bottom: 1px #dcd9e4 solid;\n}\n\nion-textarea {\n margin-bottom: 400px;\n}\n\n.item {\n padding-left: 0px;\n padding-right: 0px;\n}\n\n.item .item-inner {\n padding: 0 !important;\n}\n\n.label {\n white-space: normal;\n text-transform: none;\n font-size: 1em;\n margin-right: 0 !important;\n}\n\n.itemamount {\n margin-top: 5px;\n}\n\n.no-padding {\n padding: 0 !important;\n}\n\n.item-checkbox {\n display: -webkit-box;\n}\n\n.item-checkbox .checkbox {\n margin: auto !important;\n}\n\n.quantity {\n align-items: center;\n justify-content: center;\n display: flex;\n}\n\n.scroll-content {\n padding: 0 !important;\n}\n\n#instructions {\n overflow-y: scroll;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0b2NrLnBhZ2Uuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzI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wcHg7XHJcbn1cclxuXHJcbi5pdGVtIHtcclxuICBwYWRkaW5nLWxlZnQ6IDBweDtcclxuICBwYWRkaW5nLXJpZ2h0OiAwcHg7XHJcblxyXG4gIC5pdGVtLWlubmVyIHtcclxuICAgIHBhZGRpbmc6IDAgIWltcG9ydGFudDtcclxuICB9XHJcbn1cclxuXHJcbi5sYWJlbCB7XHJcbiAgd2hpdGUtc3BhY2U6IG5vcm1hbDtcclxuICB0ZXh0LXRyYW5zZm9ybTogbm9uZTtcclxuICBmb250LXNpemU6IDFlbTtcclxuICBtYXJnaW4tcmlnaHQ6IDAgIWltcG9ydGFudDtcclxufVxyXG5cclxuLml0ZW1hbW91bnQge1xyXG4gIG1hcmdpbi10b3A6IDVweDtcclxufVxyXG5cclxuLm5vLXBhZGRpbmcge1xyXG4gIHBhZGRpbmc6IDAgIWltcG9ydGFudDtcclxufVxyXG5cclxuLml0ZW0tY2hlY2tib3gge1xyXG4gIGRpc3BsYXk6IC13ZWJraXQtYm94O1xyXG5cclxuICAuY2hlY2tib3gge1xyXG4gICAgbWFyZ2luOiBhdXRvICFpbXBvcnRhbnQ7XHJcbiAgfVxyXG59XHJcblxyXG4ucXVhbnRpdHkge1xyXG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XHJcbiAgZGlzcGxheTogZmxleDtcclxufVxyXG5cclxuLnNjcm9sbC1jb250ZW50IHtcclxuICBwYWRkaW5nOiAwICFpbXBvcnRhbnQ7XHJcbn1cclxuXHJcbiNpbnN0cnVjdGlvbnMge1xyXG4gIG92ZXJmbG93LXk6IHNjcm9sbDtcclxufVxyXG4iXX0= */"; 219 220/***/ }), 221 222/***/ 1783: 223/*!********************************************************!*\ 224 !*** ./src/app/pages/stock/stock.page.html?ngResource ***! 225 \********************************************************/ 226/***/ ((module) => { 227 228module.exports = "<ion-content>\r\n <ion-grid>\r\n <ion-list class='allinventory'>\r\n <ion-item-group>\r\n <ng-container *ngFor='let section of categorys'>\r\n <ion-row class='section' align-items-center>\r\n <ion-col size=\"12\">\r\n <ion-label font-size-large>{{ section.CAT_NAM }}</ion-label>\r\n </ion-col>\r\n </ion-row>\r\n <ng-container *ngFor='let inventory of section.INVENTORY; let i = index'>\r\n <ion-row class='menu-item' [class.separator]='i != section.INVENTORY.length-1' radio-group nowrap align-items-center>\r\n <ion-col size=\"8\">\r\n <ion-item class='label'>{{ inventory.INV_NAM }}</ion-item>\r\n </ion-col>\r\n <ion-col size=\"4\">\r\n <ion-row justify-content-end>\r\n <ion-segment [(ngModel)]='inventory.inventoryStatus' (click)='valid()'>\r\n <ion-segment-button value='IN'>IN</ion-segment-button>\r\n <ion-segment-button value='OUT'>OUT</ion-segment-button>\r\n </ion-segment>\r\n </ion-row>\r\n </ion-col>\r\n </ion-row>\r\n </ng-container>\r\n </ng-container>\r\n </ion-item-group>\r\n </ion-list>\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 expand=\"block\" [disabled]='!changed' (click)='done()'>SAVE</ion-button>\r\n </ion-col>\r\n </ion-row>\r\n <ion-row>\r\n <ion-col>\r\n <ion-button expand=\"block\">CANCEL</ion-button>\r\n </ion-col>\r\n </ion-row>\r\n </ion-grid>\r\n</ion-footer>\r\n"; 229 230/***/ }) 231 232}]); 233//# sourceMappingURL=src_app_pages_stock_stock_module_ts-src_app_services_api_api_service_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.