(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cargill-cadastros-posicao-de-estoque-posicao-de-estoque-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-filter/posicao-de-estoque-filter.component.html":
/*!*********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-filter/posicao-de-estoque-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=\"posicao-de-estoque-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaPosicaoDeEstoque' | translate }}</h6>\n            </div>\n            <div class=\"modal-body\">\n                <div class=\"row\">\n                    <div class=\"col-lg-12\">\n                        <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario\n                                                    id=\"destinatarioIdCliente\"\n                                                    name=\"destinatarioIdCliente\"\n                                                    label=\"cliente\"\n                                                    modalTitle=\"pesquisaDeCliente\"\n                                                    [(ngModel)]=\"service.filtro.destinatarioIdCliente\"\n                                                    [inSelected]=\"service.filtro.cliente\"\n                                                    (outModel)=\"trataCliente($event)\">\n                                            </app-pesquisa-destinatario>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <app-pesquisa-material \n                                            id=\"produto\" \n                                            name=\"produto\" \n                                            label=\"produto\"\n                                            modalTitle=\"pesquisaDeProduto\" \n                                            [(ngModel)]=\"service.filtro.materialId\"\n                                            [inSelected]=\"service.filtro.material\"\n                                            (outModel)=\"trataMaterial($event)\">\n                                        </app-pesquisa-material>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-destinatario\n                                                    id=\"destinatarioIdTerminal\"\n                                                    name=\"destinatarioIdTerminal\"\n                                                    label=\"terminal\"\n                                                    modalTitle=\"pesquisaDeTerminal\"\n                                                    [(ngModel)]=\"service.filtro.destinatarioIdTerminal\"\n                                                    [inSelected]=\"service.filtro.terminal\"\n                                                    (outModel)=\"trataTerminal($event)\">\n                                            </app-pesquisa-destinatario>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-md-6 col-lg-6\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"data\" class=\"required\">{{'labels.data' | translate}}</label>\n                                        <app-data-h-m-s\n                                            id=\"data\"\n                                            name=\"data\" \n                                            [(ngModel)]=\"service.filtro.dtRef\"\n                                            required autofocus>\n                                        </app-data-h-m-s>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"modal-footer\">\n                                <button class=\"btn btn-success\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}</button>\n                                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\n                            </div>\n                        </form>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-index/posicao-de-estoque-index.component.html":
/*!*******************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-index/posicao-de-estoque-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\"\n                      [formAction]=\"actionForm\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table  id=\"dtPosicaoDeEstoque\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-posicao-de-estoque-filter (filtrar)=\"executaFiltro()\"></app-posicao-de-estoque-filter>\n ");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-filter/posicao-de-estoque-filter.component.ts":
/*!*****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-filter/posicao-de-estoque-filter.component.ts ***!
  \*****************************************************************************************************************************************/
/*! exports provided: PosicaoDeEstoqueFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PosicaoDeEstoqueFilterComponent", function() { return PosicaoDeEstoqueFilterComponent; });
/* 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 _posicao_de_estoque_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../posicao-de-estoque.model */ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.model.ts");
/* harmony import */ var _posicao_de_estoque_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../posicao-de-estoque.service */ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.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 PosicaoDeEstoqueFilterComponent = /** @class */ (function () {
    function PosicaoDeEstoqueFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    PosicaoDeEstoqueFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _posicao_de_estoque_model__WEBPACK_IMPORTED_MODULE_2__["PosicaoDeEstoqueFilter"]();
        }
    };
    PosicaoDeEstoqueFilterComponent.prototype.trataMaterial = function (material) {
        this.service.filtro.material = material;
    };
    PosicaoDeEstoqueFilterComponent.prototype.trataTerminal = function (terminal) {
        this.service.filtro.terminal = terminal;
    };
    PosicaoDeEstoqueFilterComponent.prototype.trataCliente = function (cliente) {
        this.service.filtro.cliente = cliente;
    };
    PosicaoDeEstoqueFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (!form.invalid) {
            this.service.filtro.destinatarioIdCliente;
            this.service.filtro.destinatarioIdTerminal;
            this.service.filtro.materialId;
            this.service.filtro.dtRef;
            this.filtrar.emit();
            jQuery("#posicao-de-estoque-filter-dialog").modal("hide");
        }
    };
    PosicaoDeEstoqueFilterComponent.ctorParameters = function () { return [
        { type: _posicao_de_estoque_service__WEBPACK_IMPORTED_MODULE_3__["PosicaoDeEstoqueService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _posicao_de_estoque_model__WEBPACK_IMPORTED_MODULE_2__["PosicaoDeEstoqueFilter"])
    ], PosicaoDeEstoqueFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], PosicaoDeEstoqueFilterComponent.prototype, "filtrar", void 0);
    PosicaoDeEstoqueFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-posicao-de-estoque-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./posicao-de-estoque-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-filter/posicao-de-estoque-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_posicao_de_estoque_service__WEBPACK_IMPORTED_MODULE_3__["PosicaoDeEstoqueService"]])
    ], PosicaoDeEstoqueFilterComponent);
    return PosicaoDeEstoqueFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-index/posicao-de-estoque-index.component.ts":
/*!***************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-index/posicao-de-estoque-index.component.ts ***!
  \***************************************************************************************************************************************/
/*! exports provided: PosicaoDeEstoqueIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PosicaoDeEstoqueIndexComponent", function() { return PosicaoDeEstoqueIndexComponent; });
/* 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 _posicao_de_estoque_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../posicao-de-estoque.service */ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.service.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _posicao_de_estoque_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../posicao-de-estoque.model */ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.model.ts");
/* harmony import */ var _posicao_de_estoque_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../posicao-de-estoque.constants */ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.constants.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __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_13__ = __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 rxjs_operators__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/excel/excel.service */ "./src/app/shared/services/funcoes/excel/excel.service.ts");
/* harmony import */ var app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/components/report/report.service */ "./src/app/shared/components/report/report.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

















var PosicaoDeEstoqueIndexComponent = /** @class */ (function (_super) {
    __extends(PosicaoDeEstoqueIndexComponent, _super);
    function PosicaoDeEstoqueIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService, reportService, excelService) {
        var _this = _super.call(this, new _posicao_de_estoque_constants__WEBPACK_IMPORTED_MODULE_7__["PosicaoDeEstoqueConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.reportService = reportService;
        _this.excelService = excelService;
        _this.data = new _posicao_de_estoque_model__WEBPACK_IMPORTED_MODULE_6__["PosicaoDeEstoque"]();
        _this.constantes = new _posicao_de_estoque_constants__WEBPACK_IMPORTED_MODULE_7__["PosicaoDeEstoqueConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/cargill/cadastros/posicaoDeEstoque";
        _this.export = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 5, function () {
                _this.printParams();
                _this.reportService.exportEspecificos(_this.constantes.sisFormularioId, _this.constantes.paramRelatorio).subscribe(function (resp) {
                    var headerDictionary = {};
                    var options = {
                        headerJsonKeys: true,
                        headerDictionary: headerDictionary
                    };
                    resp.forEach(function (obj) {
                        delete obj.banda;
                    });
                    _this.excelService.exportAsExcelFile(resp, _this.messageService.getTranslates("titles", "posicaoDeEstoque"), options);
                });
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    PosicaoDeEstoqueIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.service.filtro = new _posicao_de_estoque_model__WEBPACK_IMPORTED_MODULE_6__["PosicaoDeEstoqueFilter"]();
                    _this.filtrar();
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'export', func: function () { return _this.export; } }
        ]);
    };
    PosicaoDeEstoqueIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getDados(this.service.filtro).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__["map"])(function (data) { return data.filter(function (item) { return item.banda === 'A'; }); })).subscribe(function (filteredData) {
            var columns = [
                _this.datatablesService.getDataString("terminalFantasia", "terminal"),
                _this.datatablesService.getDataString("clienteFantasia", "cliente"),
                _this.datatablesService.getDataString("produto", "produto"),
                _this.datatablesService.getDataDouble("entradas", "entradas", 0),
                _this.datatablesService.getDataDouble("saidas", "saidas", 0),
                _this.datatablesService.getDataDouble("pesoLiq", "pesoLiq", 0),
                _this.datatablesService.getDataDouble("retencao", "retencao", 0),
                _this.datatablesService.getDataDouble("saldoDisponivel", "disponivel", 0),
            ];
            _this.datatablesService.toDataTable({ tableId: "dtPosicaoDeEstoque", columns: columns, data: filteredData }, function (aData) {
                _this.data = aData;
            });
        });
    };
    PosicaoDeEstoqueIndexComponent.prototype.filtrar = function () {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_11__["EventEmitterService"].get("formError").emit(null);
        jQuery("#posicao-de-estoque-filter-dialog").modal("show");
    };
    PosicaoDeEstoqueIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    PosicaoDeEstoqueIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            _this.printParams();
            _super.prototype.print.call(_this, null, true);
        });
    };
    PosicaoDeEstoqueIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    PosicaoDeEstoqueIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    PosicaoDeEstoqueIndexComponent.prototype.printParams = function () {
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            destinatarioIdTerminal: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.service.filtro.destinatarioIdTerminal),
            destinatarioIdCliente: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.service.filtro.destinatarioIdCliente),
            materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["StringUtilsStaticService"].toString(this.service.filtro.materialId),
            dtRef: this.service.filtro.dtRef
        };
    };
    PosicaoDeEstoqueIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _posicao_de_estoque_service__WEBPACK_IMPORTED_MODULE_2__["PosicaoDeEstoqueService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"] },
        { type: app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_16__["ReportService"] },
        { type: app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_15__["ExcelService"] }
    ]; };
    PosicaoDeEstoqueIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-posicao-de-estoque-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./posicao-de-estoque-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-index/posicao-de-estoque-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _posicao_de_estoque_service__WEBPACK_IMPORTED_MODULE_2__["PosicaoDeEstoqueService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_9__["LoginService"],
            app_shared_components_report_report_service__WEBPACK_IMPORTED_MODULE_16__["ReportService"],
            app_shared_services_funcoes_excel_excel_service__WEBPACK_IMPORTED_MODULE_15__["ExcelService"]])
    ], PosicaoDeEstoqueIndexComponent);
    return PosicaoDeEstoqueIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.constants.ts":
/*!********************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.constants.ts ***!
  \********************************************************************************************************/
/*! exports provided: PosicaoDeEstoqueConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PosicaoDeEstoqueConstants", function() { return PosicaoDeEstoqueConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var PosicaoDeEstoqueConstants = /** @class */ (function () {
    function PosicaoDeEstoqueConstants() {
        this.sisFormularioId = 375103;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.gerarExcel" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.posicaoDeEstoque";
        this.reportId = "CAR0030";
        this.reportTitulo = { "titulo": "Posição de Estoque", "subTitulo": "" };
        this.listaIndex = [
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: false, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Export', action: 'export', icon: "icon-export", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: false }
        ];
        this.listaForm = [
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return PosicaoDeEstoqueConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.model.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.model.ts ***!
  \****************************************************************************************************/
/*! exports provided: PosicaoDeEstoque, PosicaoDeEstoqueFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PosicaoDeEstoque", function() { return PosicaoDeEstoque; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PosicaoDeEstoqueFilter", function() { return PosicaoDeEstoqueFilter; });
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__ = __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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var PosicaoDeEstoque = /** @class */ (function (_super) {
    __extends(PosicaoDeEstoque, _super);
    function PosicaoDeEstoque() {
        return _super.call(this) || this;
    }
    return PosicaoDeEstoque;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var PosicaoDeEstoqueFilter = /** @class */ (function () {
    function PosicaoDeEstoqueFilter() {
        this.dtRef = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_3__["DateTimeUtilsStaticService"].getFirstDayOfMonth(new Date());
        this.destinatarioIdCliente = 0;
        this.materialId = '';
        this.destinatarioIdTerminal = 0;
        this.material = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_1__["Material"]();
        this.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        this.terminal = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
    }
    return PosicaoDeEstoqueFilter;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.module.ts":
/*!*****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.module.ts ***!
  \*****************************************************************************************************/
/*! exports provided: PosicaoDeEstoqueModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PosicaoDeEstoqueModule", function() { return PosicaoDeEstoqueModule; });
/* 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 _posicao_de_estoque_filter_posicao_de_estoque_filter_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./posicao-de-estoque-filter/posicao-de-estoque-filter.component */ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-filter/posicao-de-estoque-filter.component.ts");
/* harmony import */ var _posicao_de_estoque_index_posicao_de_estoque_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./posicao-de-estoque-index/posicao-de-estoque-index.component */ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-index/posicao-de-estoque-index.component.ts");
/* harmony import */ var _posicao_de_estoque_routing_module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./posicao-de-estoque.routing.module */ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.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 PosicaoDeEstoqueModule = /** @class */ (function () {
    function PosicaoDeEstoqueModule() {
    }
    PosicaoDeEstoqueModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _posicao_de_estoque_index_posicao_de_estoque_index_component__WEBPACK_IMPORTED_MODULE_3__["PosicaoDeEstoqueIndexComponent"],
                _posicao_de_estoque_filter_posicao_de_estoque_filter_component__WEBPACK_IMPORTED_MODULE_2__["PosicaoDeEstoqueFilterComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _posicao_de_estoque_routing_module__WEBPACK_IMPORTED_MODULE_4__["PosicaoDeEstoqueRoutingModule"]
            ]
        })
    ], PosicaoDeEstoqueModule);
    return PosicaoDeEstoqueModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.routing.module.ts":
/*!*************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.routing.module.ts ***!
  \*************************************************************************************************************/
/*! exports provided: PosicaoDeEstoqueRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PosicaoDeEstoqueRoutingModule", function() { return PosicaoDeEstoqueRoutingModule; });
/* 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 _posicao_de_estoque_index_posicao_de_estoque_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./posicao-de-estoque-index/posicao-de-estoque-index.component */ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque-index/posicao-de-estoque-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 PosicaoDeEstoqueRoutes = [
    {
        path: "",
        component: _posicao_de_estoque_index_posicao_de_estoque_index_component__WEBPACK_IMPORTED_MODULE_3__["PosicaoDeEstoqueIndexComponent"],
        data: {
            breadcrumb: "posicaoDeEstoque",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    }
];
var PosicaoDeEstoqueRoutingModule = /** @class */ (function () {
    function PosicaoDeEstoqueRoutingModule() {
    }
    PosicaoDeEstoqueRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(PosicaoDeEstoqueRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], PosicaoDeEstoqueRoutingModule);
    return PosicaoDeEstoqueRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.service.ts":
/*!******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.service.ts ***!
  \******************************************************************************************************/
/*! exports provided: PosicaoDeEstoqueService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PosicaoDeEstoqueService", function() { return PosicaoDeEstoqueService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _posicao_de_estoque_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./posicao-de-estoque.model */ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.model.ts");
/* harmony import */ var _posicao_de_estoque_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./posicao-de-estoque.constants */ "./src/app/pages/especificos/cargill/cadastros/posicao-de-estoque/posicao-de-estoque.constants.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.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 PosicaoDeEstoqueService = /** @class */ (function (_super) {
    __extends(PosicaoDeEstoqueService, _super);
    function PosicaoDeEstoqueService(http) {
        var _this = _super.call(this, http, "cargill/posicaoDeEstoque") || this;
        _this.http = http;
        _this.filtro = new _posicao_de_estoque_model__WEBPACK_IMPORTED_MODULE_2__["PosicaoDeEstoqueFilter"]();
        _this.posicaoDeEstoque = new _posicao_de_estoque_model__WEBPACK_IMPORTED_MODULE_2__["PosicaoDeEstoque"]();
        _this.constantes = new _posicao_de_estoque_constants__WEBPACK_IMPORTED_MODULE_3__["PosicaoDeEstoqueConstants"]();
        return _this;
    }
    PosicaoDeEstoqueService.prototype.getDados = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_7__["environment"].specifics_service_url + "/api/v1/cargill/posicaoDeEstoque/getDados", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_6__["ErrorHandler"].handleError));
    };
    PosicaoDeEstoqueService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    PosicaoDeEstoqueService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], PosicaoDeEstoqueService);
    return PosicaoDeEstoqueService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_4__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cargill-cadastros-posicao-de-estoque-posicao-de-estoque-module.js.map