(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cotriguacu-relatorios-descarga-por-nota-descarga-por-nota-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota-form/descarga-por-nota-form.component.html":
/*!******************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota-form/descarga-por-nota-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\" #descargaPorNota=\"ngForm\" (ngSubmit)=\"onSubmit(descargaPorNota)\">\n                        <app-validacoes></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-8\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"periodoDe\" class=\"required\">{{ 'labels.periodoDe' | translate\n                                                }}</label>\n                                            <app-data-h-m-s id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\n                                                [(ngModel)]=\"data.dataIni\">\n                                            </app-data-h-m-s>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ate\" class=\"required\">{{ 'labels.ate' | translate }}</label>\n                                            <app-data-h-m-s id=\"ate\" name=\"ate\" required=\"true\"\n                                                [(ngModel)]=\"data.dataFim\">\n                                            </app-data-h-m-s>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"destinatarioIdCliente\"\n                                                name=\"destinatarioIdCliente\" label=\"cliente\" modalTitle=\"cliente\"\n                                                [(ngModel)]=\"data.destinatarioIdCliente\" tipoDestinatario=\"C\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\"\n                                                [disabled]=\"validaGrupoSelecionado()\" (outModel)=\"trataDest($event)\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"destinatarioIdEmitente\"\n                                                name=\"destinatarioIdEmitente\" label=\"emitente\" modalTitle=\"emitente\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                [(ngModel)]=\"data.destinatarioIdEmitente\" tipoDestinatario=\"C\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-material id=\"materialId\" name=\"materialId\" label=\"produto\"\n                                                modalTitle=\"produto\" [(ngModel)]=\"data.materialId\">\n                                            </app-pesquisa-material>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario id=\"destinatarioIdTransportadora\"\n                                                name=\"destinatarioIdTransportadora\" label=\"transportadora\"\n                                                modalTitle=\"transportadora\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                [(ngModel)]=\"data.destinatarioIdTransportadora\" tipoDestinatario=\"T\"\n                                                showCgcCpf=\"false\" showInscricao=\"false\">\n                                            </app-pesquisa-destinatario>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"grupoClienteId\">{{ 'labels.grupo' | translate}}</label>\n                                            <app-combo-grupo-cliente name=\"grupoClienteId\" id=\"grupoClienteId\"\n                                                [(ngModel)]=\"data.grupoClienteId\"\n                                                [disabled]=\"validaClienteSelecionado()\"\n                                                (outSelected)=\"trataGrupoCliente($event)\">\n                                            </app-combo-grupo-cliente>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tipoTransporte\">{{\"labels.tipoTransporte\" | translate}}</label>\n                                            <app-combo-multi-padrao id=\"tipoTransporte\" name=\"tipoTransporte\"\n                                                tabela=\"TiposDeTransporte\" chave=\"TipoTransp\" descricao=\"DescrMov\"\n                                                ativos=\"true\" (outObjeto)=\"trataTipoTransporte($event)\">\n                                            </app-combo-multi-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6\">\n                                        <app-pesquisa-lote id=\"lote\" label=\"lote\" name=\"lote\" modalTitle=\"lote\"\n                                            [(ngModel)]=\"data.loteId\"\n                                            [destinatarioIdCliente]=\"data.destinatarioIdCliente\"\n                                            [materialId]=\"data.materialId\" [loteId]=\"data.loteId\"\n                                            destinatarioIdEmitente=\"0\" destinatarioIdNavio=\"0\" osgId=\"0\"\n                                            stoContratoId=\"\" stoContratoItemId=\"0\">\n                                        </app-pesquisa-lote>\n                                    </div>\n                                    <div class=\"col-lg-6\">\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)]=\"data.numeroOsg\">\n                                            </app-pesquisa-saldo-osg>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"form-group mt-3\">\n                            <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                {{ 'buttons.gerarRelatorio' | translate }}\n                            </button>\n                            <button class=\"btn btn-success mr-2\" (click)=\"export(descargaPorNota)\" type=\"button\">{{\n                                'buttons.exportarExcel' | translate }}\n                            </button>\n                            <button class=\"btn btn-success mr-2\" (click)=\"sendMail(descargaPorNota)\" 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/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota-form/descarga-por-nota-form.component.ts":
/*!**************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota-form/descarga-por-nota-form.component.ts ***!
  \**************************************************************************************************************************************/
/*! exports provided: DescargaPorNotaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargaPorNotaFormComponent", function() { return DescargaPorNotaFormComponent; });
/* 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 _descarga_por_nota_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../descarga-por-nota.model */ "./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota.model.ts");
/* harmony import */ var _descarga_por_nota_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../descarga-por-nota.constants */ "./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota.constants.ts");
/* harmony import */ var app_pages_cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/tipo-de-transporte/tipo-de-transporte.service */ "./src/app/pages/cadastro/tipo-de-transporte/tipo-de-transporte.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __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_7__ = __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 app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.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 DescargaPorNotaFormComponent = /** @class */ (function (_super) {
    __extends(DescargaPorNotaFormComponent, _super);
    function DescargaPorNotaFormComponent(router, messageService, activatedRoute, permissoesUtils, tipoDeTransporteService, funcoesService, loginService, excelService, reportService) {
        var _this = _super.call(this, new _descarga_por_nota_constants__WEBPACK_IMPORTED_MODULE_3__["DescargaPorNotaConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.permissoesUtils = permissoesUtils;
        _this.tipoDeTransporteService = tipoDeTransporteService;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.excelService = excelService;
        _this.reportService = reportService;
        _this.mensagens = [];
        _this.constantes = new _descarga_por_nota_constants__WEBPACK_IMPORTED_MODULE_3__["DescargaPorNotaConstants"]();
        _this.dataAtual = new Date();
        _this.data = new _descarga_por_nota_model__WEBPACK_IMPORTED_MODULE_2__["DescargaPorNota"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_5__["Mascaras"]();
        _this.export = function (form) {
            if (form.invalid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__["EventEmitterService"].get("formError").emit(form);
                return;
            }
            _this.printParams();
            _this.reportService.exportEspecificos(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                var headerDictionary = {
                    "docto": "numeronf",
                    "dataDocumento": "dataNF",
                    "totItem": "valorNF",
                    "descrTipo": "modal",
                    "operInc": "usuarioInclusao",
                    "pesoDoc": "pesoNF",
                };
                var options = {
                    headerJsonKeys: true,
                    headerDictionary: headerDictionary
                };
                _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "descargaPorNota"), options);
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.filialId = loginService.getLogin().filialId;
        return _this;
    }
    DescargaPorNotaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    DescargaPorNotaFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    DescargaPorNotaFormComponent.prototype.trataTipoTransporte = function (selectedItems) {
        this.data.tipoTransporteId = selectedItems;
    };
    DescargaPorNotaFormComponent.prototype.validaClienteSelecionado = function () {
        var valReturn = false;
        if (this.data.destinatarioIdCliente > 0) {
            valReturn = true;
        }
        return valReturn;
    };
    DescargaPorNotaFormComponent.prototype.validaGrupoSelecionado = function () {
        var valReturn = false;
        if (this.data.grupoClienteId > 0) {
            valReturn = true;
        }
        return valReturn;
    };
    DescargaPorNotaFormComponent.prototype.trataDest = function (destinatario) {
        this.data.cliente = destinatario;
    };
    DescargaPorNotaFormComponent.prototype.trataGrupoCliente = function (grupoCliente) {
        this.data.grupoCliente = grupoCliente;
    };
    DescargaPorNotaFormComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.printParams();
        this.print(null, true);
    };
    DescargaPorNotaFormComponent.prototype.validaData = function () {
        if (this.data.dataIni === "") {
            this.messageService.info("Data", "Campo data naõ pode ser vazio ");
        }
    };
    DescargaPorNotaFormComponent.prototype.printParams = function () {
        if (this.funcoesService.isPositive(this.data.grupoClienteId)) {
            if (this.funcoesService.isNotUndefinedOrNull(this.data.grupoCliente.descricao)) {
                this.constantes.reportTitulo.subTitulo = this.data.grupoCliente.descricao;
            }
        }
        else if (this.funcoesService.isPositive(this.data.destinatarioIdCliente)) {
            if (this.funcoesService.isNotUndefinedOrNull(this.data.cliente)) {
                this.constantes.reportTitulo.subTitulo = this.data.cliente.fantasia;
            }
        }
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            dataI: this.data.dataIni === undefined ? "" : this.data.dataIni,
            dataF: this.data.dataFim === undefined ? "" : this.data.dataFim,
            loteId: this.data.loteId === undefined ? "" : this.data.loteId,
            destinatarioIdCliente: this.data.destinatarioIdCliente === undefined ? 0 : this.data.destinatarioIdCliente,
            destinatarioIdEmitente: this.data.destinatarioIdEmitente === undefined ? 0 : this.data.destinatarioIdEmitente,
            destinatarioIdTransportadora: this.data.destinatarioIdTransportadora === undefined ? 0 : this.data.destinatarioIdTransportadora,
            grupoClienteId: this.data.grupoClienteId === undefined ? 0 : this.data.grupoClienteId,
            materialId: this.data.materialId === undefined ? "" : this.data.materialId,
            numeroOsg: this.data.numeroOsg === undefined ? "" : this.data.numeroOsg,
            tipoTransporteId: this.data.tipoTransporteId === undefined ? "" : this.data.tipoTransporteId
        };
    };
    DescargaPorNotaFormComponent.prototype.sendMail = function (form) {
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        this.printParams();
        _super.prototype.sendMail.call(this, this.constantes, true);
    };
    DescargaPorNotaFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_4__["TipoDeTransporteService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__["ExcelService"] },
        { type: app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_12__["ReportService"] }
    ]; };
    DescargaPorNotaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-descarga-por-nota-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./descarga-por-nota-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota-form/descarga-por-nota-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            app_pages_cadastro_tipo_de_transporte_tipo_de_transporte_service__WEBPACK_IMPORTED_MODULE_4__["TipoDeTransporteService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_11__["ExcelService"],
            app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_12__["ReportService"]])
    ], DescargaPorNotaFormComponent);
    return DescargaPorNotaFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_8__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota.constants.ts":
/*!**********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota.constants.ts ***!
  \**********************************************************************************************************/
/*! exports provided: DescargaPorNotaConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota.model.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota.model.ts ***!
  \******************************************************************************************************/
/*! exports provided: DescargaPorNota */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargaPorNota", function() { return DescargaPorNota; });
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.model */ "./src/app/shared/services/base/base.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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var DescargaPorNota = /** @class */ (function (_super) {
    __extends(DescargaPorNota, _super);
    function DescargaPorNota() {
        var _this = _super.call(this) || this;
        var currentDate = new Date();
        currentDate.setDate(1);
        var a = new Date();
        a.setHours(23);
        a.setMinutes(59);
        a.setSeconds(59);
        _this.filialId = 0;
        _this.dataIni = currentDate;
        _this.dataFim = a;
        _this.loteId = "";
        _this.destinatarioIdCliente = 0;
        _this.destinatarioIdEmitente = 0;
        _this.destinatarioIdTransportadora = 0;
        _this.grupoClienteId = undefined;
        _this.materialId = "";
        _this.numeroOsg = "";
        _this.tipoTransporteId = "";
        return _this;
    }
    return DescargaPorNota;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota.module.ts":
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota.module.ts ***!
  \*******************************************************************************************************/
/*! exports provided: DescargaPorNotaModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargaPorNotaModule", function() { return DescargaPorNotaModule; });
/* 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 _descarga_por_nota_form_descarga_por_nota_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./descarga-por-nota-form/descarga-por-nota-form.component */ "./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota-form/descarga-por-nota-form.component.ts");
/* harmony import */ var _descarga_por_nota_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./descarga-por-nota.routing.module */ "./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota.routing.module.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 DescargaPorNotaModule = /** @class */ (function () {
    function DescargaPorNotaModule() {
    }
    DescargaPorNotaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _descarga_por_nota_routing_module__WEBPACK_IMPORTED_MODULE_3__["DescargaPorNotaRoutingModule"]],
            declarations: [_descarga_por_nota_form_descarga_por_nota_form_component__WEBPACK_IMPORTED_MODULE_2__["DescargaPorNotaFormComponent"]]
        })
    ], DescargaPorNotaModule);
    return DescargaPorNotaModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota.routing.module.ts":
/*!***************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota.routing.module.ts ***!
  \***************************************************************************************************************/
/*! exports provided: DescargaPorNotaRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescargaPorNotaRoutingModule", function() { return DescargaPorNotaRoutingModule; });
/* 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 _descarga_por_nota_form_descarga_por_nota_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./descarga-por-nota-form/descarga-por-nota-form.component */ "./src/app/pages/especificos/cotriguacu/relatorios/descarga-por-nota/descarga-por-nota-form/descarga-por-nota-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: _descarga_por_nota_form_descarga_por_nota_form_component__WEBPACK_IMPORTED_MODULE_3__["DescargaPorNotaFormComponent"],
        data: { breadcrumb: "descargaPorNota", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var DescargaPorNotaRoutingModule = /** @class */ (function () {
    function DescargaPorNotaRoutingModule() {
    }
    DescargaPorNotaRoutingModule = __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"]],
        })
    ], DescargaPorNotaRoutingModule);
    return DescargaPorNotaRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cotriguacu-relatorios-descarga-por-nota-descarga-por-nota-module.js.map