protected void rptAsignar_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            string id = e.CommandArgument.ToString();

            if (e.CommandName == "editar")
            {
                Response.Redirect("~/Asignacion/admAsignarV2.aspx?e=" + id);
            }
            else
            {
                //limpiar
                CentroTrabajoDAV2 obj    = new CentroTrabajoDAV2();
                CentroTrabajo     centro = new CentroTrabajo();
                centro.IDGlobal = Convert.ToInt32(id);
                if (obj.LimpiarAsignacion(centro))
                {
                    Response.Redirect("~/Asignacion/Asignar");
                }
                else
                {
                    lblAviso.Text    = "Ocurrió un error al tratar de almacenar la información.";
                    lblAviso.Visible = true;
                }
            }
        }
        private void CargarDatos()
        {
            CentrosTrabajo    lst = new CentrosTrabajo();
            CentroTrabajoDAV2 obj = new CentroTrabajoDAV2();

            lst = obj.GetCentrosTrabajo();
            rptAsignar.DataSource = lst;
            rptAsignar.DataBind();
        }
        private void CargarDatos()
        {
            int               id     = Convert.ToInt32(Request.QueryString["e"]);
            CentroTrabajo     centro = new CentroTrabajo();
            CentroTrabajoDAV2 obj    = new CentroTrabajoDAV2();

            centro.IDGlobal = id;
            BaseEvaluador objE = new BaseEvaluador();
            BaseEmpleados lst  = new BaseEmpleados();

            //Obtener información de los posibles evaluadores (automáticos)
            lst = objE.ObtenerPosiblesEvaluadores(centro, Asig.Posibles);
            rptEvaluadoresPosibles.DataSource = lst;
            rptEvaluadoresPosibles.DataBind();
            CargarAsignados();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //Cargar información general del centro de trabajo
                int               id     = Convert.ToInt32(Request.QueryString["e"]);
                CentroTrabajo     centro = new CentroTrabajo();
                CentroTrabajoDAV2 obj    = new CentroTrabajoDAV2();
                centro.IDGlobal           = id;
                centro                    = obj.getCentroTrabajo(centro);
                lblCentroTrabajo.Text     = centro.CTrabajo;
                lblArea.Text              = centro.Area;
                lblMunicipio.Text         = centro.Municipio;
                lblUnidadResponsable.Text = centro.UnidadResponsable;
                CargarDatos();
            }

            txtDesde.Attributes.Add("readonly", "readonly");
            txtHasta.Attributes.Add("readonly", "readonly");
        }