(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-consultas-consulta-cancelamento-consulta-cancelamento-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-filter/consulta-cancelamento-filter.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-filter/consulta-cancelamento-filter.component.html ***!
  \**********************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"consulta-cancelamento-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-45\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.operacaoCancelada' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"periodoDe\"\n                                               class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\n                                        <app-data id=\"periodoDe\"\n                                                  name=\"periodoDe\"\n                                                  [(ngModel)]=\"data.dataI\"\n                                                  autofocus\n                                                  class=\"dataHora\"\n                                                  [formatDateTime]=\"mascara.getFormatData\"\n                                                  required=\"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\"\n                                               class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                        <app-data id=\"ate\"\n                                                  name=\"ate\"\n                                                  [(ngModel)]=\"data.dataF\"\n                                                  class=\"dataHora\"\n                                                  [formatDateTime]=\"mascara.getFormatData\"\n                                                  required=\"true\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-destinatario id=\"destinatarioIdCliente\"\n                                                                   name=\"destinatarioIdCliente\"\n                                                                   label=\"cliente\"\n                                                                   modalTitle=\"pesquisaDeCliente\"\n                                                                   [(ngModel)]=\"data.destinatarioIdCliente\"\n                                                                   tipoDestinatario=\"C\"\n                                                                   showCgcCpf=\"false\"\n                                                                   showInscricao=\"false\">\n                                        </app-pesquisa-destinatario>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                                               modalTitle=\"pesquisaDeProduto\"\n                                                               [(ngModel)]=\"data.materialId\">\n                                        </app-pesquisa-material>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-destinatario id=\"destinatarioIdEmitente\"\n                                                                   name=\"destinatarioIdEmitente\"\n                                                                   label=\"emitente\"\n                                                                   modalTitle=\"pesquisaDeEmitente\"\n                                                                   [(ngModel)]=\"data.destinatarioIdEmitente\"\n                                                                   tipoDestinatario=\"C\"\n                                                                   showCgcCpf=\"false\"\n                                                                   showInscricao=\"false\">\n                                        </app-pesquisa-destinatario>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-destinatario id=\"destinatarioIdClienteVenda\"\n                                                                   name=\"destinatarioIdClienteVenda\"\n                                                                   label=\"clienteVenda\"\n                                                                   modalTitle=\"pesquisaDeClienteVenda\"\n                                                                   [(ngModel)]=\"data.destinatarioIdClienteVenda\"\n                                                                   tipoDestinatario=\"\"\n                                                                   showCgcCpf=\"false\"\n                                                                   showInscricao=\"false\">\n                                        </app-pesquisa-destinatario>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <label for=\"situacao\">{{\"labels.situacao\" | translate}}</label>\n                                    <app-combo-multi-padrao id=\"situacao\" name=\"situacao\" tabela=\"StoConsultaCancelamento\" chave=\"CodConsulta\"\n                                                            descricao=\"DescrConsulta\" ativos=\"true\" (outObjeto)=\"trataSit($event)\">\n                                    </app-combo-multi-padrao>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.consultar' | translate }}</button>\n                    <button type=\"button\" class=\"btn btn-default\"\n                            data-dismiss=\"modal\">{{ 'buttons.sair' | translate }}</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-index/consulta-cancelamento-index.component.html":
/*!********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-index/consulta-cancelamento-index.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 [botoesComando]=\"constantes.listaIndex\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <table id=\"dtConsultaCancelamento\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n    </table>\r\n</div>\r\n\r\n<app-consulta-cancelamento-filter [data]=\"filtro\" (filtrar)=\"executaFiltro($event)\"></app-consulta-cancelamento-filter>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n\r\n\r\n");

/***/ }),

/***/ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-filter/consulta-cancelamento-filter.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-filter/consulta-cancelamento-filter.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: ConsultaCancelamentoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaCancelamentoFilterComponent", function() { return ConsultaCancelamentoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _consulta_cancelamento_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../consulta-cancelamento.model */ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.model.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.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 __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 ConsultaCancelamentoFilterComponent = /** @class */ (function () {
    function ConsultaCancelamentoFilterComponent(message, loginService) {
        this.message = message;
        this.loginService = loginService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_3__["Mascaras"]();
    }
    ConsultaCancelamentoFilterComponent.prototype.ngOnInit = function () {
        this.filtro = this.data;
        this.filtro.filialId = this.loginService.getLogin().filialId;
        this.blockFields = false;
    };
    ConsultaCancelamentoFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.filtrar.emit(this.filtro);
        jQuery("#consulta-cancelamento-filter-dialog").modal("hide");
    };
    ConsultaCancelamentoFilterComponent.prototype.trataSit = function (selectedItems) {
        this.filtro.stoConsultaCancelamentoIds = selectedItems;
    };
    ConsultaCancelamentoFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _consulta_cancelamento_model__WEBPACK_IMPORTED_MODULE_4__["ConsultaCancelamentoFilter"])
    ], ConsultaCancelamentoFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ConsultaCancelamentoFilterComponent.prototype, "filtrar", void 0);
    ConsultaCancelamentoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-consulta-cancelamento-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-cancelamento-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-filter/consulta-cancelamento-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"]])
    ], ConsultaCancelamentoFilterComponent);
    return ConsultaCancelamentoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-index/consulta-cancelamento-index.component.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-index/consulta-cancelamento-index.component.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: ConsultaCancelamentoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaCancelamentoIndexComponent", function() { return ConsultaCancelamentoIndexComponent; });
/* 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 app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _consulta_cancelamento_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../consulta-cancelamento.constants */ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.constants.ts");
/* harmony import */ var _consulta_cancelamento_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../consulta-cancelamento.service */ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.service.ts");
/* harmony import */ var _consulta_cancelamento_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../consulta-cancelamento.model */ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.model.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __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_14__ = __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 ConsultaCancelamentoIndexComponent = /** @class */ (function (_super) {
    __extends(ConsultaCancelamentoIndexComponent, _super);
    function ConsultaCancelamentoIndexComponent(router, datatablesService, funcoesService, messageService, permissoesUtils, consultaCancelamentoService, loginService, excelService) {
        var _this = _super.call(this, new _consulta_cancelamento_constants__WEBPACK_IMPORTED_MODULE_7__["ConsultaCancelamentoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.consultaCancelamentoService = consultaCancelamentoService;
        _this.loginService = loginService;
        _this.excelService = excelService;
        _this.data = new _consulta_cancelamento_model__WEBPACK_IMPORTED_MODULE_9__["ConsultaCancelamentoDto"]();
        _this.constantes = new _consulta_cancelamento_constants__WEBPACK_IMPORTED_MODULE_7__["ConsultaCancelamentoConstants"]();
        _this.filtro = new _consulta_cancelamento_model__WEBPACK_IMPORTED_MODULE_9__["ConsultaCancelamentoFilter"]();
        _this.hasDados = false;
        _this.tiposTransp = new _config_enumerables__WEBPACK_IMPORTED_MODULE_12__["TiposTransp"]();
        _this.onRefresh = function () {
            _this.consultaCancelamentoService.getDados(_this.filtro).subscribe(function (resp) {
                _this.dados = resp;
                var columns = [
                    _this.datatablesService.getDataString("codCheckList", "checklist", "10%"),
                    _this.datatablesService.getDataSelect("tipoMov", "tipo", _this.tiposTransp.get()),
                    _this.datatablesService.getDataString("placaCavalo", "placaCavalo"),
                    _this.datatablesService.getDataDateTime("dtChegada", "dtChegada"),
                    _this.datatablesService.getDataString("descrConsulta", "situacao"),
                    _this.datatablesService.getDataString("cliente", "cliente"),
                    _this.datatablesService.getDataString("emitente", "emitente"),
                    _this.datatablesService.getDataString("clienteVenda", "clienteVenda"),
                    _this.datatablesService.getDataString("material", "material"),
                    _this.datatablesService.getDataString("produto", "produto"),
                    _this.datatablesService.getDataString("transportadora", "transportadora"),
                    _this.datatablesService.getDataString("motivoCanc", "motivoCancelamento"),
                    _this.datatablesService.getDataDateTime("dtOperCan", "dtCancelamento"),
                    _this.datatablesService.getDataString("operCan", "usuario"),
                    _this.datatablesService.getDataString("regControle", "cCD"),
                ];
                _this.datatablesService.datatable("dtConsultaCancelamento", columns, resp, function (aData) {
                    _this.data = aData;
                });
            });
        };
        _this.filtrar = function () {
            jQuery("#consulta-cancelamento-filter-dialog").modal("show");
            _this.hasDados = false;
        };
        _this.executaFiltro = function (event) {
            _this.filtro = event;
            _this.onRefresh();
        };
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        _this.print = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                var filter = {};
                filter = {
                    filialId: _this.loginService.getLogin().filialId,
                    destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(_this.filtro.destinatarioIdCliente),
                    dataI: _this.filtro.dataI,
                    dataF: _this.filtro.dataF,
                    stoConsultaCancelamentoIds: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(_this.filtro.stoConsultaCancelamentoIds),
                    materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].toString(_this.filtro.materialId),
                    destinatarioIdEmitente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(_this.filtro.destinatarioIdEmitente),
                    destinatarioIdClienteVenda: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(_this.filtro.destinatarioIdClienteVenda)
                };
                _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, _this.constantes.reportTitulo, filter);
            });
        };
        _this.export = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 4, function () {
                var headerDictionary = {
                    "descrConsulta": "descricao",
                    "regControle": "cCD",
                    "codCheckList": "checkList",
                    "cliente": "cliente",
                    "clienteVenda": "clienteVenda",
                    "motivoCanc": "motivoCancelamento",
                    "dtOperCan": "dtCancelamento",
                    "operCan": "usuario",
                    "codEmitente": "emitente",
                    "codClienteVenda": "codigo",
                };
                var options = {
                    headerJsonKeys: true,
                    headerDictionary: headerDictionary
                };
                _this.excelService.exportAsExcelFile(_this.dados, 'ConsultaCancelamento', options);
            });
        };
        return _this;
    }
    ConsultaCancelamentoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                jQuery("#consulta-cancelamento-filter-dialog").modal("show");
            }
        }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'export', func: function () { return _this.export; } },
        ]);
    };
    ConsultaCancelamentoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _consulta_cancelamento_service__WEBPACK_IMPORTED_MODULE_8__["ConsultaCancelamentoService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__["ExcelService"] }
    ]; };
    ConsultaCancelamentoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-consulta-cancelamento-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-cancelamento-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-index/consulta-cancelamento-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _consulta_cancelamento_service__WEBPACK_IMPORTED_MODULE_8__["ConsultaCancelamentoService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__["ExcelService"]])
    ], ConsultaCancelamentoIndexComponent);
    return ConsultaCancelamentoIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.constants.ts":
/*!******************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.constants.ts ***!
  \******************************************************************************************/
/*! exports provided: ConsultaCancelamentoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaCancelamentoConstants", function() { return ConsultaCancelamentoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConsultaCancelamentoConstants = /** @class */ (function () {
    function ConsultaCancelamentoConstants() {
        this.sisFormularioId = 230090;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.exportExcel" },
        ];
        this.sisSistemaId = "CON";
        this.nomeForm = "titles.operacaoCancelada";
        this.reportId = "CON0007";
        this.reportTitulo = { "titulo": "Operações Canceladas", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'exportExcel', action: 'export', icon: "fa fa-file-excel-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', depitem: false },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
    }
    return ConsultaCancelamentoConstants;
}());



/***/ }),

/***/ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.model.ts":
/*!**************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.model.ts ***!
  \**************************************************************************************/
/*! exports provided: ConsultaCancelamentoFilter, ConsultaCancelamentoDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaCancelamentoFilter", function() { return ConsultaCancelamentoFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaCancelamentoDto", function() { return ConsultaCancelamentoDto; });
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var ConsultaCancelamentoFilter = /** @class */ (function () {
    function ConsultaCancelamentoFilter() {
        this.filialId = 0;
        this.dataI = moment__WEBPACK_IMPORTED_MODULE_0__().startOf('month').toDate();
        this.dataF = new Date();
        this.stoConsultaCancelamentoIds = "";
        this.destinatarioIdCliente = 0;
        this.destinatarioIdEmitente = 0;
        this.destinatarioIdClienteVenda = 0;
        this.materialId = "";
    }
    return ConsultaCancelamentoFilter;
}());

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



/***/ }),

/***/ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.module.ts":
/*!***************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.module.ts ***!
  \***************************************************************************************/
/*! exports provided: ConsultaCancelamentoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaCancelamentoModule", function() { return ConsultaCancelamentoModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _consulta_cancelamento_index_consulta_cancelamento_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./consulta-cancelamento-index/consulta-cancelamento-index.component */ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-index/consulta-cancelamento-index.component.ts");
/* harmony import */ var _consulta_cancelamento_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consulta-cancelamento.routing.module */ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.routing.module.ts");
/* harmony import */ var _consulta_cancelamento_filter_consulta_cancelamento_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./consulta-cancelamento-filter/consulta-cancelamento-filter.component */ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-filter/consulta-cancelamento-filter.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 ConsultaCancelamentoModule = /** @class */ (function () {
    function ConsultaCancelamentoModule() {
    }
    ConsultaCancelamentoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _consulta_cancelamento_routing_module__WEBPACK_IMPORTED_MODULE_3__["ConsultaCancelamentoRoutingModule"]],
            declarations: [_consulta_cancelamento_index_consulta_cancelamento_index_component__WEBPACK_IMPORTED_MODULE_2__["ConsultaCancelamentoIndexComponent"], _consulta_cancelamento_filter_consulta_cancelamento_filter_component__WEBPACK_IMPORTED_MODULE_4__["ConsultaCancelamentoFilterComponent"]]
        })
    ], ConsultaCancelamentoModule);
    return ConsultaCancelamentoModule;
}());



/***/ }),

/***/ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.routing.module.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.routing.module.ts ***!
  \***********************************************************************************************/
/*! exports provided: ConsultaCancelamentoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaCancelamentoRoutingModule", function() { return ConsultaCancelamentoRoutingModule; });
/* 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 _consulta_cancelamento_index_consulta_cancelamento_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./consulta-cancelamento-index/consulta-cancelamento-index.component */ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento-index/consulta-cancelamento-index.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: _consulta_cancelamento_index_consulta_cancelamento_index_component__WEBPACK_IMPORTED_MODULE_2__["ConsultaCancelamentoIndexComponent"],
        data: { breadcrumb: "operacaoCancelada" }
    }
];
var ConsultaCancelamentoRoutingModule = /** @class */ (function () {
    function ConsultaCancelamentoRoutingModule() {
    }
    ConsultaCancelamentoRoutingModule = __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"]]
        })
    ], ConsultaCancelamentoRoutingModule);
    return ConsultaCancelamentoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.service.ts":
/*!****************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-cancelamento/consulta-cancelamento.service.ts ***!
  \****************************************************************************************/
/*! exports provided: ConsultaCancelamentoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaCancelamentoService", function() { return ConsultaCancelamentoService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
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 ConsultaCancelamentoService = /** @class */ (function (_super) {
    __extends(ConsultaCancelamentoService, _super);
    function ConsultaCancelamentoService(http) {
        var _this = _super.call(this, http, "consultas/consultaCancelamento") || this;
        _this.http = http;
        return _this;
    }
    ConsultaCancelamentoService.prototype.getDados = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/consultas/consultaCancelamento/getDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ConsultaCancelamentoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ConsultaCancelamentoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ConsultaCancelamentoService);
    return ConsultaCancelamentoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-consultas-consulta-cancelamento-consulta-cancelamento-module.js.map