private void LoadEntity(Comision comision)
        {
            List <Plan> planes = new PlanLogic().GetAll();

            comision.Descripcion      = this.DescripcionTextBox.Text;
            comision.AnioEspecialidad = Convert.ToInt32(this.AnioDdl.SelectedValue);
            foreach (var p in planes.Where(p => p.Descripcion == idPlanDdl.Text))
            {
                comision.IDPlan = p.ID;
            }
        }
Example #2
0
        private void LoadEntity(Materia materia)
        {
            List <Plan> planes = new PlanLogic().GetAll();

            materia.Descripcion = this.DescripcionTextBox.Text;
            materia.HSSemanales = Convert.ToInt32(this.HSSemanalesTextBox.Text);
            materia.HSTotales   = Convert.ToInt32(this.HSTotalesTextBox.Text);
            foreach (var p in planes.Where(p => p.Descripcion == idPlanDdl.Text))
            {
                materia.IDPlan = p.ID;
            }
        }
        private void LoadForm(int id)
        {
            List <Plan> planes = new PlanLogic().GetAll();

            this.Entity                  = this.Logic.getOne(id);
            this.IdTextBox.Text          = this.Entity.ID.ToString();
            this.DescripcionTextBox.Text = this.Entity.Descripcion;
            this.AnioDdl.SelectedValue   = this.Entity.AnioEspecialidad.ToString();
            foreach (var p in planes.Where(p => p.ID == this.Entity.IDPlan))
            {
                this.idPlanDdl.Text = p.Descripcion;
            }
        }
Example #4
0
        private void LoadForm(int id)
        {
            List <Plan> planes = new PlanLogic().GetAll();

            this.Entity                  = this.Logic.getOne(id);
            this.IdTextBox.Text          = this.Entity.ID.ToString();
            this.DescripcionTextBox.Text = this.Entity.Descripcion;
            this.HSSemanalesTextBox.Text = this.Entity.HSSemanales.ToString();
            this.HSTotalesTextBox.Text   = this.Entity.HSTotales.ToString();
            foreach (var p in planes.Where(p => p.ID == this.Entity.IDPlan))
            {
                this.idPlanDdl.Text = p.Descripcion;
            }
        }