<%@ page language="VB" masterpagefile="~/master/master/mas_mobile.master" autoeventwireup="false" inherits="samm_mobile.mob_app_ots, App_Web_kuxot6gh" %>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_general" Runat="Server">
    &nbsp;<asp:HyperLink ID="lnk_menu" runat="server" CssClass="hpr" NavigateUrl="../app/menu.aspx">Menú</asp:HyperLink><br />
    &nbsp;<asp:HyperLink ID="lnk_programacion" runat="server" CssClass="hpr" NavigateUrl="programacion.aspx">Programación</asp:HyperLink>
    <table>
        <tr>
            <td style="white-space:nowrap;">
                <asp:Label ID="lbl_prefijo" runat="server" Text="Prefijo:" CssClass="lbl"></asp:Label>
                <asp:TextBox ID="txt_prefijo" runat="server" CssClass="txt" Width="25px"></asp:TextBox>
            </td>
            <td>
                <asp:Label ID="lbl_numero" runat="server" Text="Numero:" CssClass="lbl"></asp:Label>
                <asp:TextBox ID="txt_numero" runat="server" CssClass="txt" Width="25px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_estado" runat="server" Text="Estado:" CssClass="lbl"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drp_estado" runat="server" CssClass="drp">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table id="tbl_coordinador" runat="server">
                    <tr>
                        <td>
                            <asp:Label ID="lbl_cliente" runat="server" Text="Cliente:" CssClass="lbl"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txt_cliente" runat="server" CssClass="txt"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btn_cliente" runat="server" CssClass="btn" Text="cli" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbl_sucursal" runat="server" Text="Sucursal:" CssClass="lbl"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="drp_sucursal" runat="server" CssClass="drp">
                            </asp:DropDownList>
                        </td>                    
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbl_grupo" runat="server" Text="Grupo:" CssClass="lbl"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="drp_grupo" runat="server" CssClass="drp">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:Button ID="btn_grupo" runat="server" CssClass="btn" Text="gru" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbl_tecnico" runat="server" Text="Tecnico:" CssClass="lbl"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="drp_tecnicos" runat="server" CssClass="drp">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btn_buscar" runat="server" CssClass="btn" Text="Buscar" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="grvOtes" 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="OTT">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "OT.aspx?id=" & eval("id") %>' Text='<%# eval("ott") & "-" & eval("#") %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <%--<asp:TemplateField HeaderText="REP">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "rep_1.aspx?ot=" & eval("id") %>' Text="RP"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <%--<asp:TemplateField HeaderText="REQ">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "rq_confirm.aspx?ot=" & eval("id") %>' Text='RQ'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <%--<asp:TemplateField HeaderText="EQ">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "datosEquipo.aspx?id=" & eval("id_equipo") %>' Text='EQ'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>--%>
            <asp:BoundField DataField="cliente" HeaderText="Cliente" />
            <asp:BoundField DataField="equipo" HeaderText="Equipo" />
            <asp:TemplateField HeaderText="Sucursal">
                <ItemTemplate>
                    <asp:Label ID="HyperLink2" runat="server" Visible='<%# IIF(eval("enTaller")=0,false,true) %>' Text='<%# "(" & eval("direccion") & ")" & " - " & eval("sucursal") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>            
            <asp:BoundField DataField="estado" HeaderText="Estado" />
        </Columns>
    </asp:GridView>
</asp:Content>

