(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-relatorios-movimentacao-de-veiculos-movimentacao-de-veiculos-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos-form/movimentacao-de-veiculos-form.component.html":
/*!****************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos-form/movimentacao-de-veiculos-form.component.html ***!
  \****************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [sisFormularioId]=\"constantes.sisFormularioId\" [botoesComando]=\"constantes.listaForm\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"\">\n                <app-form-legenda></app-form-legenda>\n                <div class=\"card-body widget-body\">\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate\n                                                }}</label>\n                                            <app-data-h-m id=\"periodoDe\" name=\"periodoDe\" class=\"dataHora\"\n                                                [formatDateTime]=\"mascara.getFormatDataHorMin\"\n                                                [(ngModel)]=\"data.dataIni\" (executa)=\"validaData()\" [required]=\"true\"\n                                                autofocus>\n                                            </app-data-h-m>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate }}</label>\n                                            <app-data-h-m-s id=\"ate\" name=\"ate\" class=\"dataHora\"\n                                                [formatDateTime]=\"mascara.getFormatDataHorMinSeg\"\n                                                [(ngModel)]=\"data.dataFim\" (executa)=\"validaData()\" [required]=\"true\"\n                                                autofocus>\n                                            </app-data-h-m-s>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-3 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"placa\">{{'labels.placa' | translate}}</label>\n                                            <input id=\"placa\" name=\"placa\" autofocus [(ngModel)]=\"data.placa\"\n                                                class=\"form-control form-control-sm\" type=\"text\" maxlength=\"18\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-material id=\"material\" name=\"material\" label=\"produto\"\n                                                modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"data.materialId\"\n                                                [inSelected]=\"data.material\">\n                                            </app-pesquisa-material>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"destinatarioIdCliente\"\n                                                name=\"destinatarioIdCliente\" label=\"cliente\"\n                                                modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"data.destinatarioIdCliente\"\n                                                tipoDestinatario=\"C\" showCgcCpf=\"false\" showInscricao=\"false\"\n                                                [inSelected]=\"data.cliente\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"clienteVenda\" name=\"clienteVenda\"\n                                                label=\"clienteVenda\" modalTitle=\"pesquisaDeClienteVenda\"\n                                                [(ngModel)]=\"data.destinatarioIdClienteVenda\" tipoDestinatario=\"C\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\"\n                                                [inSelected]=\"data.clienteVenda\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"transportadora\" name=\"transportadora\"\n                                                label=\"transportadora\" modalTitle=\"pesquisaDeTransportadora\"\n                                                [(ngModel)]=\"data.destinatarioIdTransportadora\" tipoDestinatario=\"T\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\"\n                                                [inSelected]=\"data.transportadora\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-motorista id=\"motoristaId\" name=\"motoristaId\"\n                                                [label]=\"'motorista'\" [(ngModel)]=\"data.motoristaId\"\n                                                [inputMotorista]=\"data.motorista\" [showCpf]=\"false\">\n                                            </app-pesquisa-motorista>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\" row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group\">\n                                            <label for=\"bl\">{{ \"labels.bl\" | translate }}</label>\n                                            <input type=\"text\" id=\"bl\" name=\"bl\" class=\"form-control form-control-sm\"\n                                                [(ngModel)]=\"data.numBL\" maxlength=\"28\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"di\">{{\"labels.DI\" | translate }}</label>\n                                            <input type=\"text\" class=\"form-control form-control-sm col\" id=\"di\"\n                                                name=\"di\" [(ngModel)]=\"data.numDI\"\n                                                (keypress)=\"funcoesService.apenasNumeros($event)\"\n                                                value=\"{{ data.numDI | mask: '00/0000000-0' }}\" maxlength=\"12\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"navio\" name=\"navio\" label=\"navio\"\n                                                modalTitle=\"pesquisaDeNavio\" [(ngModel)]=\"data.destinatarioIdNavio\"\n                                                tipoDestinatario=\"N\" showCgcCpf=\"false\" showInscricao=\"false\"\n                                                [inSelected]=\"data.navio\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ticket\">{{ 'labels.ticket' | translate}}</label>\n                                            <input id=\"ticket\" name=\"ticket\" [(ngModel)]=\"data.ticket\"\n                                                (keypress)=\"funcoesService.apenasNumeros($event)\" type=\"text\"\n                                                maxlength=\"9\" class=\"form-control form-control-sm text-right\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"peso\">{{'labels.peso' | translate}}</label>\n                                            <input id=\"peso\" name=\"peso\" [(ngModel)]=\"data.peso\"\n                                                class=\"form-control form-control-sm\" type=\"text\" maxlength=\"11\"\n                                                currencyMask [options]=\"funcoesService.optionCurrency(0)\">\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tipo\">{{'labels.tipo' | translate}}</label>\n                                            <select id=\"tipo\" name=\"tipo\" class=\"form-control form-control-sm\"\n                                                [(ngModel)]=\"data.tipoMov\">\n                                                <option *ngFor=\"let t of listaTipoMov\" [value]=\"t.value\">{{ t.descricao\n                                                    | translate}}\n                                                </option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"localOperacao\">{{ 'labels.localOperacao' | translate}}</label>\n                                            <app-combo-local-operacao id=\"localOperacao\" name=\"localOperacao\"\n                                                [(ngModel)]=\"data.localOperacaoId\">\n                                            </app-combo-local-operacao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-6 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ordem\">{{'labels.ordem' | translate}}</label>\n                                            <app-ordem id=\"ordem\" name=\"ordem\" [list]=\"constantes.orderBy\"\n                                                (outOrdem)=\"data.ordem = $event\"></app-ordem>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"clearfix\">&nbsp;</div>\n                        <div class=\"form-group\">\n                            <button class=\"btn btn-success mr-2\" type=\"submit\">\n                                {{ 'buttons.gerarRelatorio' | translate }}\n                            </button>\n                            <button class=\"btn btn-success mr-2\" (click)=\"export(f)\" type=\"button\">{{\n                                'buttons.exportarExcel' | translate }}\n                            </button>\n                            <button class=\"btn btn-success mr-2\" (click)=\"sendMail(f)\" type=\"button\">{{\n                                'buttons.enviarEmail' | translate }}\n                            </button>\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-email [reportId]=\"constantes.reportId\" [titulo]=\"constantes.reportTitulo.titulo\"\n    [subTitulo]=\"constantes.reportTitulo.subTitulo\" [data]=\"constantes.paramRelatorio\"></app-email>");

/***/ }),

/***/ "./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos-form/movimentacao-de-veiculos-form.component.ts":
/*!************************************************************************************************************************************!*\
  !*** ./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos-form/movimentacao-de-veiculos-form.component.ts ***!
  \************************************************************************************************************************************/
/*! exports provided: MovimentacaoDeVeiculosFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoDeVeiculosFormComponent", function() { return MovimentacaoDeVeiculosFormComponent; });
/* 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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.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 _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.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");
/* 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 _movimentacao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../movimentacao-de-veiculos.constants */ "./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos.constants.ts");
/* harmony import */ var _movimentacao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../movimentacao-de-veiculos.model */ "./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos.model.ts");
/* harmony import */ var _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __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_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __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 MovimentacaoDeVeiculosFormComponent = /** @class */ (function (_super) {
    __extends(MovimentacaoDeVeiculosFormComponent, _super);
    function MovimentacaoDeVeiculosFormComponent(permissoesUtils, funcoesService, loginService, excelService, reportService, messageService, configuracao) {
        var _this = _super.call(this, new _movimentacao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_7__["MovimentacaoDeVeiculosConstants"](), funcoesService) || this;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.excelService = excelService;
        _this.reportService = reportService;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.constantes = new _movimentacao_de_veiculos_constants__WEBPACK_IMPORTED_MODULE_7__["MovimentacaoDeVeiculosConstants"]();
        _this.data = new _movimentacao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_8__["MovimentacaoDeVeiculos"]();
        _this.mensagens = [];
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["Mascaras"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.modRelMovtoVeic = _this.configuracao.string("CTV", "ModRelMovtoVeic");
            }
        };
        _this.export = function (form) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            if (form.invalid) {
                _this.funcoesService.backToTop();
                return;
            }
            if (!_this.validaData())
                return;
            _this.printParams();
            _this.reportService.export(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                var headerDictionary = {
                    "regControle": "CCD",
                    "descrTipo": "tipo",
                    "placa": "placas",
                    "descrMotosita": "motorista",
                    "descrSitVeiculo": "situacao",
                    "descrCliVenda": "clienteVenda",
                    "pedido15": "pedido",
                };
                var options = {
                    headerJsonKeys: true,
                    headerDictionary: headerDictionary
                };
                resp.forEach(function (r) {
                    delete r.numCCD;
                    delete r.dtSaida;
                    delete r.requisicao;
                    delete r.nota;
                    delete r.frete;
                    delete r.pesoDoc;
                    delete r.cTe;
                    delete r.pesoPedido;
                    delete r.difPedido;
                    delete r.pedido15;
                    delete r.difPerc;
                    delete r.observ;
                });
                _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "movimentacaoDeVeiculo"), options);
            });
        };
        return _this;
    }
    MovimentacaoDeVeiculosFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.initTipoMov();
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    MovimentacaoDeVeiculosFormComponent.prototype.onSubmit = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        if (!this.validaData())
            return;
        this.printParams();
        this.print();
    };
    MovimentacaoDeVeiculosFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MovimentacaoDeVeiculosFormComponent.prototype.initTipoMov = function () {
        this.listaTipoMov = [
            { value: 'T', descricao: "Todos" },
            { value: '0', descricao: "Carga" },
            { value: '1', descricao: "Descarga" },
            { value: '2', descricao: "Requisição (Seta)" },
            { value: '3', descricao: "Carga Terceiros" },
            { value: '4', descricao: "Descarga Terceiros" },
            { value: '5', descricao: "Carga Ferroviária" },
            { value: '6', descricao: "Descarga Ferroviária" },
            { value: '7', descricao: "Descarga Direta" }
        ];
    };
    MovimentacaoDeVeiculosFormComponent.prototype.onCancelar = function () {
        this.data = new _movimentacao_de_veiculos_model__WEBPACK_IMPORTED_MODULE_8__["MovimentacaoDeVeiculos"]();
    };
    MovimentacaoDeVeiculosFormComponent.prototype.trataDest = function (destinatario) {
        this.filtro.codDest = destinatario.destinatarioId;
    };
    MovimentacaoDeVeiculosFormComponent.prototype.printParams = function () {
        switch (this.modRelMovtoVeic) {
            case "2": {
                this.constantes.reportId = "REL0201-2";
                break;
            }
            case "3": {
                this.constantes.reportId = "REL0201-3";
                break;
            }
            default: {
                this.constantes.reportId = "REL0201";
                break;
            }
        }
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            dataIni: this.data.dataIni,
            dataFim: this.data.dataFim,
            placa: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(this.data.placa),
            materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(this.data.materialId),
            destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.destinatarioIdCliente),
            destinatarioIdClienteVenda: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.destinatarioIdClienteVenda),
            destinatarioIdTransportadora: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.destinatarioIdTransportadora),
            motoristaId: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.motoristaId),
            numBL: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(this.data.numBL),
            numDI: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(this.data.numDI),
            destinatarioIdNavio: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.destinatarioIdNavio),
            ticket: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.ticket),
            peso: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.peso),
            tipoMov: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["StringUtilsStaticService"].toString(this.data.tipoMov),
            localOperacaoId: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.data.localOperacaoId),
            ordem: this.data.ordem
        };
    };
    MovimentacaoDeVeiculosFormComponent.prototype.sendMail = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        if (!this.validaData())
            return;
        this.printParams();
        _super.prototype.sendMail.call(this, this.constantes);
    };
    MovimentacaoDeVeiculosFormComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["DateTimeUtilsStaticService"].menorA(this.data.dataFim, this.data.dataIni, ['H', 'M'])) {
            this.messageService.warning("titles.movimentacaoDeVeiculo", "messages.periodoDeMenorQueAte");
            return false;
        }
        return true;
    };
    MovimentacaoDeVeiculosFormComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_10__["ExcelService"] },
        { type: _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_9__["ReportService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__["ConfiguracaoFacade"] }
    ]; };
    MovimentacaoDeVeiculosFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-movimentacao-de-veiculos-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimentacao-de-veiculos-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos-form/movimentacao-de-veiculos-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_10__["ExcelService"],
            _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_9__["ReportService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_14__["ConfiguracaoFacade"]])
    ], MovimentacaoDeVeiculosFormComponent);
    return MovimentacaoDeVeiculosFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos.constants.ts":
/*!*************************************************************************************************!*\
  !*** ./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos.constants.ts ***!
  \*************************************************************************************************/
/*! exports provided: MovimentacaoDeVeiculosConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoDeVeiculosConstants", function() { return MovimentacaoDeVeiculosConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MovimentacaoDeVeiculosConstants = /** @class */ (function () {
    function MovimentacaoDeVeiculosConstants() {
        this.sisFormularioId = 230108;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "REL";
        this.nomeForm = "titles.movimentacaoDeVeiculo";
        this.reportId = "REL0201";
        this.reportTitulo = { "titulo": "Movimentação de Veículos", "subTitulo": "" };
        this.orderBy = [
            { field: "Autorizacao", description: "Autorização", direction: "asc", default: false, sequence: 1 },
            { field: "NumBL", description: "BL", direction: "asc", default: false, sequence: 2 },
            { field: "CodCheckList", description: "CheckList", direction: "asc", default: false, sequence: 3 },
            { field: "DescrCliente", description: "Cliente", direction: "asc", default: false, sequence: 4 },
            { field: "DtChegada", description: "Data Chegada", direction: "asc", default: true, sequence: 5 },
            { field: "NumDI", description: "DI", direction: "asc", default: false, sequence: 6 },
            { field: "DescrMotosita", description: "Motorista", direction: "asc", default: false, sequence: 7 },
            { field: "Navio", description: "Navio", direction: "asc", default: false, sequence: 8 },
            { field: "DescrNavio", description: "Nome Navio", direction: "asc", default: false, sequence: 9 },
            { field: "Peso", description: "Peso", direction: "asc", default: false, sequence: 10 },
            { field: "Placa", description: "Placa(s)", direction: "asc", default: false, sequence: 11 },
            { field: "DescrMaterial", description: "Produto", direction: "asc", default: false, sequence: 12 },
            { field: "DescrSitVeiculo", description: "Situação", direction: "asc", default: false, sequence: 13 },
            { field: "DescrTipo", description: "Tipo", direction: "asc", default: false, sequence: 14 },
            { field: "DescrTransportadora", description: "Transportadora", direction: "asc", default: false, sequence: 15 }
        ];
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
        this.listaParam = [
            { 'sistema': 'CTV', 'parametros': ["ModRelMovtoVeic"] }
        ];
    }
    return MovimentacaoDeVeiculosConstants;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos.model.ts":
/*!*********************************************************************************************!*\
  !*** ./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos.model.ts ***!
  \*********************************************************************************************/
/*! exports provided: MovimentacaoDeVeiculos */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoDeVeiculos", function() { return MovimentacaoDeVeiculos; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var MovimentacaoDeVeiculos = /** @class */ (function () {
    function MovimentacaoDeVeiculos() {
        this.dataIni = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].addDays(new Date(), -10);
        this.dataFim = new Date();
        this.destinatarioIdCliente = 0;
        this.destinatarioIdClienteVenda = 0;
        this.destinatarioIdTransportadora = 0;
        this.motoristaId = 0;
        this.materialId = "";
        this.numBL = "";
        this.numDI = "";
        this.destinatarioIdNavio = 0;
        this.ticket = 0;
        this.peso = 0;
        this.tipoMov = "T";
        this.localOperacaoId = "";
        this.ordem = "DtChegada";
    }
    return MovimentacaoDeVeiculos;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos.module.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos.module.ts ***!
  \**********************************************************************************************/
/*! exports provided: MovimentacaoDeVeiculosModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoDeVeiculosModule", function() { return MovimentacaoDeVeiculosModule; });
/* 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 _movimentacao_de_veiculos_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./movimentacao-de-veiculos.routing.module */ "./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos.routing.module.ts");
/* harmony import */ var _movimentacao_de_veiculos_form_movimentacao_de_veiculos_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./movimentacao-de-veiculos-form/movimentacao-de-veiculos-form.component */ "./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos-form/movimentacao-de-veiculos-form.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MovimentacaoDeVeiculosModule = /** @class */ (function () {
    function MovimentacaoDeVeiculosModule() {
    }
    MovimentacaoDeVeiculosModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _movimentacao_de_veiculos_routing_module__WEBPACK_IMPORTED_MODULE_2__["MovimentacaoDeVeiculosRoutingModule"]],
            declarations: [_movimentacao_de_veiculos_form_movimentacao_de_veiculos_form_component__WEBPACK_IMPORTED_MODULE_3__["MovimentacaoDeVeiculosFormComponent"]]
        })
    ], MovimentacaoDeVeiculosModule);
    return MovimentacaoDeVeiculosModule;
}());



/***/ }),

/***/ "./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos.routing.module.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos.routing.module.ts ***!
  \******************************************************************************************************/
/*! exports provided: MovimentacaoDeVeiculosRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoDeVeiculosRoutingModule", function() { return MovimentacaoDeVeiculosRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _movimentacao_de_veiculos_form_movimentacao_de_veiculos_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./movimentacao-de-veiculos-form/movimentacao-de-veiculos-form.component */ "./src/app/pages/relatorios/movimentacao-de-veiculos/movimentacao-de-veiculos-form/movimentacao-de-veiculos-form.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MRoutes = [
    {
        path: "",
        component: _movimentacao_de_veiculos_form_movimentacao_de_veiculos_form_component__WEBPACK_IMPORTED_MODULE_3__["MovimentacaoDeVeiculosFormComponent"],
        data: { breadcrumb: "movimentacaoDeVeiculo", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var MovimentacaoDeVeiculosRoutingModule = /** @class */ (function () {
    function MovimentacaoDeVeiculosRoutingModule() {
    }
    MovimentacaoDeVeiculosRoutingModule = __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"]],
        })
    ], MovimentacaoDeVeiculosRoutingModule);
    return MovimentacaoDeVeiculosRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-relatorios-movimentacao-de-veiculos-movimentacao-de-veiculos-module.js.map