private void RellenaDashboards() { if (this.iduser.HasValue) { try { using (Clases.cKPI_DASHBOARDS objDashboard = new Clases.cKPI_DASHBOARDS()) { objDashboard.userid = this.iduser; lstDashboards.DataSource = objDashboard.ObtenerDatos(string.Empty); lstDashboards.DataBind(); } } catch (Exception excp) { ExceptionUtility.LogException(excp, "Error en la función << RellenaDashboards() >>"); } finally { numTabDashboards.Text = lstDashboards.Items.Count.ToString(); } } else { Response.Redirect("~/errors/notfound.aspx"); } }
private void RellenaDashboards() { try { using (Clases.cKPI_DASHBOARDS objDashboard = new Clases.cKPI_DASHBOARDS()) { objDashboard.userid = CalculaUserId(); lstDashboards.DataSource = objDashboard.ObtenerDatos(); lstDashboards.DataBind(); } } catch (Exception excp) { ExceptionUtility.LogException(excp, "Error en la función << RellenaDashboards() >>"); } }
private void RellenaDashboard() { MembershipUser usr = Membership.GetUser(User.Identity.Name); if (User != null) { try { using (Clases.cKPI_DASHBOARDS objDashboard = new Clases.cKPI_DASHBOARDS()) { objDashboard.userid = Convert.ToInt32(usr.ProviderUserKey); if (this.currentDashboard.HasValue) { objDashboard.iddashboard = this.currentDashboard; } objDashboard.bConsultar(); lbDashboardName.Text = objDashboard.titulo; this.currentDashboard = objDashboard.iddashboard; objDashboard.Inicializar(); objDashboard.userid = Convert.ToInt32(usr.ProviderUserKey); lstDashboards.DataSource = objDashboard.ObtenerDatos(); lstDashboards.DataBind(); if (lstDashboards.Items.Count > 0) { RellenaWidgets(); } } } catch (Exception excp) { ExceptionUtility.LogException(excp, "Error en la función << RellenaDashboard() >>"); } } }