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.
		
		
		
		
			
				
					168 lines
				
				9.6 KiB
			
		
		
			
		
	
	
					168 lines
				
				9.6 KiB
			| 
								 
											1 year ago
										 
									 | 
							
								<?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>
							 | 
						||
| 
								 | 
							
								        <center>
							 | 
						||
| 
								 | 
							
								            <ui:composition template="./template/Principal.xhtml">
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                <ui:define name="top" >
							 | 
						||
| 
								 | 
							
								                    Sistema de inventario   
							 | 
						||
| 
								 | 
							
								                </ui:define>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                <ui:define name="left">
							 | 
						||
| 
								 | 
							
								                    <div class="card">
							 | 
						||
| 
								 | 
							
								                        <h:form>
							 | 
						||
| 
								 | 
							
								                            <p:growl id="messages"/>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                            <p:menubar>
							 | 
						||
| 
								 | 
							
								                                <p:menuitem value="Agregar" icon="pi pi-fw pi-plus" 
							 | 
						||
| 
								 | 
							
								                                            action="UsuarioCrear.xhtml"
							 | 
						||
| 
								 | 
							
								                                            actionListener="#{demoBeanUsuario.preparar()}"/>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                                <p:menuitem value="Departamento" icon="pi pi-fw pi-building " action="Departamento.xhtml"/>
							 | 
						||
| 
								 | 
							
								                                <p:menuitem value="Marca" icon="pi pi-fw pi-tag" action="Marca.xhtml"/>
							 | 
						||
| 
								 | 
							
								                                <p:menuitem value="Producto" icon="pi pi-fw pi-shopping-bag" action="Producto.xhtml"/>
							 | 
						||
| 
								 | 
							
								                                <p:menuitem value="Proveedor" icon="pi pi-fw pi-truck" action="Provedor.xhtml"/>
							 | 
						||
| 
								 | 
							
								                                <!-- comment      <p:menuitem value="Registro" icon="pi pi-fw pi-book " disabled="true" action="Registro.xhtml"/> -->
							 | 
						||
| 
								 | 
							
								                                <p:menuitem value="Tipo" icon="pi pi-fw pi-table" action="Tipo.xhtml"/>
							 | 
						||
| 
								 | 
							
								                                <p:menuitem value="Usuario" icon="pi pi-fw pi-user" disabled="true" action="Usuario.xhtml"/>
							 | 
						||
| 
								 | 
							
								                                <p:menuitem value="Inicio" icon="pi pi-fw pi-home" action="Menu.xhtml"/>
							 | 
						||
| 
								 | 
							
								                                <p:divider layout="vertical"/>
							 | 
						||
| 
								 | 
							
								                            </p:menubar>
							 | 
						||
| 
								 | 
							
								                        </h:form> 
							 | 
						||
| 
								 | 
							
								                    </div>
							 | 
						||
| 
								 | 
							
								                </ui:define>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                <ui:define name="right">
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                </ui:define>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                <ui:define name="content">
							 | 
						||
| 
								 | 
							
								                    <h:form style="text-align: center; margin-top: 20px;">
							 | 
						||
| 
								 | 
							
								                        
							 | 
						||
| 
								 | 
							
								                    </h:form>
							 | 
						||
| 
								 | 
							
								                    <f:view>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                        <h:form>
							 | 
						||
| 
								 | 
							
								                            
							 | 
						||
| 
								 | 
							
								                            <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/White_chicken_egg_square.jpg/250px-White_chicken_egg_square.jpg" style="position: absolute; left: 200px; " width="50" height="50"/>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                            <h3><h:outputText value="Usuarios"/></h3>
							 | 
						||
| 
								 | 
							
								                            
							 | 
						||
| 
								 | 
							
								                            <p:dataTable value="#{demoBeanUsuario.usuarios}" var="item"
							 | 
						||
| 
								 | 
							
								                                         widgetVar="usuarios"
							 | 
						||
| 
								 | 
							
								                                         emptyMessage="No coincide con ningun registro"
							 | 
						||
| 
								 | 
							
								                                         filteredValue="#{demoBeanUsuario.filteredCustomers3}"
							 | 
						||
| 
								 | 
							
								                                         globalFilterFunction="#{demoBeanUsuario.globalFilterFunction}">
							 | 
						||
| 
								 | 
							
								                                <f:facet name="header">
							 | 
						||
| 
								 | 
							
								                                    <div class="flex justify-content-end" style="position: absolute; right: 40px; top: 190px; ">
							 | 
						||
| 
								 | 
							
								                                        <p:inputText id="globalFilter" onkeyup="PF('usuarios').filter()" style="width:300px"
							 | 
						||
| 
								 | 
							
								                                                     placeholder="Buscar" />
							 | 
						||
| 
								 | 
							
								                                    </div>
							 | 
						||
| 
								 | 
							
								                                </f:facet>
							 | 
						||
| 
								 | 
							
								                                <p:column style="width: 10px;">
							 | 
						||
| 
								 | 
							
								                                    <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="Nombre"/>
							 | 
						||
| 
								 | 
							
								                                    </f:facet>
							 | 
						||
| 
								 | 
							
								                                    <h:outputText value="#{item.nombre}"/>
							 | 
						||
| 
								 | 
							
								                                </p:column>
							 | 
						||
| 
								 | 
							
								                                <p:column style="width: 20px;">
							 | 
						||
| 
								 | 
							
								                                    <f:facet name="header">
							 | 
						||
| 
								 | 
							
								                                        <h:outputText value="Sexo"/>
							 | 
						||
| 
								 | 
							
								                                    </f:facet>
							 | 
						||
| 
								 | 
							
								                                    <h:outputText value="#{item.sexo}"/>
							 | 
						||
| 
								 | 
							
								                                </p:column>
							 | 
						||
| 
								 | 
							
								                                <p:column style="width: 50px;">
							 | 
						||
| 
								 | 
							
								                                    <f:facet name="header">
							 | 
						||
| 
								 | 
							
								                                        <h:outputText value="Telefono"/>
							 | 
						||
| 
								 | 
							
								                                    </f:facet>
							 | 
						||
| 
								 | 
							
								                                    <h:outputText value="#{item.telefono}"/>
							 | 
						||
| 
								 | 
							
								                                </p:column>
							 | 
						||
| 
								 | 
							
								                                <p:column>
							 | 
						||
| 
								 | 
							
								                                    <f:facet name="header">
							 | 
						||
| 
								 | 
							
								                                        <h:outputText value="Correo"/>
							 | 
						||
| 
								 | 
							
								                                    </f:facet>
							 | 
						||
| 
								 | 
							
								                                    <h:outputText value="#{item.correo}"/>
							 | 
						||
| 
								 | 
							
								                                </p:column>
							 | 
						||
| 
								 | 
							
								                                <p:column>
							 | 
						||
| 
								 | 
							
								                                    <f:facet name="header">
							 | 
						||
| 
								 | 
							
								                                        <h:outputText value="Direccion"/>
							 | 
						||
| 
								 | 
							
								                                    </f:facet>
							 | 
						||
| 
								 | 
							
								                                    <h:outputText value="#{item.direccion}"/>
							 | 
						||
| 
								 | 
							
								                                </p:column>
							 | 
						||
| 
								 | 
							
								                                <p:column style="width: 50px;">
							 | 
						||
| 
								 | 
							
								                                    <f:facet name="header">
							 | 
						||
| 
								 | 
							
								                                        <h:outputText value="Estado"/>
							 | 
						||
| 
								 | 
							
								                                    </f:facet>
							 | 
						||
| 
								 | 
							
								                                    <h:outputText value="#{item.estadoIdestado}"/>
							 | 
						||
| 
								 | 
							
								                                </p:column>
							 | 
						||
| 
								 | 
							
								                                <p:column style="width: 15px;">
							 | 
						||
| 
								 | 
							
								                                    <f:facet name="header">
							 | 
						||
| 
								 | 
							
								                                        <h:outputText value="Rol"/>
							 | 
						||
| 
								 | 
							
								                                    </f:facet>
							 | 
						||
| 
								 | 
							
								                                    <h:outputText value="#{item.rolIdrol}"/>
							 | 
						||
| 
								 | 
							
								                                </p:column>
							 | 
						||
| 
								 | 
							
								                                <p:column>
							 | 
						||
| 
								 | 
							
								                                    <f:facet name="header">
							 | 
						||
| 
								 | 
							
								                                        <h:outputText value="Password"/>
							 | 
						||
| 
								 | 
							
								                                    </f:facet>
							 | 
						||
| 
								 | 
							
								                                    <h:outputText value="#{item.npila}"/>   
							 | 
						||
| 
								 | 
							
								                                </p:column>
							 | 
						||
| 
								 | 
							
								                                <p:column>
							 | 
						||
| 
								 | 
							
								                                    <f:facet name="header">
							 | 
						||
| 
								 | 
							
								                                        <h:outputText value="Username"/>
							 | 
						||
| 
								 | 
							
								                                    </f:facet>
							 | 
						||
| 
								 | 
							
								                                    <h:outputText value="#{item.username}"/>
							 | 
						||
| 
								 | 
							
								                                </p:column>                               
							 | 
						||
| 
								 | 
							
								                                <p:column>
							 | 
						||
| 
								 | 
							
								                                    <f:facet name="header">
							 | 
						||
| 
								 | 
							
								                                        <h:outputText value="Status"/>
							 | 
						||
| 
								 | 
							
								                                    </f:facet>
							 | 
						||
| 
								 | 
							
								                                    <h:outputText value="#{item.status == 1 ? 'activo':'inactivo'}"/>
							 | 
						||
| 
								 | 
							
								                                </p:column>
							 | 
						||
| 
								 | 
							
								                                <p:column>
							 | 
						||
| 
								 | 
							
								                                    <f:facet name="header">
							 | 
						||
| 
								 | 
							
								                                        <h:outputText value="Opciones"/>
							 | 
						||
| 
								 | 
							
								                                    </f:facet>                                    
							 | 
						||
| 
								 | 
							
								                                    <p:commandButton action="UsuarioCrear.xhtml" icon="pi pi-fw pi-pencil"
							 | 
						||
| 
								 | 
							
								                                                     actionListener="#{demoBeanUsuario.prepararEditar(item)}"
							 | 
						||
| 
								 | 
							
								                                                     style="padding: 2px 8px; font-size: 11px; font-weight: bold; color: #3366FF; background-color: #fff; border: 2px solid #3366FF; border-radius: 8px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease ; margin-right: 6px;"
							 | 
						||
| 
								 | 
							
								                                                     value="Editar"
							 | 
						||
| 
								 | 
							
								                                                     ajax="false"/>                                   
							 | 
						||
| 
								 | 
							
								                                    <p:commandButton action="UsuarioEliminar.xhtml" icon="pi pi-fw pi-trash"
							 | 
						||
| 
								 | 
							
								                                                     actionListener="#{demoBeanUsuario.prepararEliminar(item)}" 
							 | 
						||
| 
								 | 
							
								                                                     value="Eliminar" 
							 | 
						||
| 
								 | 
							
								                                                     style=" padding: 2px 8px; font-size: 11px; font-weight: bold; color: #990000; background-color: #fff; border: 2px solid #FF0000; border-radius: 8px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; margin-right: 6px;"
							 | 
						||
| 
								 | 
							
								                                                     ajax="false"/>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                                </p:column>
							 | 
						||
| 
								 | 
							
								                            </p:dataTable>
							 | 
						||
| 
								 | 
							
								                        </h:form>
							 | 
						||
| 
								 | 
							
								                    </f:view>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                </ui:define>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								                <ui:define name="bottom">
							 | 
						||
| 
								 | 
							
								                    
							 | 
						||
| 
								 | 
							
								                </ui:define>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								            </ui:composition>
							 | 
						||
| 
								 | 
							
								            
							 | 
						||
| 
								 | 
							
								        </center>
							 | 
						||
| 
								 | 
							
								    </body>
							 | 
						||
| 
								 | 
							
								</html>
							 |