<%@ page language="VB" masterpagefile="~/master/master/mas_mobile.master" autoeventwireup="false" inherits="samm_mobile.mob_app_nuevaCotizacion, App_Web_7hzrg5wk" %>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_general" Runat="Server">
    &nbsp;<asp:HyperLink ID="hpl_menu" runat="server" CssClass="hpr" NavigateUrl="../app/menuComercial.aspx"></asp:HyperLink>
    <table>
        <tr>
            <td>
                <asp:HyperLink ID="hyp_detalle" runat="server" CssClass="hpr" Visible="false" NavigateUrl="detalleCot.aspx"></asp:HyperLink>
            </td>
            <td>
                <asp:HyperLink ID="hyp_Estado" runat="server" CssClass="hpr" Visible="false" NavigateUrl="cambiarEstado.aspx"></asp:HyperLink>
            </td>
        </tr>
        <tr>
        </tr>
        <tr>
            <td>
                <asp:HyperLink ID="hyp_nuevaCOT" runat="server" CssClass="hpr" Visible="false" NavigateUrl="nuevaCotizacion.aspx"></asp:HyperLink>
            </td>
            <td>
                <asp:HyperLink ID="hyp_imprimir" runat="server" CssClass="hpr" 
                    NavigateUrl="imp.aspx" Visible="False"></asp:HyperLink>
            </td>
        </tr>
    
    </table>
    <table>
        <tr>
            <td>
                <asp:Label ID="lbl_nuevaCOT" runat="server" Font-Bold="true" CssClass="lbl"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lbl_estado" runat="server" Font-Bold="true" CssClass="lbl"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_cliente" runat="server" CssClass="lbl"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txt_buscar" runat="server" CssClass="txt_grande"></asp:TextBox></td>
            <td>
                <asp:Button ID="btn_buscar" runat="server" CssClass="btn" Text="Buscar" 
                    CausesValidation="False" />
                </td>
        </tr>
        <tr>
            <td>
                
            </td>
            <td>
                <asp:GridView ID="grv_cliente" 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="btn_cliente" runat="server" Text=">>" 
                                     NavigateUrl='<%# "nuevaCotizacion.aspx?ter=" & eval("id") & "&id=" & eval("id_documento") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="Cliente" DataField="tercero" />
                    </Columns>
                </asp:GridView>
                
            </td>
            <td valign="top">
                <asp:HyperLink ID="hyp_cliente" runat="server" CssClass="hpr" NavigateUrl="cliente.aspx" Text="[Nuevo]"></asp:HyperLink>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_sucursal" runat="server" CssClass="lbl"></asp:Label></td>
            <td>
                <asp:DropDownList ID="drpSucursal" runat="server" CssClass="drp">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfv_sucursal" runat="server" ForeColor='' CssClass="lbl_mensaje"
                    Text="*" ValidationGroup="cot" ControlToValidate="drpSucursal"></asp:RequiredFieldValidator>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_subtipo" runat="server" CssClass="lbl"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drpSubtipo" runat="server" CssClass="drp">
                </asp:DropDownList></td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_asunto" runat="server" CssClass="lbl"></asp:Label></td>
            <td>
                <asp:TextBox ID="txt_asunto" runat="server" CssClass="txt"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv_asunto" runat="server" 
                    ControlToValidate="txt_asunto" CssClass="lbl_mensaje" Text="*" 
                    ForeColor="" ValidationGroup="cot"></asp:RequiredFieldValidator>
            </td>
            <td>
                </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_contacto" runat="server" CssClass="lbl"></asp:Label></td>
            <td>
                <asp:TextBox ID="txt_contacto" runat="server" CssClass="txt"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv_contacto" runat="server" 
                    ControlToValidate="txt_contacto" CssClass="lbl_mensaje" Text="*" 
                    ForeColor="" ValidationGroup="cot"></asp:RequiredFieldValidator>
            </td>
            <td>
                </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_email" runat="server" CssClass="lbl"></asp:Label></td>
            <td>
                <asp:TextBox ID="txt_email" runat="server" CssClass="txt"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv_email" runat="server" 
                    ControlToValidate="txt_email" CssClass="lbl_mensaje" Text="*" 
                    ForeColor="" ValidationGroup="cot"></asp:RequiredFieldValidator>
            </td>
            <td>
                </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_prioridad" runat="server" Text="Prioridad:" CssClass="lbl"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="drpPrioridad" runat="server" CssClass="drp">
                </asp:DropDownList></td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_encabezado" runat="server" CssClass="lbl"></asp:Label></td>
            <td>
                <asp:DropDownList ID="drp_encabezado" runat="server" CssClass="drp">
                </asp:DropDownList></td>
            <td>
                <asp:Button ID="btn_encabezado" runat="server" CssClass="btn" Text=">>" 
                    CausesValidation="False" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
            <asp:TextBox ID="txt_encabezado" runat="server" TextMode="MultiLine" CssClass="txt_grande"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_notas" runat="server" CssClass="lbl"></asp:Label></td>
            <td>
                <asp:TextBox ID="txt_notas" runat="server" TextMode="MultiLine" CssClass="txt_grande"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv_notas" runat="server" 
                    ControlToValidate="txt_notas" CssClass="lbl_mensaje" Text="*" 
                    ForeColor="" ValidationGroup="cot"></asp:RequiredFieldValidator>
            </td>
            <td>
                </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="btnCrear" runat="server" CssClass="btn" Text="Guardar" 
                    ValidationGroup="cot" /></td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Label ID="lbl_mensaje" runat="server" CssClass="lbl_mensaje"></asp:Label>
                <asp:ValidationSummary ID="vsm_sol" runat="server" 
                    ValidationGroup="cot" />
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>