webpackJsonp([29],{

/***/ 1528:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AqlActivityLogPageModule", function() { return AqlActivityLogPageModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__aql_activity_log__ = __webpack_require__(1857);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_components_module__ = __webpack_require__(1003);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ngx_translate_core__ = __webpack_require__(89);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ncinga_sp_nsp_app_core_dist__ = __webpack_require__(6);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};






var AqlActivityLogPageModule = /** @class */ (function () {
    function AqlActivityLogPageModule() {
    }
    AqlActivityLogPageModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["NgModule"])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_2__aql_activity_log__["a" /* AqlActivityLogPage */],
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_5__ncinga_sp_nsp_app_core_dist__["j" /* CoreModule */],
                __WEBPACK_IMPORTED_MODULE_3__components_components_module__["a" /* ComponentsModule */],
                __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["j" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_2__aql_activity_log__["a" /* AqlActivityLogPage */]),
                __WEBPACK_IMPORTED_MODULE_4__ngx_translate_core__["b" /* TranslateModule */].forChild()
            ],
        })
    ], AqlActivityLogPageModule);
    return AqlActivityLogPageModule;
}());

//# sourceMappingURL=aql-activity-log.module.js.map

/***/ }),

/***/ 1857:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AqlActivityLogPage; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ngx_logger__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist_providers_navigation_manager__ = __webpack_require__(46);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__providers_aql_data_provider__ = __webpack_require__(377);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__aql_activity_log_template__ = __webpack_require__(1858);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common_http__ = __webpack_require__(17);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__providers_ccenv_provider__ = __webpack_require__(156);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};








var AqlActivityLogPage = /** @class */ (function () {
    function AqlActivityLogPage(logger, navParams, aqlDataProvider, http, envPro, navigationManager) {
        var _this = this;
        this.logger = logger;
        this.navParams = navParams;
        this.aqlDataProvider = aqlDataProvider;
        this.http = http;
        this.envPro = envPro;
        this.navigationManager = navigationManager;
        this.status = 'completed';
        this.nextPage = '';
        this.aql_complete_list = [];
        this.aql_incomplete_list = [];
        this.aql_display_list = [];
        this.tools = {
            line: false,
            menu: true,
            shift: false,
            user: true
        };
        var url = this.envPro.getEnvVar('SAMPLE_SCHENARIOS');
        url = url.replace('$name', 'aql_activity_log');
        this.http.get(url).subscribe(function (res) {
            setTimeout(function () {
                _this.logger.debug(res['views']);
                _this.currentPageConfig = res['views'][0];
                _this.currentPageData = _this.currentPageConfig['components_descriptor'];
                _this.logger.debug(_this.currentPageData.header_data);
                // load page header and footer;
                _this.currentPageheader = _this.currentPageConfig['title'];
                _this.currentPagebuttons = _this.currentPageConfig['view_controles'];
                // check whether next page available
                if (_this.currentPageConfig['next_view_ref'] !== 'EXIT') {
                    _this.nextPage = _this.currentPageConfig['next_view_ref'];
                }
                else {
                    _this.nextPage = 'page_order_end';
                }
            }, 500);
        });
    }
    AqlActivityLogPage.prototype.ngAfterViewInit = function () {
        var _this = this;
        this.logger.debug('aql complete list loaded');
        this.aql_complete_list = this.aqlDataProvider.aql_complete_list;
        this.aql_incomplete_list = this.aqlDataProvider.aql_incomplete_list;
        this.aqlDataProvider.aql_data_captured_list.forEach(function (item, idx) {
            var display = {};
            display['time'] = item.time;
            display['buyer'] = item.data.Buyer;
            display['po'] = item.data.PO;
            display['style'] = item.data.Style;
            display['qty'] = item.event.ac.total_qty;
            display['line'] = item.event.ac.line;
            display['status'] = item.event.ac.status;
            _this.aql_display_list.push(display);
        });
    };
    AqlActivityLogPage.prototype.addNewAudit = function () {
        this.navigationManager.nextView('aql_pkg_details', {
            data: '',
            event: ''
        });
    };
    AqlActivityLogPage.prototype.gotoPkgDetails = function (currentRow) {
        this.logger.info(currentRow);
        this.navigationManager.nextView('aql_pkg_details', {
            data: currentRow.data,
            event: ''
        });
    };
    AqlActivityLogPage.prototype.getItems = function (item) {
    };
    AqlActivityLogPage = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["i" /* IonicPage */])(),
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'page-aql-activity-log',
            template: __WEBPACK_IMPORTED_MODULE_5__aql_activity_log_template__["a" /* AQL_ACTIVITY_LOG_HTML */]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2_ngx_logger__["b" /* NGXLogger */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["p" /* NavParams */],
            __WEBPACK_IMPORTED_MODULE_4__providers_aql_data_provider__["a" /* AqlDataProvider */],
            __WEBPACK_IMPORTED_MODULE_6__angular_common_http__["a" /* HttpClient */],
            __WEBPACK_IMPORTED_MODULE_7__providers_ccenv_provider__["a" /* CCEnvProvider */], __WEBPACK_IMPORTED_MODULE_3__ncinga_sp_nsp_app_core_dist_providers_navigation_manager__["a" /* NavigationManager */]])
    ], AqlActivityLogPage);
    return AqlActivityLogPage;
}());

//# sourceMappingURL=aql-activity-log.js.map

/***/ }),

/***/ 1858:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AQL_ACTIVITY_LOG_HTML; });
/**
 * Created by Paramee Gunethilake on 6/4/2018.
 */
var AQL_ACTIVITY_LOG_HTML = "\n\n<ion-header>\n  <common-main-header [title]=\"currentPageheader\" [tools]=\"tools\"></common-main-header>\n  </ion-header>\n <ion-content padding>\n<ion-grid>\n<ion-row>\n<ion-segment [(ngModel)]=\"completed\" class=\"segment-header-row\">\n<ion-segment-button   value=\"completed\" >\n    Activity Log\n</ion-segment-button>\n</ion-segment>\n</ion-row>\n   <ion-row class=\"acti-log-hdr\">\n    <!--<ion-col class=\"hdr\"> Activity Log</ion-col>-->\n<ion-col><!--<ion-searchbar (ionInput)=\"getItems($event)\"></ion-searchbar>--></ion-col>\n    </ion-row>\n   <ion-row  *ngIf=\"currentPageData\"  class=\"segment-data-row\" >\n\n    <div [ngSwitch]=\"completed\" class=\"acti-tbl-wrp\">\n <ion-list *ngSwitchCase=\"completed\">\n\n    <ion-row class=\"segment-data-header\">\n<ion-col *ngFor=\"let headerItem of currentPageData.header_data\" class=\"segment-data-header-col\">\n    {{headerItem.key}}\n</ion-col>\n</ion-row>\n\n<ion-row *ngFor=\"let singleRow of aql_display_list\" class=\"segment-data-data\">\n<ion-col *ngFor=\"let singleCol of currentPageData.header_data\" class=\"segment-data-data-col\">\n  <span *ngIf=\"singleRow[singleCol.value] === 'pass'\" class=\"pass-col\">{{singleRow[singleCol.value]}}</span>\n  <span *ngIf=\"singleRow[singleCol.value] === 'fail'\" class=\"fail-col\">{{singleRow[singleCol.value]}}</span>\n  <span *ngIf=\"!(singleRow[singleCol.value] === 'fail' || singleRow[singleCol.value] === 'pass')\">{{singleRow[singleCol.value]}}</span>\n</ion-col>\n</ion-row>\n </ion-list>\n\n</div>\n\n\n</ion-row>\n</ion-grid>\n</ion-content>\n";
//# sourceMappingURL=aql-activity-log-template.js.map

/***/ })

});
//# sourceMappingURL=29.js.map