<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FrmAsientosContablesA.aspx.cs" Inherits="FrmAsientosContablesA" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link rel="Shortcut Icon" href="images/ico.ico" />
    <title id="Titulo" runat="server"></title>
    <link href="estilos/Estilos.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="JavaScript/actb.js"></script>
    <script language="javascript" type="text/javascript" src="JavaScript/common.js"></script>
    <script language="javascript" type="text/javascript" src="JavaScript/SGH_Script.js"></script>

</head>
<script type="text/javascript">
    function Enter(event,ind) {
        debugger;
       
        if (event.which == 13) {
           
          
           if(ind==1)
           {
               document.getElementById("Busqueda").value= ind;
             
               document.getElementById("But").click();

           }else if(ind ==2)
           {
               document.getElementById("Busqueda").value = ind;
           
               document.getElementById("But").click();
              
               // 
           }else if(ind==3)
           {
               document.getElementById("Busqueda").value = ind;
         
               document.getElementById("But").click();
               
           }

         
        
        }
        
    }

</script>
<style type="text/css">
    .header {
        height: 30px;
    }

    .hed {
        background-color:red;
       font-size:large;
    }
</style>
<body>
    <form id="form1" runat="server">
        <div>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width: 1px;">
                        <img id="Img3" runat="server" src="~/images/TitleLeftLightBlue.png" alt="" />
                    </td>
                    <td background="images/LineBodySky.png" style="padding-left: 20px; text-align: left" class="tituloseccion">
                        Listado de Asientos Contables&nbsp;&nbsp; |&nbsp;&nbsp;
                        <asp:Label ID="lblMes" runat="server" />

                    </td>
                    <td background="images/LineGray.png" style="width: 20px; padding-left: 10px; vertical-align: bottom; display: none">
                        <a href="BusquedaInteligente.aspx" class="gridtext">
                            <img id="imgHome" runat="server" src="images/home.png" border="0" />
                        </a>
                    </td>
                    <td background="images/LineGray.png" style="width: 20px; display: none" class="gridtextbold">
                        <a href="#" class="gridtext" onclick="Regresar()">Inicio</a>
                    </td>
                    <td background="images/LineGray.png" style="width: 20px; padding-left: 15px" class="gridtextbold">
                        <a href="#" class="gridtext" onclick="cerrar()">
                            <img id="img2" runat="server" src="images/close.png" border="0" />
                        </a>
                    </td>
                    <td background="images/LineGray.png" style="width: 20px; padding-right: 5px" class="gridtextbold">
                        <a href="#" class="gridtext" onclick="CerraryRegresar()">Cerrar</a>
                    </td>
                    <td style="text-align: right; width: 1px;">
                        <img id="Img1" class="gridtext" runat="server" src="~/images/TitleRightLightGray.png" alt="" />
                    </td>
                </tr>
                <tr>
                    <td colspan="8" align="left">
                        <asp:Label CssClass="gridtextgray" ID="Label8" runat="server" Text="Sucursal:"></asp:Label>
                        &nbsp;
                            <asp:Label CssClass="gridtextgray" ID="lblSucursal" runat="server" Text="Label"></asp:Label>
                        &nbsp;
                            <asp:Label CssClass="gridtextgray" ID="Label7" runat="server" Text="Unidad de Negocio:" Width="110px" Height="16px"></asp:Label>
                        &nbsp;
                            <asp:Label CssClass="gridtextgray" ID="lblUnidadNegocio" runat="server" Text="Label"></asp:Label>
                        &nbsp;
                            <asp:Label CssClass="gridtextgray" ID="Label11" runat="server" Text="Area:"></asp:Label>
                        &nbsp;
                            <asp:Label CssClass="gridtextgray" ID="lblArea" runat="server" Text="Label"></asp:Label>
                        &nbsp;
                            <span class="gridtextgray">Moneda:</span>
                        <asp:Label CssClass="gridtextgray" ID="lblMoneda" runat="server" Text="Label"></asp:Label>
                        &nbsp;
                            <%--<span class="gridtextgray">Desde: </span>
                            <asp:Label CssClass="gridtextgray" ID="lblDesde" runat="server" Text="Label" ></asp:Label>
                            &nbsp;
                            <span class="gridtextgray">Hasta: </span>
                            <asp:Label CssClass="gridtextgray" ID="lblHasta" runat="server" Text="Label"></asp:Label>--%>
                            
                    </td>
                </tr>
            </table>
        </div>
        </br>
        
        <table style="width: 100%;">
            <tr>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server" onKeyDown="Enter(event,1)" OnClick="" placeholder="Ruc"></asp:TextBox>
                    <asp:TextBox ID="TextBox2" runat="server" onKeyDown="Enter(event,2)" placeholder="Razon Social"></asp:TextBox>
                    <asp:TextBox ID="TextBox3" runat="server" onKeyDown="Enter(event,3)" placeholder="Documento"></asp:TextBox>
                    <%--<div style="display: none;">  <asp:Button ID="btexpo" runat="server" Text="Button" OnClick="expo_Click"  /></div>--%>
                    <asp:ImageButton ID="ImageButton" runat="server" ImageUrl="~/images/page_excel.png" OnClick="ImageButton_Click" />
                </td>
            </tr>
            <tr>

                <td style="width: 100%;">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Style="text-align: center" CellPadding="2" ForeColor="Black" PageSize="15" Font-Names="Arial Narrow" Font-Size="X-Small" BorderWidth="1px" Width="1196px">
                        <AlternatingRowStyle BackColor="White" />
                        <%--filas pares--%>
                        <Columns>
                            <asp:BoundField DataField="CodigoPlanCuenta" HeaderText="Cuenta" />
                            <asp:BoundField DataField="NombrePlanCuenta" HeaderText="Descripcion" />
                            <asp:BoundField DataField="Ruc" HeaderText="Ruc" />
                            <asp:BoundField DataField="RazonSocial" HeaderText="RazonSocial" />
                            <asp:BoundField DataField="CodigoSunat" HeaderText="Tipo Documento" />
                            <asp:BoundField DataField="NumeroDocumento" HeaderText="Documento" />
                            <asp:BoundField DataField="DebeSoles" HeaderText="Debe S/." />
                            <asp:BoundField DataField="HaberSoles" HeaderText="Haber S/." />
                            <asp:BoundField DataField="SaldoSoles" HeaderText="Saldo S/." />
                            <asp:BoundField DataField="DebeDolares" HeaderText="Debe $" />
                            <asp:BoundField DataField="HaberDolares" HeaderText="Haber $" />
                            <asp:BoundField DataField="SaldoDolares" HeaderText="Saldo $" />
                            <asp:BoundField DataField="Dia" HeaderText="Dia" />
                        </Columns>
                        <EditRowStyle BackColor="red" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="Red" />
                        <HeaderStyle BackColor="#d4e2f4" Font-Bold="True" ForeColor="#3c1582" HorizontalAlign="Center" CssClass="header" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" Font-Size="Smaller" />
                        <RowStyle BackColor="White" CssClass="row" />
                        <%-- filas impares--%>
                        <SelectedRowStyle BackColor="White" Font-Bold="True" ForeColor="red" />
                        <SortedAscendingCellStyle BackColor="Red" />
                        <SortedAscendingHeaderStyle BackColor="Red" />
                        <SortedDescendingCellStyle BackColor="Red" />
                        <SortedDescendingHeaderStyle BackColor="Red" />
                    </asp:GridView>

                </td>
            </tr>
        </table>
        <div style="display: none;">
            <asp:Button ID="But" runat="server" Text="Button" OnClick="Button1_Click" />
            <asp:HiddenField ID="Busqueda" runat="server" />
        </div>
    </form>
</body>
</html>
