(window.webpackJsonp=window.webpackJsonp||[]).push([[1051],{3125:function(t,e,n){"use strict";n.r(e);var r=n(42),component=Object(r.a)({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main-content"},[n("h:outputScript",{attrs:{name:"app/core.js",library:"js"}}),t._v(" "),t._m(0),t._v(" "),n("div",{attrs:{id:"conteudoEdit"}},[n("form",{attrs:{id:"inventarioForm"}},[n("p:focus"),t._v(" "),n("b-table",{staticStyle:{width:"99%"},attrs:{id:"dataInventario",var:"inventario",styleClass:"dataTable",value:"#{inventarioMBean.inventarios}",selectionMode:"single",rowKey:"#{inventario.id.idInventario}",selection:"#{inventarioMBean.inventario}",rows:"15",paginator:"#{inventarioMBean.inventarios.size() > 15}",emptyMessage:"Nenhum inventário foi encontrado."}},[n("p:ajax",{attrs:{process:"@this",event:"rowSelect",update:"dataInventario"}}),t._v(" "),n("f:facet",{attrs:{name:"header"}},[n("b-btn",{attrs:{value:"Adicionar",icon:"pi pi-file",process:"@this",actionListener:"#{inventarioMBean.add}",onclick:"alert('Página em desenvolvimento');"}}),t._v(" "),n("b-btn",{attrs:{value:"Alterar",icon:"icon-type-img",actionListener:"#{inventarioMBean.edit}",process:"@this",rendered:"#{inventarioMBean.inventario != null}",onclick:"alert('Página em desenvolvimento');"}}),t._v(" "),n("b-btn",{attrs:{icon:"pi pi-trash",type:"button",onclick:"PF('cnfDeleteInventarioDlg').show()",process:"@this dataInventario",rendered:"#{inventarioMBean.inventario != null}"}})],1),t._v(" "),n("p:column",{staticStyle:{width:"100px"},attrs:{headerText:"Data",sortBy:"#{inventario}",styleClass:"hvMiddle"}},[n("h:outputText",{attrs:{value:"#{inventario}"}},[n("f:convertDateTime",{attrs:{pattern:"dd/MM/yy hh:mm"}})],1)],1),t._v(" "),n("p:column",{staticStyle:{width:"300px"},attrs:{headerText:"Elemento"}},[n("h:outputText",{attrs:{value:""}})],1),t._v(" "),n("p:column",{staticStyle:{width:"300px"},attrs:{headerText:"Rodovia",sortBy:"#{inventario.idRodovia}"}},[n("h:outputText",{attrs:{value:"#{inventario.idRodovia}"}})],1),t._v(" "),n("p:column",{staticStyle:{width:"130px"},attrs:{headerText:"KM Inicial",sortBy:"#{inventario.kmInicial}",styleClass:"hvMiddle"}},[n("h:outputText",{attrs:{value:"#{inventario.kmInicial}"}})],1),t._v(" "),n("p:column",{staticStyle:{width:"130px"},attrs:{headerText:"KM Final",sortBy:"#{inventario.kmFinal}",styleClass:"hvMiddle"}},[n("h:outputText",{attrs:{value:"#{inventario.kmFinal}"}})],1),t._v(" "),n("p:column",{staticStyle:{width:"130px"},attrs:{headerText:"Data Início",sortBy:"#{inventario.datHorInicio}",styleClass:"hvMiddle"}},[n("h:outputText",{attrs:{value:"#{inventario.datHorInicio}"}},[n("f:convertDateTime",{attrs:{pattern:"dd/MM/yy hh:mm"}})],1)],1),t._v(" "),n("p:column",{staticStyle:{width:"130px"},attrs:{headerText:"Data Final",sortBy:"#{inventario.datHorFinal}",styleClass:"hvMiddle"}},[n("h:outputText",{attrs:{value:"#{inventario.datHorFinal}"}},[n("f:convertDateTime",{attrs:{pattern:"dd/MM/yy hh:mm"}})],1)],1),t._v(" "),n("p:column",{staticStyle:{width:"300px"},attrs:{headerText:"Responsável",styleClass:"hvMiddle"}},[n("h:outputText",{attrs:{value:"#{inventario.idResponsavel}"}})],1),t._v(" "),n("p:column",{staticStyle:{width:"130px"},attrs:{headerText:"Pista",styleClass:"hvMiddle",sortBy:"#{inventario.pista}"}},[n("h:outputText",{attrs:{value:"Simples",rendered:"#{inventario.pista eq 'S'.charAt(0)}"}}),t._v(" "),n("h:outputText",{attrs:{value:"Dupla",rendered:"#{inventario.pista eq 'D'.charAt(0)}"}})],1),t._v(" "),n("p:column",{staticStyle:{width:"130px"},attrs:{headerText:"Sentido",styleClass:"hvMiddle",sortBy:"#{inventario.sentido}"}},[n("h:outputText",{attrs:{value:"Norte",rendered:"#{inventario.sentido eq 'N'.charAt(0)}"}}),t._v(" "),n("h:outputText",{attrs:{value:"Sul",rendered:"#{inventario.sentido eq 'S'.charAt(0)}"}}),t._v(" "),n("h:outputText",{attrs:{value:"Oeste",rendered:"#{inventario.sentido eq 'L'.charAt(0)}"}}),t._v(" "),n("h:outputText",{attrs:{value:"Leste",rendered:"#{inventario.sentido eq 'O'.charAt(0)}"}})],1)],1)],1),t._v(" "),n("form",{attrs:{id:"delInventarioForm"}},[n("p:confirmDialog",{attrs:{id:"confirmDeleteinventarioDlg",widgetVar:"cnfDeleteInventarioDlg",appendTo:"@(body)",header:"Confirmar exclusão",severity:"alert"}},[n("f:facet",{attrs:{name:"message"}},[t._v('1">\n          '),n("h:outputText",{attrs:{value:"Confirma a exclusão deste inventário ?"}})],1),t._v(" "),n("b-btn",{attrs:{value:"Sim",icon:"icon-check",process:"@this :dataInventario",actionListener:"#{inventarioMBean.delete()}",update:":dataInventario",oncomplete:"PF('cnfDeleteInventarioDlg').hide()"}}),t._v(" "),n("b-btn",{attrs:{value:"Não",icon:"fas fa-times",onclick:"PF('cnfDeleteInventarioDlg').hide()"}})],1)],1)])],1)}),[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pgtit"},[n("span",{staticClass:"azul"},[n("i",{staticClass:"fas fa-angle-right"}),t._v("Inventário")])])}],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=e97209c-1.2.11.js.map