<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Form_retenciones.aspx.vb" Inherits="SGHweb.Form_retenciones" %>
<%@ OutputCache Location="None" VaryByParam="None" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="../Scripts/noty/jquery.noty.js"></script>
<script type="text/javascript" src="../Scripts/noty/themes/default.js"></script>
<script type="text/javascript" src="../Scripts/noty/layouts/center.js"></script>
<link rel="stylesheet" type="text/css" href="../Scripts/noty/buttons.css" />

<title></title>

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            
            function refreshGrid() {
                var oWnd = $find("<%= RadWindow3.ClientID%>");
                var masterTable = $find("<%=radGrid1.clientId%>").get_masterTableView();
                masterTable.rebind();
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("ActualizarGrilla");
            }
            
            function GenerarAlerta(type, texto) {
                var n = noty({
                    text: texto,
                    type: type,
                    dismissQueue: true,
                    layout: 'center',
                    modal: true,
                    theme: 'defaultTheme'
                });
                console.log(type + ' - ' + n.options.id);
                return n;
            }

            function abrir_ventana_RetencionImprime() {
                var oWnd = $find("<%= RadWindow3.ClientID%>");
                var datepicker_desde = $find('<% =dtpDesde.ClientID%>');
                var datepicker_hasta = $find('<% =dtpHasta.ClientID%>');
                var EmpresaID = $find('<% =txtEmpresaID.ClientID%>');
                var Desde;
                var Hasta;
                if (datepicker_desde.get_dateInput().get_selectedDate() == null) {
                    Desde = '01/01/2000';
                } else {
                    Desde = datepicker_desde.get_dateInput().get_selectedDate().format("dd/MM/yyyy");
                }
                if (datepicker_hasta.get_dateInput().get_selectedDate() == null) {
                    Hasta = '01/01/2000';
                } else {
                    Hasta = datepicker_hasta.get_dateInput().get_selectedDate().format("dd/MM/yyyy");
                }
                var monedaID = document.getElementById('<%= monedaCB.ClientID%>').value;
                var nomMoneda = document.getElementById("<%=monedaCB.ClientID%>").options[document.getElementById("<%=monedaCB.ClientID%>").selectedIndex].text;
                var ruta = "Reporte_retenciones.aspx?desdeQS=" + Desde + "&hastaQS=" + Hasta + "&monedaIdQS=" + monedaID + "&monedaQS=" + nomMoneda + "&empresaID=" + EmpresaID.get_value();
                oWnd.setUrl(ruta);
                oWnd.add_close(OnClientClose);
                oWnd.show();
                return false;
            }

            function OnClientClose(oWnd, eventArgs) {
                oWnd.remove_close(OnClientClose);
            }
            function onRequestStart(sender, args) {
                if (args.get_eventTarget().indexOf("RadAjaxManager1") >= 0)
                    args.set_enableAjax(false);
            }

            function printSelectedEntries(sender, eventArgs) {
                var autoCompleteBox = $find("<%= RadAutoCompleteBox1.ClientID %>");
                var txtempresaid = $find("<%= txtEmpresaID.ClientID %>");
                var valueEmpresaID;
                valueEmpresaID = eventArgs.get_entry().get_value();
                txtempresaid.set_value(valueEmpresaID);
            }
            function LimpiarEmpresaID(sender, eventArgs) {
                var autoCompleteBox = $find("<%= RadAutoCompleteBox1.ClientID %>");
                var txtempresaid = $find("<%= txtEmpresaID.ClientID %>");
                var valueEmpresaID;
                valueEmpresaID = '';
                txtempresaid.set_value(valueEmpresaID);
            }
            function OnClientEntryAddingHandler(sender, eventArgs) {
                if (sender.get_entries().get_count() > 0) {
                    eventArgs.set_cancel(true);
                    //alert("You can select only one entry");
                }
            }
        </script>
    </telerik:RadCodeBlock>
<style type="text/css"> 
    .header1
{
    position: relative;
    padding: 0px;
    background: #313E53;
    width: 100%;
}

.RadPanelBar .rpImage {
    height: 19px;
}
.RadPanelBar .rpLevel1 .rpImage {
    height: 16px;
}
html, body, form
		{
			height:100%;
			/*margin:0;
			padding:0;*/
			/*overflow: hidden;*/
		}
        .divFiltros
        {
	        border:1px solid #8db2e3;
	        font-size:1em;
	        overflow:hidden;
	        width:100%;
	        text-align:center;
        }
        
    .styleMe{
        border:1px solid #25729a; 
        -webkit-border-radius: 3px; 
        -moz-border-radius: 3px;
        border-radius: 3px;
        font-size:12px;
        font-family:arial, helvetica, sans-serif; 
        padding: 10px 10px 10px 10px; 
        text-decoration:none; 
        display:inline-block;
        text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
        font-weight:bold; 
        color: #FFFFFF;
        background-color: #3093c7; 
        background-image: linear-gradient(to bottom, #3093c7, #1c5a85);
    }

    .styleMe:hover{
        border:1px solid #1c5675;
        background-color: #26759e; 
        background-image: linear-gradient(to bottom, #26759e, #133d5b);
    }

    .divtableResponsable {
	    border:1px solid #8db2e3;
	    font-size:1em;
	    overflow:hidden;
	    text-align:center;
    }
        
    .divtableInterno {
	    border:1px solid #8db2e3;
	    font-size:1em;
	    overflow:hidden;
	    text-align:center;
    }
</style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="header1" >
            <table border="0" style="width:100%">
                <tr>
                    <td>
                        <table border="0" style="width:100%">
                            <tr>
                                <td style=" width:100%; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: 13px; text-align:right; padding-right:10px ">
                                    <img src="../Resources/login.png" />
                                </td>
                                <td style=" width:5%; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; font-size: 13px; text-align:right; padding-right:10px ">
                                    <asp:Label ID="nombreUsuarioLB1" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <table border="0" style="width:100%; border-color: #0099FF">
            <tr>
                <td style="font-size: 10pt; width:70%">
                    <dt class="divFiltros">
                        <table border="0" style="width: 100%">
                            <tr>
                                <td style=" text-align:right; width:10%">
                                    Mes/Año&nbsp; 
                                </td>
                                <td style=" text-align:left; width: 15%;">
                                    <telerik:RadMonthYearPicker ID="mesAnioRDP" Width="100%" runat="server"
                                        AutoPostBack="true" MaxDate="2050-12-31" MinDate="2010-01-01">
                                    </telerik:RadMonthYearPicker>
                                </td>
                                <td style=" text-align:right; width:10%">
                                    Desde&nbsp; 
                                </td>
                                <td style=" text-align:left; width: 15%;">
                                    <telerik:RadDatePicker ID="dtpDesde" Runat="server"
                                        Culture="es-ES" Skin="Vista">
                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" Skin="Vista"></Calendar>
                                        <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" LabelWidth="40%">
                                            <EmptyMessageStyle Resize="None" />
                                            <ReadOnlyStyle Resize="None" />
                                            <FocusedStyle Resize="None" />
                                            <DisabledStyle Resize="None" />
                                            <InvalidStyle Resize="None" />
                                            <HoveredStyle Resize="None" />
                                            <EnabledStyle Resize="None" />
                                        </DateInput>
                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                    </telerik:RadDatePicker>
                                </td>
                                <td style=" text-align:right; width:10% ">
                                    Hasta&nbsp; 
                                </td>
                                <td style=" text-align:left; width:15%">
                                    <telerik:RadDatePicker ID="dtpHasta" Runat="server" 
                                        Culture="es-ES" Skin="Vista">
                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" Skin="Vista"></Calendar>
                                        <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" LabelWidth="40%">
                                            <EmptyMessageStyle Resize="None" />
                                            <ReadOnlyStyle Resize="None" />
                                            <FocusedStyle Resize="None" />
                                            <DisabledStyle Resize="None" />
                                            <InvalidStyle Resize="None" />
                                            <HoveredStyle Resize="None" />
                                            <EnabledStyle Resize="None" />
                                        </DateInput>
                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                    </telerik:RadDatePicker>
                                </td>
                                <td style=" text-align:right; width:10% ">
                                    Moneda&nbsp; 
                                </td>
                                <td style=" text-align:left; width:15%">
                                    <asp:DropDownList ID="monedaCB" runat="server" DataSourceID="SDS_Moneda" 
                                        DataTextField="Nombre" DataValueField="monedaid" Width="75%"
                                        AppendDataBoundItems="True"> 
                                        <asp:ListItem Selected="True" Value="0" >-</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td style=" text-align:right; width:10% ">
                                    Proveedor&nbsp; 
                                </td>
                                <td style=" text-align:left; width:70%">
                                    <telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server" OnClientEntryAdded="printSelectedEntries" OnClientEntryRemoved="LimpiarEmpresaID" 
                                        OnClientEntryAdding="OnClientEntryAddingHandler" TextSettings-SelectionMode="Single" MaxResultCount="10" InputType="Token" Skin="Vista" DataSourceID="SqlDataSource1" DataTextField="RazonSocial" 
                                        DataValueField="EmpresaID" Width="100%" AutoPostBack="True" ></telerik:RadAutoCompleteBox>
                                    <asp:SqlDataSource runat="server" ID="SqlDataSource1"
                                    ProviderName="System.Data.SqlClient" SelectCommand="SELECT EmpresaID, Ruc+' ('+Razonsocial+')' AS razonsocial FROM empresas WHERE estado = 0 AND categoriaid = 13"></asp:SqlDataSource>
                                    <telerik:RadTextBox ID="txtEmpresaID" runat="server" style="display:none"></telerik:RadTextBox>
                                </td>
                            </tr>
                        </table>
                    </dt>
                </td>
                <td style="font-size: 10pt; width:1%">

                </td>
                <td style="font-size: 10pt; width:14%">
                    <asp:Button ID="buscaB" runat="server" class="styleMe" Text="BUSCAR" 
                        Width="95%" Height="40px" TabIndex="9"/>
                </td>
                <td style="font-size: 10pt; width:1%">
                    
                </td>
                <td style="font-size: 10pt; width:14%">
                    <input id="reporteB" type="button" value="REPORTE" class="styleMe" 
                        style=" width:95%; height:40px" onclick="abrir_ventana_RetencionImprime()" />
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    <telerik:RadGrid ID="RadGrid1" runat="server" Culture="es-ES" 
                        DataSourceID="SDS_SWP_RetencionDeCompras_DetalleImpresion" Width="100%" Skin="Vista" 
                        AllowSorting="True" GroupPanelPosition="Top" AllowPaging="True" PageSize="50">
                        <GroupingSettings GroupContinuesFormatString="" GroupSplitDisplayFormat="" 
                            GroupSplitFormat="" CaseSensitive="false"/>
                        <ClientSettings>
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>
                        <MasterTableView AutoGenerateColumns="False" DataSourceID="SDS_SWP_RetencionDeCompras_DetalleImpresion" 
                            NoMasterRecordsText="No existen retenciones." Font-Size="8pt" ShowFooter="True">
                            <RowIndicatorColumn Visible="False">
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Created="True">
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn DataField="fechaTransaccion" FilterControlAltText="Filter fechaTransaccion column" 
                                    HeaderText="Fecha Transacc." SortExpression="fechaTransaccion" UniqueName="fechaTransaccion"
                                    DataType="System.DateTime" DataFormatString="{0:dd/MM/yy}"
                                    AllowFiltering="false" >
                                    <HeaderStyle Width="50px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="TipoDS" FilterControlAltText="Filter TipoDS column" 
                                    HeaderText="Tipo" ReadOnly="True" SortExpression="TipoDS" UniqueName="TipoDS"
                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                    ShowFilterIcon="false" >
                                    <HeaderStyle Width="30px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="SerieDS" FilterControlAltText="Filter SerieDS column" 
                                    HeaderText="Serie" ReadOnly="True" SortExpression="SerieDS" UniqueName="SerieDS"
                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                    ShowFilterIcon="false" >
                                    <HeaderStyle Width="30px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="NumeroDS" FilterControlAltText="Filter NumeroDS column" 
                                    HeaderText="Numero" ReadOnly="True" SortExpression="NumeroDS" UniqueName="NumeroDS"
                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                    ShowFilterIcon="false" >
                                    <HeaderStyle Width="80px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="FechaDS" FilterControlAltText="Filter FechaDS column" 
                                    HeaderText="Fecha Emision" SortExpression="FechaDS" UniqueName="FechaDS"
                                    DataType="System.DateTime" DataFormatString="{0:dd/MM/yy}"
                                    AllowFiltering="false" >
                                    <HeaderStyle Width="50px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Ruc" FilterControlAltText="Filter Ruc column" 
                                    HeaderText="Ruc" ReadOnly="True" SortExpression="Ruc" UniqueName="Ruc"
                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                    ShowFilterIcon="false" Display="false">
                                    <HeaderStyle Width="80px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Proveedor" FilterControlAltText="Filter Proveedor column" 
                                    HeaderText="Proveedor" ReadOnly="True" SortExpression="Proveedor" UniqueName="Proveedor"
                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                    ShowFilterIcon="false" Display="true">
                                    <HeaderStyle Width="300px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="comprobantePago" FilterControlAltText="Filter comprobantePago column" 
                                    HeaderText="Comprob Pago" SortExpression="comprobantePago" UniqueName="comprobantePago"
                                    DataType="System.Decimal" DataFormatString="{0:N}" Aggregate="Sum" FooterText=" " >
                                    <HeaderStyle Width="70px" />
                                    <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="comprobantePagoMN" FilterControlAltText="Filter comprobantePagoMN column" 
                                    HeaderText="Comprob Pago MN" SortExpression="comprobantePagoMN" UniqueName="comprobantePagoMN"
                                    DataType="System.Decimal" DataFormatString="{0:N}" Aggregate="Sum" FooterText=" " >
                                    <HeaderStyle Width="70px" />
                                    <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="tipoTransaccion" FilterControlAltText="Filter tipoTransaccion column" 
                                    HeaderText="Tipo Transacción" ReadOnly="True" SortExpression="tipoTransaccion" UniqueName="tipoTransaccion"
                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                    ShowFilterIcon="false" >
                                    <HeaderStyle Width="80px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Debe" FilterControlAltText="Filter Debe column" 
                                    HeaderText="Debe" SortExpression="Debe" UniqueName="Debe"
                                    DataType="System.Decimal" Aggregate="Sum" FooterText=" " >
                                    <HeaderStyle Width="80px" />
                                    <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Haber" FilterControlAltText="Filter Haber column" 
                                    HeaderText="Haber" SortExpression="Haber" UniqueName="Haber"
                                    DataType="System.Decimal" Aggregate="Sum" FooterText=" " >
                                    <HeaderStyle Width="50px" />
                                    <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Saldo" FilterControlAltText="Filter Saldo column" 
                                    HeaderText="Saldo" SortExpression="Saldo" UniqueName="Saldo"
                                    DataType="System.Decimal" Aggregate="Sum" FooterText=" " >
                                    <HeaderStyle Width="80px" />
                                    <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Serie" FilterControlAltText="Filter Serie column" 
                                    HeaderText="Serie" ReadOnly="True" SortExpression="Serie" UniqueName="Serie"
                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                    ShowFilterIcon="false" >
                                    <HeaderStyle Width="50px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Numero" FilterControlAltText="Filter Numero column" 
                                    HeaderText="Numero" ReadOnly="True" SortExpression="Numero" UniqueName="Numero"
                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                    ShowFilterIcon="false" >
                                    <HeaderStyle Width="60px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Importe" FilterControlAltText="Filter Importe column" 
                                    HeaderText="Importe" SortExpression="Importe" UniqueName="Importe"
                                    DataType="System.Decimal" Aggregate="Sum" FooterText=" " >
                                    <HeaderStyle Width="80px" />
                                    <ItemStyle HorizontalAlign="Right" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="medioPagoMP" FilterControlAltText="Filter medioPagoMP column" 
                                    HeaderText="Medio Pago" ReadOnly="True" SortExpression="medioPagoMP" UniqueName="medioPagoMP"
                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                    ShowFilterIcon="false" >
                                    <HeaderStyle Width="250px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="numeroMP" FilterControlAltText="Filter numeroMP column" 
                                    HeaderText="Numero" ReadOnly="True" SortExpression="numeroMP" UniqueName="numeroMP"
                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                    ShowFilterIcon="false" >
                                    <HeaderStyle Width="60px" />
                                    <ItemStyle HorizontalAlign="Left" />
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="RetencionID" FilterControlAltText="Filter RetencionID column" 
                                    HeaderText="RetencionID" ReadOnly="True" SortExpression="RetencionID" UniqueName="RetencionID"
                                    FilterControlWidth="100%" AutoPostBackOnFilter="true" 
                                    ShowFilterIcon="false" Display="false">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <%--<GroupByExpressions>
                                <telerik:GridGroupByExpression>
                                    <SelectFields>
                                        <telerik:GridGroupByField FieldAlias="Proveedor" FieldName="Proveedor" FormatString="" HeaderText="Proveedor" />
                                    </SelectFields>
                                    <GroupByFields>
                                        <telerik:GridGroupByField FieldAlias="Proveedor" FieldName="Proveedor" FormatString="" HeaderText="" />
                                    </GroupByFields>
                                </telerik:GridGroupByExpression>
                            </GroupByExpressions>--%>
                            <AlternatingItemStyle Height="5px" />
                        </MasterTableView>
                    </telerik:RadGrid>
                </td>
            </tr>
        </table>
        <asp:SqlDataSource ID="SDS_SWP_RetencionDeCompras_DetalleImpresion" runat="server" 
            SelectCommand="SWP_RetencionDeCompras_DetalleImpresion" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:Parameter DefaultValue="0" Name="RetencionId" Type="String" />
                <asp:ControlParameter ControlID="dtpDesde" DbType="Date" DefaultValue="01/01/2000" 
                    Name="desde" PropertyName="SelectedDate" />
                <asp:ControlParameter ControlID="dtpHasta" DbType="Date" DefaultValue="01/01/2000" 
                    Name="hasta" PropertyName="SelectedDate" />
                <asp:ControlParameter ControlID="monedaCB" DefaultValue="0" 
                    Name="monedaid" PropertyName="SelectedValue" Type="Int32" />
                <asp:ControlParameter ControlID="txtEmpresaID" DefaultValue="0" 
                    Name="EmpresaID" PropertyName="text" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SDS_Moneda" runat="server" 
            SelectCommand="SELECT [monedaid], [Nombre] FROM [monedas]"> 
        </asp:SqlDataSource>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            <Windows>
                <telerik:RadWindow ID="RadWindow3" runat="server" Behavior="Move, Close" Behaviors="Move, Close" 
                    Height="550px" InitialBehavior="Move, Close" InitialBehaviors="Move, Close" Left="" Modal="True" 
                    ReloadOnShow="True" Skin="WebBlue" Style="display: none;" Top="" 
                    VisibleStatusbar="false" Width="1200px" Animation="Fade" ShowContentDuringLoad="False">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <ClientEvents OnRequestStart="onRequestStart" />
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="mesAnioRDP">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="dtpDesde" UpdatePanelCssClass="" />
                        <telerik:AjaxUpdatedControl ControlID="dtpHasta" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadAutoCompleteBox1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="txtEmpresaID" UpdatePanelCssClass="" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="buscaB">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Default">
        </telerik:RadAjaxLoadingPanel>
        <iframe id="iframereporte" width="1" height="1" frameborder="0"></iframe>
    </form>
</body>
</html>
