<%@ page language="VB" masterpagefile="~/master/master/mas_mobile.master" autoeventwireup="false" inherits="samm_mobile.mob_app_itemCot, App_Web_s0gbbyyh" title="Untitled Page" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cph_general" runat="Server">
    <asp:HyperLink ID="hpl_menu" runat="server" CssClass="hpr" NavigateUrl="../app/menuComercial.aspx"></asp:HyperLink>
    <asp:HyperLink ID="hpl_volver" runat="server" CssClass="hpr" NavigateUrl="../srv/OT.aspx"></asp:HyperLink>
    <table>
        <tr>
            <td>
                <asp:HyperLink ID="hyp_imprimir" runat="server" CssClass="hpr" 
                    NavigateUrl="imp.aspx" Visible="False"></asp:HyperLink>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lbl_nuevoDOC" runat="server" Font-Bold="true" CssClass="lbl"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lbl_cliente" runat="server" Font-Bold="true" CssClass="lbl"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_subtotal" runat="server" CssClass="lbl"></asp:Label>
                <asp:Label ID="lbl_subtotales" runat="server" Font-Bold="true" CssClass="lbl"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lbl_iva" runat="server" CssClass="lbl"></asp:Label>
                <asp:Label ID="lbl_ivas" runat="server" Font-Bold="true" CssClass="lbl"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lbl_total" runat="server" CssClass="lbl"></asp:Label>
                <asp:Label ID="lbl_totales" runat="server" Font-Bold="true" CssClass="lbl"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:HyperLink ID="hyp_nuevoItem" runat="server" CssClass="hpr" visible="false"></asp:HyperLink>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <asp:GridView ID="grv_items" runat="server" 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="">
                            <ItemTemplate>
                                <asp:HyperLink ID="hyp_nuevoItem" runat="server" NavigateUrl='<%# "nuevoItem.aspx?doc=" & eval("id_documento") & "&items=" & eval("id") %>' Text="[+]" CssClass="hpr" visible='<%# IIF(eval("id_catalogo")=0,true,false) %>'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="REF" DataField="catalogo" />
                        <asp:TemplateField HeaderText="<%$ Resources:res_campoGrilla,doc_itemdocumento_itemdocumento %>">
                            <ItemTemplate>
                                <asp:Label ID="lbl_id" runat="server" Text='<%# eval("id") %>' Visible="false"></asp:Label>
                                <asp:Label ID="lbl_id_catalogo" runat="server" Visible="false" Text='<%#eval("id_catalogo") %>'></asp:Label>
                                <asp:Label ID="lbl_item" runat="server" Text='<%# eval("item_espacio") %>' CssClass="lbl_grilla"></asp:Label>
                                <asp:Label ID="txt_item" runat="server" Text='<%# eval("item") %>' CssClass="lbl_grilla"
                                    ToolTip='<%# eval("catalogo") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Cnt">
                            <ItemTemplate>
                                <asp:TextBox ID="txt_cantidad" runat="server" CssClass="txt" Style="width: 40px;" Text='<%# eval("cantidad") %>' visible='<%# IIF(eval("id_catalogo")=0,false,true) %>'></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Vlr">
                            <ItemTemplate>
                                <asp:TextBox ID="txt_valor" runat="server" CssClass="txt" Style="width: 80px;" Text='<%# eval("valor") %>' visible='<%# IIF(eval("id_catalogo")=0,false,true) %>'></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Desc">
                            <ItemTemplate>
                                <asp:TextBox ID="txt_descuento" runat="server" CssClass="txt" Style="width: 80px;" Text='<%# eval("descuento") %>' visible='<%# IIF(eval("id_catalogo")=0,false,true) %>'></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:ImageButton ID="imbEliminar" runat="server" CausesValidation="False" CommandName="Delete"
                                    ImageUrl="~/images/iconos/eliminar.gif" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="btnCrear" runat="server" CssClass="btn" Text="Guardar" ValidationGroup="ot" />
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Label ID="lbl_mensaje" runat="server" CssClass="lbl_mensaje"></asp:Label>
                <asp:ValidationSummary ID="vsm_ot" runat="server" ValidationGroup="ot" />
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
