PageRenderTime 13ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Docs/07-Implementacion/Source/trunk/EDUAR_Regular/EDUAR/EDUAR_UI/UserControls/Grafico.ascx

http://blpm.googlecode.com/
ASP.NET | 132 lines | 49 code | 2 blank | 81 comment | 4 complexity | ce40b29d4330fbaea7f341487fe603cf MD5 | raw file
  1<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Grafico.ascx.cs" Inherits="EDUAR_UI.UserControls.Grafico" %>
  2<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
  3    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
  4<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
  5<script type="text/javascript">
  6    $(function () {
  7
  8        if ($("#btnDatos").text() == "Ver Datos") {
  9            $('#divDatos').hide();
 10        }
 11
 12        $("#btnDatos").click(function () {
 13            if ($('#divDatos').is(':visible')) {
 14                $('#divDatos').hide('Blind', '', 1000);
 15                $("#btnDatos").text("Ver Datos");
 16            }
 17            else {
 18                $('#divDatos').show('Blind', '', 1000);
 19                $("#btnDatos").text("Ocultar Datos");
 20            }
 21            return false;
 22        });
 23    });
 24</script>
 25<div id="divGrafico" runat="server" class="MarcoGrafico">
 26    <iframe runat="server" id="divSysExceptionFrame" visible="true" class="FondoNegroVentana"
 27        frameborder="0" scrolling="no" width="100%" height="100%" />
 28    <div id="div2" runat="server" class="FondoNegroVentana" />
 29    <div style="background-color: White; height: 500px">
 30        <table class="TablaExternaGrafico" border="0" cellpadding="0" cellspacing="0" visible="true"
 31            width="646px">
 32            <tr>
 33                <td id="TDBotonera" runat="server" width="646px" align="center">
 34                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
 35                        <tr>
 36                            <td style="width: 50%; background-color: White">
 37                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
 38                                    <tr>
 39                                        <td align="left">
 40                                            <asp:ImageButton ID="btnLineal" runat="server" OnClick="btnLineal_Click" ImageUrl="/EDUAR_UI/Images/chart-line.png"
 41                                                ToolTip="Líneas" AlternateText="Líneas" />
 42                                        </td>
 43                                        <td align="left">
 44                                            <asp:ImageButton ID="btnBar" runat="server" OnClick="btnBar_Click" ImageUrl="/EDUAR_UI/Images/chart-bar.png"
 45                                                ToolTip="Barras" AlternateText="Barras" />
 46                                        </td>
 47                                        <td align="left">
 48                                            <asp:ImageButton ID="btnTorta" runat="server" OnClick="btnTorta_Click" ImageUrl="/EDUAR_UI/Images/chart-pie.png"
 49                                                ToolTip="Torta" AlternateText="Torta" />
 50                                        </td>
 51                                        <td align="left">
 52                                            <%--<asp:ImageButton ID="btnRadar" runat="server" OnClick="btnRadar_Click" ImageUrl="/EDUAR_UI/Images/chart-polar.png"
 53                                            ToolTip="Radar" AlternateText="Radar" />--%>
 54                                        </td>
 55                                        <td style="width: 80%">
 56                                        </td>
 57                                    </tr>
 58                                </table>
 59                            </td>
 60                            <td style="width: 50%; text-align: right; background-color: White">
 61                                <asp:ImageButton ID="btnExportar" runat="server" OnClick="btnExportar_Click" ImageUrl="/EDUAR_UI/Images/ExportarGrafico.png"
 62                                    ToolTip="Exportar a PDF" AlternateText="Exportar a PDF" />
 63                                <asp:ImageButton ID="btnCerrar" runat="server" OnClick="btnCerrar_Click" ImageUrl="/EDUAR_UI/Images/CerrarPopup.png"
 64                                    ToolTip="Cerrar" AlternateText="Cerrar" />
 65                            </td>
 66                        </tr>
 67                    </table>
 68                </td>
 69            </tr>
 70            <tr>
 71                <td id="TDGrafico" runat="server" visible="false">
 72                    <div id="divChart" runat="server" style="height: 450px">
 73                        <asp:Chart ID="Chart1" runat="server" Height="400px" Width="646px" ImageType="Png"
 74                            AntiAliasing="All" BorderDashStyle="Solid" BackSecondaryColor="White" Palette="BrightPastel"
 75                            RenderType="ImageTag" BackGradientStyle="TopBottom" BackColor="#D3D3D3" BorderWidth="2"
 76                            BorderColor="26, 59, 105">
 77                            <Legends>
 78                                <asp:Legend IsTextAutoFit="False" BorderWidth="1" BorderDashStyle="Solid" ShadowOffset="3"
 79                                    Name="Default" BackColor="Transparent" BorderColor="26, 59, 105" Docking="Bottom">
 80                                </asp:Legend>
 81                            </Legends>
 82                            <BorderSkin SkinStyle="Emboss"></BorderSkin>
 83                            <ChartAreas>
 84                                <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
 85                                    BackSecondaryColor="LightGray" BackColor="#D3D3D3" ShadowColor="Transparent"
 86                                    BackGradientStyle="TopBottom">
 87                                    <Area3DStyle Rotation="10" Perspective="10" Inclination="15" IsRightAngleAxes="False"
 88                                        WallWidth="0" IsClustered="False" Enable3D="true"></Area3DStyle>
 89                                    <AxisY LineColor="64, 64, 64, 64">
 90                                        <LabelStyle Font="Verdana, 8.25pt, style=Bold" />
 91                                        <MajorGrid LineColor="64, 64, 64, 64" />
 92                                    </AxisY>
 93                                    <AxisX LineColor="64, 64, 64, 64">
 94                                        <LabelStyle Font="Verdana, 8.25pt, style=Bold" />
 95                                        <MajorGrid LineColor="64, 64, 64, 64" />
 96                                    </AxisX>
 97                                </asp:ChartArea>
 98                            </ChartAreas>
 99                        </asp:Chart>
100                        <cc1:AnimationExtender ID="AnimationExtender2" runat="server" TargetControlID="Chart1">
101                            <Animations>
102                            <OnLoad>  
103                                <Sequence>       
104                                    <Scale Duration="0" Fps="60" ScaleFactor="0.03" Center="true" /> 
105                                    <Condition ConditionScript="1==1">                 
106                                        <Parallel>
107                                            <FadeIn Duration="1" Fps="60" />
108                                            <Scale Duration="1" Fps="60" ScaleFactor="34.0" Center="true" />                                         
109                                        </Parallel>
110                                    </Condition>
111                                </Sequence>
112                            </OnLoad>
113                            </Animations>
114                        </cc1:AnimationExtender>
115                        <table width="646px" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse;
116                            background-color: White; text-align: left; margin-top: -5px; vertical-align: middle">
117                            <tr>
118                                <td style="width: 1%; vertical-align: middle">
119                                    <asp:ImageButton ID="btnMoreInfo" runat="server" OnClick="btnExportar_Click" ImageUrl="/EDUAR_UI/Images/dialog-more.png"
120                                        ToolTip="Más Información" AlternateText="Más Información" />
121                                </td>
122                                <td style="width: 99%">
123                                    <asp:LinkButton ID="LinkButton1" Text="Más Información" runat="server" OnClick="btnExportar_Click" />
124                                </td>
125                            </tr>
126                        </table>
127                    </div>
128                </td>
129            </tr>
130        </table>
131    </div>
132</div>