diff --git a/Business/Business.csproj b/Business/Business.csproj index 49f7a4f2..1e4ed3e8 100644 --- a/Business/Business.csproj +++ b/Business/Business.csproj @@ -313,6 +313,8 @@ Code + + diff --git a/Business/Data/Laboratorio/HojaTrabajo.cs b/Business/Data/Laboratorio/HojaTrabajo.cs index 8df32f87..c05d6b43 100644 --- a/Business/Data/Laboratorio/HojaTrabajo.cs +++ b/Business/Data/Laboratorio/HojaTrabajo.cs @@ -538,7 +538,7 @@ public bool IsChanged public DataTable GetDataSet_HojaTrabajoPreeliminar() { - + // 'XX/XX/XXXX' AS fecha ==> CONVERT(varchar(10), GETDATE(), 103) AS fecha ; para evitar error de la formula 'CDate({ht.fecha})' string m_strSQL = @" with lineas as ( select "+ this.IdHojaTrabajo.ToString()+ @" as idhojatrabajo, '01' as linea, 'p' as pac union @@ -575,7 +575,7 @@ public DataTable GetDataSet_HojaTrabajoPreeliminar() SELECT TOP (100) PERCENT 'A' as letra, linea AS numero, '' as numeroOrigen,'___' as cantidad, HT.idHojaTrabajo, CASE WHEN HT.imprimirPrioridad = 1 THEN 'R' ELSE '' END AS prioridad, '0' as antecedente , CASE WHEN HT.imprimirorigen = 1 THEN '-A' ELSE '' END AS origen, CHT.textoImprimir AS item, A.nombre AS area, - CHT.idDetalleHojaTrabajo AS ORDEN, 'XX/XX/XXXX' AS fecha, HT.responsable, HT.codigo AS codigoHT, + CHT.idDetalleHojaTrabajo AS ORDEN, CONVERT(varchar(10), GETDATE(), 103) AS fecha, HT.responsable, HT.codigo AS codigoHT, CASE WHEN HT.imprimirApellidoNombre = 1 THEN '-Paciente' ELSE '' END + CASE WHEN HT.imprimirDiagnostico = 1 then '-Diag' else '' end AS paciente, CASE WHEN HT.imprimirEdad = 1 THEN '-0' ELSE '' END AS edad, CASE WHEN HT.imprimirSexo = 1 THEN '-F' ELSE '' END AS sexo, diff --git a/WebLab/Estadisticas/Grafico.aspx.cs b/WebLab/Estadisticas/Grafico.aspx.cs index d468e66c..50fb75bb 100644 --- a/WebLab/Estadisticas/Grafico.aspx.cs +++ b/WebLab/Estadisticas/Grafico.aspx.cs @@ -5,7 +5,6 @@ using System.Web.UI; using System.Web.UI.WebControls; using System.Data; -using InfoSoftGlobal; using System.Web.Script.Serialization; namespace WebLab.Estadisticas diff --git a/WebLab/Estadisticas/GraficoChart.ascx b/WebLab/Estadisticas/GraficoChart.ascx index 5566edec..87acd217 100644 --- a/WebLab/Estadisticas/GraficoChart.ascx +++ b/WebLab/Estadisticas/GraficoChart.ascx @@ -1,7 +1,6 @@ <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GraficoChart.ascx.cs" Inherits="WebLab.Estadisticas.GraficoChart" %> - - + diff --git a/WebLab/Estadisticas/GraficoChart.ascx.cs b/WebLab/Estadisticas/GraficoChart.ascx.cs index 279c022f..f10ea3e3 100644 --- a/WebLab/Estadisticas/GraficoChart.ascx.cs +++ b/WebLab/Estadisticas/GraficoChart.ascx.cs @@ -1,4 +1,8 @@ using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Script.Serialization; using System.Web.UI; namespace WebLab.Estadisticas @@ -41,5 +45,58 @@ public partial class GraficoChart : System.Web.UI.UserControl /// /// public string tituloY { get; set; } //titulo de eje Y + /// + /// Controla si se muestran los labels en la leyenda (true por defecto) + /// + public string MostrarLabels { get; set; } + + /* + * ASP.NET WebForms está llamando al Render del control dos veces durante + * el ciclo de vida de la página(algo común con master pages, dependiendo + * de cómo se estructura el árbol de controles). * + */ + + /// + /// Banderas para que se ejecute una sola vez DecodeLabels + /// + private string labelsDecodificadas; + private bool seDecodificaronLabels; + + /// + /// DecodeLabels: Retorna LabelsJson con entidades HTML decodificadas si MostrarLabels es true + /// Ej: Si recibo "Orina, obtención desconocido" lo transformo a "Orina, obtención desconocido" + /// + public string LabelsJsonDecoded + { + get + { + if (!seDecodificaronLabels) + { + labelsDecodificadas = DecodeLabels(); + seDecodificaronLabels = true; + } + return labelsDecodificadas; + } + } + + private string DecodeLabels() + { + if (!string.IsNullOrEmpty(LabelsJson)) + { + bool mostrar = string.IsNullOrEmpty(MostrarLabels) || + MostrarLabels.Equals("true", StringComparison.OrdinalIgnoreCase); + if (mostrar) + { + var js = new JavaScriptSerializer(); + var labels = js.Deserialize>(LabelsJson); + if (labels != null) + { + labels = labels.Select(l => HttpUtility.HtmlDecode(l)).ToList(); + return js.Serialize(labels); + } + } + } + return LabelsJson; + } } } diff --git a/WebLab/Estadisticas/Reporte.aspx b/WebLab/Estadisticas/Reporte.aspx index b719f236..f0f0ffea 100644 --- a/WebLab/Estadisticas/Reporte.aspx +++ b/WebLab/Estadisticas/Reporte.aspx @@ -42,14 +42,25 @@ >Descargar Detalle Por Determinacion--%>   -
- -     - - - - -
+ + + + + + +
+
+ +
+ + + +
  +
+ +
+
+
diff --git a/WebLab/Estadisticas/Reporte.aspx.cs b/WebLab/Estadisticas/Reporte.aspx.cs index 136f44d1..24c0e631 100644 --- a/WebLab/Estadisticas/Reporte.aspx.cs +++ b/WebLab/Estadisticas/Reporte.aspx.cs @@ -14,7 +14,6 @@ using Business; using Business.Data.Laboratorio; using CrystalDecisions.Shared; -using InfoSoftGlobal; using System.IO; using CrystalDecisions.Web; using System.Text; @@ -165,7 +164,11 @@ private void MostrarReporteGeneral() /// Grafico 2 if (mostrarGrafico2) { - CreateChart2(s_tituloChart); + CreateChart2(s_tituloChart); + } + else + { + divGrafico2.Visible = false; } if (!mostrarGrafico1 && !mostrarGrafico2) diff --git a/WebLab/Estadisticas/Reporte.aspx.designer.cs b/WebLab/Estadisticas/Reporte.aspx.designer.cs index 09fa0d81..128a2353 100644 --- a/WebLab/Estadisticas/Reporte.aspx.designer.cs +++ b/WebLab/Estadisticas/Reporte.aspx.designer.cs @@ -110,5 +110,13 @@ public partial class Reporte { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.LinkButton lnkRegresar; + /// + /// divGrafico2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlGenericControl divGrafico2; } } diff --git a/WebLab/Estadisticas/ReporteForense.aspx.cs b/WebLab/Estadisticas/ReporteForense.aspx.cs index 78f01631..1287a63e 100644 --- a/WebLab/Estadisticas/ReporteForense.aspx.cs +++ b/WebLab/Estadisticas/ReporteForense.aspx.cs @@ -18,7 +18,6 @@ using Business.Data; using CrystalDecisions.Shared; using Business.Data.Laboratorio; -using InfoSoftGlobal; namespace WebLab.Estadisticas { @@ -287,9 +286,9 @@ private string mostrarGrafico(int p) // Response.Redirect("SinDatos.aspx", false); - - return FusionCharts.RenderChart(s_tipografico, p.ToString(), strXML, "Sales"+p.ToString(), ancho, "200", false, false); + + return "";// FusionCharts.RenderChart(s_tipografico, p.ToString(), strXML, "Sales"+p.ToString(), ancho, "200", false, false); } diff --git a/WebLab/Estadisticas/ReporteIncidencias.aspx.cs b/WebLab/Estadisticas/ReporteIncidencias.aspx.cs index f0322155..4a303e49 100644 --- a/WebLab/Estadisticas/ReporteIncidencias.aspx.cs +++ b/WebLab/Estadisticas/ReporteIncidencias.aspx.cs @@ -11,7 +11,6 @@ using System.Text; using System.IO; using System.Web.UI.HtmlControls; -using InfoSoftGlobal; using Business.Data.Laboratorio; using Business.Data; using System.Configuration; diff --git a/WebLab/Estadisticas/ReporteMicrobiologia.aspx.cs b/WebLab/Estadisticas/ReporteMicrobiologia.aspx.cs index e73dd6f2..137217b5 100644 --- a/WebLab/Estadisticas/ReporteMicrobiologia.aspx.cs +++ b/WebLab/Estadisticas/ReporteMicrobiologia.aspx.cs @@ -19,7 +19,6 @@ using CrystalDecisions.Shared; using Business.Data.Laboratorio; using System.Web.Script.Serialization; -using InfoSoftGlobal; using System.Collections.Generic; namespace WebLab.Estadisticas diff --git a/WebLab/Estadisticas/ReporteMicrobiologiaNoPaciente.aspx.cs b/WebLab/Estadisticas/ReporteMicrobiologiaNoPaciente.aspx.cs index 3ccff835..403f7f49 100644 --- a/WebLab/Estadisticas/ReporteMicrobiologiaNoPaciente.aspx.cs +++ b/WebLab/Estadisticas/ReporteMicrobiologiaNoPaciente.aspx.cs @@ -18,7 +18,6 @@ using Business.Data; using CrystalDecisions.Shared; using Business.Data.Laboratorio; -using InfoSoftGlobal; using System.Web.Script.Serialization; using System.Collections.Generic; @@ -310,60 +309,60 @@ private DataTable MostrarDatos(string s_tipo) - private string mostrarGrafico(int p) - { - string s_titulo=""; - string s_tipo=""; - string s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; - DataTable dt = new DataTable(); - //dt = (DataTable)gvTipoMuestra.DataSource; - string strXML = ""; - string ancho = "500"; - if (p == 0) - { - // s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; - s_titulo = "No Pacientes"; - s_tipo = "Casos por tipo de muestra"; - strXML = ""; + //private string mostrarGrafico(int p) + //{ + // string s_titulo=""; + // string s_tipo=""; + // string s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; + // DataTable dt = new DataTable(); + // //dt = (DataTable)gvTipoMuestra.DataSource; + // string strXML = ""; + // string ancho = "500"; + // if (p == 0) + // { + // // s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; + // s_titulo = "No Pacientes"; + // s_tipo = "Casos por tipo de muestra"; + // strXML = ""; - if (gvTipoMuestra.Rows.Count > 0) - { - for (int i = 0; i < gvTipoMuestra.Rows.Count; i++) - { - strXML += ""; - } - } - strXML += ""; - } + // if (gvTipoMuestra.Rows.Count > 0) + // { + // for (int i = 0; i < gvTipoMuestra.Rows.Count; i++) + // { + // strXML += ""; + // } + // } + // strXML += ""; + // } - if (p == 1) - { + // if (p == 1) + // { - ancho = "1000"; + // ancho = "1000"; - // s_tipografico = "../FusionCharts/FCF_Column2D.swf"; + // // s_tipografico = "../FusionCharts/FCF_Column2D.swf"; - ////s_titulo = ddlAnalisis.SelectedItem.Text +" " + ddlTipoMuestra.SelectedItem.Text; - //s_tipo = "Casos por Aislamiento"; - //strXML = ""; + // ////s_titulo = ddlAnalisis.SelectedItem.Text +" " + ddlTipoMuestra.SelectedItem.Text; + // //s_tipo = "Casos por Aislamiento"; + // //strXML = ""; - //if (gvMicroorganismos.Rows.Count > 0) - //{ - // for (int i = 0; i < gvMicroorganismos.Rows.Count; i++) - // { - // strXML += ""; - // } - //} - //strXML += ""; - } - //else - // Response.Redirect("SinDatos.aspx", false); + // //if (gvMicroorganismos.Rows.Count > 0) + // //{ + // // for (int i = 0; i < gvMicroorganismos.Rows.Count; i++) + // // { + // // strXML += ""; + // // } + // //} + // //strXML += ""; + // } + // //else + // // Response.Redirect("SinDatos.aspx", false); - return FusionCharts.RenderChart(s_tipografico, p.ToString(), strXML, "Sales"+p.ToString(), ancho, "200", false, false); - } + // return FusionCharts.RenderChart(s_tipografico, p.ToString(), strXML, "Sales"+p.ToString(), ancho, "200", false, false); + //} protected void lnkExcel_Click1(object sender, EventArgs e) diff --git a/WebLab/Estadisticas/ReportePesquisa.aspx.cs b/WebLab/Estadisticas/ReportePesquisa.aspx.cs index a051402f..d61c0552 100644 --- a/WebLab/Estadisticas/ReportePesquisa.aspx.cs +++ b/WebLab/Estadisticas/ReportePesquisa.aspx.cs @@ -7,7 +7,6 @@ using System.Data; using System.Data.SqlClient; using Business; -using InfoSoftGlobal; using System.Text; using System.Web.UI.HtmlControls; using System.IO; @@ -274,8 +273,8 @@ private void MostrarSegunVariables() gv1.DataBind(); if (dt1.Rows.Count > 0) { - Literal1.Text = mostrarGrafico("Muestras recibidas"); - Literal2.Text = mostrarGrafico1(dt1,"Muestras recibidas por efector"); + //Literal1.Text = mostrarGrafico("Muestras recibidas"); + //Literal2.Text = mostrarGrafico1(dt1,"Muestras recibidas por efector"); } } break; case "Muestras por Patologia": @@ -312,9 +311,9 @@ private void MostrarSegunVariables() Literal4.Visible = true; Literal5.Visible = true; - Literal3.Text = mostrarGrafico3(dt3, ddlVariable.SelectedValue); - Literal4.Text = mostrarGrafico4(dt3, ddlVariable.SelectedValue,"220","200"); - Literal5.Text = mostrarGrafico5(dt3,"Distribución por Sexo"); + //Literal3.Text = mostrarGrafico3(dt3, ddlVariable.SelectedValue); + //Literal4.Text = mostrarGrafico4(dt3, ddlVariable.SelectedValue,"220","200"); + //Literal5.Text = mostrarGrafico5(dt3,"Distribución por Sexo"); } } @@ -332,81 +331,81 @@ private void CargarResultados() oUtil = null; } - private string mostrarGrafico(string s_titulo)// (DataTable dt1) - { - string s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; - string strXML = ""; - strXML += ""; - strXML += ""; - strXML += ""; - return FusionCharts.RenderChart(s_tipografico, "", strXML, "pesquisa", "400", "200", false, false); - } - private string mostrarGrafico1(DataTable dt1, string s_titulo) - { - string s_tipografico = "../FusionCharts/FCF_Column3D.swf"; - string strXML = ""; - for (int i = 0; i < dt1.Rows.Count; i++) - strXML += ""; - strXML += ""; - return FusionCharts.RenderChart(s_tipografico, "2", strXML, "pesquisa2", "400", "300", false, false); - } - private string mostrarGrafico4(DataTable dt1, string s_titulo, string ancho, string alto) - { - string s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; - string strXML = ""; - for (int i = 0; i < dt1.Rows.Count; i++) strXML += ""; - strXML += ""; - return FusionCharts.RenderChart(s_tipografico, "", strXML, "pesquisa", ancho,alto, false, false); - } - private string mostrarGrafico3(DataTable dt1, string s_titulo) - { - - string strXML = ""; - string strCategories = ""; - - string strDataR = ""; - string strDataS = ""; - string strDataI = ""; - - for (int i = 0; i < dt1.Rows.Count; i++) - { - strCategories = strCategories + ""; - if (dt1.Rows[i][1].ToString() == "") strDataR = strDataR + ""; - else strDataR = strDataR + ""; - - if (dt1.Rows[i][2].ToString() == "") strDataS = strDataS + ""; - else strDataS = strDataS + ""; - - if (dt1.Rows[i][3].ToString() == "") strDataI = strDataI + ""; - else strDataI = strDataI + ""; - } - - //'Close element - strCategories = strCategories + ""; - - //'Close elements - strDataR = strDataR + ""; - strDataS = strDataS + ""; - strDataI = strDataI + ""; - - //'Assemble the entire XML now - strXML = strXML + strCategories + strDataR + strDataS + strDataI + ""; - - return FusionCharts.RenderChart("../FusionCharts/FCF_MSColumn3D.swf", "", strXML, "productSales", "400", "400", false, false); - } - private string mostrarGrafico5(DataTable dt1, string p) - { - string s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; - string strXML = ""; - if (dt1.Rows.Count > 0) - { - strXML += ""; - strXML += ""; - strXML += ""; - } - strXML += ""; - return FusionCharts.RenderChart(s_tipografico, "", strXML, "pesquisaSexo", "200", "200", false, false); - } + //private string mostrarGrafico(string s_titulo)// (DataTable dt1) + //{ + // string s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; + // string strXML = ""; + // strXML += ""; + // strXML += ""; + // strXML += ""; + // return FusionCharts.RenderChart(s_tipografico, "", strXML, "pesquisa", "400", "200", false, false); + //} + //private string mostrarGrafico1(DataTable dt1, string s_titulo) + //{ + // string s_tipografico = "../FusionCharts/FCF_Column3D.swf"; + // string strXML = ""; + // for (int i = 0; i < dt1.Rows.Count; i++) + // strXML += ""; + // strXML += ""; + // return FusionCharts.RenderChart(s_tipografico, "2", strXML, "pesquisa2", "400", "300", false, false); + //} + //private string mostrarGrafico4(DataTable dt1, string s_titulo, string ancho, string alto) + //{ + // string s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; + // string strXML = ""; + // for (int i = 0; i < dt1.Rows.Count; i++) strXML += ""; + // strXML += ""; + // return FusionCharts.RenderChart(s_tipografico, "", strXML, "pesquisa", ancho,alto, false, false); + //} + //private string mostrarGrafico3(DataTable dt1, string s_titulo) + //{ + + // string strXML = ""; + // string strCategories = ""; + + // string strDataR = ""; + // string strDataS = ""; + // string strDataI = ""; + + // for (int i = 0; i < dt1.Rows.Count; i++) + // { + // strCategories = strCategories + ""; + // if (dt1.Rows[i][1].ToString() == "") strDataR = strDataR + ""; + // else strDataR = strDataR + ""; + + // if (dt1.Rows[i][2].ToString() == "") strDataS = strDataS + ""; + // else strDataS = strDataS + ""; + + // if (dt1.Rows[i][3].ToString() == "") strDataI = strDataI + ""; + // else strDataI = strDataI + ""; + // } + + // //'Close element + // strCategories = strCategories + ""; + + // //'Close elements + // strDataR = strDataR + ""; + // strDataS = strDataS + ""; + // strDataI = strDataI + ""; + + // //'Assemble the entire XML now + // strXML = strXML + strCategories + strDataR + strDataS + strDataI + ""; + + // return FusionCharts.RenderChart("../FusionCharts/FCF_MSColumn3D.swf", "", strXML, "productSales", "400", "400", false, false); + //} + //private string mostrarGrafico5(DataTable dt1, string p) + //{ + // string s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; + // string strXML = ""; + // if (dt1.Rows.Count > 0) + // { + // strXML += ""; + // strXML += ""; + // strXML += ""; + // } + // strXML += ""; + // return FusionCharts.RenderChart(s_tipografico, "", strXML, "pesquisaSexo", "200", "200", false, false); + //} protected void gv3_RowDataBound(object sender, GridViewRowEventArgs e) { @@ -456,7 +455,7 @@ private void MostrarPorResultado() Literal3.Visible = false; Literal5.Visible = false; Literal4.Visible = true; - Literal4.Text = mostrarGrafico4(dt3, ddlResultado.SelectedValue, "600","400"); + //Literal4.Text = mostrarGrafico4(dt3, ddlResultado.SelectedValue, "600","400"); } } diff --git a/WebLab/Estadisticas/Turnos.aspx.cs b/WebLab/Estadisticas/Turnos.aspx.cs index 7bc53fd0..609cae47 100644 --- a/WebLab/Estadisticas/Turnos.aspx.cs +++ b/WebLab/Estadisticas/Turnos.aspx.cs @@ -12,7 +12,6 @@ using System.Xml.Linq; using Business; using System.Data.SqlClient; -using InfoSoftGlobal; using Business.Data.Laboratorio; using CrystalDecisions.Shared; using System.IO; @@ -161,9 +160,15 @@ protected void CustomValidator1_ServerValidate(object source, ServerValidateEven private void MostrarReporte() { if (ddlEfector.SelectedValue == "0") + { imgPdf.Visible = false; + //lo agregamos? chartTurnos.MostrarLabels = "false"; //son tantos efectores que no es legible, cuando se pasa el mouse por encima se ve el % y las cant. + } else - imgPdf.Visible = true; + { + imgPdf.Visible = true; + // chartTurnos.MostrarLabels = "true"; + } DataTable dt= getDatosEstadisticos("G"); @@ -380,6 +385,7 @@ INNER JOIN sys_Efector E (nolock) on E.idEfector=A.idEfectorSolicitante protected void ddlEfector_SelectedIndexChanged(object sender, EventArgs e) { + pnlDatos.Visible = false; //al cambiar el efector, tanto el chart como el grid se ocultan hasta que el usuario vuelva a clickear "Generar" if (oUser.IdEfector.IdEfector == 227) { if (ddlEfector.SelectedIndex != 0) diff --git a/WebLab/Estadisticas/distribucionServicio.ascx.cs b/WebLab/Estadisticas/distribucionServicio.ascx.cs index 00f38285..a9b540cd 100644 --- a/WebLab/Estadisticas/distribucionServicio.ascx.cs +++ b/WebLab/Estadisticas/distribucionServicio.ascx.cs @@ -4,7 +4,6 @@ using System.Web; using System.Web.UI; using System.Web.UI.WebControls; -using InfoSoftGlobal; using System.Data; using System.Data.SqlClient; using Business; @@ -16,59 +15,59 @@ public partial class distribucionServicio : System.Web.UI.UserControl protected void Page_Load(object sender, EventArgs e) { - FCLiteral.Text = mostrarGrafico(); ; + //FCLiteral.Text = mostrarGrafico(); ; } - private string mostrarGrafico() - { - string s_titulo = ""; - string s_tipo = ""; - string strXML = ""; - string strDetalle = ""; + //private string mostrarGrafico() + //{ + // string s_titulo = ""; + // string s_tipo = ""; + // string strXML = ""; + // string strDetalle = ""; - //s_tipografico = "../FusionCharts/FCF_MSColumn3D.swf"; + // //s_tipografico = "../FusionCharts/FCF_MSColumn3D.swf"; - //s_titulo = "";// ddlAnalisis.SelectedItem.Text; - //if (p == 0) s_tipo = "Casos por tipo de muestra"; - //else - //{ if (p == 3) s_tipo = "Casos por Resultados Obtenidos"; else s_tipo = "Aislamientos"; } + // //s_titulo = "";// ddlAnalisis.SelectedItem.Text; + // //if (p == 0) s_tipo = "Casos por tipo de muestra"; + // //else + // //{ if (p == 3) s_tipo = "Casos por Resultados Obtenidos"; else s_tipo = "Aislamientos"; } - string s_ancho = "700"; - string s_alto = "400"; + // string s_ancho = "700"; + // string s_alto = "400"; - DataTable dt = new DataTable(); - dt = GetDatosEstadistica(); + // DataTable dt = new DataTable(); + // dt = GetDatosEstadistica(); - // string strXML = ""; + // string strXML = ""; - if (dt.Rows.Count > 0) - { - for (int i = 0; i < dt.Rows.Count; i++) - { - strDetalle += ""; - } - } + // if (dt.Rows.Count > 0) + // { + // for (int i = 0; i < dt.Rows.Count; i++) + // { + // strDetalle += ""; + // } + // } - //string[] arr = Request["valores"].ToString().Split((";").ToCharArray()); - //foreach (string item in arr) - //{ - // strDetalle += ""; - //} + // //string[] arr = Request["valores"].ToString().Split((";").ToCharArray()); + // //foreach (string item in arr) + // //{ + // // strDetalle += ""; + // //} - string s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; + // string s_tipografico = "../FusionCharts/FCF_Pie3D.swf"; - strXML = ""; - strXML += strDetalle; - strXML += ""; + // strXML = ""; + // strXML += strDetalle; + // strXML += ""; - return FusionCharts.RenderChart(s_tipografico, "", strXML, "1", s_ancho, s_alto, false, false); - } + // //return FusionCharts.RenderChart(s_tipografico, "", strXML, "1", s_ancho, s_alto, false, false); + //} private DataTable GetDatosEstadistica() { diff --git a/WebLab/Informes/HistoriaClinica.aspx b/WebLab/Informes/HistoriaClinica.aspx index 1a4f1389..db4eb60a 100644 --- a/WebLab/Informes/HistoriaClinica.aspx +++ b/WebLab/Informes/HistoriaClinica.aspx @@ -1,9 +1,9 @@ <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HistoriaClinica.aspx.cs" Inherits="WebLab.Informes.HistoriaClinica" MasterPageFile="~/Site1.Master" %> + <%@ Register Src="~/Estadisticas/GraficoChart.ascx" TagName="GraficoChart" TagPrefix="uc" %> - - + LABORATORIO