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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/fluxo-analise/fluxo-analise-form/fluxo-analise-form.component.html":
/*!*****************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/fluxo-analise/fluxo-analise-form/fluxo-analise-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\"\n    [sisFormularioId]=\"constantes.sisFormularioId\" [itemData]=\"data.materialFluxoId\">\n</app-menu-command-bar>\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <app-form-legenda></app-form-legenda>\n            <div class=\"card-body widget-body\">\n                <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                    <app-validacoes></app-validacoes>\n                    <div class=\"row\">\n                        <div class=\"col-md-6 col-sm-6\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\n                                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"data.materialId\"\n                                    [disabled]=\"!funcoesService.isCreate(actionForm)\" [inSelected]=\"data.material\"\n                                    (outModel)=\"trataMaterial($event)\" required=\"true\">\n                                </app-pesquisa-material>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3 col-md-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"tipoTransp\" class=\"required\">{{ \"labels.tipoTransp\" | translate }}</label>\n                                <select class=\"form-control form-control-sm\" required=\"true\"\n                                    [disabled]=\"!funcoesService.isCreate(actionForm)\" [(ngModel)]=\"data.tipoTransp\"\n                                    id=\"tipoTransp\" name=\"tipoTransp\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"R\">{{ 'labels.rodoviario' | translate }}</option>\n                                    <option value=\"F\">{{ 'labels.ferroviario' | translate }}</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-lg-3\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"tipoDeFluxo\" class=\"required\">{{ 'labels.tipoDeFluxo' | translate}}</label>\n                                <select class=\"form-control form-control-sm\" required=\"true\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\" [(ngModel)]=\"data.codFluxo\"\n                                    id=\"codFluxo\" name=\"codFluxo\">\n                                    <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                    <option value=\"S\">{{ 'labels.classificaPesaPesa' | translate }}</option>\n                                    <option value=\"N\">{{ 'labels.pesaClassificaPesa' | translate }}</option>\n                                    <option value=\"D\">{{ 'labels.pesaPesaClassifica' | translate }}</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"clearfix\">&nbsp;</div>\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group\">\n                                <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    {{ 'buttons.salvar' | translate }}\n                                </button>\n                            </div>\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/fluxo-analise/fluxo-analise-index/fluxo-analise-index.component.html":
/*!*******************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/fluxo-analise/fluxo-analise-index/fluxo-analise-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\" [formAction]=\"actionForm\"\n    [sisFormularioId]=\"constantes.sisFormularioId\" [itemData]=\"data.materialFluxoId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <div class=\"row mt-2\">\n        <div class=\"col-12\">\n            <table id=\"dtFluxoAnalise\"\n                class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            </table>\n        </div>\n    </div>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FluxoAnaliseFormComponent", function() { return FluxoAnaliseFormComponent; });
/* 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_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var _fluxo_analise_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../fluxo-analise.model */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise.model.ts");
/* harmony import */ var _fluxo_analise_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../fluxo-analise.constants */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise.constants.ts");
/* harmony import */ var _fluxo_analise_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../fluxo-analise.service */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise.service.ts");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __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_9__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var FluxoAnaliseFormComponent = /** @class */ (function (_super) {
    __extends(FluxoAnaliseFormComponent, _super);
    function FluxoAnaliseFormComponent(router, messageService, activatedRoute, service, funcoesService, permissoesUtils, materialService) {
        var _this = _super.call(this, new _fluxo_analise_constants__WEBPACK_IMPORTED_MODULE_4__["FluxoAnaliseConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.materialService = materialService;
        _this.data = new _fluxo_analise_model__WEBPACK_IMPORTED_MODULE_3__["FluxoAnalise"]();
        _this.mensagens = [];
        _this.constantes = new _fluxo_analise_constants__WEBPACK_IMPORTED_MODULE_4__["FluxoAnaliseConstants"]();
        _this.campoMotorista = false;
        _this.campoPlaca = false;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/cadastro/fluxoAnalise";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    FluxoAnaliseFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            if (id) {
                _this.service.getById(app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["NumberUtilsStaticService"].toNumber(id)).subscribe(function (resp) {
                    _this.data = resp;
                    _this.buscaMaterial();
                });
            }
            else {
                _this.data = new _fluxo_analise_model__WEBPACK_IMPORTED_MODULE_3__["FluxoAnalise"]();
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    FluxoAnaliseFormComponent.prototype.buscaMaterial = function () {
        var _this = this;
        this.materialService.getById(this.data.materialId).subscribe(function (resp) {
            _this.data.material = resp;
        });
    };
    FluxoAnaliseFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = 'Man. Fluxo Analise';
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.fluxoAnalise");
                if (create) {
                    _this.data = new _fluxo_analise_model__WEBPACK_IMPORTED_MODULE_3__["FluxoAnalise"]();
                    _this.router.navigate(["" + _this.target + _this.pageRoute + "/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    FluxoAnaliseFormComponent.prototype.trataMaterial = function (material) {
        this.data.material = material;
    };
    FluxoAnaliseFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    FluxoAnaliseFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.router.navigate([_this.target + "/especificos/cli/cadastros/fluxoAnalise/edit/" + _this.data.materialFluxoId]);
        });
    };
    FluxoAnaliseFormComponent.prototype.back = function () {
        this.router.navigate(["" + this.target + this.pageRoute]);
        this.campoPlaca = false;
        this.campoMotorista = false;
    };
    FluxoAnaliseFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _fluxo_analise_service__WEBPACK_IMPORTED_MODULE_5__["FluxoAnaliseService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_6__["MaterialService"] }
    ]; };
    FluxoAnaliseFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-fluxo-analise-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./fluxo-analise-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/fluxo-analise/fluxo-analise-form/fluxo-analise-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_8__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _fluxo_analise_service__WEBPACK_IMPORTED_MODULE_5__["FluxoAnaliseService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_6__["MaterialService"]])
    ], FluxoAnaliseFormComponent);
    return FluxoAnaliseFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_7__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise-index/fluxo-analise-index.component.ts":
/*!***************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/fluxo-analise/fluxo-analise-index/fluxo-analise-index.component.ts ***!
  \***************************************************************************************************/
/*! exports provided: FluxoAnaliseIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FluxoAnaliseIndexComponent", function() { return FluxoAnaliseIndexComponent; });
/* 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 _fluxo_analise_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../fluxo-analise.service */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise.service.ts");
/* harmony import */ var _fluxo_analise_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../fluxo-analise.model */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise.model.ts");
/* harmony import */ var _fluxo_analise_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../fluxo-analise.constants */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise.constants.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.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 FluxoAnaliseIndexComponent = /** @class */ (function (_super) {
    __extends(FluxoAnaliseIndexComponent, _super);
    function FluxoAnaliseIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _fluxo_analise_constants__WEBPACK_IMPORTED_MODULE_4__["FluxoAnaliseConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.constantes = new _fluxo_analise_constants__WEBPACK_IMPORTED_MODULE_4__["FluxoAnaliseConstants"]();
        _this.data = new _fluxo_analise_model__WEBPACK_IMPORTED_MODULE_3__["FluxoAnalise"]();
        _this.dataRemove = new _fluxo_analise_model__WEBPACK_IMPORTED_MODULE_3__["FluxoAnalise"]();
        _this.mensagens = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/cadastro/fluxoAnalise";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    FluxoAnaliseIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.refresh();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    FluxoAnaliseIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.get().subscribe(function (data) {
            var columns = [
                _this.datatablesService.getDataString("descrMater", "produto"),
                _this.datatablesService.getDataString("tipoTransp", "tipoTransp"),
                _this.datatablesService.getDataString("tipoDeFluxo", "tipoDeFluxo")
            ];
            _this.datatablesService.toDataTable({ tableId: "dtFluxoAnalise", columns: columns, data: data }, function (aData) {
                _this.data = aData;
            });
        });
    };
    FluxoAnaliseIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    FluxoAnaliseIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            _this.router.navigate(["" + _this.target + _this.pageRoute + "/create"]);
        });
    };
    FluxoAnaliseIndexComponent.prototype.detail = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _this.router.navigate(["" + _this.target + _this.pageRoute + "/detail/" + _this.data.materialFluxoId]);
        });
    };
    FluxoAnaliseIndexComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.router.navigate(["" + _this.target + _this.pageRoute + "/edit/" + _this.data.materialFluxoId]);
        });
    };
    FluxoAnaliseIndexComponent.prototype.remove = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.messageService.removeConfirm(function () {
                _this.service.remove(_this.data).subscribe(function () {
                    _this.refresh();
                });
            });
        });
    };
    FluxoAnaliseIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {};
            _super.prototype.print.call(_this);
        });
    };
    FluxoAnaliseIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    FluxoAnaliseIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _fluxo_analise_service__WEBPACK_IMPORTED_MODULE_2__["FluxoAnaliseService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] }
    ]; };
    FluxoAnaliseIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-fluxo-analise-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./fluxo-analise-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/fluxo-analise/fluxo-analise-index/fluxo-analise-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _fluxo_analise_service__WEBPACK_IMPORTED_MODULE_2__["FluxoAnaliseService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"]])
    ], FluxoAnaliseIndexComponent);
    return FluxoAnaliseIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_10__["BasePermissoes"]));



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FluxoAnaliseConstants", function() { return FluxoAnaliseConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var FluxoAnaliseConstants = /** @class */ (function () {
    function FluxoAnaliseConstants() {
        this.sisFormularioId = 375244;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.fluxoAnalise";
        this.reportId = "CAD0299";
        this.reportTitulo = { "titulo": "Fluxo Analise", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' }
        ];
    }
    return FluxoAnaliseConstants;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FluxoAnalise", function() { return FluxoAnalise; });
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

var FluxoAnalise = /** @class */ (function (_super) {
    __extends(FluxoAnalise, _super);
    function FluxoAnalise() {
        var _this = _super.call(this) || this;
        _this.tipoTransp = "";
        _this.codFluxo = "";
        return _this;
    }
    return FluxoAnalise;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));



/***/ }),

/***/ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise.module.ts":
/*!**********************************************************************!*\
  !*** ./src/app/pages/cadastro/fluxo-analise/fluxo-analise.module.ts ***!
  \**********************************************************************/
/*! exports provided: FluxoAnaliseModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FluxoAnaliseModule", function() { return FluxoAnaliseModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _fluxo_analise_routing_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fluxo-analise.routing.module */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise.routing.module.ts");
/* harmony import */ var _fluxo_analise_form_fluxo_analise_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fluxo-analise-form/fluxo-analise-form.component */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise-form/fluxo-analise-form.component.ts");
/* harmony import */ var _fluxo_analise_index_fluxo_analise_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fluxo-analise-index/fluxo-analise-index.component */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise-index/fluxo-analise-index.component.ts");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.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 FluxoAnaliseModule = /** @class */ (function () {
    function FluxoAnaliseModule() {
    }
    FluxoAnaliseModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _fluxo_analise_index_fluxo_analise_index_component__WEBPACK_IMPORTED_MODULE_3__["FluxoAnaliseIndexComponent"],
                _fluxo_analise_form_fluxo_analise_form_component__WEBPACK_IMPORTED_MODULE_2__["FluxoAnaliseFormComponent"]
            ],
            imports: [
                app_shared_shared_module__WEBPACK_IMPORTED_MODULE_4__["SharedModule"],
                _fluxo_analise_routing_module__WEBPACK_IMPORTED_MODULE_1__["FluxoAnaliseRoutingModule"]
            ]
        })
    ], FluxoAnaliseModule);
    return FluxoAnaliseModule;
}());



/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FluxoAnaliseRoutingModule", function() { return FluxoAnaliseRoutingModule; });
/* 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 _fluxo_analise_form_fluxo_analise_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fluxo-analise-form/fluxo-analise-form.component */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise-form/fluxo-analise-form.component.ts");
/* harmony import */ var _fluxo_analise_index_fluxo_analise_index_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fluxo-analise-index/fluxo-analise-index.component */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise-index/fluxo-analise-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 FluxoAnaliseRoutes = [
    {
        path: "",
        component: _fluxo_analise_index_fluxo_analise_index_component__WEBPACK_IMPORTED_MODULE_4__["FluxoAnaliseIndexComponent"],
        data: {
            breadcrumb: "fluxoAnalise",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "create",
        component: _fluxo_analise_form_fluxo_analise_form_component__WEBPACK_IMPORTED_MODULE_3__["FluxoAnaliseFormComponent"],
        data: {
            breadcrumb: "fluxoAnalise",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "detail/:id",
        component: _fluxo_analise_form_fluxo_analise_form_component__WEBPACK_IMPORTED_MODULE_3__["FluxoAnaliseFormComponent"],
        data: {
            breadcrumb: "fluxoAnalise",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "edit/:id",
        component: _fluxo_analise_form_fluxo_analise_form_component__WEBPACK_IMPORTED_MODULE_3__["FluxoAnaliseFormComponent"],
        data: {
            breadcrumb: "fluxoAnalise",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    }
];
var FluxoAnaliseRoutingModule = /** @class */ (function () {
    function FluxoAnaliseRoutingModule() {
    }
    FluxoAnaliseRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(FluxoAnaliseRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], FluxoAnaliseRoutingModule);
    return FluxoAnaliseRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise.service.ts":
/*!***********************************************************************!*\
  !*** ./src/app/pages/cadastro/fluxo-analise/fluxo-analise.service.ts ***!
  \***********************************************************************/
/*! exports provided: FluxoAnaliseService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FluxoAnaliseService", function() { return FluxoAnaliseService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _fluxo_analise_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fluxo-analise.model */ "./src/app/pages/cadastro/fluxo-analise/fluxo-analise.model.ts");
/* harmony import */ var app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/base/base.service */ "./src/app/shared/services/base/base.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var FluxoAnaliseService = /** @class */ (function (_super) {
    __extends(FluxoAnaliseService, _super);
    function FluxoAnaliseService(http) {
        var _this = _super.call(this, http, "cadastros/fluxoAnalise") || this;
        _this.http = http;
        _this.data = new _fluxo_analise_model__WEBPACK_IMPORTED_MODULE_2__["FluxoAnalise"]();
        return _this;
    }
    FluxoAnaliseService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    FluxoAnaliseService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], FluxoAnaliseService);
    return FluxoAnaliseService;
}(app_shared_services_base_base_service__WEBPACK_IMPORTED_MODULE_3__["BaseService"]));



/***/ })

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