<%@ page language="VB" masterpagefile="~/master/master/mas_mobile.master" autoeventwireup="false" inherits="samm_mobile.mob_app_consultaRef, App_Web_opskwsrb" %>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_general" Runat="Server">
    &nbsp;<asp:HyperLink ID="lnk_menu" runat="server" CssClass="hpr" NavigateUrl="../app/menuComercial.aspx">Menú</asp:HyperLink><br />
    <table>
        <tr>
            <td>
                <asp:Label ID="lbl_tipo" runat="server" Text="Estado:" CssClass="lbl"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drp_tipo" runat="server" CssClass="drp">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_catalogo" runat="server" Text="Referencia:" CssClass="lbl"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txt_catalogo" runat="server" CssClass="txt"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_bodega" runat="server" CssClass="lbl"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drpBodega" runat="server" CssClass="drp">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btn_buscar" runat="server" CssClass="btn" Text="Buscar" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="grvRef" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" AutoGenerateColumns="false">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:TemplateField HeaderText="Catalogo">
                <ItemTemplate>
                     <asp:Label ID="lbl_lista" runat="server" Text='<%# eval("lista") %>' Visible='<%# IIF(eval("id")=0,true,false) %>'></asp:Label>
                     <asp:Label ID="lbl_catalogo" runat="server" Text='<%# eval("catalogo") %>' Visible='<%# IIF(eval("id")>0,true,false) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Precio">
                <ItemTemplate>
                     <asp:Label ID="lbl_precio" runat="server" Text='<%# eval("precio") %>' ></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Existencia">
                <ItemTemplate>
                     <asp:Label ID="lbl_existencia" runat="server" Text='<%# eval("existencia") %>' Visible='<%# IIF(eval("id")>0,true,false) %>' ></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <%--<asp:BoundField DataField="cliente" HeaderText="Cliente" />--%>
            
        </Columns>
    </asp:GridView>
</asp:Content>
