You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
6.4 KiB
122 lines
6.4 KiB
<?xml version='1.0' encoding='UTF-8' ?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
|
xmlns:h="http://xmlns.jcp.org/jsf/html"
|
|
xmlns:f="http://xmlns.jcp.org/jsf/core"
|
|
xmlns:p="http://primefaces.org/ui">
|
|
|
|
<body>
|
|
|
|
<ui:composition template="./template/PrincipalE.xhtml">
|
|
|
|
<ui:define name="top">
|
|
top
|
|
</ui:define>
|
|
|
|
<ui:define name="left">
|
|
<div class="card">
|
|
<h:form>
|
|
<p:growl id="messages" showDetail="true"/>
|
|
<p:tieredMenu style="width:165px" >
|
|
<p:submenu label="Usuarios" icon="pi pi-fw pi-user">
|
|
<p:submenu label="Opciones">
|
|
<p:menuitem value="Lista de usuarios" outcome="UsuariosLista.xhtml" ajax="false"/>
|
|
</p:submenu>
|
|
</p:submenu>
|
|
<p:submenu label="Categorias" icon="pi pi-fw pi-tags">
|
|
<p:submenu label="Opciones">
|
|
<p:menuitem value="Lista de categorias" outcome="CategoriasLista.xhtml" ajax="false"/>
|
|
</p:submenu>
|
|
</p:submenu>
|
|
<p:submenu label="Detalles" icon="pi pi-fw pi-file">
|
|
<p:submenu label="Opciones" >
|
|
<p:menuitem value="Lista de detalles" outcome="detallespLista.xhtml" ajax="false"/>
|
|
</p:submenu>
|
|
</p:submenu>
|
|
<p:submenu label="Productos" icon="pi pi-fw pi-shopping-cart">
|
|
<p:submenu label="Opciones">
|
|
<p:menuitem value="Lista de productos" outcome="ProductosLista.xhtml" ajax="false"/>
|
|
</p:submenu>
|
|
</p:submenu>
|
|
<p:submenu label="Proveedores" icon="pi pi-fw pi-users">
|
|
<p:submenu label="Opciones">
|
|
<p:menuitem value="Lista de proveedores" outcome="ProveedoresLista.xhtml" ajax="false"/>
|
|
</p:submenu>
|
|
</p:submenu>
|
|
<p:submenu label="Pedidos" icon="pi pi-fw pi-calendar">
|
|
<p:submenu label="Opciones">
|
|
<p:menuitem value="Lista de pedidos" outcome="PedidosLista.xhtml" ajax="false"/>
|
|
</p:submenu>
|
|
</p:submenu>
|
|
<p:divider/>
|
|
<p:menuitem value="Salir" icon="pi pi-fw pi-power-off" action="#{loginDem.logout()}"/>
|
|
</p:tieredMenu>
|
|
</h:form>
|
|
</div>
|
|
</ui:define>
|
|
|
|
<ui:define name="content">
|
|
<f:view>
|
|
<h:form>
|
|
<p:commandButton styleClass="rounded-button ui-button-success" action="detallespCrearEditar.xhtml" icon="pi pi-fw pi-plus" actionListener="#{demoBeanDetallesp.prepararNuevo()}" value="AGREGAR" ajax="true"/>
|
|
<h:form>
|
|
<div style="text-align: center;">
|
|
<h1><h:outputText value="DETALLES"/></h1>
|
|
</div>
|
|
<p:dataTable value="#{demoBeanDetallesp.all}" var="item">
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Id"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.id}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Cantidad"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.cantidad}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="PrecioU"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.precioU}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="PedidosId"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.pedidosId}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="ProductosId"/>
|
|
</f:facet>
|
|
<h:outputText value="#{item.productosId}"/>
|
|
</p:column>
|
|
<p:column>
|
|
<f:facet name="header">
|
|
<h:outputText value="Opciones"/>
|
|
</f:facet>
|
|
<p:commandButton styleClass="rounded-button ui-button-warning" action="detallespCrearEditar.xhtml" actionListener="#{demoBeanDetallesp.prepararEditar(item)}" value="Editar" ajax="false"/>
|
|
<p:commandButton styleClass="rounded-button ui-button-danger" action="detallespEliminar.xhtml" actionListener="#{demoBeanDetallesp.prepararEliminar(item)}" value="Eliminar" ajax="false"/>
|
|
</p:column>
|
|
</p:dataTable>
|
|
</h:form>
|
|
</h:form>
|
|
</f:view>
|
|
|
|
</ui:define>
|
|
|
|
<ui:define name="bottom">
|
|
|
|
</ui:define>
|
|
|
|
</ui:composition>
|
|
<script>
|
|
$.fn.dataTable.ext.errMode = 'none';
|
|
new DataTable('table');
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|