
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="frm_ReporteComprasVentas.aspx.vb" Inherits="SGHweb.Reporte_ComprasVentas" %>
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script>
            function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                return oWindow;
            }

            function CerrarVentana(indicador) {
                alert(777);
                var oWnd = GetRadWindow();
                var oArg = new Object();
                oArg.indicador = indicador;
                oWnd.close(oArg);
            }

            function GenerarExcel() {
                ajaxmanager = $find("<%= RadAjaxManager1.ClientID %>");
                ajaxmanager.ajaxRequest("GenerarExcel");
            }
        </script>
    </telerik:RadCodeBlock>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:SqlDataSource ID="SqlDataSource_Compras" runat="server" 
            
            SelectCommand="USP_DocumentosProvisionComprasSisCont" 
            SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:QueryStringParameter Name="Desde" QueryStringField="desde" 
                    Type="String" />
                <asp:QueryStringParameter Name="Hasta" QueryStringField="hasta" 
                    Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource_Ventas" runat="server" 
            
            SelectCommand="USP_DocumentosProvisionEasySoft_Ergosoft" 
            SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:QueryStringParameter Name="Desde" QueryStringField="desde" 
                    Type="String" />
                <asp:QueryStringParameter Name="Hasta" QueryStringField="hasta" 
                    Type="String" />
                <asp:Parameter DefaultValue="0" Name="EstablecimientoID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
    
    </div>
    </form>
</body>
</html>
