(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-rocha-movimentos-demonstrativo-navio-demonstrativo-navio-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-filter/demonstrativo-navio-filter.component.html":
/*!***********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-filter/demonstrativo-navio-filter.component.html ***!
  \***********************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal\" id=\"demonstrativo-navio-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{title}}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!!service.filter\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label class=\"required\" for=\"periodoDe\">{{ 'labels.periodoDe' | translate }}</label>\r\n                                <app-data id=\"periodoDe\" name=\"periodoDe\" required=\"true\"\r\n                                    [(ngModel)]=\"service.filter.dtInicio\" (executa)=\"validaDatas()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label class=\"required\" for=\"ate\">{{ 'labels.ate' | translate }}</label>\r\n                                <app-data id=\"ate\" name=\"ate\" required=\"true\" [(ngModel)]=\"service.filter.dtFim\"\r\n                                    (executa)=\"validaDatas()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\r\n                                    modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"service.filter.destinatarioIdCliente\"\r\n                                    [inSelected]=\"service.filter.cliente\" tipoDestinatario=\"C\" showCgcCpf=\"false\"\r\n                                    showInscricao=\"false\" (outModel)=\"trataCliente($event)\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-osg id=\"osg\" label=\"osg\" name=\"osg\" [(ngModel)]=\"service.filter.osgId\"\r\n                                    [destinatarioIdCliente]=\"service.filter.destinatarioIdCliente\" [materialId]=\"\"\r\n                                    (outSelected)=\"!!$event ? filtro.osg = $event : ''\" [inpOsg]=\"service.filter.osg\">\r\n                                </app-pesquisa-osg>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-6 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"situacao\">{{ \"labels.situacao\" | translate}}</label>\r\n                                <select id=\"situacao\" [(ngModel)]=\"service.filter.situacao\"\r\n                                    class=\"form-control form-control-sm\" name=\"situacao\"\r\n                                    data-title=\"{{ 'labels.situacao' | translate }}\">\r\n                                    <option [value]=0>{{ \"labels.selecione\" | translate }}</option>\r\n                                    <option *ngFor=\"let t of situacao.get\" value=\"{{ t.id }}\">\r\n                                        {{ t.descricao }}\r\n                                    </option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-index/demonstrativo-navio-index.component.html":
/*!*********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-index/demonstrativo-navio-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\" [sisFormularioId]=\"constantes.sisFormularioId\"\n    [itemData]=\"data.regPrograma\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <div class=\"clearfix\">\n        <ul class=\"nav nav-tabs\">\n            <li class=\"nav-item\">\n                <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#programacao\">{{\"labels.programacao\" | translate\n                    }}</a>\n            </li>\n            <li class=\"nav-item\">\n                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"getDadosProgramacaoItens()\" href=\"#programacaoItens\">{{\n                    \"labels.programacaoItens\" | translate\n                    }}</a>\n            </li>\n        </ul>\n    </div>\n    <div class=\"tab-content top\">\n        <!-- ABA PROGRAMAÇÃO-->\n        <div class=\"tab-pane active show\" id=\"programacao\">\n            <app-table>\n                <div class=\"table-responsive\" style=\"overflow: auto;\">\n                    <table id=\"dtDemonstrativoNavioProgramacao\"\n                        class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n                        <thead>\n                            <tr>\n                                <th class=\"text-center\">{{ 'labels.gera' | translate}}</th>\n                                <th style=\"text-align: right;\">{{ 'labels.programacao' | translate}}</th>\n                                <th>{{ 'labels.dtProgramacao' | translate}}</th>\n                                <th>{{ 'labels.contrato' | translate}}</th>\n                                <th>{{ 'labels.numeroOsg' | translate }}</th>\n                                <th>{{ 'labels.cliente' | translate }}</th>\n                                <th>{{ 'labels.navio' | translate }}</th>\n                                <th>{{ 'labels.situacao' | translate }}</th>\n                            </tr>\n                        </thead>\n                        <tbody>\n                            <tr *ngFor=\"let t of dados; index as i\" (dblclick)=\"_dbClick(t, i)\" (click)=\"_click(t, i)\"\n                                [ngClass]=\"{'info': t == data && i == currentIndex ? true : false}\">\n                                <td class=\"text-center\">\n                                    <label class=\"chk\">\n                                        <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                            (ngModelChange)=\"t.flagGera = $event ? 'S' : 'N'\"\n                                            [ngModel]=\"t.flagGera ==='S'\" style=\"margin-left:auto; margin-right:auto;\"\n                                            disabled>\n                                        <span [ngClass]=\"{'green':t.flagGera == 'S' ? true : false}\"></span>\n                                    </label>\n                                </td>\n                                <td style=\"text-align: right;\">{{ t.regPrograma }}</td>\n                                <td>{{ t.dtPrograma | date: 'dd/MM/yyyy HH:mm' }}\n                                <td>{{ t.numeroContrato }}</td>\n                                <td>{{ t.numeroOSG }}</td>\n                                <td>{{ t.cliente }}</td>\n                                <td>{{ t.nomeNavio }}</td>\n                                <td>{{ t.situacao }}</td>\n                            </tr>\n                            <tr *ngIf=\"!hasDados\">\n                                <th colspan=\"15\" style=\"text-align: center\">\n                                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\n                                </th>\n                            </tr>\n                        </tbody>\n                    </table>\n                </div>\n            </app-table>\n        </div>\n        <!--ABA PROGRAMAÇÃO ITENS -->\n        <div class=\"tab-pane\" id=\"programacaoItens\">\n            <table id=\"dtDemonstrativoNavioProgramacaoItens\"\n                class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n            </table>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-propriedades></app-propriedades>\n<app-demonstrativo-navio-filter (filtrar)=\"executaFiltro($event)\"></app-demonstrativo-navio-filter>");

/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-filter/demonstrativo-navio-filter.component.ts":
/*!*******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-filter/demonstrativo-navio-filter.component.ts ***!
  \*******************************************************************************************************************************************/
/*! exports provided: DemonstrativoNavioFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DemonstrativoNavioFilterComponent", function() { return DemonstrativoNavioFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _demonstrativo_navio_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../demonstrativo-navio.constants */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.constants.ts");
/* harmony import */ var _demonstrativo_navio_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../demonstrativo-navio.model */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.model.ts");
/* harmony import */ var _demonstrativo_navio_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../demonstrativo-navio.service */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
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 DemonstrativoNavioFilterComponent = /** @class */ (function () {
    function DemonstrativoNavioFilterComponent(service, message) {
        this.service = service;
        this.message = message;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _demonstrativo_navio_constants__WEBPACK_IMPORTED_MODULE_3__["DemonstrativoNavioConstants"]();
        this.situacao = new _demonstrativo_navio_model__WEBPACK_IMPORTED_MODULE_4__["Situacao"]();
    }
    DemonstrativoNavioFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filter) {
            this.service.filter = new _demonstrativo_navio_model__WEBPACK_IMPORTED_MODULE_4__["DemonstrativoNavioFiltroVo"]();
        }
    };
    Object.defineProperty(DemonstrativoNavioFilterComponent.prototype, "title", {
        get: function () {
            return this.message.translate("titles.demonstrativoNavio");
        },
        enumerable: true,
        configurable: true
    });
    DemonstrativoNavioFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid)
            return;
        if (!this.validaDatas()) {
            return;
        }
        this.filtrar.emit(this.service.filter);
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].closeModal("demonstrativo-navio-filter-dialog");
    };
    DemonstrativoNavioFilterComponent.prototype.trataCliente = function (cliente) {
        if (!cliente)
            return;
        this.service.filter.cliente = cliente;
    };
    DemonstrativoNavioFilterComponent.prototype.validaDatas = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["DateTimeUtilsStaticService"].menorA(this.service.filter.dtFim, this.service.filter.dtInicio)) {
            this.message.warning("titles.demonstrativoNavio", "messages.ateMenorPeriodoDe");
            return false;
        }
        return true;
    };
    DemonstrativoNavioFilterComponent.ctorParameters = function () { return [
        { type: _demonstrativo_navio_service__WEBPACK_IMPORTED_MODULE_5__["DemonstrativoNavioService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DemonstrativoNavioFilterComponent.prototype, "filtrar", void 0);
    DemonstrativoNavioFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-demonstrativo-navio-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./demonstrativo-navio-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-filter/demonstrativo-navio-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_demonstrativo_navio_service__WEBPACK_IMPORTED_MODULE_5__["DemonstrativoNavioService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"]])
    ], DemonstrativoNavioFilterComponent);
    return DemonstrativoNavioFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-index/demonstrativo-navio-index.component.ts":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-index/demonstrativo-navio-index.component.ts ***!
  \*****************************************************************************************************************************************/
/*! exports provided: DemonstrativoNavioIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DemonstrativoNavioIndexComponent", function() { return DemonstrativoNavioIndexComponent; });
/* harmony import */ var _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__ = __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_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.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_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var 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 _demonstrativo_navio_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../demonstrativo-navio.constants */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.constants.ts");
/* harmony import */ var _demonstrativo_navio_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../demonstrativo-navio.model */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.model.ts");
/* harmony import */ var _demonstrativo_navio_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../demonstrativo-navio.service */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __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 app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
















var DemonstrativoNavioIndexComponent = /** @class */ (function (_super) {
    __extends(DemonstrativoNavioIndexComponent, _super);
    function DemonstrativoNavioIndexComponent(messageService, service, funcoesService, loginService, permissoesUtils, datatablesService, configuracao) {
        var _this = _super.call(this, new _demonstrativo_navio_constants__WEBPACK_IMPORTED_MODULE_9__["DemonstrativoNavioConstants"](), funcoesService) || this;
        _this.messageService = messageService;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.datatablesService = datatablesService;
        _this.configuracao = configuracao;
        _this.constantes = new _demonstrativo_navio_constants__WEBPACK_IMPORTED_MODULE_9__["DemonstrativoNavioConstants"]();
        _this.dadosProgramacao = [];
        _this.data = new _demonstrativo_navio_model__WEBPACK_IMPORTED_MODULE_10__["DemonstrativoNavioDto"]();
        _this.dataProgramacaoItem = new _demonstrativo_navio_model__WEBPACK_IMPORTED_MODULE_10__["DemonstrativoNavioItensDto"]();
        _this.registrosSelecionados = [];
        _this.mensagens = [];
        _this.permissoes = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 5, function () {
                _super.prototype.permissoes.call(_this, _this.constantes);
            });
        };
        _this.refresh = function () { return __awaiter(_this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.init();
                        _a = this;
                        return [4 /*yield*/, this.service.getDadosProgramacao(this.service.filter).toPromise()];
                    case 1:
                        _a.dadosProgramacao = _b.sent();
                        return [2 /*return*/];
                }
            });
        }); };
        _this.getDadosProgramacaoItens = function () {
            if (!_this.data.regPrograma) {
                _this.messageService.warning("titles.demonstrativoNavio", "messages.selecioneUmRegistro");
                _this.onAbaProgramacao();
            }
            if (!_this.data.regLaudo || !_this.data.regOsg)
                return;
            _this.service.getDadosProgramacaoItens(_this.data).subscribe(function (data) {
                var columns = [
                    _this.datatablesService.getDataString("descricaoMaterial", "material"),
                    _this.datatablesService.getDataString("fantasiaCliente", "cliente"),
                    _this.datatablesService.getDataDouble("kilosRecebe", "quantidade", 0, false, "10%")
                ];
                _this.datatablesService.toDataTable({ tableId: "dtDemonstrativoNavioProgramacaoItens", columns: columns, data: data }, function (aData) {
                    _this.dataProgramacaoItem = aData;
                });
            });
        };
        _this.gerarPedido = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 1, function () {
                if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].isNotPositive(_this.data.regPrograma)) {
                    _this.messageService.warning("titles.demonstrativoNavio", "messages.selecioneUmRegistro");
                    return;
                }
                _this.messageService.confirm("titles.demonstrativoNavio", "messages.confirmaGeracaoDoPedido", null, function () { return __awaiter(_this, void 0, void 0, function () {
                    var validationResult, mensagens;
                    var _this = this;
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, this.service.gerarPedido(this.data).toPromise()];
                            case 1:
                                validationResult = _a.sent();
                                if (!validationResult.isValid) {
                                    mensagens = this.messageService.validationResult(validationResult);
                                    mensagens.forEach(function (m) { return _this.messageService.warning("titles.demonstrativoNavio", m); });
                                    return [2 /*return*/];
                                }
                                else {
                                    this.messageService.success("Sucesso", "messages.pedidoGerado");
                                    this.refresh();
                                }
                                return [2 /*return*/];
                        }
                    });
                }); });
            });
        };
        _this.geracaoDemonstrativo = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 2, function () {
                if (!_this.existeRegistroFlagGera) {
                    _this.messageService.warning("titles.demonstrativoNavio", "messages.naoExisteItemASerGeradoAdiantamento");
                    return;
                }
                _this.messageService.confirm("titles.demonstrativoNavio", "messages.confirmaGeracaoDemonstrativo", null, function () { return __awaiter(_this, void 0, void 0, function () {
                    var validationResult, mensagens;
                    var _this = this;
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, this.service.geracaoDemonstrativo(this.registrosSelecionados).toPromise()];
                            case 1:
                                validationResult = _a.sent();
                                if (!validationResult.isValid) {
                                    mensagens = this.messageService.validationResult(validationResult);
                                    mensagens.forEach(function (m) { return _this.messageService.warning("titles.demonstrativoNavio", m); });
                                    return [2 /*return*/];
                                }
                                else {
                                    this.messageService.success("Sucesso", "messages.geracaoProcessada");
                                    this.refresh();
                                }
                                return [2 /*return*/];
                        }
                    });
                }); });
            });
        };
        _this.cancelarDemonstrativo = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 3, function () {
                if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].isNotPositive(_this.data.regPrograma)) {
                    _this.messageService.warning("titles.demonstrativoNavio", "messages.selecioneUmRegistro");
                    return;
                }
                _this.messageService.confirm("titles.demonstrativoNavio", "messages.confirmaCancelamentoDesmonstrativo", null, function () { return __awaiter(_this, void 0, void 0, function () {
                    var validationResult, mensagens;
                    var _this = this;
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0: return [4 /*yield*/, this.service.cancelarDemonstrativo(this.data).toPromise()];
                            case 1:
                                validationResult = _a.sent();
                                if (!validationResult.isValid) {
                                    mensagens = this.messageService.validationResult(validationResult);
                                    mensagens.forEach(function (m) { return _this.messageService.warning("titles.demonstrativoNavio", m); });
                                    return [2 /*return*/];
                                }
                                else {
                                    this.messageService.success("Sucesso", "messages.cancelamentoProcessado");
                                    this.refresh();
                                }
                                return [2 /*return*/];
                        }
                    });
                }); });
            });
        };
        return _this;
    }
    DemonstrativoNavioIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.loginService.isTokenExpired()) {
                    this.filtrar();
                }
                return [2 /*return*/];
            });
        }); }, function () { return _this.permissoesUtils.back(); }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'geracaoDemonstrativo', func: function () { return _this.geracaoDemonstrativo; } },
            { action: 'gerarPedido', func: function () { return _this.gerarPedido; } },
            { action: 'cancelarDemonstrativo', func: function () { return _this.cancelarDemonstrativo; } }
        ]);
    };
    DemonstrativoNavioIndexComponent.prototype.init = function () {
        this.registrosSelecionados = [];
        this.data = new _demonstrativo_navio_model__WEBPACK_IMPORTED_MODULE_10__["DemonstrativoNavioDto"]();
        this.onAbaProgramacao();
        this.trataBotoes();
    };
    Object.defineProperty(DemonstrativoNavioIndexComponent.prototype, "dados", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasDados || !this.table.filtro) {
                return this.table.getPage(this.dadosProgramacao);
            }
            var dados = this.dadosProgramacao.filter(function (v) {
                return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].exist(v.regPrograma, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["DateTimeUtilsStaticService"].convertDateToDateStr(v.dtPrograma), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.numeroContrato, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.numeroOSG, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.cliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.nomeNavio, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_14__["StringUtilsStaticService"].exist(v.situacao, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(DemonstrativoNavioIndexComponent.prototype, "hasDados", {
        get: function () {
            if (!this.dadosProgramacao)
                return false;
            return this.dadosProgramacao && this.dadosProgramacao.length > 0;
        },
        enumerable: true,
        configurable: true
    });
    DemonstrativoNavioIndexComponent.prototype._click = function (item, index) {
        this.currentIndex = index;
        this.data = item;
        this.trataBotoes();
    };
    DemonstrativoNavioIndexComponent.prototype.trataBotoes = function () {
        this.buttonDisabled('listaIndex', 'geracaoDemonstrativo', app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].isNotPositive(this.data.regNavioLibera));
        this.buttonDisabled('listaIndex', 'gerarPedido', (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].isNotPositive(this.data.regNavioLibera) && !app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].isPositive(this.data.regPedido)));
        this.buttonDisabled('listaIndex', 'print', app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].isNotPositive(this.data.regNavioLibera));
    };
    DemonstrativoNavioIndexComponent.prototype._dbClick = function (item, index) {
        this.currentIndex = index;
        this.onMarcarDesmarcar(item);
        this.trataBotoes();
    };
    DemonstrativoNavioIndexComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.flagGera = obj.flagGera === 'S' ? 'N' : 'S';
        this.trataDadosSelecionados();
    };
    DemonstrativoNavioIndexComponent.prototype.trataDadosSelecionados = function () {
        var _this = this;
        this.registrosSelecionados = [];
        this.dadosProgramacao.forEach(function (element) {
            if (element.flagGera === 'S') {
                _this.registrosSelecionados.push(element);
            }
        });
    };
    DemonstrativoNavioIndexComponent.prototype.onAbaProgramacao = function () {
        setTimeout(function (_) {
            jQuery("a.nav-link[href='#programacao']").trigger("click");
            return;
        });
    };
    Object.defineProperty(DemonstrativoNavioIndexComponent.prototype, "existeRegistroFlagGera", {
        get: function () {
            return this.registrosSelecionados.some(function (obj) { return obj.flagGera === "S"; });
        },
        enumerable: true,
        configurable: true
    });
    DemonstrativoNavioIndexComponent.prototype.filtrar = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["ModalUtilsStaticService"].openModal("demonstrativo-navio-filter-dialog");
    };
    DemonstrativoNavioIndexComponent.prototype.executaFiltro = function (event) {
        this.service.filter = event;
        this.refresh();
    };
    DemonstrativoNavioIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _this.constantes.paramRelatorio = {
                regNavioLibera: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["NumberUtilsStaticService"].toNumber(_this.data.regNavioLibera)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    DemonstrativoNavioIndexComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _demonstrativo_navio_service__WEBPACK_IMPORTED_MODULE_11__["DemonstrativoNavioService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"] },
        { type: _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_0__["ConfiguracaoFacade"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_12__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_12__["TableComponent"])
    ], DemonstrativoNavioIndexComponent.prototype, "table", void 0);
    DemonstrativoNavioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"])({
            selector: 'app-demonstrativo-navio-index',
            template: __importDefault(__webpack_require__(/*! raw-loader!./demonstrativo-navio-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-index/demonstrativo-navio-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./demonstrativo-navio.component.scss */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-index/demonstrativo-navio.component.scss")).default]
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _demonstrativo_navio_service__WEBPACK_IMPORTED_MODULE_11__["DemonstrativoNavioService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_5__["DatatablesService"],
            _shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_0__["ConfiguracaoFacade"]])
    ], DemonstrativoNavioIndexComponent);
    return DemonstrativoNavioIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-index/demonstrativo-navio.component.scss":
/*!*************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-index/demonstrativo-navio.component.scss ***!
  \*************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.green {\n  background-color: #378D3B;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3Mvcm9jaGEvbW92aW1lbnRvcy9kZW1vbnN0cmF0aXZvLW5hdmlvL2RlbW9uc3RyYXRpdm8tbmF2aW8taW5kZXgvQzpcXENvcnBvcmF0ZVxcQ29ycG9yYXRlV2ViRGVzZW52XFxfdW5pc29sdXRpb24vc3JjXFxhcHBcXHBhZ2VzXFxlc3BlY2lmaWNvc1xccm9jaGFcXG1vdmltZW50b3NcXGRlbW9uc3RyYXRpdm8tbmF2aW9cXGRlbW9uc3RyYXRpdm8tbmF2aW8taW5kZXhcXGRlbW9uc3RyYXRpdm8tbmF2aW8uY29tcG9uZW50LnNjc3MiLCJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL3JvY2hhL21vdmltZW50b3MvZGVtb25zdHJhdGl2by1uYXZpby9kZW1vbnN0cmF0aXZvLW5hdmlvLWluZGV4L2RlbW9uc3RyYXRpdm8tbmF2aW8uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0o7O0FERUE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUNDSjs7QURFQTtFQUNJLHlCQUFBO0FDQ0oiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy9yb2NoYS9tb3ZpbWVudG9zL2RlbW9uc3RyYXRpdm8tbmF2aW8vZGVtb25zdHJhdGl2by1uYXZpby1pbmRleC9kZW1vbnN0cmF0aXZvLW5hdmlvLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNoayBpbnB1dCB7XHJcbiAgICBkaXNwbGF5OiBub25lO1xyXG59XHJcblxyXG4uY2hrIHNwYW4ge1xyXG4gICAgd2lkdGg6IDE0cHg7XHJcbiAgICBoZWlnaHQ6IDE0cHg7XHJcbiAgICBkaXNwbGF5OiBibG9jaztcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xyXG4gICAgYm9yZGVyLXJhZGl1czogMThweDtcclxufVxyXG5cclxuc3Bhbi5ncmVlbiB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzc4RDNCO1xyXG59IiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxNHB4O1xuICBoZWlnaHQ6IDE0cHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxOHB4O1xufVxuXG5zcGFuLmdyZWVuIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzM3OEQzQjtcbn0iXX0= */");

/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.constants.ts":
/*!*********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.constants.ts ***!
  \*********************************************************************************************************/
/*! exports provided: DemonstrativoNavioConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DemonstrativoNavioConstants", function() { return DemonstrativoNavioConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var DemonstrativoNavioConstants = /** @class */ (function () {
    function DemonstrativoNavioConstants() {
        this.sisFormularioId = 375216;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: 'labels.gerarPedido' },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: 'labels.geracaoDemonstrativo' },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: 'labels.cancelarDemonstrativo' },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.impressao" }
        ];
        this.sisSistemaId = "DIV";
        this.nomeForm = "titles.demonstrativoNavio";
        this.reportId = "ROC0042";
        this.reportTitulo = { "titulo": "Demonstrativo Navio", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'GeracaoDemonstrativo', action: 'geracaoDemonstrativo', icon: "fa fa-gears", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'GerarPedido', action: 'gerarPedido', icon: "fa fa-file-text-o", exibeButton: true, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'CancelarDemonstrativo', action: 'cancelarDemonstrativo', icon: "fa fa-ban", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', disabled: true }
        ];
    }
    return DemonstrativoNavioConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.model.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.model.ts ***!
  \*****************************************************************************************************/
/*! exports provided: DemonstrativoNavioFiltroVo, Situacao, DemonstrativoNavioDto, DemonstrativoNavioItensDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DemonstrativoNavioFiltroVo", function() { return DemonstrativoNavioFiltroVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Situacao", function() { return Situacao; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DemonstrativoNavioDto", function() { return DemonstrativoNavioDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DemonstrativoNavioItensDto", function() { return DemonstrativoNavioItensDto; });
/* harmony import */ var app_pages_controle_osg_osg_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/controle/osg/osg.model */ "./src/app/pages/controle/osg/osg.model.ts");
/* harmony import */ var _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../../../../../shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var DemonstrativoNavioFiltroVo = /** @class */ (function () {
    function DemonstrativoNavioFiltroVo() {
        this.dtInicio = _shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].addDays(new Date(), -60);
        this.dtFim = new Date();
        this.osgId = 0;
        this.destinatarioIdCliente = 0;
        this.situacao = 0;
        this.osg = new app_pages_controle_osg_osg_model__WEBPACK_IMPORTED_MODULE_0__["Osg"];
    }
    return DemonstrativoNavioFiltroVo;
}());

var Situacao = /** @class */ (function () {
    function Situacao() {
        this.get = [
            { id: 1, descricao: "Aguard. Demonstr" },
            { id: 2, descricao: "Aguard. Geração Ped." },
            { id: 3, descricao: "Pedido Gerado" }
        ];
    }
    return Situacao;
}());

var DemonstrativoNavioDto = /** @class */ (function () {
    function DemonstrativoNavioDto() {
    }
    return DemonstrativoNavioDto;
}());

var DemonstrativoNavioItensDto = /** @class */ (function () {
    function DemonstrativoNavioItensDto() {
    }
    return DemonstrativoNavioItensDto;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.module.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.module.ts ***!
  \******************************************************************************************************/
/*! exports provided: DemonstrativoNavioModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DemonstrativoNavioModule", function() { return DemonstrativoNavioModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _demonstrativo_navio_filter_demonstrativo_navio_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./demonstrativo-navio-filter/demonstrativo-navio-filter.component */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-filter/demonstrativo-navio-filter.component.ts");
/* harmony import */ var _demonstrativo_navio_index_demonstrativo_navio_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./demonstrativo-navio-index/demonstrativo-navio-index.component */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-index/demonstrativo-navio-index.component.ts");
/* harmony import */ var _demonstrativo_navio_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./demonstrativo-navio.routing.module */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.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 DemonstrativoNavioModule = /** @class */ (function () {
    function DemonstrativoNavioModule() {
    }
    DemonstrativoNavioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _demonstrativo_navio_routing_module__WEBPACK_IMPORTED_MODULE_4__["DemonstrativoNavioRoutingModule"]],
            declarations: [
                _demonstrativo_navio_index_demonstrativo_navio_index_component__WEBPACK_IMPORTED_MODULE_3__["DemonstrativoNavioIndexComponent"],
                _demonstrativo_navio_filter_demonstrativo_navio_filter_component__WEBPACK_IMPORTED_MODULE_2__["DemonstrativoNavioFilterComponent"]
            ]
        })
    ], DemonstrativoNavioModule);
    return DemonstrativoNavioModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.routing.module.ts":
/*!**************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.routing.module.ts ***!
  \**************************************************************************************************************/
/*! exports provided: DemonstrativoNavioRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DemonstrativoNavioRoutingModule", function() { return DemonstrativoNavioRoutingModule; });
/* 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 _demonstrativo_navio_index_demonstrativo_navio_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./demonstrativo-navio-index/demonstrativo-navio-index.component */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio-index/demonstrativo-navio-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: _demonstrativo_navio_index_demonstrativo_navio_index_component__WEBPACK_IMPORTED_MODULE_3__["DemonstrativoNavioIndexComponent"],
        data: { breadcrumb: "demonstrativoNavio", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    }
];
var DemonstrativoNavioRoutingModule = /** @class */ (function () {
    function DemonstrativoNavioRoutingModule() {
    }
    DemonstrativoNavioRoutingModule = __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"]]
        })
    ], DemonstrativoNavioRoutingModule);
    return DemonstrativoNavioRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.service.ts":
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.service.ts ***!
  \*******************************************************************************************************/
/*! exports provided: DemonstrativoNavioService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DemonstrativoNavioService", function() { return DemonstrativoNavioService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var _demonstrativo_navio_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./demonstrativo-navio.model */ "./src/app/pages/especificos/rocha/movimentos/demonstrativo-navio/demonstrativo-navio.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 DemonstrativoNavioService = /** @class */ (function (_super) {
    __extends(DemonstrativoNavioService, _super);
    function DemonstrativoNavioService(http) {
        var _this = _super.call(this, http, "rocha/demonstrativoNavio") || this;
        _this.http = http;
        _this.filter = new _demonstrativo_navio_model__WEBPACK_IMPORTED_MODULE_6__["DemonstrativoNavioFiltroVo"]();
        return _this;
    }
    DemonstrativoNavioService.prototype.getDadosProgramacao = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/rocha/demonstrativoNavio/getByFiltro", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    DemonstrativoNavioService.prototype.getDadosProgramacaoItens = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/rocha/demonstrativoNavio/getDadosProgramacaoItens", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    DemonstrativoNavioService.prototype.geracaoDemonstrativo = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/rocha/demonstrativoNavio/geracaoDemonstrativo", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    DemonstrativoNavioService.prototype.gerarPedido = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/rocha/demonstrativoNavio/gerarPedido", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    DemonstrativoNavioService.prototype.cancelarDemonstrativo = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].specifics_service_url + "/api/v1/rocha/demonstrativoNavio/cancelarDemonstrativo", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    DemonstrativoNavioService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }
    ]; };
    DemonstrativoNavioService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]])
    ], DemonstrativoNavioService);
    return DemonstrativoNavioService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-rocha-movimentos-demonstrativo-navio-demonstrativo-navio-module.js.map