|
|
@ -46,11 +46,11 @@ |
|
|
|
<div class="flex justify-content-end" style="height: 30px;" > |
|
|
|
<div> |
|
|
|
|
|
|
|
<p:commandButton ajax="true" oncomplete="PF('dlg').show();" actionListener="#{demoBeanMarca.prepararnuevo()}" |
|
|
|
<p:commandButton ajax="true" oncomplete="PF('dlg').show();" actionListener="#{demoBeanProductos.prepararNuevo()}" |
|
|
|
update=":dialog" value="Nuevo" icon="pi pi-plus" /> |
|
|
|
|
|
|
|
<i class="pi pi-search" style="margin-left: 690px; margin-top: 10px;"></i> |
|
|
|
<p:inputText id="globalFilter" onkeyup="PF('categorias').filter()" placeholder="Buscar producto" |
|
|
|
<p:inputText id="globalFilter" onkeyup="PF('productos').filter()" placeholder="Buscar producto" |
|
|
|
style="width:250px; margin-right: 120px; float: right; margin-top: -1px;" /> |
|
|
|
|
|
|
|
<p:commandButton value="Logout" ajax="false" icon="pi pi-sign-out" action="#{login.logout()}" style="background-color: #036FAB; width: 100px; float: right; margin-top: -40px " /> |
|
|
@ -58,43 +58,52 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
</f:facet> |
|
|
|
<p:column styleClass="columnaOpc"> |
|
|
|
<p:column styleClass="columnaId"> |
|
|
|
<f:facet name="header"> |
|
|
|
<h:outputText value="Id" style="font-weight: bolder;" /> |
|
|
|
<h:outputText value="Id" style="font-weight: bolder; " /> |
|
|
|
</f:facet> |
|
|
|
<h:outputText value="#{item.id}" /> |
|
|
|
</p:column> |
|
|
|
<p:column> |
|
|
|
|
|
|
|
|
|
|
|
<p:column style="text-align: center; right: 20px "> |
|
|
|
<f:facet name="header"> |
|
|
|
<h:outputText value="Nombre" style="font-weight:bolder; float: left;"/> |
|
|
|
<h:outputText value="Nombre" style="font-weight:bolder; right: 20px;"/> |
|
|
|
</f:facet> |
|
|
|
<h:outputText value="#{item.nombre}" /> |
|
|
|
</p:column> |
|
|
|
<p:column> |
|
|
|
|
|
|
|
|
|
|
|
<p:column style="text-align: center"> |
|
|
|
<f:facet name="header"> |
|
|
|
<h:outputText value="Codigo" style="font-weight:bolder; float: left;"/> |
|
|
|
<h:outputText value="Codigo" style="font-weight:bolder; right: 20px;"/> |
|
|
|
</f:facet> |
|
|
|
<h:outputText value="#{item.codigo}"/> |
|
|
|
</p:column> |
|
|
|
<p:column> |
|
|
|
|
|
|
|
|
|
|
|
<p:column style="text-align: center"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<f:facet name="header"> |
|
|
|
<h:outputText value="Precio" style="font-weight:bolder; float: left;"/> |
|
|
|
<h:outputText value="Precio" style="font-weight:bolder;right: 20px;"/> |
|
|
|
</f:facet> |
|
|
|
<h:outputText value=" $#{item.precio}" /> |
|
|
|
</p:column> |
|
|
|
|
|
|
|
<p:column> |
|
|
|
<p:column style="text-align: center"> |
|
|
|
<f:facet name="header"> |
|
|
|
<h:outputText value="Stock" style="font-weight:bolder; float: left;"/> |
|
|
|
<h:outputText value="Stock" style="font-weight:bolder; left: 20px;"/> |
|
|
|
</f:facet> |
|
|
|
<h:outputText value="#{item.stock}" /> |
|
|
|
</p:column> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p:column> |
|
|
|
<p:column style="text-align: center"> |
|
|
|
<f:facet name="header"> |
|
|
|
<h:outputText value="Categoria" style="font-weight:bolder; float: left;"/> |
|
|
|
<h:outputText value="Categoria" style="font-weight:bolder; left: 80px"/> |
|
|
|
</f:facet> |
|
|
|
<h:outputText value="#{item.categoriaId.nombre}"/> |
|
|
|
</p:column> |
|
|
|