Пример #1
0
 protected void cboRangoGlucosa_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
 {
     try
     {
         if (cboRangoGlucosa.SelectedValue != null && rdpFechaInicioGlucosa.SelectedDate != null && rdpFechaFinGlucosa.SelectedDate != null)
         {
             negocioPaciente = new PacienteNegocio();
             RadHtmlChartTalla.PlotArea.XAxis.DataLabelsField = "Fecha";
             RadHtmlChartTalla.PlotArea.Series[0].DataFieldY  = "valor1";
             RadHtmlChartTalla.PlotArea.Series[1].DataFieldY  = "valor2";
             RadHtmlChartTalla.DataSource = negocioPaciente.ConsultaGraficaFiltroHora(Convert.ToInt16(Request.QueryString["idTipoIdentificacion"]), Request.QueryString["NumeroIdentifacion"], Constantes.TIPOEVENTOGLUCOSA, Convert.ToDateTime(rdpFechaInicioGlucosa.SelectedDate), Convert.ToDateTime(rdpFechaFinGlucosa.SelectedDate), cboRangoGlucosa.SelectedValue);
             RadHtmlChartTalla.DataBind();
             PlotBand xAxisPlotBand = new PlotBand();
             xAxisPlotBand.From  = (decimal?)Convert.ToInt16(Request.QueryString["limiteInferiorGlucosa"]);
             xAxisPlotBand.To    = (decimal?)Convert.ToInt16(Request.QueryString["limiteSuperiorGlucosa"]);
             xAxisPlotBand.Color = System.Drawing.ColorTranslator.FromHtml("#e83737");
             xAxisPlotBand.Alpha = (byte)190;
             RadHtmlChartTalla.PlotArea.YAxis.PlotBands.Add(xAxisPlotBand);
         }
         else
         {
             RadNotificationMensajes.Show("Por favor escoger primero el rango de fechas");
         }
     }
     catch (Exception ex)
     {
         RadNotificationMensajes.Show(ex.Message);
     }
 }
Пример #2
0
 private void CargarGraficaTalla()
 {
     try
     {
         negocioPaciente = new PacienteNegocio();
         RadHtmlChartTalla.DataSource = negocioPaciente.ConsultaGraficaTension(Convert.ToInt16(Request.QueryString["idTipoIdentificacion"]), Request.QueryString["NumeroIdentifacion"], Constantes.TIPOEVENTOGLUCOSA);
         RadHtmlChartTalla.DataBind();
         RadHtmlChartTalla.PlotArea.XAxis.DataLabelsField = "fechaEvento";
         RadHtmlChartTalla.PlotArea.XAxis.LabelsAppearance.RotationAngle = 90;
         PlotBand xAxisPlotBand = new PlotBand();
         xAxisPlotBand.From  = (decimal?)Convert.ToInt16(Request.QueryString["limiteInferiorGlucosa"]);
         xAxisPlotBand.To    = (decimal?)Convert.ToInt16(Request.QueryString["limiteSuperiorGlucosa"]);
         xAxisPlotBand.Color = System.Drawing.ColorTranslator.FromHtml("#04B404");
         xAxisPlotBand.Alpha = (byte)190;
         RadHtmlChartTalla.PlotArea.YAxis.PlotBands.Add(xAxisPlotBand);
     }
     catch (Exception ex)
     {
         RadNotificationMensajes.Show(ex.Message);
     }
 }