private void RellenaAtributos()
 {
     try
     {
         using (Clases.cKPI_DIMENSIONS objAtributos = new Clases.cKPI_DIMENSIONS())
         {
             lstAtributos.DataTextField  = "NOMBRE";
             lstAtributos.DataValueField = "DIMENSIONID";
             objAtributos.indicatorid    = this.idindicator.Value;
             lstAtributos.DataSource     = objAtributos.ObtenerDatos(10, 1);
             lstAtributos.DataBind();
         }
     }
     catch (Exception excp)
     {
         ExceptionUtility.LogException(excp, "Error en la función << RellenaAtributos() >>");
     }
 }
Пример #2
0
 private void RellenaDimensiones()
 {
     if (this.idindicator.HasValue)
     {
         try
         {
             using (Clases.cKPI_DIMENSIONS objDimension = new Clases.cKPI_DIMENSIONS())
             {
                 objDimension.indicatorid  = this.idindicator.Value;
                 lstDimensiones.DataSource = objDimension.ObtenerDatos(10, 1);
                 lstDimensiones.DataBind();
             }
         }
         catch (Exception excp)
         {
             ExceptionUtility.LogException(excp, "Error en la función << RellenaDimensiones() >>");
         }
     }
 }
    private void RellenaDimensiones()
    {
        if (this.datasetid.HasValue)
        {
            using (Clases.cKPI_DATASETS objDataset = new Clases.cKPI_DATASETS())
            {
                objDataset.datasetid = this.datasetid.Value;
                if (objDataset.bConsultar())
                {
                    try
                    {
                        this.HdnTemporal.Value = objDataset.dimension;
                        if (objDataset.indicatorid.HasValue)
                        {
                            using (Clases.cKPI_DIMENSIONS objDimension = new Clases.cKPI_DIMENSIONS())
                            {
                                objDimension.indicatorid = objDataset.indicatorid;

                                lstDimensiones.DataSource = objDimension.ObtenerDatos(10, 1);
                                lstDimensiones.DataBind();
                            }
                        }
                    }
                    catch (Exception excp)
                    {
                        ExceptionUtility.LogException(excp, "Error en la función << RellenaDimensiones() >>");
                    }
                    finally
                    {
                        if (lstDimensiones.Items.Count == 0)
                        {
                            PanelDeAtributos.Visible = false;
                        }
                    }
                }
            }
        }
    }
Пример #4
0
 private void RellenaAtributos()
 {
     if (this.idindicator.HasValue)
     {
         try
         {
             using (Clases.cKPI_DIMENSIONS objAtributos = new Clases.cKPI_DIMENSIONS())
             {
                 objAtributos.indicatorid = this.idindicator.Value;
                 objAtributos.nombre      = txtBuscarDimension.Text;
                 lstDimensions.DataSource = objAtributos.ObtenerDatos(10, 1);
                 lstDimensions.DataBind();
             }
         }
         catch (Exception excp)
         {
             ExceptionUtility.LogException(excp, "Error en la función << RellenaIndicadoresParecidos() >>");
         }
     }
     else
     {
         Response.Redirect("~/errors/notfound.aspx");
     }
 }