(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-operacao-operacao-transf-drenagem-medicao-operacao-transf-drenagem-medicao-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-filter/operacao-transf-drenagem-medicao-filter.component.html":
/*!******************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-filter/operacao-transf-drenagem-medicao-filter.component.html ***!
  \******************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"operacao-transf-drenagem-medicao-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-45\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaDeOperacaoTransfDrenagemMedicao' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"laudoId\">{{'labels.laudo' | translate}}</label>\r\n                                <input id=\"laudoId\"\r\n                                       name=\"motivo\"\r\n                                       [(ngModel)]=\"service.filtro.laudoId\"\r\n                                       class=\"form-control form-control-sm\" type=\"text\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\" [class.required]=\"obrigaCampo()\">{{\"labels.periodoDe\" | translate }}</label>\r\n                                <app-data id=\"periodoDe\"\r\n                                          name=\"periodoDe\"\r\n                                          [(ngModel)]=\"service.filtro.dataI\"\r\n                                          [required]=\"obrigaCampo()\"\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatData\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\" [class.required]=\"obrigaCampo()\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\"\r\n                                          name=\"ate\"\r\n                                          [(ngModel)]=\"service.filtro.dataF\"\r\n                                          [required]=\"obrigaCampo()\"\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatData\"\r\n                                          required=\"true\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"situacao\" [class.required]=\"obrigaCampo()\">{{ \"labels.situacao\" | translate}}</label>\r\n                                <select id=\"situacao\"\r\n                                        [(ngModel)]=\"service.filtro.sitReg\"\r\n                                        [required]=\"obrigaCampo()\"\r\n                                        class=\"form-control form-control-sm\" name=\"situacao\"\r\n                                        data-title=\"{{ 'labels.situacao' | translate }}\">\r\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                    <option *ngFor=\"let t of situacao.get\"\r\n                                            value=\"{{ t.id }}\">\r\n                                        {{ t.descricao }}\r\n                                    </option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ordem\">{{'labels.ordem' | translate}}</label>\r\n                                <app-ordem\r\n                                        id=\"ordem\" name=\"ordem\"\r\n                                        [list]=\"constantes.orderBy\"\r\n                                        (outOrdem)=\"service.filtro.ordem = $event\"></app-ordem>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-form/operacao-transf-drenagem-medicao-form.component.html":
/*!**************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-form/operacao-transf-drenagem-medicao-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 [botoesComando]=\"constantes.listaForm\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.laudoId\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <app-form-legenda></app-form-legenda>\r\n            <div class=\"card-body widget-body\">\r\n                <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                    <app-validacoes></app-validacoes>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <app-card-container>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-md-3 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"laudo\">{{'labels.laudo' | translate}}</label>\r\n                                            <input id=\"laudo\" name=\"laudo\" [(ngModel)]=\"filtro.regLaudo\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled=\"true\">\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-md-3 col-sm-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"produtoFiltro\">{{'labels.produto' | translate}}</label>\r\n                                            <input id=\"produtoFiltro\" name=\"produtoFiltro\" [(ngModel)]=\"filtro.material\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" disabled=\"true\">\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </app-card-container>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <app-medicao-shared-form *ngIf=\"isDataLoaded\"\r\n                        [form]=\"f\"\r\n                        [data]=\"data\"\r\n                        [actionForm]=\"actionForm\"\r\n                        [tipoLaudo]=\"tipoLaudoMedicao\"\r\n                        [hasPermissaoTodosCampos]=\"perTodosCampos\"\r\n                        [showCustomComboTanque]=\"true\"\r\n                        [showCustomComboProduto]=\"true\"\r\n                        [showTipoMedicao]=\"true\"\r\n                        [showCliente]=\"false\"\r\n                        [filtro]=\"filtro\"\r\n                        [dadosComboTanque]=\"dadosComboTanque\"\r\n                        [dadosComboProduto]=\"dadosComboProduto\"\r\n                        pageTitle=\"operacaoTransfDrenagemMedicao\"\r\n                        (executaTrataDtMedicao)=\"trataDtMedicao()\"\r\n                        (executaTrataTipoMedicao)=\"trataTipoMedicao($event)\">\r\n                    </app-medicao-shared-form>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-sm-12\">\r\n                            <div class=\"form-group\">\r\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                    {{ 'buttons.salvar' | translate }}\r\n                                </button>\r\n                                <button class=\"btn btn-default\" type=\"button\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" (click)=\"back()\">\r\n                                    {{ 'buttons.cancelar' | translate }}\r\n                                </button>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </form>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-index/operacao-transf-drenagem-medicao-index.component.html":
/*!****************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-index/operacao-transf-drenagem-medicao-index.component.html ***!
  \****************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\r\n                      [formAction]=\"actionForm\"\r\n                      [itemData]=\"data.regLaudo\"\r\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"section-comand-bar\">\r\n    <div class=\"table-responsive\" style=\"overflow: auto;\">\r\n        <label for=\"dtProdutos\" *ngIf=\"hasDados\">{{ \"labels.produtos\" | translate}}</label>\r\n        <table id=\"dtProdutos\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n\r\n        <div class=\"clearfix\">&nbsp;</div>\r\n        <label for=\"dtMedicoes\" *ngIf=\"hasItens\">{{ \"labels.medicoes\" | translate}}</label>\r\n        <table id=\"dtMedicoes\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\r\n    </div>\r\n</div>\r\n\r\n<app-propriedades></app-propriedades>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-operacao-transf-drenagem-medicao-filter (filtrar)=\"executaFiltro()\"></app-operacao-transf-drenagem-medicao-filter>\r\n");

/***/ }),

/***/ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-filter/operacao-transf-drenagem-medicao-filter.component.ts":
/*!**************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-filter/operacao-transf-drenagem-medicao-filter.component.ts ***!
  \**************************************************************************************************************************************************************/
/*! exports provided: OperacaoTransfDrenagemMedicaoFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoTransfDrenagemMedicaoFilterComponent", function() { return OperacaoTransfDrenagemMedicaoFilterComponent; });
/* harmony import */ var _operacao_transf_drenagem_medicao_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../operacao-transf-drenagem-medicao.service */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _operacao_transf_drenagem_medicao_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operacao-transf-drenagem-medicao.model */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.model.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_transf_drenagem_medicao_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../operacao-transf-drenagem-medicao.constants */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.constants.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
var __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 OperacaoTransfDrenagemMedicaoFilterComponent = /** @class */ (function () {
    function OperacaoTransfDrenagemMedicaoFilterComponent(messageService, service) {
        this.messageService = messageService;
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.mascara = new _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["Mascaras"]();
        this.situacao = new _operacao_transf_drenagem_medicao_model__WEBPACK_IMPORTED_MODULE_2__["Situacao"]();
        this.constantes = new _operacao_transf_drenagem_medicao_constants__WEBPACK_IMPORTED_MODULE_6__["OperacaoTransfDrenagemMedicaoConstants"]();
    }
    OperacaoTransfDrenagemMedicaoFilterComponent.prototype.ngOnInit = function () {
        if (sessionStorage.getItem("serviceOperacaoTransfDrenagemMedicao")) {
            var filter = JSON.parse(sessionStorage.getItem("serviceOperacaoTransfDrenagemMedicao"));
            filter.dataI = this.service.filtro.dataI;
            filter.dataF = this.service.filtro.dataF;
            this.service.filtro = filter;
            setTimeout(function () {
                jQuery("#operacao-transf-drenagem-medicao-filter-dialog").modal("hide");
                sessionStorage.removeItem("serviceOperacaoTransfDrenagemMedicao");
            }, 1000);
            if (this.isDadosFiltroValidos()) {
                this.filtrar.emit();
                jQuery("#operacao-transf-drenagem-medicao-filter-dialog").modal("hide");
            }
        }
    };
    OperacaoTransfDrenagemMedicaoFilterComponent.prototype.isDadosFiltroValidos = function () {
        if (this.service.filtro.laudoId > 0)
            return true;
        if (!app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["DateTimeUtilsStaticService"].isDate(this.service.filtro.dataI) || !app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["DateTimeUtilsStaticService"].isDate(this.service.filtro.dataF)) {
            this.messageService.warning("titles.operacaoTransfDrenagemMedicao", "messages.periodoNaoPreenchidoOuInvalido");
            return false;
        }
        if (this.service.filtro.dataF < this.service.filtro.dataI) {
            this.messageService.warning("titles.operacaoTransfDrenagemMedicao", "messages.periodoNaoPreenchidoOuInvalido");
            return false;
        }
        if (app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["StringUtilsStaticService"].isEmpty(this.service.filtro.sitReg)) {
            this.messageService.warning("titles.operacaoTransfDrenagemMedicao", "messages.situacaoDeveSerPreenchido");
            return false;
        }
        return true;
    };
    OperacaoTransfDrenagemMedicaoFilterComponent.prototype.onSubmit = function (form) {
        if (form.invalid) {
            _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        if (this.isDadosFiltroValidos()) {
            this.filtrar.emit();
            jQuery("#operacao-transf-drenagem-medicao-filter-dialog").modal("hide");
        }
    };
    OperacaoTransfDrenagemMedicaoFilterComponent.prototype.obrigaCampo = function () {
        return this.service.filtro.laudoId > 0 ? false : true;
    };
    OperacaoTransfDrenagemMedicaoFilterComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: _operacao_transf_drenagem_medicao_service__WEBPACK_IMPORTED_MODULE_0__["OperacaoTransfDrenagemMedicaoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], OperacaoTransfDrenagemMedicaoFilterComponent.prototype, "filtrar", void 0);
    OperacaoTransfDrenagemMedicaoFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-operacao-transf-drenagem-medicao-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-transf-drenagem-medicao-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-filter/operacao-transf-drenagem-medicao-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            _operacao_transf_drenagem_medicao_service__WEBPACK_IMPORTED_MODULE_0__["OperacaoTransfDrenagemMedicaoService"]])
    ], OperacaoTransfDrenagemMedicaoFilterComponent);
    return OperacaoTransfDrenagemMedicaoFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-form/operacao-transf-drenagem-medicao-form.component.ts":
/*!**********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-form/operacao-transf-drenagem-medicao-form.component.ts ***!
  \**********************************************************************************************************************************************************/
/*! exports provided: OperacaoTransfDrenagemMedicaoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoTransfDrenagemMedicaoFormComponent", function() { return OperacaoTransfDrenagemMedicaoFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _operacao_transf_drenagem_medicao_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../operacao-transf-drenagem-medicao.constants */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.constants.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.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 _operacao_transf_drenagem_medicao_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../operacao-transf-drenagem-medicao.service */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.service.ts");
/* harmony import */ var app_pages_estoque_fisico_medicao_medicao_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/estoque-fisico/medicao/medicao.service */ "./src/app/pages/estoque-fisico/medicao/medicao.service.ts");
/* harmony import */ var app_pages_estoque_fisico_medicao_medicao_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/pages/estoque-fisico/medicao/medicao.model */ "./src/app/pages/estoque-fisico/medicao/medicao.model.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pages/cadastro/tanque/tanque.service */ "./src/app/pages/cadastro/tanque/tanque.service.ts");
/* harmony import */ var app_shared_components_forms_medicao_shared_form_medicao_shared_form_validation__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/components/forms/medicao-shared-form/medicao-shared-form.validation */ "./src/app/shared/components/forms/medicao-shared-form/medicao-shared-form.validation.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.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 __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
















var OperacaoTransfDrenagemMedicaoFormComponent = /** @class */ (function (_super) {
    __extends(OperacaoTransfDrenagemMedicaoFormComponent, _super);
    function OperacaoTransfDrenagemMedicaoFormComponent(router, messageService, activatedRoute, service, medicaoService, tanqueService, loginService, configuracao, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _operacao_transf_drenagem_medicao_constants__WEBPACK_IMPORTED_MODULE_3__["OperacaoTransfDrenagemMedicaoConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.medicaoService = medicaoService;
        _this.tanqueService = tanqueService;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new app_pages_estoque_fisico_medicao_medicao_model__WEBPACK_IMPORTED_MODULE_10__["Medicao"]();
        _this.filtro = new app_pages_estoque_fisico_medicao_medicao_model__WEBPACK_IMPORTED_MODULE_10__["MedicaoAuxFilter"]();
        _this.filtroCriaTmp = new app_pages_estoque_fisico_medicao_medicao_model__WEBPACK_IMPORTED_MODULE_10__["MedicaoCriaTmp"]();
        _this.dadosComboTanque = [];
        _this.dadosComboProduto = [];
        _this.mensagens = [];
        _this.constantes = new _operacao_transf_drenagem_medicao_constants__WEBPACK_IMPORTED_MODULE_3__["OperacaoTransfDrenagemMedicaoConstants"]();
        _this.perTodosCampos = false;
        _this.isContinueDtMedicao = false;
        _this.isDataLoaded = false;
        _this.tipoLaudoMedicao = app_config_enumerables__WEBPACK_IMPORTED_MODULE_11__["TipoLaudoMedicaoEnum"].transferencia;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            _this.medicaoService.configs.medicaoMM = _this.configuracao.boolean("OPE", "MedicaoMM");
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.medicaoValidation = new app_shared_components_forms_medicao_shared_form_medicao_shared_form_validation__WEBPACK_IMPORTED_MODULE_13__["MedicaoSharedFormValidation"](funcoesService);
        return _this;
    }
    OperacaoTransfDrenagemMedicaoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var obj = _this.activatedRoute.snapshot.paramMap.get("object");
            if (obj) {
                var object = JSON.parse(atob(obj));
                _this.filtro.regLog = object.regLog;
                _this.filtro.nrMedicao = object.nrMedicao;
                _this.filtro.regLaudo = object.regLaudo;
                _this.filtro.item = object.item;
                _this.filtro.subItem = object.subItem;
                _this.filtro.material = object.material;
            }
            if (_this.funcoesService.isPositive(_this.filtro.subItem)) {
                _this.medicaoService.getByStoLaudoMedicao(_this.filtro).subscribe(function (resp) {
                    _this.data = resp;
                    _this.auxDtMedicao = _this.data.dtMedicao;
                    if (_this.funcoesService.isEdit(_this.actionForm)) {
                        _this.filtroCriaTmp.nrMedicao = _this.data.medicaoId;
                        _this.filtroCriaTmp.regLaudo = _this.data.laudoId;
                        _this.filtroCriaTmp.item = _this.data.item;
                        _this.filtroCriaTmp.subItem = _this.data.subItem;
                        _this.medicaoService.medicaoCriaTmp(_this.filtroCriaTmp, _this.tipoLaudoMedicao).subscribe(function () {
                            _this.isDataLoaded = true;
                            _this.carregarDados();
                        });
                    }
                    else {
                        _this.isDataLoaded = true;
                        _this.carregarDados();
                    }
                });
            }
            else {
                _this.data = new app_pages_estoque_fisico_medicao_medicao_model__WEBPACK_IMPORTED_MODULE_10__["Medicao"]();
                _this.data.filialId = _this.loginService.getLogin().filialId;
                _this.data.medicaoId = _this.filtroCriaTmp.nrMedicao = _this.filtro.nrMedicao;
                _this.data.laudoId = _this.filtroCriaTmp.regLaudo = _this.filtro.regLaudo;
                _this.data.item = _this.filtroCriaTmp.item = _this.filtro.item;
                _this.data.subItem = _this.filtroCriaTmp.subItem = _this.filtro.subItem;
                _this.data.materialId = _this.filtro.material;
                _this.medicaoService.medicaoCriaTmp(_this.filtroCriaTmp, _this.tipoLaudoMedicao).subscribe(function () {
                    _this.isDataLoaded = true;
                    _this.carregarDados();
                });
            }
            _this.permissoesUtils.validRotina(_this.constantes.sisFormularioId, 6, function () { return _this.perTodosCampos = true; }, function () { return _this.perTodosCampos = false; });
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    OperacaoTransfDrenagemMedicaoFormComponent.prototype.carregarDados = function () {
        this.carregarComboTanque();
        this.carregarComboProduto();
    };
    OperacaoTransfDrenagemMedicaoFormComponent.prototype.carregarComboTanque = function () {
        var _this = this;
        var filtro = {
            laudoId: this.data.laudoId,
            item: this.data.item
        };
        this.tanqueService.comboTanqueStoLaudoItem(filtro).subscribe(function (resp) {
            _this.dadosComboTanque = resp;
        });
    };
    OperacaoTransfDrenagemMedicaoFormComponent.prototype.carregarComboProduto = function () {
        var _this = this;
        this.medicaoService.getComboStoLaudoItemDegradacao(this.data).subscribe(function (resp) {
            _this.dadosComboProduto = resp;
        });
    };
    OperacaoTransfDrenagemMedicaoFormComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                if (form.invalid) {
                    this.medicaoService.removerFormatacaoMedicaoTanqueAgua(this.data);
                    this.data.medicaoVal = this.data.maskedMedicaoVal;
                    this.data.medAgua = this.data.maskedMedAgua;
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
                    this.funcoesService.backToTop();
                    return [2 /*return*/];
                }
                this.data.inclui = this.funcoesService.isCreate(this.actionForm) ? "S" : "N";
                this.service
                    .gravaMedicao(this.data)
                    .subscribe(function (result) {
                    if (!result.validationResult.isValid) {
                        _this.data.medicaoVal = _this.data.maskedMedicaoVal;
                        _this.data.medAgua = _this.data.maskedMedAgua;
                        _this.mensagens = _this.messageService.validationResult(result.validationResult);
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
                        _this.funcoesService.backToTop();
                    }
                    else {
                        _this.messageService.saveSuccess("titles.operacaoTransfDrenagemMedicao");
                        _this.back();
                    }
                });
                return [2 /*return*/];
            });
        });
    };
    OperacaoTransfDrenagemMedicaoFormComponent.prototype.edit = function () {
        if (!this.funcoesService.isCreate(this.actionForm)) {
            var object = btoa(JSON.stringify({
                regLaudo: this.filtro.regLaudo,
                item: this.filtro.item,
                subItem: this.filtro.subItem,
                material: this.filtro.material,
                regLog: this.filtro.regLog,
                nrMedicao: this.filtro.nrMedicao
            }));
            this.router.navigate([this.target + "/operacao/operacaoTransfDrenagemMedicao/edit/" + object]);
        }
    };
    OperacaoTransfDrenagemMedicaoFormComponent.prototype.back = function () {
        var filtro = this.funcoesService.objToB64(this.service.filtro);
        this.router.navigate([this.target + "/operacao/operacaoTransfDrenagemMedicao/" + filtro]);
    };
    OperacaoTransfDrenagemMedicaoFormComponent.prototype.trataDtMedicao = function () {
        var _this = this;
        this.medicaoService.getDuplicidadeDtMedicao(this.data).subscribe(function (dtMedicao) {
            if (dtMedicao) {
                _this.messageService.warning("titles.operacaoTransfDrenagemMedicao", "messages.jaExisteMedicaoParaDataInformada");
                _this.data.dtMedicao = _this.auxDtMedicao;
            }
            else {
                _this.medicaoService.getDataPosteriorDtMedicao(_this.data).subscribe(function (dtPosterior) {
                    if (dtPosterior) {
                        _this.messageService.confirm("messages.confirmaOperacao", "messages.existeMedicaoDataPosteriorContinua", "messages.operacaoRealizadaComSucesso", function () {
                            _this.isContinueDtMedicao = true;
                        }, false, function () {
                            _this.data.dtMedicao = _this.auxDtMedicao;
                        });
                    }
                });
            }
        });
    };
    OperacaoTransfDrenagemMedicaoFormComponent.prototype.trataTipoMedicao = function (tipoMedicaoInicial) {
        var _this = this;
        this.medicaoService.getTipoUltimaMedicao(this.data).subscribe(function (ultMedicao) {
            var validation = _this.medicaoValidation.validaTipoUltimaMedicao(ultMedicao, _this.data, _this.actionForm);
            if (!validation.isValid) {
                _this.messageService.warning("titles.operacaoTransfDrenagemMedicao", validation.message);
                _this.data.tipoMedicao = tipoMedicaoInicial;
            }
        });
    };
    OperacaoTransfDrenagemMedicaoFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _operacao_transf_drenagem_medicao_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoTransfDrenagemMedicaoService"] },
        { type: app_pages_estoque_fisico_medicao_medicao_service__WEBPACK_IMPORTED_MODULE_9__["MedicaoService"] },
        { type: app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_12__["TanqueService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_14__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_15__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] }
    ]; };
    OperacaoTransfDrenagemMedicaoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-transf-drenagem-medicao-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-transf-drenagem-medicao-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-form/operacao-transf-drenagem-medicao-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_2__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _operacao_transf_drenagem_medicao_service__WEBPACK_IMPORTED_MODULE_8__["OperacaoTransfDrenagemMedicaoService"],
            app_pages_estoque_fisico_medicao_medicao_service__WEBPACK_IMPORTED_MODULE_9__["MedicaoService"],
            app_pages_cadastro_tanque_tanque_service__WEBPACK_IMPORTED_MODULE_12__["TanqueService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_14__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_15__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"]])
    ], OperacaoTransfDrenagemMedicaoFormComponent);
    return OperacaoTransfDrenagemMedicaoFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-index/operacao-transf-drenagem-medicao-index.component.ts":
/*!************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-index/operacao-transf-drenagem-medicao-index.component.ts ***!
  \************************************************************************************************************************************************************/
/*! exports provided: OperacaoTransfDrenagemMedicaoIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoTransfDrenagemMedicaoIndexComponent", function() { return OperacaoTransfDrenagemMedicaoIndexComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _operacao_transf_drenagem_medicao_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../operacao-transf-drenagem-medicao.constants */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.constants.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.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 _login_login_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _operacao_transf_drenagem_medicao_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../operacao-transf-drenagem-medicao.model */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.model.ts");
/* harmony import */ var _operacao_transf_drenagem_medicao_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../operacao-transf-drenagem-medicao.service */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.service.ts");
/* harmony import */ var _sto_laudo_medicao_sto_laudo_medicao_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../sto-laudo-medicao/sto-laudo-medicao.model */ "./src/app/pages/operacao/sto-laudo-medicao/sto-laudo-medicao.model.ts");
/* harmony import */ var app_pages_estoque_fisico_medicao_medicao_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pages/estoque-fisico/medicao/medicao.model */ "./src/app/pages/estoque-fisico/medicao/medicao.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 OperacaoTransfDrenagemMedicaoIndexComponent = /** @class */ (function (_super) {
    __extends(OperacaoTransfDrenagemMedicaoIndexComponent, _super);
    function OperacaoTransfDrenagemMedicaoIndexComponent(activatedRoute, router, service, datatables, message, funcoes, permissoesUtils, loginService) {
        var _this = _super.call(this, new _operacao_transf_drenagem_medicao_constants__WEBPACK_IMPORTED_MODULE_5__["OperacaoTransfDrenagemMedicaoConstants"](), funcoes) || this;
        _this.activatedRoute = activatedRoute;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _operacao_transf_drenagem_medicao_model__WEBPACK_IMPORTED_MODULE_9__["OperacaoTransfDrenagemMedicaoDto"]();
        _this.dataItens = [];
        _this.dataItem = new _sto_laudo_medicao_sto_laudo_medicao_model__WEBPACK_IMPORTED_MODULE_11__["StoLaudoMedicao"]();
        _this.constantes = new _operacao_transf_drenagem_medicao_constants__WEBPACK_IMPORTED_MODULE_5__["OperacaoTransfDrenagemMedicaoConstants"]();
        _this.filtroAux = new app_pages_estoque_fisico_medicao_medicao_model__WEBPACK_IMPORTED_MODULE_12__["MedicaoAuxFilter"]();
        _this.hasDados = false;
        _this.hasItens = false;
        _this.mensagens = [];
        _this.target = _this.funcoes.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                var filterLaudo = _this.activatedRoute.snapshot.paramMap.get("filter");
                if (filterLaudo) {
                    var f = _this.funcoes.b64ToObj(filterLaudo);
                    f.dataI = new Date(f.dataI);
                    f.dataF = new Date(f.dataF);
                    _this.service.filtro = f;
                    _this.refresh();
                }
                else {
                    jQuery("#operacao-transf-drenagem-medicao-filter-dialog").modal("show");
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.create = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.data.regLaudo)) {
            var object = btoa(JSON.stringify({
                regLaudo: this.data.regLaudo,
                item: this.data.item,
                subItem: 0,
                material: this.data.material,
                regLog: this.loginService.getLogin().colaboradorId,
                nrMedicao: 0
            }));
            this.router.navigate([this.target + "/operacao/operacaoTransfDrenagemMedicao/create/" + object]);
        }
        else {
            this.message.warning("titles.operacaoTransfDrenagemMedicao", "messages.produtoNaoSelecionado");
        }
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getNavega(this.service.filtro).subscribe(function (resp) {
            _this.hasDados = resp && resp.length > 0;
            var columns = [
                _this.datatables.getDataString('regLaudo', 'laudo', '10%'),
                _this.datatables.getDataDateTime('dtMovimento', 'data', 'DD/MM/YYYY', '15%'),
                _this.datatables.getDataString('material', 'produto'),
                _this.datatables.getDataString('nomeMaterial', 'descricao'),
            ];
            _this.datatables.datatable('dtProdutos', columns, resp, function (aData) {
                _this.data = aData;
                _this.dataItens = _this.data.medicoes;
                _this.hasItens = true;
                _this.refreshMedicoes();
                _this.dataItem = null;
            }, 0, 'asc', true);
        });
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.refreshMedicoes = function () {
        var _this = this;
        var columns = [
            this.datatables.getDataString('tanqueId', 'deposito', '10%'),
            this.datatables.getDataString('tipoMedicao', 'tipo'),
            this.datatables.getDataDateTime('dtMedicao', 'data', 'DD/MM/YYYY HH:mm:ss', '15%'),
            this.datatables.getDataDouble('kilos', 'kilos', 0),
            this.datatables.getDataDouble('litros', 'litros', 0)
        ];
        this.datatables.datatable('dtMedicoes', columns, this.dataItens, function (aData) {
            _this.dataItem = aData;
        }, 0, 'asc', true);
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.edit = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.dataItem)) {
            var object = btoa(JSON.stringify({
                regLaudo: this.dataItem.stoLaudoMedicaoId,
                item: this.dataItem.item,
                subItem: this.dataItem.subItem,
                material: this.data.material,
                regLog: this.loginService.getLogin().colaboradorId,
                nrMedicao: this.dataItem.medicaoId
            }));
            this.router.navigate([this.target + "/operacao/operacaoTransfDrenagemMedicao/edit/" + object]);
        }
        else {
            this.message.warning("titles.operacaoTransfDrenagemMedicao", "messages.medicaoNaoSelecionada");
        }
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.properties.call(_this, _this.dataItem);
            if (!_this.funcoes.isNotUndefinedOrNull(_this.dataItem)) {
                _this.message.warning("titles.operacaoTransfDrenagemMedicao", "messages.medicaoNaoSelecionada");
            }
        });
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 8, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.filtrar = function () {
        jQuery("#operacao-transf-drenagem-medicao-filter-dialog").modal("show");
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.detail = function () {
        if (this.funcoes.isNotUndefinedOrNull(this.dataItem)) {
            var object = btoa(JSON.stringify({
                regLaudo: this.dataItem.stoLaudoMedicaoId,
                item: this.dataItem.item,
                subItem: this.dataItem.subItem,
                material: this.data.material,
                regLog: this.loginService.getLogin().colaboradorId,
                nrMedicao: this.dataItem.medicaoId
            }));
            this.router.navigate([this.target + "/operacao/operacaoTransfDrenagemMedicao/detail/" + object]);
        }
        else {
            this.message.warning("titles.operacaoTransfDrenagemMedicao", "messages.medicaoNaoSelecionada");
        }
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.remove = function () {
        var _this = this;
        if (this.funcoes.isNotUndefinedOrNull(this.dataItem)) {
            this.filtroAux.regLaudo = this.dataItem.stoLaudoMedicaoId;
            this.filtroAux.item = this.dataItem.item;
            this.filtroAux.subItem = this.dataItem.subItem;
            this.filtroAux.operador = this.loginService.getLogin().usuario;
            this.filtroAux.filialId = this.dataItem.filialId;
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.message.removeConfirm(function () {
                    _this.service.excluiMedicao(_this.filtroAux).subscribe(function (result) {
                        _this.mensagens = _this.message.validationResult(result.validationResult);
                        if (!result.validationResult.isValid) {
                            _this.message.error("titles.operacaoTransfDrenagemMedicao", _this.mensagens[0]);
                        }
                        else {
                            _this.datatables.remove("dtMedicoes");
                            _this.dataItem = null;
                            _this.refresh();
                        }
                    });
                });
            });
        }
        else {
            this.message.warning("titles.operacaoTransfDrenagemMedicao", "messages.medicaoNaoSelecionada");
        }
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.funcoesService.reportInvoc.invocaRelatorio(_this.constantes.reportId, _this.constantes.reportTitulo, _this.service.filtro);
        });
    };
    OperacaoTransfDrenagemMedicaoIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _operacao_transf_drenagem_medicao_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoTransfDrenagemMedicaoService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] }
    ]; };
    OperacaoTransfDrenagemMedicaoIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-operacao-transf-drenagem-medicao-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./operacao-transf-drenagem-medicao-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-index/operacao-transf-drenagem-medicao-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _operacao_transf_drenagem_medicao_service__WEBPACK_IMPORTED_MODULE_10__["OperacaoTransfDrenagemMedicaoService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_2__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"]])
    ], OperacaoTransfDrenagemMedicaoIndexComponent);
    return OperacaoTransfDrenagemMedicaoIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.module.ts":
/*!************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.module.ts ***!
  \************************************************************************************************************/
/*! exports provided: OperacaoTransfDrenagemMedicaoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoTransfDrenagemMedicaoModule", function() { return OperacaoTransfDrenagemMedicaoModule; });
/* 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 _operacao_transf_drenagem_medicao_form_operacao_transf_drenagem_medicao_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./operacao-transf-drenagem-medicao-form/operacao-transf-drenagem-medicao-form.component */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-form/operacao-transf-drenagem-medicao-form.component.ts");
/* harmony import */ var _operacao_transf_drenagem_medicao_index_operacao_transf_drenagem_medicao_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operacao-transf-drenagem-medicao-index/operacao-transf-drenagem-medicao-index.component */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-index/operacao-transf-drenagem-medicao-index.component.ts");
/* harmony import */ var _operacao_transf_drenagem_medicao_filter_operacao_transf_drenagem_medicao_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./operacao-transf-drenagem-medicao-filter/operacao-transf-drenagem-medicao-filter.component */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao-filter/operacao-transf-drenagem-medicao-filter.component.ts");
/* harmony import */ var _operacao_transf_drenagem_medicao_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./operacao-transf-drenagem-medicao.routing.module */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.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 OperacaoTransfDrenagemMedicaoModule = /** @class */ (function () {
    function OperacaoTransfDrenagemMedicaoModule() {
    }
    OperacaoTransfDrenagemMedicaoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _operacao_transf_drenagem_medicao_routing_module__WEBPACK_IMPORTED_MODULE_5__["OperacaoTransfDrenagemMedicaoRoutingModule"]
            ],
            declarations: [
                _operacao_transf_drenagem_medicao_form_operacao_transf_drenagem_medicao_form_component__WEBPACK_IMPORTED_MODULE_2__["OperacaoTransfDrenagemMedicaoFormComponent"],
                _operacao_transf_drenagem_medicao_index_operacao_transf_drenagem_medicao_index_component__WEBPACK_IMPORTED_MODULE_3__["OperacaoTransfDrenagemMedicaoIndexComponent"],
                _operacao_transf_drenagem_medicao_filter_operacao_transf_drenagem_medicao_filter_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoTransfDrenagemMedicaoFilterComponent"]
            ]
        })
    ], OperacaoTransfDrenagemMedicaoModule);
    return OperacaoTransfDrenagemMedicaoModule;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.routing.module.ts":
/*!********************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.routing.module.ts ***!
  \********************************************************************************************************************/
/*! exports provided: OperacaoTransfDrenagemMedicaoRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

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





var MRoutes = [
    {
        path: "",
        component: _operacao_transf_drenagem_medicao_index_operacao_transf_drenagem_medicao_index_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoTransfDrenagemMedicaoIndexComponent"],
        data: { breadcrumb: "operacaoTransfDrenagemMedicao", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: ":filter",
        component: _operacao_transf_drenagem_medicao_index_operacao_transf_drenagem_medicao_index_component__WEBPACK_IMPORTED_MODULE_4__["OperacaoTransfDrenagemMedicaoIndexComponent"],
        data: { breadcrumb: "operacaoTransfDrenagemMedicao", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create/:object",
        component: _operacao_transf_drenagem_medicao_form_operacao_transf_drenagem_medicao_form_component__WEBPACK_IMPORTED_MODULE_3__["OperacaoTransfDrenagemMedicaoFormComponent"],
        data: {
            breadcrumb: "operacaoTransfDrenagemMedicao",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:object",
        component: _operacao_transf_drenagem_medicao_form_operacao_transf_drenagem_medicao_form_component__WEBPACK_IMPORTED_MODULE_3__["OperacaoTransfDrenagemMedicaoFormComponent"],
        data: {
            breadcrumb: "operacaoTransfDrenagemMedicao",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:object",
        component: _operacao_transf_drenagem_medicao_form_operacao_transf_drenagem_medicao_form_component__WEBPACK_IMPORTED_MODULE_3__["OperacaoTransfDrenagemMedicaoFormComponent"],
        data: {
            breadcrumb: "operacaoTransfDrenagemMedicao",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var OperacaoTransfDrenagemMedicaoRoutingModule = /** @class */ (function () {
    function OperacaoTransfDrenagemMedicaoRoutingModule() {
    }
    OperacaoTransfDrenagemMedicaoRoutingModule = __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"]]
        })
    ], OperacaoTransfDrenagemMedicaoRoutingModule);
    return OperacaoTransfDrenagemMedicaoRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.service.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.service.ts ***!
  \*************************************************************************************************************/
/*! exports provided: OperacaoTransfDrenagemMedicaoService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OperacaoTransfDrenagemMedicaoService", function() { return OperacaoTransfDrenagemMedicaoService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var _app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var _operacao_transf_drenagem_medicao_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./operacao-transf-drenagem-medicao.model */ "./src/app/pages/operacao/operacao-transf-drenagem-medicao/operacao-transf-drenagem-medicao.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 OperacaoTransfDrenagemMedicaoService = /** @class */ (function (_super) {
    __extends(OperacaoTransfDrenagemMedicaoService, _super);
    function OperacaoTransfDrenagemMedicaoService(http) {
        var _this = _super.call(this, http, "operacao/operacaoTransfDrenagemMedicao") || this;
        _this.http = http;
        _this.filtro = new _operacao_transf_drenagem_medicao_model__WEBPACK_IMPORTED_MODULE_6__["OperacaoTransfDrenagemMedicaoFilter"]();
        return _this;
    }
    OperacaoTransfDrenagemMedicaoService.prototype.getNavega = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/operacaoTransfDrenagemMedicao/getNavega", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    OperacaoTransfDrenagemMedicaoService.prototype.gravaMedicao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/operacaoTransfDrenagemMedicao/gravaMedicao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    OperacaoTransfDrenagemMedicaoService.prototype.excluiMedicao = function (data) {
        return this.http
            .post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].service_url + "/api/v1/operacao/operacaoTransfDrenagemMedicao/excluiMedicao", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    OperacaoTransfDrenagemMedicaoService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    OperacaoTransfDrenagemMedicaoService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], OperacaoTransfDrenagemMedicaoService);
    return OperacaoTransfDrenagemMedicaoService;
}(_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_2__["BaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-operacao-operacao-transf-drenagem-medicao-operacao-transf-drenagem-medicao-module.js.map