<%@ page language="VB" masterpagefile="~/master/master/mas_mobile.master" autoeventwireup="false" inherits="samm_mobile.mob_app_programacionXdia, App_Web_zh1h2gkl" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cph_general" runat="Server">
    <asp:HyperLink ID="lnk_menu" runat="server" NavigateUrl="../app/menu.aspx"></asp:HyperLink>
    <asp:HyperLink ID="lnk_programacion" runat="server" NavigateUrl="programacion.aspx"></asp:HyperLink>
    <table>
        <tr>
            <td>
                <asp:Label ID="lbl_fecha" runat="server" CssClass="lbl"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="grv_programacion" AutoGenerateColumns="False" runat="server" ShowHeader="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 ItemStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <asp:Label ID="lbl_idOT" runat="server" Text='<%# eval("id_ot") %>' Visible='false'></asp:Label>
                                <asp:HyperLink ID="hyp_ot" runat="server" Visible='<%# IIF(eval("id")=0,true,false) %>'
                                    NavigateUrl='<%# "OT.aspx?id=" & eval("id_ot") %>' Text='<%# eval("prefijo") %>'></asp:HyperLink>
                                <%--<asp:HyperLink ID="hyp_rq" runat="server" Visible='<%# IIF(eval("id")=0,true,false) %>'
                                    NavigateUrl='<%# "rq.aspx?ot=" & eval("id_ot") %>' Text='RQ'></asp:HyperLink>--%>
                                <asp:HyperLink ID="hyp_rep" runat="server" Visible='<%# IIF(eval("id")>0,true,false) %>'
                                    NavigateUrl='<%# "rep_1.aspx?ot=" & eval("id_ot") & "&ini=" & Request.QueryString("fec") & " " & eval("ini") & "&fin=" & eval("fin") %>' Text='REP'></asp:HyperLink>
                                <asp:Label ID="lbl_tec" runat="server" Text='<%# eval("nombre") %>' Visible='<%# IIF(eval("id")=-1,true,false) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Label ID="lbl_id" runat="server" Text='<%# eval("id") %>' Visible='false'></asp:Label>
                                <asp:Label ID="lbl_ini" runat="server" Text='<%# eval("ini") & "  -  " %>' Visible='<%# IIF(eval("id")>0,true,false) %>'></asp:Label>
                                <asp:Label ID="lbl_fin" runat="server" Text='<%# eval("fin") %>' Visible='<%# IIF(eval("id")>0,true,false) %>'></asp:Label>
                                <asp:Label ID="lbl_tercero" runat="server" Text='<%# eval("tercero") %>' Visible='<%# IIF(eval("id")=0,true,false) %>'></asp:Label>
                                <asp:Label ID="lbl_cargo" runat="server" Text='<%# eval("cargo") %>' Visible='<%# IIF(eval("id")=-1,true,false) %>'></asp:Label>
                                <asp:HyperLink ID="hyp_prog" runat="server" Visible='<%# IIF(eval("id")>0,true,false) %>'
                                    NavigateUrl='<%# "edProgramacion.aspx?id=" & eval("id") %>' Text='[Editar]'></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Label ID="lbl_comentario" runat="server" Text='<%# eval("comentario") %>' Visible='<%# IIF(eval("id")>0,true,false) %>'></asp:Label>
                                <asp:Label ID="lbl_equipo" runat="server" Text='<%# eval("equipo") %>' Visible='<%# IIF(eval("id")=0,true,false) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_nodisp" runat="server" CssClass ="lbl"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="grd_noDisponibilidades" AutoGenerateColumns="False" runat="server" ShowHeader="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>
                            <ItemTemplate>
                                <asp:Label ID="lbl_id" runat="server" Text='<%# eval("id") %>' Visible='false'></asp:Label>
                                <asp:Label ID="lbl_ini" runat="server" Text='<%# eval("ini") & "  -  " %>' Visible='<%# IIF(eval("id")>0,true,false) %>'></asp:Label>
                                <asp:Label ID="lbl_fin" runat="server" Text='<%# eval("fin") %>' Visible='<%# IIF(eval("id")>0,true,false) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Label ID="lbl_motivo" runat="server" Text='<%# eval("motivo") %>' Visible='<%# IIF(eval("id")>0,true,false) %>'></asp:Label>
                                <asp:Label ID="lbl_notas" runat="server" Text='<%# eval("notas") %>' Visible='<%# IIF(eval("id")=0,true,false) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
