(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-granel-movimentos-relatorio-pool-relatorio-pool-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool-form/relatorio-pool-form.component.html":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool-form/relatorio-pool-form.component.html ***!
  \*****************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [sisFormularioId]=\"constantes.sisFormularioId\" [botoesComando]=\"constantes.listaForm\">\n</app-menu-command-bar>\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <app-form-legenda></app-form-legenda>\n            <div class=\"card-body widget-body\">\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\" autocomplete=\"off\" novalidate>\n                    <app-validacoes></app-validacoes>\n                    <div class=\" row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                    modalTitle=\"pesquisaDeProduto\" [inSelected]=\"filtro.material\"\n                                    [(ngModel)]=\"filtro.materialId\" [required]=\"true\"\n                                    (outModel)=\"trataMaterialSelecionado($event)\">\n                                </app-pesquisa-material>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate\n                                            }}</label>\n                                        <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"filtro.dataIni\" autofocus\n                                            class=\"dataHora\" [formatDateTime]=\"mascara.getFormatData\"\n                                            (executa)=\"validaDatas()\" required [disabled]=\"true\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                        <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"filtro.dataFim\" class=\"dataHora\"\n                                            [formatDateTime]=\"mascara.getFormatData\" (executa)=\"validaDatas()\" required\n                                            [disabled]=\"!enabledDataFim\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6\">\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"detalhaMovTanque\" name=\"detalhaMovTanque\"\n                                            [ngModel]=\"filtro.detalhaTq === 'S'\"\n                                            (ngModelChange)=\"filtro.detalhaTq=$event?'S':'N'\"\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        <label class=\"custom-control-label\"\n                                            for=\"detalhaMovTanque\">{{'labels.detalhaMovTanque' |\n                                            translate}}</label>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6\">\n                                    <div class=\"custom-control custom-checkbox\">\n                                        <input id=\"oficial\" name=\"oficial\" [ngModel]=\"filtro.oficial === 'S'\"\n                                            (ngModelChange)=\"filtro.oficial=$event?'S':'N'\"\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        <label class=\"custom-control-label\" for=\"oficial\">{{'labels.oficial' |\n                                            translate}}</label>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"table-overflow\">\n                                <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\n                                    <thead>\n                                        <tr>\n                                            <th class=\"text-center\">{{ 'labels.inicial' | translate }}</th>\n                                            <th class=\"text-center\">{{ 'labels.final' | translate }}</th>\n                                        </tr>\n                                    </thead>\n                                    <tbody>\n                                        <tr *ngFor=\"let l of dados; index as i\" (click)=\"rowSelect(l, i)\"\n                                            [ngClass]=\"{'info': l == data && i == currentIndex ? true : false}\">\n                                            <td class=\"text-center\">{{ l.dataIni | date: 'dd/MM/yyyy' }}</td>\n                                            <td class=\"text-center\">{{ l.dataFim | date: 'dd/MM/yyyy' }}</td>\n                                        </tr>\n                                        <tr *ngIf=\"!dados || dados.length === 0\">\n                                            <th colspan=\"2\">\n                                                {{'messages.nenhumRegistroEncontrado' | translate }}\n                                            </th>\n                                        </tr>\n                                    </tbody>\n                                </table>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"form-group\">\n                        <button class=\"btn btn-success mr-2\" type=\"submit\">\n                            {{ 'buttons.gerarRelatorio' | translate }}\n                        </button>\n                        <button class=\"btn btn-success mr-2\" (click)=\"export(f)\" type=\"button\">{{\n                            'buttons.exportarExcel' | translate }}\n                        </button>\n                        <button class=\"btn btn-success mr-2\" (click)=\"sendMail(f)\" type=\"button\">{{\n                            'buttons.enviarEmail' | translate }}\n                        </button>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-email [reportId]=\"constantes.reportId\" [titulo]=\"constantes.reportTitulo.titulo\"\n    [subTitulo]=\"constantes.reportTitulo.subTitulo\" [data]=\"constantes.paramRelatorio\"></app-email>");

/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool-form/relatorio-pool-form.component.ts":
/*!*************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool-form/relatorio-pool-form.component.ts ***!
  \*************************************************************************************************************************/
/*! exports provided: RelatorioPoolFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioPoolFormComponent", function() { return RelatorioPoolFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var _relatorio_pool_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../relatorio-pool.constants */ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.constants.ts");
/* harmony import */ var _relatorio_pool_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../relatorio-pool.model */ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.model.ts");
/* harmony import */ var _relatorio_pool_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../relatorio-pool.service */ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

















var RelatorioPoolFormComponent = /** @class */ (function (_super) {
    __extends(RelatorioPoolFormComponent, _super);
    function RelatorioPoolFormComponent(loginService, permissoesUtils, funcoesService, excelService, reportService, messageService, service, configuracao) {
        var _this = _super.call(this, new _relatorio_pool_constants__WEBPACK_IMPORTED_MODULE_11__["RelatorioPoolConstants"](), funcoesService) || this;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.excelService = excelService;
        _this.reportService = reportService;
        _this.messageService = messageService;
        _this.service = service;
        _this.configuracao = configuracao;
        _this.mensagens = [];
        _this.constantes = new _relatorio_pool_constants__WEBPACK_IMPORTED_MODULE_11__["RelatorioPoolConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.filtro = new _relatorio_pool_model__WEBPACK_IMPORTED_MODULE_12__["RelatorioPool"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        _this.data = new _relatorio_pool_model__WEBPACK_IMPORTED_MODULE_12__["RelatorioPool"]();
        _this.hasDados = false;
        _this.enabledDataFim = false;
        _this.loadConfig = function () {
            if (!_this.configuracao.isLoadConfig())
                return;
            _this.modControlePool = _this.configuracao.number("REL", "ModControlePool");
        };
        _this.export = function (form) {
            if (!_this.printParams(form))
                return;
            if (!_this.validaDatas())
                return;
            _this.reportService.exportEspecificos(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                var headerDictionary = {};
                var options = {
                    headerJsonKeys: true,
                    headerDictionary: headerDictionary
                };
                _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "relatorioPool"), options);
            });
        };
        return _this;
    }
    RelatorioPoolFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    RelatorioPoolFormComponent.prototype.onSubmit = function (form) {
        if (!this.printParams(form))
            return;
        if (!this.validaDatas())
            return;
        this.print(null, true);
    };
    RelatorioPoolFormComponent.prototype.onCancelar = function () {
        this.filtro = new _relatorio_pool_model__WEBPACK_IMPORTED_MODULE_12__["RelatorioPool"]();
    };
    RelatorioPoolFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    RelatorioPoolFormComponent.prototype.printParams = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return false;
        }
        this.trataRel();
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            regControle: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["NumberUtilsStaticService"].toNumber(this.filtro.regControle),
            detalhaTq: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["StringUtilsStaticService"].toString(this.filtro.detalhaTq),
            dataI: this.filtro.dataIni,
            dataF: this.filtro.dataFim,
            materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["StringUtilsStaticService"].toString(this.filtro.materialId),
            operador: this.loginService.getLogin().usuario
        };
        return true;
    };
    RelatorioPoolFormComponent.prototype.trataRel = function () {
        this.constantes.reportTitulo.titulo = "";
        var titulo = "";
        if (this.modControlePool < 2) {
            this.constantes.reportId = "GRN0010";
        }
        else if (this.modControlePool >= 2) {
            this.constantes.reportId = "GRN0010-1";
        }
        titulo = "Demonstrativo Pool - " + this.filtro.material.fantasia;
        if (this.filtro.oficial === "S") {
            titulo = titulo + " - Oficial";
        }
        else {
            titulo = titulo + " - Previa";
        }
        this.constantes.reportTitulo.titulo = titulo;
    };
    RelatorioPoolFormComponent.prototype.sendMail = function (form) {
        if (!this.printParams(form))
            return;
        if (!this.validaDatas())
            return;
        _super.prototype.sendMail.call(this, this.constantes, true);
    };
    RelatorioPoolFormComponent.prototype.validaDatas = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_10__["DateTimeUtilsStaticService"].menorA(this.filtro.dataFim, this.filtro.dataIni)) {
            this.messageService.warning("titles.relatorioPool", "messages.periodoDeMaiorQueAte");
            return false;
        }
        return true;
    };
    RelatorioPoolFormComponent.prototype.trataMaterialSelecionado = function (material) {
        var _this = this;
        if (material) {
            this.dados = [];
            this.filtro.material = material;
            this.service.getDados({ materialId: this.filtro.materialId }).subscribe(function (resp) {
                _this.dados = resp;
                _this.hasDados = _this.dados && _this.dados.length > 0;
                if (_this.hasDados) {
                    _this.rowSelect(_this.dados[0], 0);
                }
                else {
                    _this.filtro.dataFim = new Date();
                }
            });
        }
        else {
            this.filtro.dataFim = new Date();
        }
    };
    RelatorioPoolFormComponent.prototype.rowSelect = function (item, index) {
        var dataAtual = new Date();
        this.currentIndex = index;
        this.data = item;
        this.filtro.dataIni = this.data.dataIni;
        this.filtro.dataFim = (this.data.dataFim > dataAtual) ? dataAtual : this.data.dataFim;
        this.filtro.regControle = this.data.regControle;
        this.enabledDataFim = this.data.aberto === "A" ? true : false;
    };
    RelatorioPoolFormComponent.ctorParameters = function () { return [
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_5__["ExcelService"] },
        { type: _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_3__["ReportService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _relatorio_pool_service__WEBPACK_IMPORTED_MODULE_13__["RelatorioPoolService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__["ConfiguracaoFacade"] }
    ]; };
    RelatorioPoolFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-relatorio-pool-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./relatorio-pool-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool-form/relatorio-pool-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_5__["ExcelService"],
            _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_3__["ReportService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _relatorio_pool_service__WEBPACK_IMPORTED_MODULE_13__["RelatorioPoolService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__["ConfiguracaoFacade"]])
    ], RelatorioPoolFormComponent);
    return RelatorioPoolFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.constants.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.constants.ts ***!
  \************************************************************************************************/
/*! exports provided: RelatorioPoolConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioPoolConstants", function() { return RelatorioPoolConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var RelatorioPoolConstants = /** @class */ (function () {
    function RelatorioPoolConstants() {
        this.sisFormularioId = 65434;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "REL";
        this.nomeForm = "titles.relatorioPool";
        this.reportId = "GRN0010";
        this.reportTitulo = { "titulo": "", "subTitulo": "" };
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
        this.listaParam = [
            { 'sistema': 'REL', 'parametros': ["ModControlePool"] },
        ];
    }
    return RelatorioPoolConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.model.ts":
/*!********************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.model.ts ***!
  \********************************************************************************************/
/*! exports provided: RelatorioPool, RelatorioPoolDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioPool", function() { return RelatorioPool; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioPoolDto", function() { return RelatorioPoolDto; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var RelatorioPool = /** @class */ (function () {
    function RelatorioPool() {
        this.materialId = "";
        this.dataIni = "";
        this.dataFim = "";
        this.detalhaTq = "N";
        this.oficial = "N";
        this.regControle = 0;
        this.aberto = "E";
    }
    return RelatorioPool;
}());

var RelatorioPoolDto = /** @class */ (function () {
    function RelatorioPoolDto() {
    }
    return RelatorioPoolDto;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.module.ts":
/*!*********************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.module.ts ***!
  \*********************************************************************************************/
/*! exports provided: RelatorioPoolModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioPoolModule", function() { return RelatorioPoolModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _relatorio_pool_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./relatorio-pool.routing.module */ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.routing.module.ts");
/* harmony import */ var _relatorio_pool_form_relatorio_pool_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./relatorio-pool-form/relatorio-pool-form.component */ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool-form/relatorio-pool-form.component.ts");
var __decorate = (undefined && undefined.__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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var RelatorioPoolModule = /** @class */ (function () {
    function RelatorioPoolModule() {
    }
    RelatorioPoolModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _relatorio_pool_routing_module__WEBPACK_IMPORTED_MODULE_2__["RelatorioPoolRoutingModule"]],
            declarations: [_relatorio_pool_form_relatorio_pool_form_component__WEBPACK_IMPORTED_MODULE_3__["RelatorioPoolFormComponent"]],
            providers: []
        })
    ], RelatorioPoolModule);
    return RelatorioPoolModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.routing.module.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.routing.module.ts ***!
  \*****************************************************************************************************/
/*! exports provided: RelatorioPoolRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioPoolRoutingModule", function() { return RelatorioPoolRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _relatorio_pool_form_relatorio_pool_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./relatorio-pool-form/relatorio-pool-form.component */ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool-form/relatorio-pool-form.component.ts");
var __decorate = (undefined && undefined.__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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MRoutes = [
    {
        path: "",
        component: _relatorio_pool_form_relatorio_pool_form_component__WEBPACK_IMPORTED_MODULE_3__["RelatorioPoolFormComponent"],
        data: { breadcrumb: "relatorioPool", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var RelatorioPoolRoutingModule = /** @class */ (function () {
    function RelatorioPoolRoutingModule() {
    }
    RelatorioPoolRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
        })
    ], RelatorioPoolRoutingModule);
    return RelatorioPoolRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.service.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.service.ts ***!
  \**********************************************************************************************/
/*! exports provided: RelatorioPoolService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RelatorioPoolService", function() { return RelatorioPoolService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _relatorio_pool_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./relatorio-pool.model */ "./src/app/pages/especificos/granel/movimentos/relatorio-pool/relatorio-pool.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__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 = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var RelatorioPoolService = /** @class */ (function (_super) {
    __extends(RelatorioPoolService, _super);
    function RelatorioPoolService(http) {
        var _this = _super.call(this, http, "granel/relatorioPool") || this;
        _this.http = http;
        _this.filtro = new _relatorio_pool_model__WEBPACK_IMPORTED_MODULE_6__["RelatorioPool"]();
        return _this;
    }
    RelatorioPoolService.prototype.getDados = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/granel/relatorioPool/getDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_5__["ErrorHandler"].handleError));
    };
    RelatorioPoolService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    RelatorioPoolService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], RelatorioPoolService);
    return RelatorioPoolService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-granel-movimentos-relatorio-pool-relatorio-pool-module.js.map