@ -5,7 +5,17 @@
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:p="http://primefaces.org/ui">
< style >
body {
background-image: url('https://i.pinimg.com/originals/b7/8e/38/b78e38afa122ed09c12675d352e1ec3d.jpg');
background-repeat: no-repeat;
background-size: cover;
}
< / style >
< body >
< ui:composition template = "./template/VistasChidas.xhtml" >
@ -14,47 +24,47 @@
< h:form >
< p:menubar >
< p:submenu label = "USUARIOS" icon = "pi pi-user" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "usuarioLista.xhtml" / >
< p:menuitem value = "Agregar" action = "usuarioLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "PRODUCTOS" icon = "pi pi-shopping-bag" style = "font-size: 15px;" >
< p:menuitem value = "Ir" action = "ProductoLista.xhtml" / >
< p:menuitem value = "Ir" action = "ProductoLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "MARCA" icon = "pi pi-tags" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "MarcaLista.xhtml" / >
< p:menuitem value = "Agregar" action = "MarcaLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "CATEGORIA" icon = "pi pi-th-large" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "CategoriaLista.xhtml" / >
< p:menuitem value = "Agregar" action = "CategoriaLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "PASILLO" icon = "pi pi-paypal" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "PasilloLista.xhtml" / >
< p:menuitem value = "Agregar" action = "PasilloLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "RESGUARDO" icon = "pi pi-cloud" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "ResguardoLista.xhtml" / >
< p:menuitem value = "Agregar" action = "ResguardoLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "ROL" icon = "pi pi-id-card" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "RolLista.xhtml" / >
< p:menuitem value = "Agregar" action = "RolLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "UBICACION" icon = "pi pi-map" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "UbicacionLista.xhtml" / >
< p:menuitem value = "Agregar" action = "UbicacionLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "ESTANTE" icon = "pi pi-map-marker" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "estanteLista.xhtml" / >
< p:menuitem value = "Agregar" action = "estanteLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "PROVEEDORES" icon = "pi pi-users" style = "font-size: 15px;" >
< p:menuitem value = "Agregar" action = "proveedoresLista.xhtml" / >
< p:menuitem value = "Agregar" action = "proveedoresLista.xhtml" ajax = "false" / >
< / p:submenu >
< p:submenu label = "Cerrar sesion" icon = "pi pi-sign-out" style = "font-size: 15px; " >
< p:menuitem value = "Cerrar" action = "#{login.logout}" / >
< p:menuitem value = "Cerrar" action = "#{login.logout}" ajax = "false" / >
< / p:submenu >
@ -65,14 +75,14 @@
< ui:define name = "content" >
< ui:define name = "content" >
< f:view >
< h:form id = "formtabla" >
< h1 style = "text-align: center; background-color: #5F9FDB; padding: 30px; color: #000 ; font-size: 2em; margin-bottom: 20px;" > LISTA PRODUCTOS< / h1 >
< h:form id = "formtabla" >
< h1 style = "text-align: center; background-color: #5F9FDB; color: #000; padding: 30px; font-size: 2em; margin-bottom: 20px;" > LISTA PRODUCTOS< / h1 >
< p:dataTable id = "tabla" value = "#{productoBean.productos}" var = "item"
@ -80,9 +90,12 @@
emptyMessage="No customers found with given criteria"
filteredValue="#{productoBean.filteredCustomers3}"
globalFilterFunction="#{productoBean.globalFilterFunction}"
scrollable="true" scrollHeight="350">
< f:facet name = "header" >
< div class = "flex justify-content-end" >
scrollable="true" scrollHeight="350"
>
< f:facet name = "header" >
< div class = "flex justify-content-end" >
< p:inputText id = "globalFilter" onkeyup = "PF('customersTable3').filter()" style = "width:300px; float: right; "
placeholder="Buscar" />
< p:commandButton ajax = "true" oncomplete = "PF('dlg').show();" actionListener = "#{productoBean.PrepararNuevo()}" immediate = "true" icon = "pi pi-plus" value = "Nuevo" update = ":dialog" styleClass = "rounded-button ui-button-info" / >
@ -93,7 +106,7 @@
< / f:facet >
< p:column >
< p:column >
< f:facet name = "header" >
< h:outputText value = "Id" / >
< / f:facet >
@ -170,7 +183,7 @@
< / h:form >
< p:dialog id = "dialog" widgetVar = "dlg" width = "600" height = "550" modal = "true" >
< p:dialog id = "dialog" widgetVar = "dlg" width = "600" height = "550" modal = "true" >
< h:form >
< h1 style = "text-align: center; background-color: #5F9FDB; padding: 30px; color: #000; font-size: 2em; margin-bottom: 20px;" > < h:outputText value = "#{productoBean.titulo}" / > < / h1 >
@ -178,7 +191,7 @@
< h:panelGrid id = "grid" columns = "3" >
< p:outputLabel value = "Codigo:" for = "codigo" / >
< p:inputText id = "codigo" value = "#{productoBean.producto.codigo}" title = "Codigo" required = "true" validatorMessage = "Solo se aceptan Numeros" requiredMessage = "Este campo es requerido." >
< p:inputText id = "codigo" value = "#{productoBean.producto.codigo}" title = "Codigo" required = "true" validatorMessage = "Son 10 Numeros" requiredMessage = "Este campo es requerido." >
< f:validateRegex pattern = "^\d{10}$" for = "codigo" / >
< / p:inputText >
< p:message for = "codigo" / >
@ -235,9 +248,9 @@
< p >
< p:commandButton action = "#{productoBean.agregarProducto()}" value = "Agregar" icon = "pi pi-plus-circle" styleClass = "ui-button-outlined ui-button-success" update = "grid,formtabla:tabla" rendered = "#{productoBean.nuevo}" / >
< p:commandButton action = "ProductoLista.xhtml" actionListener = "#{productoBean.editarProducto()}" value = "Editar" update = "grid,formtabla:tabla" styleClass = "ui-button-outlined ui-button-success" icon = "pi pi-pencil" rendered = "#{!productoBean.nuevo}" / >
< p:commandButton ajax = "false" action = "ProductoLista.xhtml" value = "Cancelar" immediate = "true" icon = "pi pi-times-circle" styleClass = "ui-button-outlined ui-button-danger" / >
< p:commandButton action = "#{productoBean.agregarProducto()}" value = "Agregar" icon = "pi pi-plus-circle" styleClass = "ui-button-outlined ui-button-success" update = "grid,formtabla:tabla" rendered = "#{productoBean.nuevo}" / >
< p:commandButton action = "ProductoLista.xhtml" actionListener = "#{productoBean.editarProducto()}" value = "Editar" update = "grid,formtabla:tabla" styleClass = "ui-button-outlined ui-button-success" icon = "pi pi-pencil" rendered = "#{!productoBean.nuevo}" / >
< p:commandButton ajax = "false" action = "ProductoLista.xhtml" value = "Cancelar" immediate = "true" icon = "pi pi-times-circle" styleClass = "ui-button-outlined ui-button-danger" / >
< / p >
< / center >
< / h:form >