<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : Inventario
    Created on : 24-11-2008, 01:40:05 PM
    Author     : Daniel
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page id="page">
            <webuijsf:html id="html">
                <webuijsf:head id="head">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body focus="formInventario:tabSetMenu:tabItems:layoutPanelItems:treeCategories" id="body" style="-rave-layout: grid">
                    <webuijsf:form id="formInventario">
                        <webuijsf:tabSet id="tabSetMenu" mini="true" selected="tabHome" style="left: 0px; right: 0px; top: 0px; position: absolute; visibility: visible; width: 100%">
                            <webuijsf:tab actionExpression="#{Inventario.tabHome_action}" id="tabHome" text="Inicio">
                                <webuijsf:panelLayout id="layoutPanelHome" style="height: 256px; position: relative; -rave-layout: grid">
                                    <webuijsf:panelLayout binding="#{Inventario.layoutPanelLogin}" id="layoutPanelLogin" style="border-width: 2px; border-style: solid; border-color: rgb(255, 204, 0) rgb(255, 204, 0) rgb(255, 204, 0) rgb(255, 204, 0); background-color: rgb(255, 255, 153); height: 164px; left: 240px; top: 96px; position: absolute; width: 284px; -rave-layout: grid">
                                        <webuijsf:button actionExpression="#{Inventario.buttonlogin_action}" id="buttonlogin"
                                            style="height: 22px; left: 215px; top: 120px; position: absolute; width: 46px" text="Login"/>
                                        <webuijsf:alert binding="#{Inventario.alertLogin}" detail="Ingrese sus datos" id="alertLogin"
                                            style="left: 4px; top: 24px; position: absolute; width: 236px" summary="Zona Restringida" type="warning"/>
                                        <webuijsf:textField binding="#{Inventario.textFieldUser}" id="textFieldUser" label="user" required="true" style="left: 24px; top: 96px; position: absolute"/>
                                        <webuijsf:textField binding="#{Inventario.textFieldPass}" id="textFieldPass" label="pass" required="true" style="left: 24px; top: 120px; position: absolute"/>
                                    </webuijsf:panelLayout>
                                </webuijsf:panelLayout>
                            </webuijsf:tab>
                            <webuijsf:tab actionExpression="#{Inventario.tabFacturers_action}" id="tabFacturers" text="Fabricantes">
                                <webuijsf:panelLayout id="layoutPanelFacturers" panelLayout="flow" style="padding: 10px; height: 116px; width: 600px">
                                    <h:panelGrid cellpadding="5" columns="1" id="gridPanelFacturers" style=" text-align: right" width="600">
                                        <h:panelGrid id="gridPanelBoxFacturers" style="border: 1px solid #666666; background-color: rgb(236, 237, 237); height: 100%; width: 710px">
                                            <h:panelGrid columns="3" id="gridPanelFieldsFacturers" style=" height: 100%; width: 710px">
                                                <webuijsf:textField binding="#{Inventario.textFieldFacturerName}" columns="30" id="textFieldFacturerName"
                                                    label="Fabricante  " maxLength="30"/>
                                                <webuijsf:textField binding="#{Inventario.textFieldFacturerWeb}" columns="30" id="textFieldFacturerWeb"
                                                    label="http://" maxLength="30"/>
                                                <webuijsf:textField binding="#{Inventario.textFieldFacturerMail}" columns="30" id="textFieldFacturerMail"
                                                    label="E-Mail " maxLength="30"/>
                                            </h:panelGrid>
                                            <webuijsf:panelGroup id="groupPanelFacturers">
                                                <webuijsf:button actionExpression="#{Inventario.buttonAddFacturer_action}" id="buttonAddFacturer" text="Agregar"/>
                                                <webuijsf:button actionExpression="#{Inventario.buttonModFacturer_action}" escape="false" id="buttonModFacturer" text="Modificar"/>
                                            </webuijsf:panelGroup>
                                        </h:panelGrid>
                                        <webuijsf:table augmentTitle="false" id="tableFacturers" style="width: 720px" title="Table" width="720">
                                            <webuijsf:tableRowGroup binding="#{Inventario.tableRowGroupFacturers}" id="tableRowGroupFacturers" rows="10"
                                                sourceData="#{SessionBeanWeb.facturers}" sourceVar="currentRow">
                                                <webuijsf:tableColumn headerText="Fabricante" id="tableColumnFacturerName" sort="facturer_name">
                                                    <webuijsf:hyperlink actionExpression="#{Inventario.buttonEditFacturer_action}" id="staticTextFacturerName" text="#{currentRow.value['facturer_name']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="E-Mail" id="tableColumnFacturerMail" sort="contact_email">
                                                    <webuijsf:staticText id="staticTextFacturerMail" text="#{currentRow.value['contact_email']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Web Site" id="tableColumnFacturerWeb" sort="web_site" width="124">
                                                    <webuijsf:hyperlink actionExpression="#{Inventario.staticTextFacturerWeb_action}" id="staticTextFacturerWeb"
                                                        target="_blank" text="#{currentRow.value['web_site']}" url="http://#{currentRow.value['web_site']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn id="tableColumnDeleteFacturer" width="21">
                                                    <webuijsf:imageHyperlink actionExpression="#{Inventario.buttonRemoveFacturer_action}"
                                                        id="imageHyperlinkDeleteFacturer" imageURL="/resources/delete_icono.jpeg" text=""/>
                                                </webuijsf:tableColumn>
                                            </webuijsf:tableRowGroup>
                                        </webuijsf:table>
                                    </h:panelGrid>
                                </webuijsf:panelLayout>
                            </webuijsf:tab>
                            <webuijsf:tab actionExpression="#{Inventario.tabSuppliers_action}" id="tabSuppliers" text="Proveedores">
                                <webuijsf:panelLayout id="layoutPanelSuppliers" style=" width: 740px;">
                                    <h:panelGrid cellpadding="5" columns="1" id="gridPanel4" style="padding: 10px; text-align: right" width="600">
                                        <h:panelGrid id="gridPanelEditSupplier" style="border: 1px solid #666666; background-color: rgb(236, 237, 237); height: 100%; width: 710px">
                                            <h:panelGrid columns="3" id="gridPanel6" style=" height: 100%; width: 710px">
                                                <webuijsf:textField binding="#{Inventario.textFieldSupplierName}" columns="30" id="textFieldSupplierName"
                                                    label="Proveedor  " maxLength="30"/>
                                                <webuijsf:textField binding="#{Inventario.textFieldSupplierWeb}" columns="30" id="textFieldSupplierWeb"
                                                    label="http://" maxLength="30"/>
                                                <webuijsf:textField binding="#{Inventario.textFieldSupplierMail}" columns="30" id="textFieldSupplierMail"
                                                    label="E-Mail " maxLength="30"/>
                                            </h:panelGrid>
                                            <webuijsf:panelGroup id="groupPanel2">
                                                <webuijsf:button actionExpression="#{Inventario.buttonAddSupplier_action}" id="buttonAddSupplier" text="Agregar"/>
                                                <webuijsf:button actionExpression="#{Inventario.buttonModSupplier_action}" id="buttonModSupplier" text="Modificar"/>
                                            </webuijsf:panelGroup>
                                        </h:panelGrid>
                                        <webuijsf:table augmentTitle="false" id="tableSuppliers" style="width: 720px" title="Proveedores" width="720">
                                            <webuijsf:tableRowGroup binding="#{Inventario.tableRowGroupSupplier}" id="tableRowGroupSupplier" rows="10"
                                                sourceData="#{SessionBeanWeb.suppliers}" sourceVar="currentRow">
                                                <webuijsf:tableColumn headerText="Proveedor" id="tableColumnSupplierName" noWrap="true" sort="distributor_name">
                                                    <webuijsf:hyperlink actionExpression="#{Inventario.buttonEditSupplier_action}" id="hyperlink1" text="#{currentRow.value['distributor_name']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Email Contacto" id="tableColumnSupplierMail" noWrap="true" sort="contact_email">
                                                    <webuijsf:staticText id="staticText7" text="#{currentRow.value['contact_email']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Sitio Web" id="tableColumnSupplierWeb" noWrap="true" sort="web_site" width="188">
                                                    <webuijsf:hyperlink actionExpression="#{Inventario.staticText8_action}" id="staticText8" target="_blank"
                                                        text="#{currentRow.value['web_site']}" url="http://#{currentRow.value['web_site']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn id="tableColumnDeleteSuplier" width="10">
                                                    <webuijsf:imageHyperlink actionExpression="#{Inventario.buttonRemoveSuplier_action}"
                                                        id="imageHyperlinkDeleteSuplier" imageURL="/resources/delete_icono.jpeg"/>
                                                </webuijsf:tableColumn>
                                            </webuijsf:tableRowGroup>
                                        </webuijsf:table>
                                    </h:panelGrid>
                                </webuijsf:panelLayout>
                            </webuijsf:tab>
                            <webuijsf:tab actionExpression="#{Inventario.tabItems_action}" id="tabItems" text="Items y Categorias">
                                <webuijsf:panelLayout id="layoutPanelItems">
                                    <h:panelGrid id="gridPanel1"
                                        style="margin: 5px; padding: 5px; background-color: rgb(236, 236, 251); left: 19px; top: 19px; position: absolute" width="360">
                                        <h:panelGrid columns="2" id="gridPanelBoxCategiorys"
                                            style="border-width: 1px; border-color: rgb(102, 102, 102); background-color: #d2cffc; height: 24px; text-align: right" width="312">
                                            <webuijsf:dropDown binding="#{Inventario.dropDownCats}" id="dropDownCats" immediate="true" items="#{SessionBeanWeb.categories}"/>
                                            <webuijsf:button actionExpression="#{Inventario.buttonViewItems_action}" id="buttonViewItems" text="VerCategoria"/>
                                        </h:panelGrid>
                                        <webuijsf:staticText binding="#{Inventario.titleCategory}" id="titleCategory"
                                            style="color: rgb(102, 102, 102); font-family: 'Arial','Helvetica',sans-serif; font-size: 18px; font-style: normal; font-weight: bolder"
                                            text="Todas las Categorias" toolTip="Agregar Items"/>
                                        <webuijsf:table augmentTitle="false" binding="#{Inventario.tableItems}" id="tableItems" title="Items" width="369">
                                            <webuijsf:tableRowGroup id="tableRowGroup1" rows="10" sourceData="#{SessionBeanWeb.items}" sourceVar="currentRow">
                                                <webuijsf:tableColumn headerText="ID" id="tableColumn1" noWrap="true" sort="id" spacerColumn="true" width="100">
                                                    <webuijsf:staticText id="staticText1" text="#{currentRow.value['id']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Item" id="tableColumn6" noWrap="true" sort="item_name" width="232">
                                                    <webuijsf:staticText id="staticText6" text="#{currentRow.value['item_name']}"/>
                                                </webuijsf:tableColumn>
                                            </webuijsf:tableRowGroup>
                                        </webuijsf:table>
                                    </h:panelGrid>
                                    <h:panelGrid id="gridPanel2"
                                        style="margin: 5px; padding: 5px; background-color: #ececfb; left: 427px; top: 115px; position: absolute; text-align: right" width="216">
                                        <webuijsf:staticText id="titleCategory1"
                                            style="color: rgb(102, 102, 102); font-family: 'Arial','Helvetica',sans-serif; font-size: 18px; font-style: normal; font-weight: bolder"
                                            text="Agregar Item" toolTip="Agregar Items"/>
                                        <webuijsf:dropDown binding="#{Inventario.dropDownCatsNewItem}" id="dropDownCatsNewItem" immediate="true"
                                            items="#{SessionBeanWeb.categories}" label="Categoria"/>
                                        <webuijsf:textField binding="#{Inventario.textFieldItemName}" id="textFieldItemName" label="Item" valueChangeListenerExpression="#{Inventario.textFieldItemName_processValueChange}"/>
                                        <webuijsf:button actionExpression="#{Inventario.buttonAddItem_action}" id="buttonAddItem" text="Agregar Item"/>
                                    </h:panelGrid>
                                    <h:panelGrid id="gridPanel3"
                                        style="margin: 5px; padding: 5px; background-color: rgb(236, 236, 251); left: 427px; top: 19px; position: absolute; text-align: right" width="216">
                                        <webuijsf:staticText id="titleCategory2"
                                            style="color: rgb(102, 102, 102); font-family: 'Arial','Helvetica',sans-serif; font-size: 18px; font-style: normal; font-weight: bolder"
                                            text="Agregar Categoria" toolTip="Agregar Items"/>
                                        <webuijsf:textField binding="#{Inventario.textFieldNewCat}" id="textFieldNewCat" valueChangeListenerExpression="#{Inventario.textFieldNewCat_processValueChange}"/>
                                        <webuijsf:button actionExpression="#{Inventario.button1_action}" id="button1" text="Agregar Categoria"/>
                                    </h:panelGrid>
                                </webuijsf:panelLayout>
                            </webuijsf:tab>
                            <webuijsf:tab actionExpression="#{Inventario.tabUser_action}" id="tabUser" text="Usuarios">
                                <webuijsf:panelLayout id="layoutPanel1" style="height: 182px; position: relative; width: 100%; -rave-layout: grid">
                                    <webuijsf:table augmentTitle="false" id="tableUsuarios" style="left: 24px; top: 72px; position: absolute"
                                        title="Tabla de Usuarios" width="720">
                                        <webuijsf:tableRowGroup id="tableRowGroup2" rows="10" sourceData="#{SessionBeanWeb.usuarios}" sourceVar="currentRow">
                                            <webuijsf:tableColumn headerText="Usuario" id="tableColumn2" sort="login">
                                                <webuijsf:staticText id="staticText2" text="#{currentRow.value['login']}"/>
                                            </webuijsf:tableColumn>
                                            <webuijsf:tableColumn headerText="Password" id="tableColumn3" sort="password">
                                                <webuijsf:staticText id="staticText3" text="#{currentRow.value['password']}"/>
                                            </webuijsf:tableColumn>
                                            <webuijsf:tableColumn headerText="Nombre" id="tableColumn4" sort="firstname">
                                                <webuijsf:staticText id="staticText4" text="#{currentRow.value['firstname']}"/>
                                            </webuijsf:tableColumn>
                                        </webuijsf:tableRowGroup>
                                    </webuijsf:table>
                                    <h:panelGrid columns="4" id="gridPanel5"
                                        style="padding: 4px; background-color: rgb(225, 232, 247); height: 24px; left: 24px; top: 24px; position: absolute" width="720">
                                        <webuijsf:textField binding="#{Inventario.textFieldUserLogin}" id="textFieldUserLogin" label="Usuario"/>
                                        <webuijsf:textField binding="#{Inventario.textFieldUserPass}" id="textFieldUserPass" label="Pass"/>
                                        <webuijsf:textField binding="#{Inventario.textFieldUserName}" id="textFieldUserName" label="Nombre"/>
                                        <webuijsf:button actionExpression="#{Inventario.buttonAddUser_action}" id="buttonAddUser" text="Agregar Usuario"/>
                                    </h:panelGrid>
                                </webuijsf:panelLayout>
                            </webuijsf:tab>
                            <webuijsf:tab id="tabSolicitud" text="Solicitud">
                                <webuijsf:panelLayout id="layoutPanel2" style="height: 206px; position: relative; width: 100%; -rave-layout: grid">
                                    <webuijsf:table augmentTitle="false" id="table1" style="left: 24px; top: 96px; position: absolute"
                                        title="Lista de Items a Solicitar" width="600">
                                        <webuijsf:tableRowGroup id="tableRowGroup3" rows="10" sourceData="#{SessionBeanWeb.listaSol}" sourceVar="currentRow">
                                            <webuijsf:tableColumn headerText="ID Item" id="tableColumn7" sort="item_id">
                                                <webuijsf:staticText id="staticText9" text="#{currentRow.value['item_id']}"/>
                                            </webuijsf:tableColumn>
                                            <webuijsf:tableColumn headerText="Nombre Item" id="tableColumn8" sort="item_name">
                                                <webuijsf:staticText id="staticText10" text="#{currentRow.value['item_name']}"/>
                                            </webuijsf:tableColumn>
                                            <webuijsf:tableColumn headerText="Cantidad" id="tableColumn5" sort="item_cant">
                                                <webuijsf:staticText id="staticText5" text="#{currentRow.value['item_cant']}"/>
                                            </webuijsf:tableColumn>
                                        </webuijsf:tableRowGroup>
                                    </webuijsf:table>
                                    <h:panelGrid columns="5" id="gridPanel7" style="height: 48px; left: 24px; top: 24px; position: absolute" width="624">
                                        <webuijsf:dropDown binding="#{Inventario.dropDownListaItems}" id="dropDownListaItems" items="#{SessionBeanWeb.itemList}" label="Item"/>
                                        <webuijsf:textField binding="#{Inventario.textFieldItemCant}" id="textFieldItemCant" label="Cantidad"/>
                                        <webuijsf:button actionExpression="#{Inventario.buttonSolAddItem_action}" id="buttonSolAddItem" text="Agregar Item"/>
                                        <webuijsf:button actionExpression="#{Inventario.buttonSolSend_action}" id="buttonSolSend" text="Enviar Solicitud"/>
                                        <webuijsf:button actionExpression="#{Inventario.buttonSolClean_action}" id="buttonSolClean" text="Limpiar Solicitud"/>
                                    </h:panelGrid>
                                </webuijsf:panelLayout>
                            </webuijsf:tab>
                        </webuijsf:tabSet>
                        <webuijsf:staticText id="staticText11"
                            style="color: #666666; font-size: 12px; font-weight: bolder; left: 648px; top: 10px; position: absolute" text="#{SessionBeanWeb.person.login}"/>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
