(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-aldc-relatorios-descargas-por-notas-fiscais-integrada-descargas-por-notas-fiscais-integrada-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada-form/descargas-por-notas-fiscais-integrada-form.component.html":
/*!************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada-form/descargas-por-notas-fiscais-integrada-form.component.html ***!
  \************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [sisFormularioId]=\"constantes.sisFormularioId\" [botoesComando]=\"constantes.listaForm\">\n</app-menu-command-bar>\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <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)\" autocomplete=\"off\" novalidate>\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row mt-2\">\n                            <div class=\"col-lg-12\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"periodoDe\" class=\"required\">{{ 'labels.periodoDe' |\n                                                translate\n                                                }}</label>\n                                            <app-data id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\n                                                [(ngModel)]=\"filtro.dataInicio\"\n                                                [formatDateTime]=\"mascara.getFormatDataHorMin\">\n                                            </app-data>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-3 col-md-4 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\" required=\"true\"\n                                                [(ngModel)]=\"filtro.dataFinal\">\n                                            </app-data-h-m-s>\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\"\n                                                [(ngModel)]=\"filtro.destinatarioIdCliente\" tipoDestinatario=\"C\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\" (outModel)=\"trataDest($event)\">\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=\"destinatarioIdEmitente\"\n                                                name=\"destinatarioIdEmitente\" label=\"emitente\"\n                                                modalTitle=\"pesquisaDeEmitente\"\n                                                [(ngModel)]=\"filtro.destinatarioIdEmitente\" tipoDestinatario=\"C\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\"\n                                                (outModel)=\"trataEmitente($event)\">\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-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                                modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"filtro.materialId\">\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=\"transportadora\" name=\"transportadora\"\n                                                label=\"transportadora\" modalTitle=\"pesquisaDeTransportadora\"\n                                                [(ngModel)]=\"filtro.destinatarioIdTransportadora\" tipoDestinatario=\"C\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\"\n                                                [inSelected]=\"filtro.transportadora\"\n                                                (outModel)=\"trataTransportadora($event)\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-4 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"grupo\">{{\"labels.grupo\" | translate}}</label>\n                                            <app-combo-grupo-cliente id=\"grupo\" name=\"grupo\"\n                                                [(ngModel)]=\"filtro.grupoClienteId\"\n                                                (outSelected)=\"trataGrupoCliente($event)\">\n                                            </app-combo-grupo-cliente>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-4 col-sm-12\">\n                                        <app-pesquisa-lote id=\"lote\" label=\"lote\" name=\"lote\" modalTitle=\"lote\"\n                                            [(ngModel)]=\"filtro.loteId\"\n                                            [destinatarioIdCliente]=\"filtro.destinatarioIdCliente\"\n                                            [materialId]=\"filtro.materialId\" [loteId]=\"filtro.loteId\"\n                                            [destinatarioIdEmitente]=\"0\" [destinatarioIdNavio]=\"0\" [osgId]=\"0\"\n                                            [stoContratoId]=\"0\" [stoContratoItemId]=\"0\">\n                                        </app-pesquisa-lote>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"osgId\">{{\"labels.osg\" | translate}}</label>\n                                            <app-pesquisa-saldo-osg id=\"osgId\" label=\"osg\" name=\"osgId\"\n                                                [(ngModel)]=\"filtro.numeroOsg\" (outOsg)=\"trataOsg($event)\">\n                                            </app-pesquisa-saldo-osg>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-4 col-md-4 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-tanque id=\"tanqueId\" name=\"tanqueId\"\n                                                [(ngModel)]=\"filtro.tanqueId\" label=\"deposito\" title=\"deposito\">\n                                            </app-pesquisa-tanque>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\" style=\"margin-top: 3px;\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-check\">\n                                            <input class=\"form-check-input\" type=\"checkbox\" id=\"apresentarDepositos\"\n                                                [(ngModel)]=\"filtro.apresentarDepositos\"\n                                                (change)=\"selecionaApresenta('apresentarDepositos')\" checked>\n                                            <label class=\"form-check-label\" for=\"apresentarDepositos\">{{\n                                                'labels.apresentarDepositos' | translate }}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\" style=\"margin-top: 3px;\">\n                                    <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                        <div class=\"form-check\">\n                                            <input class=\"form-check-input\" type=\"checkbox\" id=\"imprimeOrigem\"\n                                                [(ngModel)]=\"filtro.imprimeOrigem\"\n                                                (change)=\"selecionaApresenta('imprimeOrigem')\">\n                                            <label class=\"form-check-label\" for=\"imprimeOrigem\">{{\n                                                'labels.imprimirOrigem' | translate }}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row mr-2\">\n                                    <div class=\"col-lg-4 col-md-4 col-sm-12\">\n                                        <label for=\"tipoTransp\">{{'labels.tipoDeTransporte' | translate}}</label>\n                                        <app-combo-multi-padrao id=\"tipoTransp\" name=\"tipoTransp\"\n                                            tabela=\"TiposdeTransporte\" chave=\"TipoTransp\" descricao=\"DescrMov\"\n                                            ativos=\"true\" selectAll=\"true\" (outObjeto)=\"trataTipoOper($event)\">\n                                        </app-combo-multi-padrao>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"cfop\">{{'labels.cfop' | translate}}</label>\n                                            <app-pesquisa-natureza id=\"cfop\" name=\"cfop\"\n                                                [(ngModel)]=\"filtro.naturezaId\">\n                                            </app-pesquisa-natureza>\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\" [disabled]=\"funcoesService.isDetail(actionForm)\">\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/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada-form/descargas-por-notas-fiscais-integrada-form.component.ts":
/*!********************************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada-form/descargas-por-notas-fiscais-integrada-form.component.ts ***!
  \********************************************************************************************************************************************************************************************/
/*! exports provided: DescargasPorNotasFiscaisIntegradaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargasPorNotasFiscaisIntegradaFormComponent", function() { return DescargasPorNotasFiscaisIntegradaFormComponent; });
/* harmony import */ var _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __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_5__ = __webpack_require__(/*! ./../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../../../../../pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_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 _descargas_por_notas_fiscais_integrada_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../descargas-por-notas-fiscais-integrada.constants */ "./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada.constants.ts");
/* harmony import */ var _descargas_por_notas_fiscais_integrada_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../descargas-por-notas-fiscais-integrada.model */ "./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};














var DescargasPorNotasFiscaisIntegradaFormComponent = /** @class */ (function (_super) {
    __extends(DescargasPorNotasFiscaisIntegradaFormComponent, _super);
    function DescargasPorNotasFiscaisIntegradaFormComponent(loginService, permissoesUtils, funcoesService, excelService, reportService, messageService) {
        var _this = _super.call(this, new _descargas_por_notas_fiscais_integrada_constants__WEBPACK_IMPORTED_MODULE_12__["DescargasPorNotasFiscaisIntegradaConstants"](), funcoesService) || this;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.excelService = excelService;
        _this.reportService = reportService;
        _this.messageService = messageService;
        _this.mensagens = [];
        _this.constantes = new _descargas_por_notas_fiscais_integrada_constants__WEBPACK_IMPORTED_MODULE_12__["DescargasPorNotasFiscaisIntegradaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.filtro = new _descargas_por_notas_fiscais_integrada_model__WEBPACK_IMPORTED_MODULE_13__["DescargasPorNotasFiscaisIntegrada"]();
        _this.disabledGrupo = false;
        _this.disabledCliente = false;
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_7__["Mascaras"]();
        _this.export = function (form) {
            if (!_this.validatePeriodoAte())
                return;
            if (!_this.printParams(form)) {
                return;
            }
            _this.reportService.exportEspecificos(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                var headerDictionary = {};
                var options = {
                    headerJsonKeys: true,
                    headerDictionary: headerDictionary
                };
                var dados = [];
                resp.forEach(function (item) {
                    if (item.dataDocumento) {
                        var dtDoc = new Date(item.dataDocumento);
                        var hora = dtDoc.getHours();
                        var minuto = dtDoc.getMinutes();
                        var horario = '';
                        if (hora === 0 && minuto === 0) {
                            horario = '';
                        }
                        else if (hora === 0) {
                            horario = minuto.toString().padStart(2, '0');
                        }
                        else if (minuto === 0) {
                            horario = hora.toString().padStart(2, '0');
                        }
                        else {
                            horario =
                                hora.toString().padStart(2, '0') + ":" +
                                    ("" + minuto.toString().padStart(2, '0'));
                        }
                        item.dataDocumento =
                            dtDoc.getDate().toString().padStart(2, '0') + "/" +
                                ((dtDoc.getMonth() + 1).toString().padStart(2, '0') + "/") +
                                ("" + dtDoc.getFullYear()) +
                                (horario ? " " + horario : '');
                        if (!!item.dtSaida) {
                            var dtSai = new Date(item.dtSaida);
                            item.dtSaida = dtSai.getDate().toString().padStart(2, '0') + "/" +
                                ((dtSai.getMonth() + 1).toString().padStart(2, '0') + "/") +
                                (dtSai.getFullYear() + " " + dtSai.getHours().toString().padStart(2, '0') + ":") +
                                ("" + dtSai.getMinutes().toString().padStart(2, '0'));
                        }
                        if (!!item.dtDescarga) {
                            var dtDes = new Date(item.dtDescarga);
                            item.dtDescarga = dtDes.getDate().toString().padStart(2, '0') + "/" +
                                ((dtDes.getMonth() + 1).toString().padStart(2, '0') + "/") +
                                (dtDes.getFullYear() + " " + dtDes.getHours().toString().padStart(2, '0') + ":") +
                                ("" + dtDes.getMinutes().toString().padStart(2, '0'));
                        }
                    }
                    if (!!item.dtAutorizacao) {
                        var dtAut = new Date(item.dtAutorizacao);
                        item.dtAutorizacao = dtAut.getDate().toString().padStart(2, '0') + "/" +
                            ((dtAut.getMonth() + 1).toString().padStart(2, '0') + "/") +
                            (dtAut.getFullYear() + " " + dtAut.getHours().toString().padStart(2, '0') + ":") +
                            ("" + dtAut.getMinutes().toString().padStart(2, '0'));
                    }
                    var d = {
                        'codigo': item.codDest,
                        'cliente': item.descrCliente,
                        'codMater': item.material,
                        'produto': item.descrMaterial,
                        'lote': item.lote,
                        'unidade': item.unidade,
                        'precArmazenado': item.precoArmazenado,
                        'origem': item.origem,
                        'numBl': item.numBl,
                        'dataBl': item.dtBl,
                        'modal': item.descrTipo,
                        'autorizacao': item.autorizacao,
                        'dtHoraAutorizacao': item.dtAutorizacao,
                        'dtHoraSaida': item.dtSaida,
                        'transportadora': item.descrTransp,
                        'placa_s': item.placa,
                        'numNf': item.docto,
                        'serie': item.serie,
                        'dtNf': item.dataDocumento,
                        'pesoNf': item.pesoDoc,
                        'valorNf': item.totItem,
                        'complementoNf': item.complNF,
                        'pesoBruto': item.pesoBru,
                        'pesoTara': item.pesoTara,
                        'peso_Liq': item.pesoLiq,
                        'diferKg': item.diferenca,
                        'deposito': item.deposito,
                        'dtHoraDescarga': item.dtDescarga,
                        'unidadeDescarga': item.quantidUnidade,
                        'qtdeDoc': item.quantidDoc,
                        'qtdeRecebida': item.quantidRecebida,
                        'diferenca': item.diferencaQuantid
                    };
                    dados.push(d);
                });
                _this.excelService.exportAsExcelFile(dados, _this.messageService.getTranslates("titles", "descargasPorNotasFiscaisIntegrada"), options);
            });
        };
        _this.filialId = _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(_this.loginService.getLogin().filialId);
        return _this;
    }
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.onSubmit = function (form) {
        if (!this.validatePeriodoAte())
            return;
        if (!this.printParams(form)) {
            return;
        }
        this.print(null, true);
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.printParams = function (form) {
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return false;
        }
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            dataInicial: this.filtro.dataInicio,
            dataFinal: this.filtro.dataFinal,
            destinatarioIdCliente: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.filtro.destinatarioIdCliente),
            destinatarioIdEmitente: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.filtro.destinatarioIdEmitente),
            destinatarioIdTransportadora: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.filtro.destinatarioIdTransportadora),
            grupoClienteId: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.filtro.grupoClienteId),
            loteId: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].toString(this.filtro.loteId),
            tanqueId: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].toString(this.filtro.tanqueId),
            materialId: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].toString(this.filtro.materialId),
            imprimeOrigem: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].toString(this.filtro.imprimeOrigem),
            apresentarDepositos: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].toString(this.filtro.apresentarDepositos),
            numeroOsg: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.filtro.numeroOsg),
            tipoTransp: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].toString(this.filtro.tipoTransp),
            naturezaId: _shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["StringUtilsStaticService"].toString(this.filtro.naturezaId)
        };
        return true;
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.trataDest = function (destinatario) {
        this.filtro.cliente = destinatario;
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.trataEmitente = function (destinatario) {
        this.filtro.emitente = destinatario;
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.trataGrupoCliente = function (grupoCliente) {
        this.filtro.grupoCliente = grupoCliente;
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.trataTransportadora = function (destinatario) {
        this.filtro.transportadora = destinatario;
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.trataOsg = function (osg) {
        this.filtro.numeroOsg = "";
        if (!!osg)
            this.filtro.numeroOsg = osg.numeroOsg;
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.selecionaApresenta = function (chave) {
        if (chave === 'apresentarTemposDeCarregamento') {
            this.filtro.imprimeOrigem = this.filtro.imprimeOrigem === 'N' ? 'S' : 'N';
        }
        else if (chave === 'apresentarDepositos') {
            this.filtro.apresentarDepositos = this.filtro.apresentarDepositos === 'S' ? 'N' : 'S';
        }
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.trataTipoOper = function (selectedItems) {
        this.filtro.tipoTransp = selectedItems;
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.sendMail = function (form) {
        if (!this.validatePeriodoAte())
            return;
        if (!this.printParams(form)) {
            return;
        }
        _super.prototype.sendMail.call(this, this.constantes, true);
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.prototype.validatePeriodoAte = function () {
        if (!this.filtro.dataInicio)
            return;
        if (!this.filtro.dataFinal)
            return;
        if (this.funcoesService.dateTimeUtils.maiorOuIgualA(this.filtro.dataInicio, this.filtro.dataFinal, ['H', 'M'])) {
            this.messageService.warning("titles.descargasPorNotasFiscaisIntegrada", "messages.ateMenorPeriodoDe");
            return false;
        }
        return true;
    };
    DescargasPorNotasFiscaisIntegradaFormComponent.ctorParameters = function () { return [
        { type: _pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { 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"] }
    ]; };
    DescargasPorNotasFiscaisIntegradaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: "app-descargas-por-notas-fiscais-integrada-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./descargas-por-notas-fiscais-integrada-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada-form/descargas-por-notas-fiscais-integrada-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _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"]])
    ], DescargasPorNotasFiscaisIntegradaFormComponent);
    return DescargasPorNotasFiscaisIntegradaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada.constants.ts":
/*!********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada.constants.ts ***!
  \********************************************************************************************************************************************/
/*! exports provided: DescargasPorNotasFiscaisIntegradaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargasPorNotasFiscaisIntegradaConstants", function() { return DescargasPorNotasFiscaisIntegradaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var DescargasPorNotasFiscaisIntegradaConstants = /** @class */ (function () {
    function DescargasPorNotasFiscaisIntegradaConstants() {
        this.sisFormularioId = 375512;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" }
        ];
        this.nomeForm = "titles.descargasPorNotasFiscaisIntegrada";
        this.reportId = "ALD0028";
        this.reportTitulo = { "titulo": "Descargas por Notas Fiscais Integradas", "subTitulo": "" };
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return DescargasPorNotasFiscaisIntegradaConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada.model.ts":
/*!****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada.model.ts ***!
  \****************************************************************************************************************************************/
/*! exports provided: DescargasPorNotasFiscaisIntegrada */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargasPorNotasFiscaisIntegrada", function() { return DescargasPorNotasFiscaisIntegrada; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var DescargasPorNotasFiscaisIntegrada = /** @class */ (function () {
    function DescargasPorNotasFiscaisIntegrada() {
        this.filialId = 0;
        this.destinatarioIdCliente = 0;
        this.grupoClienteId = 0;
        this.materialId = "";
        this.loteId = "";
        this.apresentarDepositos = "S";
        this.imprimeOrigem = "";
        var dataInicial = new Date();
        dataInicial.setHours(0);
        dataInicial.setMinutes(0);
        dataInicial.setSeconds(0);
        var a = new Date();
        a.setHours(23);
        a.setMinutes(59);
        a.setSeconds(59);
        this.dataInicio = dataInicial;
        this.dataFinal = a;
    }
    return DescargasPorNotasFiscaisIntegrada;
}());



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada.module.ts":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada.module.ts ***!
  \*****************************************************************************************************************************************/
/*! exports provided: DescargasPorNotasFiscaisIntegradaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargasPorNotasFiscaisIntegradaModule", function() { return DescargasPorNotasFiscaisIntegradaModule; });
/* 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 _descargas_por_notas_fiscais_integrada_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./descargas-por-notas-fiscais-integrada.routing.module */ "./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada.routing.module.ts");
/* harmony import */ var _descargas_por_notas_fiscais_integrada_form_descargas_por_notas_fiscais_integrada_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./descargas-por-notas-fiscais-integrada-form/descargas-por-notas-fiscais-integrada-form.component */ "./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada-form/descargas-por-notas-fiscais-integrada-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 DescargasPorNotasFiscaisIntegradaModule = /** @class */ (function () {
    function DescargasPorNotasFiscaisIntegradaModule() {
    }
    DescargasPorNotasFiscaisIntegradaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _descargas_por_notas_fiscais_integrada_routing_module__WEBPACK_IMPORTED_MODULE_2__["DescargasPorNotasFiscaisIntegradaRoutingModule"]],
            declarations: [_descargas_por_notas_fiscais_integrada_form_descargas_por_notas_fiscais_integrada_form_component__WEBPACK_IMPORTED_MODULE_3__["DescargasPorNotasFiscaisIntegradaFormComponent"]],
        })
    ], DescargasPorNotasFiscaisIntegradaModule);
    return DescargasPorNotasFiscaisIntegradaModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada.routing.module.ts":
/*!*************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada.routing.module.ts ***!
  \*************************************************************************************************************************************************/
/*! exports provided: DescargasPorNotasFiscaisIntegradaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargasPorNotasFiscaisIntegradaRoutingModule", function() { return DescargasPorNotasFiscaisIntegradaRoutingModule; });
/* 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 _descargas_por_notas_fiscais_integrada_form_descargas_por_notas_fiscais_integrada_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./descargas-por-notas-fiscais-integrada-form/descargas-por-notas-fiscais-integrada-form.component */ "./src/app/pages/especificos/aldc/relatorios/descargas-por-notas-fiscais-integrada/descargas-por-notas-fiscais-integrada-form/descargas-por-notas-fiscais-integrada-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: _descargas_por_notas_fiscais_integrada_form_descargas_por_notas_fiscais_integrada_form_component__WEBPACK_IMPORTED_MODULE_3__["DescargasPorNotasFiscaisIntegradaFormComponent"],
        data: { breadcrumb: "descargasPorNotasFiscaisIntegrada", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var DescargasPorNotasFiscaisIntegradaRoutingModule = /** @class */ (function () {
    function DescargasPorNotasFiscaisIntegradaRoutingModule() {
    }
    DescargasPorNotasFiscaisIntegradaRoutingModule = __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"]],
        })
    ], DescargasPorNotasFiscaisIntegradaRoutingModule);
    return DescargasPorNotasFiscaisIntegradaRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-aldc-relatorios-descargas-por-notas-fiscais-integrada-descargas-por-notas-fiscais-integrada-module.js.map