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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/relatorios/terno-de-descarga/terno-de-descarga-form/terno-de-descarga-form.component.html":
/*!******************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/relatorios/terno-de-descarga/terno-de-descarga-form/terno-de-descarga-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-3 col-md-3 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"periodoInicial\" class=\"required\">{{ 'labels.periodoInicial' | translate }}</label>\n                                    <app-data-h-m-s id=\"periodoInicial\" name=\"periodoInicial\" required=\"true\" [(ngModel)]=\"filtro.dataI\">\n                                    </app-data-h-m-s>\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=\"final\" class=\"required\">{{ 'labels.final' | translate }}</label>\n                                    <app-data-h-m-s id=\"final\" name=\"final\" required=\"true\" [(ngModel)]=\"filtro.dataF\">\n                                    </app-data-h-m-s>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row mt-2\">\n                            <div class=\"col-12\">\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\"\n                                        [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                            </div>\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>\n");

/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/relatorios/terno-de-descarga/terno-de-descarga-form/terno-de-descarga-form.component.ts":
/*!**************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/relatorios/terno-de-descarga/terno-de-descarga-form/terno-de-descarga-form.component.ts ***!
  \**************************************************************************************************************************************/
/*! exports provided: TernoDeDescargaFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TernoDeDescargaFormComponent", function() { return TernoDeDescargaFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/components/report/report.service */ "./src/app/shared/components/report/report.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_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _terno_de_descarga_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../terno-de-descarga.constants */ "./src/app/pages/especificos/cotriguacu/relatorios/terno-de-descarga/terno-de-descarga.constants.ts");
/* harmony import */ var _terno_de_descarga_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../terno-de-descarga.model */ "./src/app/pages/especificos/cotriguacu/relatorios/terno-de-descarga/terno-de-descarga.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 TernoDeDescargaFormComponent = /** @class */ (function (_super) {
    __extends(TernoDeDescargaFormComponent, _super);
    function TernoDeDescargaFormComponent(loginService, excelService, reportService, messageService, permissoesUtils, funcoesService) {
        var _this = _super.call(this, new _terno_de_descarga_constants__WEBPACK_IMPORTED_MODULE_10__["TernoDeDescargaConstants"](), funcoesService) || this;
        _this.loginService = loginService;
        _this.excelService = excelService;
        _this.reportService = reportService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoesService = funcoesService;
        _this.mensagens = [];
        _this.constantes = new _terno_de_descarga_constants__WEBPACK_IMPORTED_MODULE_10__["TernoDeDescargaConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.filtro = new _terno_de_descarga_model__WEBPACK_IMPORTED_MODULE_11__["TernoDeDescarga"]();
        _this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        _this.export = function (form) {
            if (!_this.printParams(form)) {
                return;
            }
            _this.reportService.exportEspecificos(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                var headerDictionary = {
                    "descTerno": "ternoDeDescarga",
                    "descrMater": "descrMaterial",
                    "deposito": "localDeDescarga"
                };
                var options = {
                    headerJsonKeys: true,
                    headerDictionary: headerDictionary
                };
                _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "ternoDeDescarga"), options);
            });
        };
        return _this;
    }
    TernoDeDescargaFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { }, function () { return _this.permissoesUtils.back(); }, true);
    };
    TernoDeDescargaFormComponent.prototype.onSubmit = function (form) {
        if (!this.printParams(form)) {
            return;
        }
        this.print(null, true);
    };
    TernoDeDescargaFormComponent.prototype.onCancelar = function () {
        this.filtro = new _terno_de_descarga_model__WEBPACK_IMPORTED_MODULE_11__["TernoDeDescarga"]();
    };
    TernoDeDescargaFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    TernoDeDescargaFormComponent.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.reportTitulo.subTitulo = "Período de : " + this.filtro.dataI + " até : " + this.filtro.dataF.toString();
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            dataI: this.filtro.dataI,
            dataF: this.filtro.dataF
        };
        return true;
    };
    TernoDeDescargaFormComponent.prototype.sendMail = function (form) {
        if (!this.printParams(form)) {
            return;
        }
        _super.prototype.sendMail.call(this, this.constantes, true);
    };
    TernoDeDescargaFormComponent.ctorParameters = function () { return [
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_5__["ExcelService"] },
        { type: _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_3__["ReportService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] }
    ]; };
    TernoDeDescargaFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-terno-de-descarga-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./terno-de-descarga-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/relatorios/terno-de-descarga/terno-de-descarga-form/terno-de-descarga-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            _shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_5__["ExcelService"],
            _shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_3__["ReportService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"]])
    ], TernoDeDescargaFormComponent);
    return TernoDeDescargaFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TernoDeDescargaConstants", function() { return TernoDeDescargaConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TernoDeDescargaConstants = /** @class */ (function () {
    function TernoDeDescargaConstants() {
        this.sisFormularioId = 65632;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "REL";
        this.nomeForm = "titles.ternoDeDescarga";
        this.reportId = "COT0004";
        this.reportTitulo = { "titulo": "Relatório de Terno de Descarga", "subTitulo": "" };
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return TernoDeDescargaConstants;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TernoDeDescarga", function() { return TernoDeDescarga; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var TernoDeDescarga = /** @class */ (function () {
    function TernoDeDescarga() {
        this.dataI = new Date();
        this.dataI.setHours(0, 0, 0);
        this.dataF = new Date();
        this.dataF.setHours(23, 59, 59);
    }
    return TernoDeDescarga;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TernoDeDescargaModule", function() { return TernoDeDescargaModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _terno_de_descarga_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./terno-de-descarga.routing.module */ "./src/app/pages/especificos/cotriguacu/relatorios/terno-de-descarga/terno-de-descarga.routing.module.ts");
/* harmony import */ var _terno_de_descarga_form_terno_de_descarga_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./terno-de-descarga-form/terno-de-descarga-form.component */ "./src/app/pages/especificos/cotriguacu/relatorios/terno-de-descarga/terno-de-descarga-form/terno-de-descarga-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 TernoDeDescargaModule = /** @class */ (function () {
    function TernoDeDescargaModule() {
    }
    TernoDeDescargaModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _terno_de_descarga_routing_module__WEBPACK_IMPORTED_MODULE_2__["TernoDeDescargaRoutingModule"]],
            declarations: [_terno_de_descarga_form_terno_de_descarga_form_component__WEBPACK_IMPORTED_MODULE_3__["TernoDeDescargaFormComponent"]],
            providers: []
        })
    ], TernoDeDescargaModule);
    return TernoDeDescargaModule;
}());



/***/ }),

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

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



/***/ })

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