PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/Docs/07-Implementacion/Source/trunk/EDUAR_actual/EDUAR/EDUAR_UI/UserControls/Reporte.ascx

http://blpm.googlecode.com/
ASP.NET | 110 lines | 78 code | 0 blank | 32 comment | 0 complexity | ccd02d85a4cacdb2ebdf524f51601516 MD5 | raw file
  1<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Reporte.ascx.cs" Inherits="EDUAR_UI.UserControls.Reporte" %>
  2<%--<script src="/EDUAR_UI/Scripts/JQuery.js" type="text/javascript"></script>--%>
  3<script language="javascript" type="text/javascript">
  4    function AbrirPopup() {
  5        var popup;
  6        //Abrir Ventana
  7        popup = window.open('/EDUAR_UI/Private/Reports/PrintReport.aspx', 'Impresión de Informes', 'width=800,height=600,left=50,top=100,­menubar=0,toolbar=0,status=0,scrollbars=1,resizable=0,titlebar=0');
  8
  9        if (popup == null || typeof (popup) == 'undefined') {
 10            jAlert('Por favor deshabilita el <i>bloqueador de ventanas emergentes</i><br /> y vuelve a hacer en "Imprimir".', 'Aviso');
 11        }
 12        else {
 13            popup.focus();
 14            //Armar documento
 15            popup.document.close();
 16        }
 17    }
 18</script>
 19<%@ Register Src="~/UserControls/Grafico.ascx" TagName="Grafico" TagPrefix="gra" %>
 20<table border="0" cellpadding="0" cellspacing="0" style="min-width: 800px; width: 100%">
 21    <tr>
 22        <td>
 23            <table class="tablaInterna" cellpadding="0" cellspacing="0">
 24                <tr>
 25                    <td align="right">
 26                        <asp:ImageButton ID="btnGraficar" runat="server" ToolTip="Graficar" ImageUrl="~/Images/Graficar.png"
 27                            Visible="false" />
 28                        <asp:ImageButton ID="btnExcel" ToolTip="Exportar a Excel" ImageUrl="~/Images/ExportarExcel.png"
 29                            runat="server" Visible="false" OnClick="btnExportarExcel_Click" />
 30                        <asp:ImageButton ID="btnPDF" runat="server" ToolTip="Exportar a PDF" ImageUrl="~/Images/ExportarPDF.png"
 31                            Visible="false" />
 32                        <asp:ImageButton ID="btnImprimir" runat="server" ToolTip="Imprimir" ImageUrl="~/Images/botonImprimir.png"
 33                            Visible="false" /><!--OnClick="btnImprimir_Click"-->
 34                        <asp:ImageButton ID="btnVolver" runat="server" ToolTip="Volver" ImageUrl="~/Images/botonVolver.png"
 35                            Visible="false" />
 36                    </td>
 37                </tr>
 38            </table>
 39            <table class="tablaInterna" cellpadding="1" cellspacing="5">
 40                <tr>
 41                    <td>
 42                        <asp:Label ID="lblFiltros" Text="" runat="server" CssClass="lblCriterios" />
 43                    </td>
 44                </tr>
 45            </table>
 46            <asp:UpdatePanel ID="udpReporte" runat="server" UpdateMode="Conditional">
 47                <ContentTemplate>
 48                    <asp:GridView ID="gvwReporte" runat="server" CssClass="DatosLista" SkinID="gridviewSkinPagerReporte"
 49                        AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" PageSize="30">
 50                    </asp:GridView>
 51                    <asp:Label ID="lblSinDatos" runat="server" Text="La consulta no produjo resultados."
 52                        Visible="false"></asp:Label>
 53                </ContentTemplate>
 54            </asp:UpdatePanel>
 55            <div id="divPaginacion" runat="server">
 56                <hr />
 57                <table class="tablaInternaMensajes" cellpadding="5" cellspacing="1">
 58                    <tr>
 59                        <td class="TDCriterios40">
 60                            Mostrar
 61                            <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
 62                                <asp:ListItem>30</asp:ListItem>
 63                                <asp:ListItem>45</asp:ListItem>
 64                                <asp:ListItem>60</asp:ListItem>
 65                            </asp:DropDownList>
 66                            por Página
 67                        </td>
 68                        <td class="TD30" align="center">
 69                            <asp:Label ID="lblCantidad" Text="" runat="server" />
 70                        </td>
 71                        <td class="TD30" align="right">
 72                            <table>
 73                                <tr>
 74                                    <td>
 75                                        <asp:ImageButton ID="lnkbtnFirst" OnClick="lnkbtnFirst_Click" ImageUrl="~/Images/Paginador/go-first-view.png"
 76                                            runat="server" />
 77                                    </td>
 78                                    <td>
 79                                        <asp:ImageButton ID="lnkbtnPrevious" OnClick="lnkbtnPrevious_Click" ImageUrl="~/Images/Paginador/go-previous-view.png"
 80                                            runat="server" />
 81                                    </td>
 82                                    <td>
 83                                        <asp:DataList ID="dlPaging" runat="server" OnItemCommand="dlPaging_ItemCommand" OnItemDataBound="dlPaging_ItemDataBound"
 84                                            RepeatDirection="Horizontal">
 85                                            <ItemTemplate>
 86                                                <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
 87                                                    CommandName="lnkbtnPaging" Text='<%# Eval("PageText") %>'></asp:LinkButton>
 88                                            </ItemTemplate>
 89                                        </asp:DataList>
 90                                    </td>
 91                                    <td>
 92                                        <asp:ImageButton ID="lnkbtnNext" OnClick="lnkbtnNext_Click" ImageUrl="~/Images/Paginador/go-next-view.png"
 93                                            runat="server" />
 94                                    </td>
 95                                    <td>
 96                                        <asp:ImageButton ID="lnkbtnLast" OnClick="lnkbtnLast_Click" ImageUrl="~/Images/Paginador/go-last-view.png"
 97                                            runat="server" />
 98                                    </td>
 99                                </tr>
100                            </table>
101                        </td>
102                    </tr>
103                </table>
104            </div>
105        </td>
106    </tr>
107</table>
108<div id="divGrafico" runat="server" class="divGraficoOcultar">
109    <gra:Grafico ID="grafico" runat="server" />
110</div>