Esempio n. 1
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);
     }
 }
Esempio n. 2
0
        protected void cboHoraTension_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            try
            {
                if (cboHoraTension.SelectedValue != null && rdpFechaInicio.SelectedDate != null && rdpFecchaFin.SelectedDate != null)
                {
                    negocioPaciente = new PacienteNegocio();
                    RadHtmlChartTension.PlotArea.XAxis.DataLabelsField = "Fecha";
                    RadHtmlChartTension.PlotArea.Series[0].DataFieldY  = "valor1";
                    RadHtmlChartTension.PlotArea.Series[1].DataFieldY  = "valor2";
                    RadHtmlChartTension.DataSource = negocioPaciente.ConsultaGraficaFiltroHora(Convert.ToInt16(Request.QueryString["idTipoIdentificacion"]), Request.QueryString["NumeroIdentifacion"], Constantes.TIPOEVENTOTENSION, Convert.ToDateTime(rdpFechaInicio.SelectedDate), Convert.ToDateTime(rdpFecchaFin.SelectedDate), cboHoraTension.SelectedValue);
                    RadHtmlChartTension.DataBind();

                    PlotBand xAxisPlotBand = new PlotBand();
                    xAxisPlotBand.From  = (decimal?)Convert.ToInt16(Request.QueryString["limiteInferiorSistolica"]);
                    xAxisPlotBand.To    = (decimal?)Convert.ToInt16(Request.QueryString["limiteSuperiorSistolica"]);
                    xAxisPlotBand.Color = System.Drawing.ColorTranslator.FromHtml("#6453FD");
                    xAxisPlotBand.Alpha = (byte)190;
                    RadHtmlChartTension.PlotArea.YAxis.PlotBands.Add(xAxisPlotBand);

                    PlotBand xAxisPlotBand2 = new PlotBand();
                    xAxisPlotBand2.From  = (decimal?)Convert.ToInt16(Request.QueryString["limiteSuperiorDiastolica"]);
                    xAxisPlotBand2.To    = (decimal?)Convert.ToInt16(Request.QueryString["limiteInferiorDiastolica"]);
                    xAxisPlotBand2.Color = System.Drawing.ColorTranslator.FromHtml("#FC6969");
                    xAxisPlotBand2.Alpha = (byte)190;
                    RadHtmlChartTension.PlotArea.YAxis.PlotBands.Add(xAxisPlotBand2);
                }
                else
                {
                    RadNotificationMensajes.Show("Por favor escoger primero el rango de fechas");
                }
            }
            catch (Exception ex)
            {
                RadNotificationMensajes.Show(ex.Message);
            }
        }
Esempio n. 3
0
 protected void radGridHospitalizaciones_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     try
     {
         string tipoIdentificacion   = Request.QueryString["idTipoIdentificacion"];
         string numeroIdentificacion = Request.QueryString["NumeroIdentifacion"];
         string tipoColmedica        = string.Empty;
         if (tipoIdentificacion.Equals("1"))
         {
             tipoColmedica = "CC";
         }
         if (tipoIdentificacion.Equals("2"))
         {
             tipoColmedica = "TI";
         }
         if (tipoIdentificacion.Equals("3"))
         {
             tipoColmedica = "CE";
         }
         if (tipoIdentificacion.Equals("4"))
         {
             tipoColmedica = "NIT";
         }
         WebClient proxy      = new WebClient();
         string    serviceURL = ConfigurationManager.AppSettings["URLHOSPITALIZACIONES"] + tipoColmedica + "/" + numeroIdentificacion;
         byte[]    _data      = proxy.DownloadData(serviceURL);
         Stream    _mem       = new MemoryStream(_data);
         var       reader     = new StreamReader(_mem);
         var       result     = reader.ReadToEnd();
         JArray    v          = JArray.Parse(result.ToString());
         radGridHospitalizaciones.DataSource = v;
     }
     catch (Exception ex)
     {
         RadNotificationMensajes.Show(ex.Message);
     }
 }
Esempio n. 4
0
 protected void rdpFechaFinGlucosa_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
 {
     try
     {
         if (rdpFechaInicioGlucosa.SelectedDate != null && rdpFechaFinGlucosa.SelectedDate != null)
         {
             negocioPaciente = new PacienteNegocio();
             RadHtmlChartTalla.PlotArea.XAxis.DataLabelsField = "Fecha";
             RadHtmlChartTalla.PlotArea.Series[0].DataFieldY  = "valor1";
             RadHtmlChartTalla.DataSource = negocioPaciente.ConsultaGraficaFiltroFechas(Convert.ToInt16(Request.QueryString["idTipoIdentificacion"]), Request.QueryString["NumeroIdentifacion"], Constantes.TIPOEVENTOGLUCOSA, Convert.ToDateTime(rdpFechaInicioGlucosa.SelectedDate), Convert.ToDateTime(rdpFechaFinGlucosa.SelectedDate));
             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);
         }
     }
     catch (Exception ex)
     {
         RadNotificationMensajes.Show(ex.Message);
     }
 }
        protected void btnCambiar_Click(object sender, EventArgs e)
        {
            if (!(txtContNue1.Text.Equals(string.Empty)) && !(txtContNue2.Text.Equals(string.Empty)))
            {
                if (txtContNue1.Text.Equals(txtContNue2.Text))
                {
                }
                else
                {
                    RadNotificationMensajes.Show("Las contraseñas no coinciden");
                }

                using (var client = new SmtpClient())
                {
                    MailMessage newMail = new MailMessage();
                    newMail.To.Add(new MailAddress("*****@*****.**"));
                    newMail.Subject    = "Test Subject";
                    newMail.IsBodyHtml = true;

                    var inlineLogo = new LinkedResource(Server.MapPath("~/E:/Source/SaludMovil/Dev/SaludMovilWeb/SaludMovil.Portal/Images/LogoOriginal.png"));
                    inlineLogo.ContentId = Guid.NewGuid().ToString();

                    string body = string.Format(@"
                                                    <p>Lorum Ipsum Blah Blah</p>
                                                    <img src=""cid:{0}"" />
                                                    <p>Lorum Ipsum Blah Blah</p>
                                                ", inlineLogo.ContentId);

                    var view = AlternateView.CreateAlternateViewFromString(body, null, "text/html");
                    view.LinkedResources.Add(inlineLogo);
                    newMail.AlternateViews.Add(view);
                    client.Send(newMail);
                }


                //string contrasenaEncriptada = (string)Encrypt.encryptText(txtAntiguaContraseña.Text, login);
                //DataSet dsContraseñaAnterior = manApoyo.srvConsultar_ContrseñaAnterior(contrasenaEncriptada, login);
                //if (dsContraseñaAnterior.Tables[0].Rows[0]["contrasena"].ToString().Equals("1"))
                //{
                //    string contrasenaEncriptadaNueva = (string)Encrypt.encryptText(txtContraseñaNueva.Text, login);
                //    manRadicacion.srvActualizarContrasenaUsuario(contrasenaEncriptada, contrasenaEncriptadaNueva, login);

                //    DataSet dsUsuario = manApoyo.srvConsulta_idUsuario(login);

                //    DataSet dsCorreoDestino = this.manApoyo.srvConsultar_EMail(Convert.ToInt32(dsUsuario.Tables[0].Rows[0]["idUsuario"].ToString()));
                //    String emailDest = dsCorreoDestino.Tables[0].Rows[0]["CorreoElectronico"].ToString();

                //    MailMessage email = new MailMessage();
                //    String dirJur = ConfigurationManager.AppSettings["direccionSMTP"].ToString();
                //    email.To.Add(emailDest);
                //    email.From = new MailAddress(ConfigurationManager.AppSettings["direccionSMTP"].ToString());
                //    email.Subject = "WorkFlow Tenco Cambio de Contraseña";
                //    email.Body = "Tramite: Cambio de Contraseña\r\n\r\n" +
                //              "Detalle: Su contraseña se ha cambiado exitosamente\r\n\r\n\r\n" +
                //              "Nueva Contraseña: " + txtContraseñaNueva.Text + "\r\n\r\n\r\n" +
                //              "Ingrese A:  http://181.48.16.186/workflow para mayor información \r\n\r\n\r\n" +
                //              "Este mensaje ha sido enviado automaticamente desde Tenco WorkFlow \r\n" +
                //              "Visite Tenco Workflow para mayor información.\r\n\r\n\r\n" +
                //              "Este correo es informativo, favor no responder a esta dirección de correo, ya " +
                //              "que no se encuentra habilitada para recibir mensajes. " +
                //              "Si requiere mayor información sobre el contenido de este mensaje, Visite el Link anteriormente mencionado";

                //    SmtpClient ss = new SmtpClient(ConfigurationManager.AppSettings["servidorSMTP"].ToString());

                //    //   ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain,
                //    //      SslPolicyErrors sslPolicyErrors) { return true; };
                //    ss.EnableSsl = false;
                //    ss.Send(email);

                //    txtAntiguaContraseña.Text = "";
                //    txtContraseñaNueva.Text = "";

                //    showError("La contrseña se ha cambiado correctamente");
                //}
                //else
                //{
                //    showError("La contraseña anterior no es correcta!");
                //}
            }
            else
            {
                RadNotificationMensajes.Show("Uno o más campos están vacíos");
            }
        }
Esempio n. 6
0
        /// <summary>
        /// Tratamiento de fechas para visualizar la semaforización de estados de control de enfemería
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void radGridPaciente_ItemDataBound(object sender, GridItemEventArgs e)
        {
            try
            {
                if (e.Item is GridDataItem)
                {
                    DateTime     fechaControl;
                    GridDataItem item = (GridDataItem)e.Item;
                    TableCell    celdaFechaControl    = item["UltimoControl"];
                    TableCell    celdaTipoControl     = item["TipoControl"];
                    TableCell    celdaRegistroControl = item["RegistroControl"];
                    celdaFechaControl.Font.Size = 10;
                    celdaFechaControl.Font.Bold = true;
                    ImageButton btnBuscar = (ImageButton)item["btnBuscar"].Controls[0];
                    btnBuscar.ToolTip = "Consultar paciente";
                    ImageButton btn360 = (ImageButton)item["btn360"].Controls[0];
                    btn360.ToolTip = "Vista 360";
                    if (!item["UltimoControl"].Text.Equals("01/01/1900"))
                    {
                        fechaControl = DateTime.ParseExact(item["UltimoControl"].Text, "dd/MM/yyyy", CultureInfo.InvariantCulture);
                        string   fecha1      = fechaControl.ToString("dd/MM/yyyy");
                        string   fecha2      = DateTime.Now.ToString("dd/MM/yyyy");
                        string   fecha3      = item["RegistroControl"].Text;
                        DateTime fechaSinDia = fechaControl.AddDays(-1);
                        string   fecha4      = fechaSinDia.ToString("dd/MM/yyyy");
                        if (fechaControl > DateTime.Now && fecha3.Equals("01/01/1900") && (fechaControl - DateTime.Now).TotalDays > 1)
                        {
                            celdaFechaControl.ForeColor = System.Drawing.Color.Red;
                        }
                        else if (fechaControl < DateTime.Now && fecha3.Equals("01/01/1900"))
                        {
                            celdaFechaControl.ForeColor = System.Drawing.Color.Red;
                        }
                        else if (fecha4.Equals(fecha2) && fecha3.Equals("01/01/1900"))
                        {
                            celdaFechaControl.ForeColor = System.Drawing.ColorTranslator.FromHtml("#9F9110");
                        }
                        else if (fechaControl < DateTime.Now && !fecha3.Equals("01/01/1900"))
                        {
                            celdaFechaControl.ForeColor = System.Drawing.Color.Green;
                        }
                        else if (!fecha3.Equals("01/01/1900"))
                        {
                            celdaFechaControl.ForeColor = System.Drawing.Color.Green;
                        }
                    }
                    if (item["UltimoControl"].Text.Equals("01/01/1900"))
                    {
                        item["UltimoControl"].Text = "Sin registro";
                    }
                    if (item["RegistroControl"].Text.Equals("01/01/1900"))
                    {
                        item["RegistroControl"].Text = "Sin registro";
                    }
                }
                if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem)
                {
                    //Grafica riesgo
                    GridDataItem   item2  = e.Item as GridDataItem;
                    int            riesgo = Convert.ToInt16(item2.GetDataKeyValue("riesgo"));
                    RadRadialGauge RadRadialGaugeRiesgo = (RadRadialGauge)item2.FindControl("RadRadialGaugeRiesgo");
                    if (riesgo == 1)
                    {
                        RadRadialGaugeRiesgo.Pointer.Value = Convert.ToDecimal(2.5);
                    }
                    else if (riesgo == 2)
                    {
                        RadRadialGaugeRiesgo.Pointer.Value = Convert.ToDecimal(1.5);
                    }
                    else if (riesgo == 3)
                    {
                        RadRadialGaugeRiesgo.Pointer.Value = Convert.ToDecimal(0.5);
                    }
                    RadRadialGaugeRiesgo.Pointer.Color            = System.Drawing.Color.Blue;
                    RadRadialGaugeRiesgo.Scale.Min                = 0;
                    RadRadialGaugeRiesgo.Scale.Max                = (decimal)3;
                    RadRadialGaugeRiesgo.Scale.MinorUnit          = (decimal)0;
                    RadRadialGaugeRiesgo.Scale.MajorUnit          = (decimal)1;
                    RadRadialGaugeRiesgo.Scale.MinorTicks.Visible = false;
                    RadRadialGaugeRiesgo.Scale.MajorTicks.Size    = 10;
                    RadRadialGaugeRiesgo.Scale.Labels.Visible     = false;
                    RadRadialGaugeRiesgo.Scale.Labels.Font        = "10px Arial,Helvetica,sans-serif";
                    RadRadialGaugeRiesgo.Scale.Labels.Color       = System.Drawing.Color.Black;
                    RadRadialGaugeRiesgo.Scale.Labels.Format      = "{0}";
                    RadRadialGaugeRiesgo.Scale.Labels.Position    = Telerik.Web.UI.Gauge.ScaleLabelsPosition.Outside;
                    GaugeRange gr1 = new GaugeRange();
                    gr1.From  = 0;
                    gr1.To    = (decimal)1;
                    gr1.Color = System.Drawing.Color.Green;
                    GaugeRange gr2 = new GaugeRange();
                    gr2.From  = (decimal)1.1;
                    gr2.To    = (decimal)2;
                    gr2.Color = System.Drawing.Color.Yellow;
                    GaugeRange gr3 = new GaugeRange();
                    gr3.From  = (decimal)2.1;
                    gr3.To    = (decimal)3;
                    gr3.Color = System.Drawing.Color.FromArgb(225, 0, 0);
                    RadRadialGaugeRiesgo.Scale.Ranges.Add(gr1);
                    RadRadialGaugeRiesgo.Scale.Ranges.Add(gr2);
                    RadRadialGaugeRiesgo.Scale.Ranges.Add(gr3);

                    //Grafica glucometria
                    RadRadialGauge RadLinealGaugeGlucometria = (RadRadialGauge)item2.FindControl("RadLinealGaugeGlucometria");
                    decimal        Glucosa = Convert.ToDecimal(item2.GetDataKeyValue("Glucosa"));
                    decimal        limiteSuperiorGlucosa = Convert.ToInt16(item2.GetDataKeyValue("limiteSuperiorGlucosa"));
                    decimal        limiteInferiorGlucosa = Convert.ToInt16(item2.GetDataKeyValue("limiteInferiorGlucosa"));
                    RadLinealGaugeGlucometria.Pointer.Value            = Glucosa;
                    RadLinealGaugeGlucometria.Pointer.Color            = System.Drawing.Color.Blue;
                    RadLinealGaugeGlucometria.Pointer.Cap.Size         = (float)0.1;
                    RadLinealGaugeGlucometria.Scale.Min                = 0;
                    RadLinealGaugeGlucometria.Scale.Max                = limiteSuperiorGlucosa + 20;
                    RadLinealGaugeGlucometria.Scale.MinorUnit          = (decimal)1;
                    RadLinealGaugeGlucometria.Scale.MajorUnit          = 30;
                    RadLinealGaugeGlucometria.Scale.MinorTicks.Visible = true;
                    RadLinealGaugeGlucometria.Scale.MajorTicks.Size    = 1;
                    RadLinealGaugeGlucometria.Scale.Labels.Visible     = false;
                    RadLinealGaugeGlucometria.Scale.Labels.Font        = "8px Arial,Helvetica,sans-serif";
                    RadLinealGaugeGlucometria.Scale.Labels.Color       = System.Drawing.Color.Black;
                    RadLinealGaugeGlucometria.Scale.Labels.Format      = "{0}";
                    RadLinealGaugeGlucometria.Scale.Labels.Position    = Telerik.Web.UI.Gauge.ScaleLabelsPosition.Outside;
                    GaugeRange Glucosagr1 = new GaugeRange();
                    Glucosagr1.From  = 0;
                    Glucosagr1.To    = limiteInferiorGlucosa;
                    Glucosagr1.Color = System.Drawing.Color.Red;
                    GaugeRange Glucosagr2 = new GaugeRange();
                    Glucosagr2.From  = (decimal)limiteInferiorGlucosa + Convert.ToDecimal(0.1);
                    Glucosagr2.To    = (decimal)limiteSuperiorGlucosa - Convert.ToDecimal(0.1);
                    Glucosagr2.Color = System.Drawing.Color.Green;
                    GaugeRange Glucosagr3 = new GaugeRange();
                    Glucosagr3.From  = (decimal)limiteSuperiorGlucosa;
                    Glucosagr3.To    = (decimal)limiteSuperiorGlucosa + Convert.ToDecimal(50);
                    Glucosagr3.Color = System.Drawing.Color.Red;
                    RadLinealGaugeGlucometria.Scale.Ranges.Add(Glucosagr1);
                    RadLinealGaugeGlucometria.Scale.Ranges.Add(Glucosagr2);
                    RadLinealGaugeGlucometria.Scale.Ranges.Add(Glucosagr3);

                    //Grafica tension
                    RadRadialGauge radialGauge = (RadRadialGauge)item2.FindControl("RadRadialGaugeTension");

                    decimal Sistolica = Convert.ToDecimal(item2.GetDataKeyValue("Sistolica"));
                    //decimal Diastolica = Convert.ToDecimal(item2.GetDataKeyValue("Diastolica"));
                    decimal limiteSuperiorSistolica = Convert.ToInt16(item2.GetDataKeyValue("limiteSuperiorSistolica"));
                    decimal limiteInferiorSistolica = Convert.ToInt16(item2.GetDataKeyValue("limiteInferiorSistolica"));

                    radialGauge.Pointer.Value            = Sistolica;
                    radialGauge.Pointer.Color            = System.Drawing.Color.Blue;
                    radialGauge.Pointer.Cap.Size         = (float)0.1;
                    radialGauge.Scale.Min                = 0;
                    radialGauge.Scale.Max                = limiteSuperiorSistolica + 20;
                    radialGauge.Scale.MinorUnit          = (decimal)1;
                    radialGauge.Scale.MajorUnit          = 30;
                    radialGauge.Scale.MinorTicks.Visible = false;
                    radialGauge.Scale.MajorTicks.Size    = 1;
                    radialGauge.Scale.Labels.Visible     = false;
                    radialGauge.Scale.Labels.Font        = "8px Arial,Helvetica,sans-serif";
                    radialGauge.Scale.Labels.Color       = System.Drawing.Color.Black;
                    radialGauge.Scale.Labels.Format      = "{0}";
                    radialGauge.Scale.Labels.Position    = Telerik.Web.UI.Gauge.ScaleLabelsPosition.Outside;

                    GaugeRange Sistolicagr1 = new GaugeRange();
                    Sistolicagr1.From  = 0;
                    Sistolicagr1.To    = limiteInferiorSistolica;
                    Sistolicagr1.Color = System.Drawing.Color.Red;
                    GaugeRange Sistolicagr2 = new GaugeRange();
                    Sistolicagr2.From  = (decimal)limiteInferiorSistolica + Convert.ToDecimal(0.1);
                    Sistolicagr2.To    = (decimal)limiteSuperiorSistolica - Convert.ToDecimal(0.1);
                    Sistolicagr2.Color = System.Drawing.Color.Green;
                    GaugeRange Sistolicagr3 = new GaugeRange();
                    Sistolicagr3.From  = (decimal)limiteSuperiorSistolica;
                    Sistolicagr3.To    = (decimal)limiteSuperiorSistolica + Convert.ToDecimal(50);
                    Sistolicagr3.Color = System.Drawing.Color.Red;
                    radialGauge.Scale.Ranges.Add(Sistolicagr1);
                    radialGauge.Scale.Ranges.Add(Sistolicagr2);
                    radialGauge.Scale.Ranges.Add(Sistolicagr3);

                    //Tension diastólica
                    RadRadialGauge RadRadialGaugeTensionDiastolica = (RadRadialGauge)item2.FindControl("RadRadialGaugeTensionDiastolica");
                    decimal        Diastolica = Convert.ToDecimal(item2.GetDataKeyValue("Diastolica"));
                    decimal        limiteSuperiorDiastolica = Convert.ToInt16(item2.GetDataKeyValue("limiteSuperiorDiastolica"));
                    decimal        limiteInferiorDiastolica = Convert.ToInt16(item2.GetDataKeyValue("limiteInferiorDiastolica"));
                    RadRadialGaugeTensionDiastolica.Pointer.Value            = Diastolica;
                    RadRadialGaugeTensionDiastolica.Pointer.Color            = System.Drawing.Color.Blue;
                    RadRadialGaugeTensionDiastolica.Pointer.Cap.Size         = (float)0.1;
                    RadRadialGaugeTensionDiastolica.Scale.Min                = 0;
                    RadRadialGaugeTensionDiastolica.Scale.Max                = limiteSuperiorDiastolica + 20;
                    RadRadialGaugeTensionDiastolica.Scale.MinorUnit          = (decimal)1;
                    RadRadialGaugeTensionDiastolica.Scale.MajorUnit          = 30;
                    RadRadialGaugeTensionDiastolica.Scale.MinorTicks.Visible = false;
                    RadRadialGaugeTensionDiastolica.Scale.MajorTicks.Size    = 1;
                    RadRadialGaugeTensionDiastolica.Scale.Labels.Visible     = false;
                    RadRadialGaugeTensionDiastolica.Scale.Labels.Font        = "8px Arial,Helvetica,sans-serif";
                    RadRadialGaugeTensionDiastolica.Scale.Labels.Color       = System.Drawing.Color.Black;
                    RadRadialGaugeTensionDiastolica.Scale.Labels.Format      = "{0}";
                    RadRadialGaugeTensionDiastolica.Scale.Labels.Position    = Telerik.Web.UI.Gauge.ScaleLabelsPosition.Outside;
                    GaugeRange Diastolicagr1 = new GaugeRange();
                    Diastolicagr1.From  = 0;
                    Diastolicagr1.To    = limiteInferiorDiastolica;
                    Diastolicagr1.Color = System.Drawing.Color.Red;
                    GaugeRange Diastolicagr2 = new GaugeRange();
                    Diastolicagr2.From  = (decimal)limiteInferiorDiastolica + Convert.ToDecimal(0.1);
                    Diastolicagr2.To    = (decimal)limiteSuperiorDiastolica - Convert.ToDecimal(0.1);
                    Diastolicagr2.Color = System.Drawing.Color.Green;
                    GaugeRange Diastolicagr3 = new GaugeRange();
                    Diastolicagr3.From  = (decimal)limiteSuperiorDiastolica;
                    Diastolicagr3.To    = (decimal)limiteSuperiorDiastolica + Convert.ToDecimal(50);
                    Diastolicagr3.Color = System.Drawing.Color.Red;
                    RadRadialGaugeTensionDiastolica.Scale.Ranges.Add(Diastolicagr1);
                    RadRadialGaugeTensionDiastolica.Scale.Ranges.Add(Diastolicagr2);
                    RadRadialGaugeTensionDiastolica.Scale.Ranges.Add(Diastolicagr3);
                }
            }
            catch (Exception ex)
            {
                RadNotificationMensajes.Show(ex.Message);
            }
        }