public void CargarPersonalResumida() { StiReport report = new StiReport(); string pathValue = string.Empty; vListaPersonal = new List <E_CONSULTA_PERSONAL>(); report.Load(Server.MapPath("~/Assets/reports/IDP/ReporteConsultaResumida.mrt")); report.Dictionary.Databases.Clear(); pathValue = System.Configuration.ConfigurationManager.ConnectionStrings["SigeinReporting"].ConnectionString; report.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("Sigein", pathValue)); ConsultaPersonalNegocio neg = new ConsultaPersonalNegocio(); vListaPersonal = neg.obtieneConsultaPersonalResumen(vIdBateria, vFgConsultaparcial).Select(s => new E_CONSULTA_PERSONAL { CL_CLASIFICACION = s.CL_CLASIFICACION, CL_COLOR = s.CL_COLOR, DS_COMPETENCIA = s.DS_COMPETENCIA, DS_NIVEL_COMPETENCIA_PERSONA = s.DS_NIVEL_COMPETENCIA_PERSONA, ID_COMPETENCIA = s.ID_COMPETENCIA, NB_COMPETENCIA = s.NB_COMPETENCIA, NO_BAREMO_FACTOR = s.NO_BAREMO_FACTOR, NO_BAREMO_PORCENTAJE = CalculaPorcentaje(s.NO_BAREMO_PORCENTAJE), NO_BAREMO_PROMEDIO = s.NO_BAREMO_PROMEDIO, }).OrderBy(s => s.CL_COMPETENCIA).ToList(); decimal vPromedio = (decimal)vListaPersonal.Average(s => s.NO_BAREMO_PORCENTAJE); PruebasNegocio pNegocio = new PruebasNegocio(); var ConsultaPersonal = pNegocio.ObtenienePruebasResultadosCandidatos(vIdBateria); report.Dictionary.Variables["NB_CANDIDATO"].Value = ConsultaPersonal.NB_CANDIDATO; report.Dictionary.Variables["CL_SOLICITUD"].Value = ConsultaPersonal.CL_SOLICITUD; report.Dictionary.Variables["ID_BATERIA"].Value = vIdBateria.ToString(); if (vFgConsultaparcial == true) { report.Dictionary.Variables["FG_COMPETENCIAS"].Value = "true"; } else { report.Dictionary.Variables["FG_COMPETENCIAS"].Value = "false"; } report.Dictionary.Variables["PR_PROMEDIO"].Value = vPromedio.ToString("0.00"); report.Compile(); swvReporte.Report = report; }
public void CargarPersonalDetallada() { StiReport report = new StiReport(); string pathValue = string.Empty; vListaPersonal = new List <E_CONSULTA_PERSONAL>(); report.Load(Server.MapPath("~/Assets/reports/IDP/ReporteConsultaPersonalDetallada.mrt")); report.Dictionary.Databases.Clear(); pathValue = System.Configuration.ConfigurationManager.ConnectionStrings["SigeinReporting"].ConnectionString; report.Dictionary.Databases.Add(new Stimulsoft.Report.Dictionary.StiSqlDatabase("Sigein", pathValue)); PruebasNegocio pNegocio = new PruebasNegocio(); var ConsultaPersonal = pNegocio.ObtenienePruebasResultadosCandidatos(vIdBateria); report.Dictionary.Variables["NB_CANDIDATO"].Value = ConsultaPersonal.NB_CANDIDATO; report.Dictionary.Variables["CL_SOLICITUD"].Value = ConsultaPersonal.CL_SOLICITUD; report.Dictionary.Variables["ID_BATERIA"].Value = vIdBateria.ToString(); report.Compile(); swvReporte.Report = report; }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CrearListaPruebas(); if (Request.Params["pIdBateria"] != null && Request.Params["pIdBateria"] != "null") { vIdBateria = int.Parse(Request.Params["pIdBateria"].ToString()); if (Request.Params["pClTipoConsulta"] != null) { if (Request.Params["pClTipoConsulta"] == "RESUMIDA") { pvResumen.Selected = true; } else if (Request.Params["pClTipoConsulta"] == "DETALLADA") { pvDetallada.Selected = true; } } vFgConsultaparcial = ContextoApp.IDP.ConfiguracionIntegracion.FgIgnorarCompetencias; Grupos(); ConsultaPersonalNegocio neg = new ConsultaPersonalNegocio(); vListaCompetencia = neg.obtenerCompetenciasConsulta(); vListaFactores = neg.obtenerFactoresConsulta(); PruebasNegocio pNegocio = new PruebasNegocio(); var ConsultaPersonal = pNegocio.ObtenienePruebasResultadosCandidatos(vIdBateria); txtCandidato.InnerText = ConsultaPersonal.NB_CANDIDATO; txtFolio.InnerText = ConsultaPersonal.CL_SOLICITUD; } } }