(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-admin-ferramenta-sinc-config-sinc-config-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/ferramenta/sinc-config/sinc-config-index/sinc-config-index.component.html":
/*!*********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/ferramenta/sinc-config/sinc-config-index/sinc-config-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]=\"constantes.listaIndex\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <div class=\"row\">\n        <div class=\"col-12\">\n            <fieldset>\n                <legend>Bancos</legend>\n                <button class=\"btn btn-block btn-primary mb-2\" (click)=\"novoItem('SisBancoSinc')\">Novo</button>\n                <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm table-fixed\">\n                    <thead>\n                        <tr>\n                            <th>NomeBD</th>\n                            <th>Cadastrada</th>\n                            <th>Servidor</th>\n                            <th>CGCCPF</th>\n                            <th></th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr *ngFor=\"let d of dados?.sisBancoSincs; let i = index\">\n                            <td><input type=\"text\" [(ngModel)]=\"d.nomeBD\" class=\"form-control form-control-sm\"\n                                    maxlength=\"50\" (changes)=\"setSinc('SisBancoSinc', i)\"></td>\n                            <td><input type=\"text\" [(ngModel)]=\"d.flagCadastrada\" class=\"form-control form-control-sm\"\n                                    maxlength=\"1\" (changes)=\"setSinc('SisBancoSinc', i)\">\n                            </td>\n                            <td><input type=\"text\" [(ngModel)]=\"d.servidor\" class=\"form-control form-control-sm\"\n                                    maxlength=\"50\" (changes)=\"setSinc('SisBancoSinc', i)\"></td>\n                            <td><input type=\"text\" [(ngModel)]=\"d.cgccpf\" class=\"form-control form-control-sm\"\n                                    maxlength=\"14\" (changes)=\"setSinc('SisBancoSinc', i)\"></td>\n                            <td>\n                                <button class=\"btn btn-danger btn-block\" (click)=\"removeItem('SisBancoSinc', i)\">\n                                    Excluir\n                                </button>\n                            </td>\n                        </tr>\n                    </tbody>\n                </table>\n            </fieldset>\n        </div>\n    </div>\n\n    <div class=\"row mt-2\">\n        <div class=\"col-12\">\n            <button class=\"btn btn-block btn-primary mb-2\" (click)=\"novoItem('SisTabelaSinc')\">Novo</button>\n            <fieldset>\n                <legend>Tabelas</legend>\n                <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm table-fixed\">\n                    <thead>\n                        <tr>\n                            <th>NomeTB</th>\n                            <th>TipoSincI</th>\n                            <th>TipoSincA</th>\n                            <th>TipoSincE</th>\n                            <th></th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr *ngFor=\"let d of dados?.sisTabelaSincs; let i = index\">\n                            <td><input type=\"text\" [(ngModel)]=\"d.nomeTB\" class=\"form-control form-control-sm\"\n                                    maxlength=\"50\" (changes)=\"setSinc('SisTabelaSinc', i)\"></td>\n                            <td><input type=\"text\" [(ngModel)]=\"d.tipoSincI\" class=\"form-control form-control-sm\"\n                                    maxlength=\"1\" (changes)=\"setSinc('SisTabelaSinc', i)\"></td>\n                            <td><input type=\"text\" [(ngModel)]=\"d.tipoSincA\" class=\"form-control form-control-sm\"\n                                    maxlength=\"1\" (changes)=\"setSinc('SisTabelaSinc', i)\"></td>\n                            <td><input type=\"text\" [(ngModel)]=\"d.tipoSincE\" class=\"form-control form-control-sm\"\n                                    maxlength=\"1\" (changes)=\"setSinc('SisTabelaSinc', i)\"></td>\n                            <td>\n                                <button class=\"btn btn-danger btn-block\" (click)=\"removeItem('SisTabelaSinc', i)\">\n                                    Excluir\n                                </button>\n                            </td>\n                        </tr>\n                    </tbody>\n                </table>\n            </fieldset>\n        </div>\n    </div>\n\n    <div class=\"row mt-2\">\n        <div class=\"col-12\">\n            <button class=\"btn btn-block btn-primary mb-2\" (click)=\"novoItem('SisTabelaCampoSinc')\">Novo</button>\n            <fieldset>\n                <legend>Campos Ignorados</legend>\n                <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm table-fixed\">\n                    <thead>\n                        <tr>\n                            <th>Tabela</th>\n                            <th>Campo</th>\n                            <th></th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr *ngFor=\"let d of dados?.sisTabelaCampoSincs; let i = index\">\n                            <td><input type=\"text\" [(ngModel)]=\"d.tabela\" class=\"form-control form-control-sm\"\n                                    maxlength=\"50\" (changes)=\"setSinc('SisTabelaCampoSinc', i)\"></td>\n                            <td><input type=\"text\" [(ngModel)]=\"d.campo\" class=\"form-control form-control-sm\"\n                                    maxlength=\"50\" (changes)=\"setSinc('SisTabelaCampoSinc', i)\"></td>\n                            <td>\n                                <button class=\"btn btn-danger btn-block\" (click)=\"removeItem('SisTabelaCampoSinc', i)\">\n                                    Excluir\n                                </button>\n                            </td>\n                        </tr>\n                    </tbody>\n                </table>\n            </fieldset>\n        </div>\n    </div>\n\n    <button class=\"btn btn-block btn-success mb-2\" (click)=\"salvar()\">Salvar</button>\n</div>");

/***/ }),

/***/ "./src/app/pages/admin/ferramenta/sinc-config/sinc-config-index/sinc-config-index.component.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/admin/ferramenta/sinc-config/sinc-config-index/sinc-config-index.component.ts ***!
  \*****************************************************************************************************/
/*! exports provided: SincConfigIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SincConfigIndexComponent", function() { return SincConfigIndexComponent; });
/* 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 _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _ferramenta_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../ferramenta.service */ "./src/app/pages/admin/ferramenta/ferramenta.service.ts");
/* harmony import */ var _sinc_config_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../sinc-config.constants */ "./src/app/pages/admin/ferramenta/sinc-config/sinc-config.constants.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 SincConfigIndexComponent = /** @class */ (function (_super) {
    __extends(SincConfigIndexComponent, _super);
    function SincConfigIndexComponent(router, messageService, funcoesService, ferramenta) {
        var _this = _super.call(this, new _sinc_config_constants__WEBPACK_IMPORTED_MODULE_6__["SincConfigConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.ferramenta = ferramenta;
        _this.constantes = new _sinc_config_constants__WEBPACK_IMPORTED_MODULE_6__["SincConfigConstants"]();
        return _this;
    }
    SincConfigIndexComponent.prototype.ngOnInit = function () {
        this.refresh();
    };
    SincConfigIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.ferramenta.getSincConfg().subscribe(function (r) { return _this.dados = r; });
    };
    SincConfigIndexComponent.prototype.novoItem = function (tipo) {
        switch (tipo) {
            case 'SisBancoSinc':
                this.dados.sisBancoSincs.push({
                    nomeBD: '',
                    flagCadastrada: 'S',
                    servidor: '',
                    cgccpf: '',
                    sinc: true
                });
                break;
            case 'SisTabelaSinc':
                this.dados.sisTabelaSincs.push({
                    nomeTB: '',
                    tipoSincI: 'S',
                    tipoSincA: 'S',
                    tipoSincE: 'S',
                    sinc: true
                });
                break;
            case 'SisTabelaCampoSinc':
                this.dados.sisTabelaCampoSincs.push({
                    tabela: '',
                    campo: '',
                    sinc: true
                });
                break;
        }
    };
    SincConfigIndexComponent.prototype.removeItem = function (tipo, index) {
        switch (tipo) {
            case 'SisBancoSinc':
                this.dados.sisBancoSincs[index].sinc = true;
                this.dados.sisBancoSincs.splice(index, 1);
                break;
            case 'SisTabelaSinc':
                this.dados.sisTabelaSincs[index].sinc = true;
                this.dados.sisTabelaSincs.splice(index, 1);
                break;
            case 'SisTabelaCampoSinc':
                this.dados.sisTabelaCampoSincs[index].sinc = true;
                this.dados.sisTabelaCampoSincs.splice(index, 1);
                break;
        }
    };
    SincConfigIndexComponent.prototype.salvar = function () {
        var _this = this;
        this.ferramenta.sincConfg(this.dados).subscribe(function (r) {
            _this.refresh();
        });
    };
    SincConfigIndexComponent.prototype.setSinc = function (tipo, index) {
        switch (tipo) {
            case 'SisBancoSinc':
                this.dados.sisBancoSincs[index].sinc = true;
                break;
            case 'SisTabelaSinc':
                this.dados.sisTabelaSincs[index].sinc = true;
                break;
            case 'SisTabelaCampoSinc':
                this.dados.sisTabelaCampoSincs[index].sinc = true;
                break;
        }
    };
    SincConfigIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _ferramenta_service__WEBPACK_IMPORTED_MODULE_5__["FerramentaService"] }
    ]; };
    SincConfigIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-sinc-config-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./sinc-config-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/admin/ferramenta/sinc-config/sinc-config-index/sinc-config-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _ferramenta_service__WEBPACK_IMPORTED_MODULE_5__["FerramentaService"]])
    ], SincConfigIndexComponent);
    return SincConfigIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/admin/ferramenta/sinc-config/sinc-config.constants.ts":
/*!*****************************************************************************!*\
  !*** ./src/app/pages/admin/ferramenta/sinc-config/sinc-config.constants.ts ***!
  \*****************************************************************************/
/*! exports provided: SincConfigConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SincConfigConstants", function() { return SincConfigConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var SincConfigConstants = /** @class */ (function () {
    function SincConfigConstants() {
        this.sisFormularioId = 375046;
        this.permissoes = [];
        this.sisSistemaId = "COR";
        this.nomeForm = "titles.sincronizacao";
        this.reportId = "COR0006";
        this.tabela = "SisIdioma";
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return SincConfigConstants;
}());



/***/ }),

/***/ "./src/app/pages/admin/ferramenta/sinc-config/sinc-config.module.ts":
/*!**************************************************************************!*\
  !*** ./src/app/pages/admin/ferramenta/sinc-config/sinc-config.module.ts ***!
  \**************************************************************************/
/*! exports provided: SincConfigModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SincConfigModule", function() { return SincConfigModule; });
/* 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 _sinc_config_index_sinc_config_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sinc-config-index/sinc-config-index.component */ "./src/app/pages/admin/ferramenta/sinc-config/sinc-config-index/sinc-config-index.component.ts");
/* harmony import */ var _sinc_config_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sinc-config.routing.module */ "./src/app/pages/admin/ferramenta/sinc-config/sinc-config.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 SincConfigModule = /** @class */ (function () {
    function SincConfigModule() {
    }
    SincConfigModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _sinc_config_routing_module__WEBPACK_IMPORTED_MODULE_3__["SincConfigRoutingModule"]],
            declarations: [_sinc_config_index_sinc_config_index_component__WEBPACK_IMPORTED_MODULE_2__["SincConfigIndexComponent"]]
        })
    ], SincConfigModule);
    return SincConfigModule;
}());



/***/ }),

/***/ "./src/app/pages/admin/ferramenta/sinc-config/sinc-config.routing.module.ts":
/*!**********************************************************************************!*\
  !*** ./src/app/pages/admin/ferramenta/sinc-config/sinc-config.routing.module.ts ***!
  \**********************************************************************************/
/*! exports provided: SincConfigRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SincConfigRoutingModule", function() { return SincConfigRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _sinc_config_index_sinc_config_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./sinc-config-index/sinc-config-index.component */ "./src/app/pages/admin/ferramenta/sinc-config/sinc-config-index/sinc-config-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: _sinc_config_index_sinc_config_index_component__WEBPACK_IMPORTED_MODULE_3__["SincConfigIndexComponent"],
        data: { breadcrumb: "sincronizacao", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
];
var SincConfigRoutingModule = /** @class */ (function () {
    function SincConfigRoutingModule() {
    }
    SincConfigRoutingModule = __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"]],
        })
    ], SincConfigRoutingModule);
    return SincConfigRoutingModule;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-admin-ferramenta-sinc-config-sinc-config-module.js.map