Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            FuncionarioBusiness funcionarioBusiness = new FuncionarioBusiness(WebConfigurationManager.ConnectionStrings["PRA_DFGKP"].ConnectionString);
            CriterioBusiness    criterioBusiness    = new CriterioBusiness(WebConfigurationManager.ConnectionStrings["PRA_DFGKP"].ConnectionString);

            // Session["usuarioFuncionario"] = "Juan SolĂ­s";
            GVCriterios.DataSource = criterioBusiness.obtenerCriteriosPorIdArea(funcionarioBusiness.obtenerIdArea(Session["usuarioFuncionario"].ToString()));
            GVCriterios.DataBind();
        }
Example #2
0
        private void cargarDatos()
        {
            Session["username"] = "******";

            AreaTematica area = areaTematicaBusiness.ObtenerAreaTematicaPorId(funcionarioBusiness.obtenerIdArea(Session["username"].ToString()));

            lblAreaActual.Text = area.NombreAreaTematica;

            ddlCriterio.DataSource     = criterioBusiness.obtenerCriteriosPorIdArea(area.IdArea);
            ddlCriterio.DataTextField  = "nombreCriterio";
            ddlCriterio.DataValueField = "idCriterio";
            ddlCriterio.DataBind();
        }