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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato-filter/consulta-historico-contrato-filter.component.html":
/*!****************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato-filter/consulta-historico-contrato-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=\"historico-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.historicoContrato' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"contrato\">{{'labels.contrato' | translate}}</label>\n                                <app-pesquisa-sto-contrato id=\"contrato\" name=\"contrato\"\n                                                           required=\"false\"\n                                                           [(ngModel)]=\"filtro.regContrato\"\n                                                           (outSelected)=\"trataContrato($event)\"\n                                                           showCliente=\"true\">\n                                </app-pesquisa-sto-contrato>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"cliente\">{{'labels.cliente' | translate}}</label>\n                                <input type=\"text\" class=\"form-control form-control-sm\" id=\"cliente\" name=\"cliente\"\n                                       value=\"{{ this.filtro.fantasia }}\" disabled>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\" style=\"padding: 0 5%\">\n                        <div class=\"form-group\">\n                            <div class=\"custom-control custom-radio\">\n                                <input class=\"custom-control-input radio-success\" id=\"radioDefault\" name=\"tipoOper\"\n                                       [(ngModel)]=\"filtro.tipo\" type=\"radio\" value=\"0\"\n                                       required>\n                                <label class=\"custom-control-label\"\n                                       for=\"radioDefault\">{{ 'labels.saldoContrato' | translate\n                                    }}\n                                </label>\n                            </div>\n                            <div class=\"custom-control custom-radio\">\n                                <input class=\"custom-control-input radio-success\" id=\"radioPrimary\" name=\"tipoOper\"\n                                       [(ngModel)]=\"filtro.tipo\" type=\"radio\" value=\"1\"\n                                       required>\n                                <label class=\"custom-control-label\" for=\"radioPrimary\">{{ 'labels.notasFaturadas' |\n                                    translate }}\n                                </label>\n                            </div>\n                            <div class=\"custom-control custom-radio\">\n                                <input checked=\"\" class=\"custom-control-input radio-success\" id=\"radioSuccess\"\n                                       [(ngModel)]=\"filtro.tipo\" name=\"tipoOper\" type=\"radio\"\n                                       value=\"2\" required>\n                                <label class=\"custom-control-label\"\n                                       for=\"radioSuccess\">{{ 'labels.pedidosCarteira' | translate\n                                    }}\n                                </label>\n                            </div>\n                            <div class=\"custom-control custom-radio\">\n                                <input class=\"custom-control-input radio-success\" id=\"radioInfo\" name=\"tipoOper\"\n                                       [(ngModel)]=\"filtro.tipo\" type=\"radio\" value=\"3\"\n                                       required>\n                                <label class=\"custom-control-label\"\n                                       for=\"radioInfo\">{{ 'labels.pedidosExcluidos' | translate\n                                    }}\n                                </label>\n                            </div>\n                            <div class=\"custom-control custom-radio\">\n                                <input class=\"custom-control-input radio-success\" id=\"clientesLotes\" name=\"tipoOper\"\n                                       [(ngModel)]=\"filtro.tipo\" type=\"radio\" value=\"4\"\n                                       required>\n                                <label class=\"custom-control-label\"\n                                       for=\"clientesLotes\">{{ 'labels.clientesLotes' | translate\n                                    }}\n                                </label>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato-index/consulta-historico-contrato-index.component.html":
/*!**************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato-index/consulta-historico-contrato-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\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.osg\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n\n<div class=\"section-comand-bar\">\n    <div class=\"row\">\n        <div class=\"col-lg-12\">\n            <div class=\"section-comand-bar_\">\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-6\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"contrato\">{{'labels.contrato' | translate}}</label>\n                                    <app-pesquisa-sto-contrato id=\"contrato\" name=\"contrato\"\n                                                               required=\"false\"\n                                                               [(ngModel)]=\"filtro.regContrato\"\n                                                               (outSelected)=\"trataContrato($event)\"\n                                                               showCliente=\"true\">\n                                    </app-pesquisa-sto-contrato>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"cliente\">{{'labels.cliente' | translate}}</label>\n                                    <input type=\"text\" class=\"form-control form-control-sm\" id=\"cliente\"\n                                           name=\"cliente\"\n                                           value=\"{{ this.filtro.fantasia }}\" disabled>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <button class=\"btn btn-success mr-1\"\n                                            type=\"submit\">{{ 'buttons.pesquisar' | translate }}\n                                    </button>\n\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"col-lg-6\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"card\">\n                                    <div class=\"card-body widget-body\">\n                                        <div class=\"form-group\">\n                                            <div class=\"custom-control custom-radio\">\n                                                <input class=\"custom-control-input radio-success\" id=\"radioDefault\"\n                                                       name=\"tipoOper\"\n                                                       [(ngModel)]=\"filtro.tipo\" type=\"radio\" value=\"0\"\n                                                       required>\n                                                <label class=\"custom-control-label\"\n                                                       for=\"radioDefault\">{{ 'labels.saldoContrato' | translate\n                                                    }}\n                                                </label>\n                                            </div>\n                                            <div class=\"custom-control custom-radio\">\n                                                <input class=\"custom-control-input radio-success\" id=\"radioPrimary\"\n                                                       name=\"tipoOper\"\n                                                       [(ngModel)]=\"filtro.tipo\" type=\"radio\" value=\"1\"\n                                                       required>\n                                                <label class=\"custom-control-label\"\n                                                       for=\"radioPrimary\">{{ 'labels.notasFaturadas' |\n                                                    translate }}\n                                                </label>\n                                            </div>\n                                            <div class=\"custom-control custom-radio\">\n                                                <input checked=\"\" class=\"custom-control-input radio-success\"\n                                                       id=\"radioSuccess\"\n                                                       [(ngModel)]=\"filtro.tipo\" name=\"tipoOper\" type=\"radio\"\n                                                       value=\"2\" required>\n                                                <label class=\"custom-control-label\"\n                                                       for=\"radioSuccess\">{{ 'labels.pedidosCarteira' | translate\n                                                    }}\n                                                </label>\n                                            </div>\n                                            <div class=\"custom-control custom-radio\">\n                                                <input class=\"custom-control-input radio-success\" id=\"radioInfo\"\n                                                       name=\"tipoOper\"\n                                                       [(ngModel)]=\"filtro.tipo\" type=\"radio\" value=\"3\"\n                                                       required>\n                                                <label class=\"custom-control-label\"\n                                                       for=\"radioInfo\">{{ 'labels.pedidosExcluidos' | translate\n                                                    }}\n                                                </label>\n                                            </div>\n                                            <div class=\"custom-control custom-radio\">\n                                                <input class=\"custom-control-input radio-success\" id=\"clientesLotes\"\n                                                       name=\"tipoOper\"\n                                                       [(ngModel)]=\"filtro.tipo\" type=\"radio\" value=\"4\"\n                                                       required>\n                                                <label class=\"custom-control-label\"\n                                                       for=\"clientesLotes\">{{ 'labels.clientesLotes' | translate\n                                                    }}\n                                                </label>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n\n                    </div>\n                    <div class=\"row\" style=\"padding: 0 5%;display: none\">\n\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n    <div *ngIf=\"currentTable === '0'\">\n        <table id=\"dtHistoricoContrato_zero\"\n               class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n    </div>\n    <div *ngIf=\"currentTable === '1'\">\n        <table id=\"dtHistoricoContrato_one\"\n               class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n    </div>\n    <div *ngIf=\"currentTable === '2'\">\n        <table id=\"dtHistoricoContrato_two\"\n               class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n    </div>\n    <div *ngIf=\"currentTable === '3'\">\n        <table id=\"dtHistoricoContrato_three\"\n               class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n    </div>\n    <div *ngIf=\"currentTable === '4'\">\n        <table id=\"dtHistoricoContrato_four\"\n               class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n    </div>\n</div>\n\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<!--<app-consulta-historico-contrato-filter (filtrar)=\"executaFiltro($event)\"></app-consulta-historico-contrato-filter>-->\n");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoContratoFilterComponent", function() { return ConsultaHistoricoContratoFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _consulta_historico_contrato_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../consulta-historico-contrato.model */ "./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato.model.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 ConsultaHistoricoContratoFilterComponent = /** @class */ (function () {
    function ConsultaHistoricoContratoFilterComponent(loginService, message) {
        this.loginService = loginService;
        this.message = message;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.filtro = new _consulta_historico_contrato_model__WEBPACK_IMPORTED_MODULE_3__["ConsultaHistoricoContratoFilter"]();
        this.dataAtual = new Date();
        this.blockFields = false;
        this.filialId = loginService.getLogin().filialId;
    }
    ConsultaHistoricoContratoFilterComponent.prototype.ngOnInit = function () { };
    ConsultaHistoricoContratoFilterComponent.prototype.trataContrato = function (contrato) {
        this.filtro.regContrato = contrato.stoContratoId;
        this.filtro.fantasia = contrato.fantasia;
    };
    ConsultaHistoricoContratoFilterComponent.prototype.onSubmit = function (form) {
        if (!this.filtro.regContrato) {
            this.message.warning('titles.historicoContrato', 'messages.clienteNaoInformado');
            return;
        }
        if (!form.invalid) {
            jQuery("#historico-filter-dialog").modal("hide");
            this.filtrar.emit(this.filtro);
        }
    };
    ConsultaHistoricoContratoFilterComponent.ctorParameters = function () { return [
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], ConsultaHistoricoContratoFilterComponent.prototype, "filtrar", void 0);
    ConsultaHistoricoContratoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-consulta-historico-contrato-filter',
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-historico-contrato-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato-filter/consulta-historico-contrato-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_login_login_service__WEBPACK_IMPORTED_MODULE_1__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"]])
    ], ConsultaHistoricoContratoFilterComponent);
    return ConsultaHistoricoContratoFilterComponent;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoContratoIndexComponent", function() { return ConsultaHistoricoContratoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.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 _consulta_historico_contrato_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../consulta-historico-contrato.service */ "./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato.service.ts");
/* harmony import */ var _consulta_historico_contrato_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../consulta-historico-contrato.model */ "./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato.model.ts");
/* harmony import */ var _consulta_historico_contrato_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../consulta-historico-contrato.constants */ "./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato.constants.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 ConsultaHistoricoContratoIndexComponent = /** @class */ (function (_super) {
    __extends(ConsultaHistoricoContratoIndexComponent, _super);
    function ConsultaHistoricoContratoIndexComponent(service, router, datatables, message, funcoes, loginService, permissoesUtils) {
        var _this = _super.call(this, new _consulta_historico_contrato_constants__WEBPACK_IMPORTED_MODULE_10__["ConsultaHistoricoContratoConstants"](), funcoes) || this;
        _this.service = service;
        _this.router = router;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _consulta_historico_contrato_model__WEBPACK_IMPORTED_MODULE_9__["ConsultaHistoricoContrato"]();
        _this.constantes = new _consulta_historico_contrato_constants__WEBPACK_IMPORTED_MODULE_10__["ConsultaHistoricoContratoConstants"]();
        _this.target = _this.funcoes.getTargetLocation();
        _this.mensagens = [];
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    ConsultaHistoricoContratoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.currentTable = '0';
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                jQuery("#historico-filter-dialog").modal("show");
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        if (this.funcoesService.isUndefinedOrNull(this.filtro)) {
            this.filtro = new _consulta_historico_contrato_model__WEBPACK_IMPORTED_MODULE_9__["ConsultaHistoricoContratoFilter"]();
        }
    };
    ConsultaHistoricoContratoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    ConsultaHistoricoContratoIndexComponent.prototype.filtrar = function () {
        jQuery("#historico-filter-dialog").modal("show");
    };
    ConsultaHistoricoContratoIndexComponent.prototype.executaFiltro = function (event) {
        this.filtro = event;
        this.refresh();
    };
    ConsultaHistoricoContratoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getDados(this.filtro).subscribe(function (resp) {
            var columns = [];
            if (_this.filtro) {
                _this.currentTable = _this.filtro.tipo;
                if (_this.filtro.tipo === "0") {
                    columns = [
                        _this.datatables.getDataString("osg", "osg", "10%"),
                        _this.datatables.getDataString("cliente", "cliente"),
                        _this.datatables.getDataString("deposito", "deposito"),
                        _this.datatables.getDataDouble("kilosS", "kilosSLib", 0),
                        _this.datatables.getDataDouble("kilosL", "kilosLib", 0),
                        _this.datatables.getDataDouble("litrosS", "litrosSLib", 0),
                        _this.datatables.getDataDouble("litrosL", "litrosLib", 0)
                    ];
                    setTimeout(function () {
                        _this.datatables.datatable("dtHistoricoContrato_zero", columns, resp, function (aData) {
                            _this.data = aData;
                        });
                    }, 1000);
                }
                else if (_this.filtro.tipo === "1") {
                    columns = [
                        _this.datatables.getDataString("nota", "nota", "10%"),
                        _this.datatables.getDataString("cliente", "cliente"),
                        _this.datatables.getDataDateTime("emissao", "emissao", "DD/MM/YYYY"),
                        _this.datatables.getDataString("tipo", "tipo"),
                        _this.datatables.getDataString("servico", "servico"),
                        _this.datatables.getDataDateTime("inicio", "inicio", "DD/MM/YYYY"),
                        _this.datatables.getDataDateTime("fim", "fim", "DD/MM/YYYY"),
                        _this.datatables.getDataDouble("totaldaNota", "totalDaNota", 2),
                        _this.datatables.getDataString("emitidapor", "emitidaPor")
                    ];
                    setTimeout(function () {
                        _this.datatables.datatable("dtHistoricoContrato_one", columns, resp, function (aData) {
                            _this.data = aData;
                        });
                    }, 1000);
                }
                else if (_this.filtro.tipo === "2") {
                    columns = [
                        _this.datatables.getDataString("pedido", "pedido", "10%"),
                        _this.datatables.getDataString("cliente", "cliente"),
                        _this.datatables.getDataDateTime("emissao", "emissao", "DD/MM/YYYY"),
                        _this.datatables.getDataDouble("valor", "valor", 2),
                        _this.datatables.getDataDateTime("incluidoem", "incluidoEm"),
                        _this.datatables.getDataString("operador", "operador")
                    ];
                    setTimeout(function () {
                        _this.datatables.datatable("dtHistoricoContrato_two", columns, resp, function (aData) {
                            _this.data = aData;
                        });
                    }, 1000);
                }
                else if (_this.filtro.tipo === "3") {
                    columns = [
                        _this.datatables.getDataString("pedido", "pedido", "10%"),
                        _this.datatables.getDataString("cliente", "cliente"),
                        _this.datatables.getDataDateTime("emissao", "emissao", "DD/MM/YYYY"),
                        _this.datatables.getDataDouble("valor", "valor", 2),
                        _this.datatables.getDataDateTime("excluidoem", "excluidoEm"),
                        _this.datatables.getDataString("operador", "operador"),
                        _this.datatables.getDataString("observacoes", "observacoes")
                    ];
                    setTimeout(function () {
                        _this.datatables.datatable("dtHistoricoContrato_three", columns, resp, function (aData) {
                            _this.data = aData;
                        });
                    }, 1000);
                }
                else if (_this.filtro.tipo === "4") {
                    columns = [
                        _this.datatables.getDataString("lote", "lote", "10%"),
                        _this.datatables.getDataString("cliente", "cliente"),
                        _this.datatables.getDataString("situacao", "situacao"),
                        _this.datatables.getDataString("produto", "produto")
                    ];
                    setTimeout(function () {
                        _this.datatables.datatable("dtHistoricoContrato_four", columns, resp, function (aData) {
                            _this.data = aData;
                        });
                    }, 1000);
                }
            }
        });
    };
    ConsultaHistoricoContratoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    ConsultaHistoricoContratoIndexComponent.prototype.print = function () {
        if (!this.filtro.regContrato) {
            this.message.warning('titles.historicoContrato', 'messages.contratoNaoInformado');
            return;
        }
        if (this.filtro.tipo === '0') {
            this.constantes.reportId = "CON0013";
        }
        else if (this.filtro.tipo === '1') {
            this.constantes.reportId = "CON0014";
        }
        else if (this.filtro.tipo === '2') {
            this.constantes.reportId = "CON0015";
        }
        else if (this.filtro.tipo === '3') {
            this.constantes.reportId = "CON0016";
        }
        else if (this.filtro.tipo === '4') {
            this.constantes.reportId = "CON0017";
        }
        this.constantes.paramRelatorio = this.filtro;
        _super.prototype.print.call(this);
    };
    /******************************************************************************************************************/
    ConsultaHistoricoContratoIndexComponent.prototype.trataContrato = function (contrato) {
        this.filtro.regContrato = contrato.stoContratoId;
        this.filtro.fantasia = contrato.fantasia;
    };
    ConsultaHistoricoContratoIndexComponent.prototype.onSubmit = function (form) {
        if (!this.filtro.regContrato) {
            this.message.warning('titles.historicoContrato', 'messages.contratoNaoInformado');
            return;
        }
        if (!form.invalid) {
            this.refresh();
        }
    };
    ConsultaHistoricoContratoIndexComponent.ctorParameters = function () { return [
        { type: _consulta_historico_contrato_service__WEBPACK_IMPORTED_MODULE_8__["ConsultaHistoricoContratoService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    ConsultaHistoricoContratoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-consulta-historico-contrato-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./consulta-historico-contrato-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato-index/consulta-historico-contrato-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_consulta_historico_contrato_service__WEBPACK_IMPORTED_MODULE_8__["ConsultaHistoricoContratoService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], ConsultaHistoricoContratoIndexComponent);
    return ConsultaHistoricoContratoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoContratoConstants", function() { return ConsultaHistoricoContratoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConsultaHistoricoContratoConstants = /** @class */ (function () {
    function ConsultaHistoricoContratoConstants() {
        this.sisFormularioId = 348004;
        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" }
        ];
        this.sisSistemaId = "CON";
        this.nomeForm = "titles.historicoContrato";
        this.reportTitulo = { "titulo": "Historico dos Contratos", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
    }
    return ConsultaHistoricoContratoConstants;
}());



/***/ }),

/***/ "./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato.model.ts":
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato.model.ts ***!
  \**************************************************************************************************/
/*! exports provided: ConsultaHistoricoContrato, ConsultaHistoricoContratoFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoContrato", function() { return ConsultaHistoricoContrato; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoContratoFilter", function() { return ConsultaHistoricoContratoFilter; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var ConsultaHistoricoContrato = /** @class */ (function () {
    function ConsultaHistoricoContrato() {
    }
    return ConsultaHistoricoContrato;
}());

var ConsultaHistoricoContratoFilter = /** @class */ (function () {
    function ConsultaHistoricoContratoFilter() {
        this.tipo = "0";
    }
    return ConsultaHistoricoContratoFilter;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoContratoModule", function() { return ConsultaHistoricoContratoModule; });
/* 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__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _consulta_historico_contrato_index_consulta_historico_contrato_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./consulta-historico-contrato-index/consulta-historico-contrato-index.component */ "./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato-index/consulta-historico-contrato-index.component.ts");
/* harmony import */ var _consulta_historico_contrato_filter_consulta_historico_contrato_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consulta-historico-contrato-filter/consulta-historico-contrato-filter.component */ "./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato-filter/consulta-historico-contrato-filter.component.ts");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _consulta_historico_contrato_routing__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./consulta-historico-contrato.routing */ "./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato.routing.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 ConsultaHistoricoContratoModule = /** @class */ (function () {
    function ConsultaHistoricoContratoModule() {
    }
    ConsultaHistoricoContratoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_consulta_historico_contrato_index_consulta_historico_contrato_index_component__WEBPACK_IMPORTED_MODULE_2__["ConsultaHistoricoContratoIndexComponent"], _consulta_historico_contrato_filter_consulta_historico_contrato_filter_component__WEBPACK_IMPORTED_MODULE_3__["ConsultaHistoricoContratoFilterComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_4__["SharedModule"],
                _consulta_historico_contrato_routing__WEBPACK_IMPORTED_MODULE_5__["ConsultaHistoricoContratoRouting"]
            ]
        })
    ], ConsultaHistoricoContratoModule);
    return ConsultaHistoricoContratoModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoContratoRouting", function() { return ConsultaHistoricoContratoRouting; });
/* 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_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _consulta_historico_contrato_index_consulta_historico_contrato_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./consulta-historico-contrato-index/consulta-historico-contrato-index.component */ "./src/app/pages/consultas/consulta-historico-contrato/consulta-historico-contrato-index/consulta-historico-contrato-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_historico_contrato_index_consulta_historico_contrato_index_component__WEBPACK_IMPORTED_MODULE_3__["ConsultaHistoricoContratoIndexComponent"],
        data: { breadcrumb: "historicoContrato", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var ConsultaHistoricoContratoRouting = /** @class */ (function () {
    function ConsultaHistoricoContratoRouting() {
    }
    ConsultaHistoricoContratoRouting = __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"]]
        })
    ], ConsultaHistoricoContratoRouting);
    return ConsultaHistoricoContratoRouting;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsultaHistoricoContratoService", function() { return ConsultaHistoricoContratoService; });
/* 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 ConsultaHistoricoContratoService = /** @class */ (function (_super) {
    __extends(ConsultaHistoricoContratoService, _super);
    function ConsultaHistoricoContratoService(http) {
        var _this = _super.call(this, http, "consultas/consultaDetalhamentoDeLotes") || this;
        _this.http = http;
        return _this;
    }
    ConsultaHistoricoContratoService.prototype.getDados = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/consultas/conHistoricoContratos/getConsulta", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    ConsultaHistoricoContratoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    ConsultaHistoricoContratoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], ConsultaHistoricoContratoService);
    return ConsultaHistoricoContratoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

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