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

<asp:Content ID="Content2" ContentPlaceHolderID="cph_general" runat="Server">
    &nbsp;<asp:HyperLink ID="hpl_menu" runat="server" CssClass="hpr" NavigateUrl="../app/menu.aspx"></asp:HyperLink>
    &nbsp;<asp:HyperLink ID="hpl_volver" runat="server" CssClass="hpr" NavigateUrl="../srv/OT.aspx"></asp:HyperLink>
    <br />&nbsp;<asp:HyperLink ID="hyp_Estado" runat="server" CssClass="hpr" NavigateUrl="../app/cambiarEstado.aspx"></asp:HyperLink>
    <table>
        <tr>
            <td>
                <asp:Label ID="lbl_ot" runat="server" Font-Bold="true" CssClass="lbl"></asp:Label>
                <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 colspan="3">
                <asp:Label ID="lbl_equipo" runat="server" Font-Bold="true" CssClass="lbl"></asp:Label>
            </td>
        </tr>
        <tr id="tr_bodega" runat="server">
            <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>
                <asp:Label ID="lbl_repuesto" runat="server" CssClass="lbl"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txt_buscarCatalogo" runat="server" CssClass="txt_grande"></asp:TextBox>
            </td>
            <td>
                <asp:Button ID="btn_buscarCatalogo" runat="server" CssClass="btn" Text="Buscar" CausesValidation="false" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:DropDownList ID="drpCatalogo" runat="server" AutoPostBack="true" CssClass="drp">
                </asp:DropDownList>
            </td>
            <td>
                <asp:HyperLink ID="hyp_nuevoRepuesto" runat="server" CssClass="hpr"></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="Urg">
                            <ItemTemplate>
                                <asp:CheckBox ID="chb_urg" runat="server" Checked='<%# eval("esUrgente") %>' />
                                <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>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="REF" DataField="catalogo" />
                        <asp:TemplateField HeaderText="<%$ Resources:res_campoGrilla,doc_itemdocumento_itemdocumento %>">
                            <ItemTemplate>
                                <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" Style="width: 20px;" Text='<%# eval("cantidad") %>' visible='<%# IIF(eval("id_catalogo")=0,false,true) %>'></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Motivo">
                            <ItemTemplate>
                                <asp:DropDownList ID="drp_incoterm" runat="server">
                                </asp:DropDownList>
                            </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>
        <tr>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
