(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-configuracoes-pesagem-fluxo-pesagem-fluxo-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo-form/pesagem-fluxo-form.component.html":
/*!**********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo-form/pesagem-fluxo-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\" [formAction]=\"actionForm\" [itemData]=\"data.filialId\"\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                    <div class=\"clearfix\">\r\n                        <ul class=\"nav nav-tabs \">\r\n                            <li class=\"nav-item\">\r\n                                <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#ge\">{{\"labels.gerais\" |\r\n                                    translate}}</a>\r\n                            </li>\r\n                        </ul>\r\n                    </div>\r\n                    <div class=\"tab-content top\">\r\n                        <div class=\"tab-pane active show\" id=\"ge\">\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"tipoPesagem\">{{'labels.tipoPesagem' | translate}}</label>\r\n                                        <select class=\"form-control form-control-sm\" name=\"tipoPesagem\" id=\"tipoPesagem\"\r\n                                            [(ngModel)]=\"data.tipoPesagem\">\r\n                                            <option value=\"0\">{{ 'labels.nenhum' | translate }}</option>\r\n                                            <option value=\"1\">{{'labels.bextra' | translate}}</option>\r\n                                            <option value=\"2\">{{'labels.automatec' | translate}}</option>\r\n                                            <option value=\"3\">{{'labels.automatecDB' | translate}}</option>\r\n                                            <option value=\"4\">{{'labels.bextraLocal' | translate}}</option>\r\n                                            <option value=\"5\">{{'labels.toledo' | translate}}</option>\r\n                                            <option value=\"6\">{{'labels.oPCElipse' | translate}}</option>\r\n                                            <option value=\"7\">{{'labels.elipseDB' | translate}}</option>\r\n                                            <option value=\"8\">{{'labels.saturnoLDC' | translate}}</option>\r\n                                            <option value=\"9\">{{'labels.toledoTCP' | translate}}</option>\r\n                                            <option value=\"10\">{{'labels.jundiaiDB' | translate}}</option>\r\n                                            <option value=\"11\">{{'labels.toledoSQLDriver' | translate}}</option>\r\n                                        </select>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"versao\">\r\n                                            {{'labels.versao' | translate}}\r\n                                        </label>\r\n                                        <input id=\"versao\" name=\"versao\" type=\"text\" currencyMask\r\n                                            class=\"form-control form-control-sm\"\r\n                                            [options]=\"funcoesService.optionCurrency(0)\" type=\"text\" style=\"width:50px;\"\r\n                                            [(ngModel)]=\"data.versao\" maxlength=\"1\">\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"tipoConexao\">{{'labels.tipoConexao' | translate}}</label>\r\n                                        <select class=\"form-control form-control-sm\" name=\"tipoConexao\" id=\"tipoConexao\"\r\n                                            [(ngModel)]=\"data.tipoConexao\">\r\n                                            <option value=\"0\">{{ 'labels.bdePadrao' | translate }}</option>\r\n                                            <option value=\"1\">{{'labels.bdeLocal' | translate}}</option>\r\n                                            <option value=\"2\">{{'labels.direto' | translate}}</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 col-md-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"codBalanca\">{{\"labels.balancaPadrao\" | translate\r\n                                            }}</label>\r\n                                        <app-combo-padrao id=\"codBalanca\" name=\"balanca\" tabela=\"BalancaFluxo\"\r\n                                            chave=\"CodBalanca\" descricao=\"DescrBalanca\" ativos=\"true\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            [(ngModel)]=\"data.balFluxoPadrao\">\r\n                                        </app-combo-padrao>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"tempoTmr\">\r\n                                            {{'labels.tempoTmr' | translate}}\r\n                                        </label>\r\n                                        <input id=\"tempoTmr\" name=\"tempoTmr\" type=\"text\" currencyMask\r\n                                            class=\"form-control form-control-sm\"\r\n                                            [options]=\"funcoesService.optionCurrency(0)\" type=\"text\" style=\"width:50px;\"\r\n                                            [(ngModel)]=\"data.tempoTmr\" maxlength=\"5\">\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"pesteste\">\r\n                                            {{'labels.pesteste' | translate}}\r\n                                        </label>\r\n                                        <input id=\"pesteste\" name=\"pesteste\" type=\"text\" currencyMask\r\n                                            class=\"form-control form-control-sm\"\r\n                                            [options]=\"funcoesService.optionCurrency(0)\" type=\"text\" style=\"width:50px;\"\r\n                                            [(ngModel)]=\"data.pesteste\" maxlength=\"5\">\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"form-group form-group-sm\">\r\n                                        <label for=\"peslimp\">\r\n                                            {{'labels.peslimp' | translate}}\r\n                                        </label>\r\n                                        <input id=\"peslimp\" name=\"peslimp\" type=\"text\" currencyMask\r\n                                            class=\"form-control form-control-sm\"\r\n                                            [options]=\"funcoesService.optionCurrency(0)\" type=\"text\" style=\"width:50px;\"\r\n                                            [(ngModel)]=\"data.peslimp\" maxlength=\"5\">\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"custom-control custom-checkbox\">\r\n                                        <input id=\"desmDepPes\" name=\"desmDepPes\" [ngModel]=\"data.desmDepPes === 'S'\"\r\n                                            (ngModelChange)=\"data.desmDepPes=$event?'S':'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <label class=\"custom-control-label\" for=\"desmDepPes\">{{'labels.desmDepPes' |\r\n                                            translate}}</label>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"custom-control custom-checkbox\">\r\n                                        <input id=\"testaFluxo\" name=\"testaFluxo\" [ngModel]=\"data.testaFluxo === 'S'\"\r\n                                            (ngModelChange)=\"data.testaFluxo=$event?'S':'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <label class=\"custom-control-label\" for=\"testaFluxo\">{{'labels.testaFluxo' |\r\n                                            translate}}</label>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"custom-control custom-checkbox\">\r\n                                        <input id=\"flagPorao\" name=\"flagPorao\" [ngModel]=\"data.flagPorao === 'S'\"\r\n                                            (ngModelChange)=\"data.flagPorao=$event?'S':'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <label class=\"custom-control-label\" for=\"flagPorao\">{{'labels.flagPorao' |\r\n                                            translate}}</label>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"custom-control custom-checkbox\">\r\n                                        <input id=\"liberaPesoZero\" name=\"liberaPesoZero\"\r\n                                            [ngModel]=\"data.liberaPesoZero === 'S'\"\r\n                                            (ngModelChange)=\"data.liberaPesoZero=$event?'S':'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <label class=\"custom-control-label\"\r\n                                            for=\"liberaPesoZero\">{{'labels.liberaPesoZero' |\r\n                                            translate}}</label>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"custom-control custom-checkbox\">\r\n                                        <input id=\"temPesFluxo\" name=\"temPesFluxo\" [ngModel]=\"data.temPesFluxo === 'S'\"\r\n                                            (ngModelChange)=\"data.temPesFluxo=$event?'S':'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <label class=\"custom-control-label\"\r\n                                            for=\"temPesFluxo\">{{'labels.consideraPesFluxoPosicaoDep' |\r\n                                            translate}}</label>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"custom-control custom-checkbox\">\r\n                                        <input id=\"dataHoraRateioDep\" name=\"dataHoraRateioDep\"\r\n                                            [ngModel]=\"data.dataHoraRateioDep === 'S'\"\r\n                                            (ngModelChange)=\"data.dataHoraRateioDep=$event?'S':'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <label class=\"custom-control-label\"\r\n                                            for=\"dataHoraRateioDep\">{{'labels.consideradataHoraRateioDep' |\r\n                                            translate}}</label>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6 col-md-12\">\r\n                                    <div class=\"custom-control custom-checkbox\">\r\n                                        <input id=\"obrLocalOperacao\" name=\"obrLocalOperacao\"\r\n                                            [ngModel]=\"data.obrLocalOperacao === 'S'\"\r\n                                            (ngModelChange)=\"data.obrLocalOperacao=$event?'S':'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <label class=\"custom-control-label\"\r\n                                            for=\"obrLocalOperacao\">{{'labels.obrLocalOperacaoPesFluxo' |\r\n                                            translate}}</label>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group\">\r\n                                <button class=\"btn btn-success mr-2\" type=\"submit\">\r\n                                    {{ 'buttons.salvar' | 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-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo-form/pesagem-fluxo-form.component.scss":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo-form/pesagem-fluxo-form.component.scss ***!
  \********************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".alinha-direita {\n  text-align: right !important;\n}\n\n.pr-0 {\n  padding-right: 0px;\n}\n\n.pl-0 {\n  padding-left: 0px;\n}\n\n.tamanho-fixo-60 {\n  width: 60px;\n}\n\n.centraliza-vert {\n  position: relative;\n  top: 50%;\n  transform: translateY(-50%);\n}\n\n.linha-inline-top {\n  margin-top: 15px;\n  margin-left: 32px;\n}\n\n.linha-inline-bottom {\n  margin-left: 32px;\n  margin-bottom: 15px;\n}\n\n.checkbox-inline-bottom {\n  margin-top: 5px;\n}\n\n.checkbox-inline-margem {\n  margin-left: 40px;\n}\n\n.input-inline-bottom {\n  margin-top: 25px;\n  margin-left: 10px;\n  margin-right: 10px;\n}\n\n.input-inline-middle {\n  margin-left: 10px;\n  margin-right: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvY29uZmlndXJhY29lcy9wZXNhZ2VtLWZsdXhvL3Blc2FnZW0tZmx1eG8tZm9ybS9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGNvbmZpZ3VyYWNvZXNcXHBlc2FnZW0tZmx1eG9cXHBlc2FnZW0tZmx1eG8tZm9ybVxccGVzYWdlbS1mbHV4by1mb3JtLmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9jb25maWd1cmFjb2VzL3Blc2FnZW0tZmx1eG8vcGVzYWdlbS1mbHV4by1mb3JtL3Blc2FnZW0tZmx1eG8tZm9ybS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNDLDRCQUFBO0FDQ0Q7O0FERUE7RUFDQyxrQkFBQTtBQ0NEOztBREVBO0VBQ0MsaUJBQUE7QUNDRDs7QURFQTtFQUNDLFdBQUE7QUNDRDs7QURHQTtFQUNDLGtCQUFBO0VBQ0csUUFBQTtFQUNBLDJCQUFBO0FDQUo7O0FER0E7RUFDSSxnQkFBQTtFQUNBLGlCQUFBO0FDQUo7O0FER0E7RUFDSSxpQkFBQTtFQUNBLG1CQ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G1hcmdpbi1sZWZ0OiAxMHB4O1xuICBtYXJnaW4tcmlnaHQ6IDEwcHg7XG59XG5cbi5pbnB1dC1pbmxpbmUtbWlkZGxlIHtcbiAgbWFyZ2luLWxlZnQ6IDEwcHg7XG4gIG1hcmdpbi1yaWdodDogMTBweDtcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo-form/pesagem-fluxo-form.component.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo-form/pesagem-fluxo-form.component.ts ***!
  \******************************************************************************************************/
/*! exports provided: PesagemFluxoFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PesagemFluxoFormComponent", function() { return PesagemFluxoFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/configuracao/configuracao.model */ "./src/app/shared/services/funcoes/configuracao/configuracao.model.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__ = __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_6__ = __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_7__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.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 _configuracoes_anp_configuracoes_anp_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../configuracoes-anp/configuracoes-anp.constants */ "./src/app/pages/configuracoes/configuracoes-anp/configuracoes-anp.constants.ts");
/* harmony import */ var _pesagem_fluxo_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../pesagem-fluxo.constants */ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo.constants.ts");
/* harmony import */ var _pesagem_fluxo_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../pesagem-fluxo.model */ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo.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 PesagemFluxoFormComponent = /** @class */ (function (_super) {
    __extends(PesagemFluxoFormComponent, _super);
    function PesagemFluxoFormComponent(messageService, configuracao, funcoesService, loginService, permissoesUtils, funcoes) {
        var _this = _super.call(this, new _configuracoes_anp_configuracoes_anp_constants__WEBPACK_IMPORTED_MODULE_9__["ConfiguracoesAnpConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.funcoes = funcoes;
        _this.data = new _pesagem_fluxo_model__WEBPACK_IMPORTED_MODULE_11__["PesagemFluxo"]();
        _this.mensagens = [];
        _this.constantes = new _pesagem_fluxo_constants__WEBPACK_IMPORTED_MODULE_10__["PesagemFluxoConstants"]();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.data.filialId = _this.loginService.getLogin().filialId;
                _this.data.tipoPesagem = _this.configuracao.number("PES", "TipoPesagem");
                _this.data.versao = _this.configuracao.string("PES", "Versao");
                _this.data.tipoConexao = _this.configuracao.number("PES", "TipoConexao");
                _this.data.tempoTmr = _this.configuracao.number("PES", "TempoTmr");
                _this.data.pesteste = _this.configuracao.number("PES", "Pesteste");
                _this.data.peslimp = _this.configuracao.number("PES", "Peslimp");
                _this.data.desmDepPes = _this.configuracao.string("PES", "DesmDepPes");
                _this.data.testaFluxo = _this.configuracao.string("PES", "TestaFluxo");
                _this.data.flagPorao = _this.configuracao.string("PES", "FlagPorao");
                _this.data.liberaPesoZero = _this.configuracao.string("PES", "LiberaPesoZero");
                _this.data.temPesFluxo = _this.configuracao.string("PES", "TemPesFluxo");
                _this.data.balFluxoPadrao = _this.configuracao.string("PES", "BalFluxoPadrao");
                _this.data.dataHoraRateioDep = _this.configuracao.string("PES", "DataHoraRateioDep");
                _this.data.obrLocalOperacao = _this.configuracao.string("PES", "ObrLocalOperacao");
            }
        };
        return _this;
    }
    PesagemFluxoFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.configuracao.getConfig({
                codRotina: _this.constantes.sisFormularioId,
                configs: _this.constantes.configuracoes
            }, _this.loadConfig);
        }, function () { return _this.permissoesUtils.back(); }, true);
    };
    PesagemFluxoFormComponent.prototype._onSubmit = function (form) {
        var _this = this;
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get('formError').emit(form);
        if (form.invalid)
            return;
        this.messageService.confirm('titles.pesagemFluxo', 'messages.updateConfigConfirm', null, function () { return _this.onSubmit(); });
    };
    PesagemFluxoFormComponent.prototype.onSubmit = function () {
        var _this = this;
        var object = new _shared_services_funcoes_configuracao_configuracao_model__WEBPACK_IMPORTED_MODULE_4__["Config"](this.constantes.sisFormularioId);
        object.setConfig(this.data.filialId, "PES", 'TipoPesagem', this.data.tipoPesagem, "I");
        object.setConfig(this.data.filialId, 'PES', 'Versao', this.data.versao);
        object.setConfig(this.data.filialId, 'PES', 'TipoConexao', this.data.tipoConexao, "I");
        object.setConfig(this.data.filialId, 'PES', 'TempoTmr', this.data.tempoTmr, "I");
        object.setConfig(this.data.filialId, 'PES', 'Pesteste', this.data.pesteste, "I");
        object.setConfig(this.data.filialId, 'PES', 'Peslimp', this.data.peslimp, "I");
        object.setConfig(this.data.filialId, 'PES', 'DesmDepPes', this.data.desmDepPes);
        object.setConfig(this.data.filialId, 'PES', 'TestaFluxo', this.data.testaFluxo);
        object.setConfig(this.data.filialId, 'PES', 'FlagPorao', this.data.flagPorao);
        object.setConfig(this.data.filialId, 'PES', 'LiberaPesoZero', this.data.liberaPesoZero);
        object.setConfig(this.data.filialId, 'PES', 'TemPesFluxo', this.data.temPesFluxo);
        object.setConfig(this.data.filialId, 'PES', 'BalFluxoPadrao', this.data.balFluxoPadrao);
        object.setConfig(this.data.filialId, 'PES', 'DataHoraRateioDep', this.data.dataHoraRateioDep);
        object.setConfig(this.data.filialId, 'PES', 'ObrLocalOperacao', this.data.obrLocalOperacao);
        this.configuracao
            .save(object)
            .subscribe(function (result) {
            if (result.validationResult != null && !result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get('backError').emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.pesagemFluxo", "messages.configuracaoDe");
            }
        });
    };
    PesagemFluxoFormComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    PesagemFluxoFormComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"] }
    ]; };
    PesagemFluxoFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            template: __importDefault(__webpack_require__(/*! raw-loader!./pesagem-fluxo-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo-form/pesagem-fluxo-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./pesagem-fluxo-form.component.scss */ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo-form/pesagem-fluxo-form.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_3__["ConfiguracaoFacade"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_8__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_5__["FuncoesService"]])
    ], PesagemFluxoFormComponent);
    return PesagemFluxoFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_1__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo.constants.ts":
/*!******************************************************************************!*\
  !*** ./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo.constants.ts ***!
  \******************************************************************************/
/*! exports provided: PesagemFluxoConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PesagemFluxoConstants", function() { return PesagemFluxoConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var PesagemFluxoConstants = /** @class */ (function () {
    function PesagemFluxoConstants() {
        this.sisFormularioId = 270038;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: 'labels.consulta' },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: 'labels.pemissoes' },
        ];
        this.sisSistemaId = 'CTV';
        this.configuracoes = [];
        this.nomeForm = 'titles.pesagemFluxo';
        this.listaForm = [
            { title: 'Permissao', action: 'permissoes', icon: 'icon-unlock', exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.configuracoes = [
            {
                sistema: "PES", parametros: [
                    "TipoPesagem",
                    "Versao",
                    "TipoConexao",
                    "TempoTmr",
                    "Pesteste",
                    "Peslimp",
                    "DesmDepPes",
                    "TestaFluxo",
                    "FlagPorao",
                    "LiberaPesoZero",
                    "TemPesFluxo",
                    "BalFluxoPadrao",
                    "DataHoraRateioDep",
                    "ObrLocalOperacao"
                ]
            }
        ];
    }
    return PesagemFluxoConstants;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo.model.ts":
/*!**************************************************************************!*\
  !*** ./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo.model.ts ***!
  \**************************************************************************/
/*! exports provided: PesagemFluxo */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PesagemFluxo", function() { return PesagemFluxo; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var PesagemFluxo = /** @class */ (function () {
    function PesagemFluxo() {
        this.tipoPesagem = "0";
        this.balFluxoPadrao = "";
    }
    return PesagemFluxo;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo.module.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo.module.ts ***!
  \***************************************************************************/
/*! exports provided: PesagemFluxoModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PesagemFluxoModule", function() { return PesagemFluxoModule; });
/* 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__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _pesagem_fluxo_form_pesagem_fluxo_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pesagem-fluxo-form/pesagem-fluxo-form.component */ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo-form/pesagem-fluxo-form.component.ts");
/* harmony import */ var _pesagem_fluxo_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pesagem-fluxo.routing.module */ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo.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 PesagemFluxoModule = /** @class */ (function () {
    function PesagemFluxoModule() {
    }
    PesagemFluxoModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [_pesagem_fluxo_form_pesagem_fluxo_form_component__WEBPACK_IMPORTED_MODULE_3__["PesagemFluxoFormComponent"]],
            imports: [
                _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_2__["SharedModule"],
                _pesagem_fluxo_routing_module__WEBPACK_IMPORTED_MODULE_4__["PesagemFluxoRountingModule"]
            ]
        })
    ], PesagemFluxoModule);
    return PesagemFluxoModule;
}());



/***/ }),

/***/ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo.routing.module.ts":
/*!***********************************************************************************!*\
  !*** ./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo.routing.module.ts ***!
  \***********************************************************************************/
/*! exports provided: PesagemFluxoRountingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PesagemFluxoRountingModule", function() { return PesagemFluxoRountingModule; });
/* 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 _pesagem_fluxo_form_pesagem_fluxo_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pesagem-fluxo-form/pesagem-fluxo-form.component */ "./src/app/pages/configuracoes/pesagem-fluxo/pesagem-fluxo-form/pesagem-fluxo-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: _pesagem_fluxo_form_pesagem_fluxo_form_component__WEBPACK_IMPORTED_MODULE_3__["PesagemFluxoFormComponent"],
        data: { breadcrumb: 'pesagemFluxo', formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create } }
    }
];
var PesagemFluxoRountingModule = /** @class */ (function () {
    function PesagemFluxoRountingModule() {
    }
    PesagemFluxoRountingModule = __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"]]
        })
    ], PesagemFluxoRountingModule);
    return PesagemFluxoRountingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-configuracoes-pesagem-fluxo-pesagem-fluxo-module.js.map