Exemplo n.º 1
0
        public DataTable GetListado()
        {
            List <Materia> materias = MateriaData.GetAll();
            //Se crea el DataTable que va a ser el DataSource del dgv
            DataTable Listado = new DataTable();

            Listado.Columns.Add("ID", typeof(int));
            Listado.Columns.Add("Descripcion", typeof(string));
            Listado.Columns.Add("HSSemanales", typeof(int));
            Listado.Columns.Add("HSTotales", typeof(int));
            Listado.Columns.Add("Plan", typeof(string));

            //Se obtienen las especialidades y los planes para mostrar en la columna Plan = esp.Descripcion + plan.Descripcion
            PlanLogic           pl             = new PlanLogic();
            List <Plan>         planes         = pl.GetAll();
            EspecialidadLogic   el             = new EspecialidadLogic();
            List <Especialidad> especialidades = el.GetAll();

            foreach (Materia mat in materias)
            {
                DataRow Linea = Listado.NewRow();

                Linea["ID"]          = mat.ID;
                Linea["Descripcion"] = mat.Descripcion;
                Linea["HSSemanales"] = mat.HSSemanales;
                Linea["HSTotales"]   = mat.HSTotales;

                Plan         plan = planes.FirstOrDefault(x => x.ID == mat.IDPlan);
                Especialidad esp  = especialidades.FirstOrDefault(x => x.ID == plan.IDEspecialidad);
                Linea["Plan"] = esp.Descripcion + " - " + plan.Descripcion;

                Listado.Rows.Add(Linea);
            }
            return(Listado);
        }
        public static int EspecialidadPlan(int id)
        {
            PlanLogic pl  = new PlanLogic();
            Plan      pla = pl.GetOne(id);

            return(pla.IDEspecialidad);
        }
        public static string DescripcionPlan(int id)
        {
            PlanLogic pl  = new PlanLogic();
            Plan      pla = pl.GetOne(id);

            return(pla.Descripcion);
        }
Exemplo n.º 4
0
 private void Planes_Load(object sender, EventArgs e)
 {
     PlanLogic pl = new PlanLogic();
     cmbPlanes.DataSource = pl.GetAll();
     cmbPlanes.DisplayMember = "desc_plan";
     cmbPlanes.ValueMember = "id_plan";
     Listar();
 }
Exemplo n.º 5
0
 public PlanDesktop(int ID, ModoForm modo)
     : this()
 {
     this.Modo = modo;
     PlanLogic logic = new PlanLogic();
     this.Plan = logic.GetOne(ID);
     MapearDeDatos();
 }
Exemplo n.º 6
0
        public override void GuardarCambios()
        {
            MapearADatos();

            PlanLogic PL = new PlanLogic();

            PL.Save(PlanActual);
        }
Exemplo n.º 7
0
 public PlanDesktop(int ID, ModoForm modo)
     : this()
 {
     this._Modo = modo;
     PlanLogic PlanNegocio = new PlanLogic();
     _PlanActual = PlanNegocio.GetOne(ID);
     this.MapearDeDatos();
 }
Exemplo n.º 8
0
 private void Listar()
 {
     PlanLogic pl=new PlanLogic();
     lblPlan.Text = (pl.GetOne(UsuarioSesion.Sesion.IDPlan)).Descripcion;
     CursoLogic cl = new CursoLogic();
     dgvCurComMa.AutoGenerateColumns = false;
     int idPlan = UsuarioSesion.Sesion.IDPlan;
     dgvCurComMa.DataSource = cl.DameCursosAInscribir(idPlan,UsuarioSesion.Sesion.ID);
 }
Exemplo n.º 9
0
        public PlanesForm(int ID, ModoForm modo)
            : this()
        {
            this.ModoFormulario = modo;
            PlanLogic lPlan = new PlanLogic();

            this.PlanActual = lPlan.GetOne(ID)[0];
            this.MapearDeDatos();
        }
Exemplo n.º 10
0
        public PlanDesktop(int ID, ModoForm modo)
            : this()
        {
            this.Modo = modo;

            PlanLogic PL = new PlanLogic();

            PlanActual = PL.GetOne(ID);

            MapearDeDatos();
        }
Exemplo n.º 11
0
 public void Listar()
 {
     try
     {
         PlanLogic pl = new PlanLogic();
         this.dgvPlanes.DataSource = pl.GetAll();
     }
     catch (Exception ex)
     {
         this.Notificar("Error", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 12
0
 private void Listar()
 {
     PlanLogic pl = new PlanLogic();
     cmbPlanes.ValueMember = "id_plan";
     cmbPlanes.DisplayMember = "desc_plan";
     cmbPlanes.DataSource = pl.GetAll();
     ComisionLogic cl = new ComisionLogic();
     cmbComision.ValueMember = "id_comision";
     cmbComision.DisplayMember = "desc_comision";
     cmbComision.DataSource = cl.DameComisiones((int)cmbPlanes.SelectedValue);
     CursoLogic curl=new CursoLogic();
     dgvCursos.DataSource = curl.DameCursos((int)cmbComision.SelectedValue);
 }
Exemplo n.º 13
0
 private void tsbEliminar_Click(object sender, EventArgs e)
 {
     if (!(this.dgvPlanes.SelectedRows.Equals(null)))
     {
         int ID = ((Business.Entities.Plan)this.dgvPlanes.SelectedRows[0].DataBoundItem).ID;
         if (MessageBox.Show("¿Esta seguro de querer eliminar?", "Baja", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
         {
             PlanLogic oEntity = new PlanLogic();
             oEntity.Delete(ID);
             this.Listar();
         }
     }
     else this.Notificar("No hay fila seleccionada", "Por favor, seleccione una fila", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
 }
Exemplo n.º 14
0
 public PlanDesktop(int ID, ModoForm modo)
     : this()
 {
     this._Modo = modo;
     PlanLogic PlanNegocio = new PlanLogic();
     try
     {
         _PlanActual = PlanNegocio.GetOne(ID);
         this.llenarCombo();
         this.MapearDeDatos();
     }
     catch (Exception ex)
     {
         this.Notificar("Error", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 15
0
 private void btnAgregar_Click(object sender, EventArgs e)
 {
     if (Validar())
     {
         PlanLogic pl = new PlanLogic();
         Plan p = new Plan();
         p.IDEspecialidad = (int)cmbEspecialidad.SelectedValue;
         p.Descripcion = txtDescripcion.Text;
         pl.AddPlan(p);
         Notificar("Plan creado satisfactoriamente", MessageBoxButtons.OK, MessageBoxIcon.Information);
         this.Dispose();
     }
     else
     {
         Notificar("Los campos deben estar completos", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 16
0
 public override void GuardarCambios()
 {
     try
     {
         this.MapearADatos();
         PlanLogic planLogic = new PlanLogic();
         if (_Modo != ModoForm.Alta || !planLogic.Existe(_PlanActual.Descripcion, _PlanActual.Especialidad.ID))
         {
             planLogic.Save(_PlanActual);
         }
         else this.Notificar("Ya existe este Plan", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     catch (Exception ex)
     {
         this.Notificar("Error", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        public static List <ReportePlanes> ObtenerPlanes()
        {
            List <ReportePlanes> listaPlanes    = new List <ReportePlanes>();
            PlanLogic            pl             = new PlanLogic();
            EspecialidadLogic    el             = new EspecialidadLogic();
            List <Plan>          planes         = pl.GetAll();
            List <Especialidad>  especialidades = el.GetAll();
            var consultaPlanes =
                from p in planes
                join es in especialidades
                on p.IDEspecialidad equals es.ID
                select new ReportePlanes
            {
                ID           = p.ID,
                Descripcion  = p.Descripcion,
                Especialidad = es.Descripcion
            };

            listaPlanes = consultaPlanes.ToList();
            return(listaPlanes);
        }
Exemplo n.º 18
0
 public void Listar()
 {
     EspecialidadLogic e = new EspecialidadLogic();
     this.dgvEspecialidades.DataSource = e.GetAll();
     PlanLogic p = new PlanLogic();
     this.dgvPlanes.DataSource = p.GetAll();
     MateriaLogic m = new MateriaLogic();
     this.dgvMaterias.DataSource = m.GetAll();
     ComisionLogic co = new ComisionLogic();
     this.dgvComisiones.DataSource = co.GetAll();
     CursoLogic cu = new CursoLogic();
     this.dgvCursos.DataSource = cu.GetAll();
     PersonaLogic alu = new PersonaLogic();
     this.dgvAlumnos.DataSource = alu.GetAll(0);
     PersonaLogic pro = new PersonaLogic();
     this.dgvProfesores.DataSource = pro.GetAll(1);
     DocenteCursoLogic dc = new DocenteCursoLogic();
     this.dgvDesignaciones.DataSource = dc.GetAll();
     UsuarioLogic u = new UsuarioLogic();
     this.dgvUsuarios.DataSource = u.GetAll();
 }
Exemplo n.º 19
0
        public override void MapearDeDatos()
        {
            this.txtId.Text = this.AlumnoActual.ID.ToString();
            this.txtNombre.Text = this.AlumnoActual.Nombre;
            this.txtApellido.Text = this.AlumnoActual.Apellido;
            this.txtDireccion.Text = this.AlumnoActual.Direccion;
            this.txtEmail.Text = this.AlumnoActual.Email;
            this.dateNacimiento.Value = this.AlumnoActual.FechaNacimiento;
            this.txtLegajo.Text = this.AlumnoActual.Legajo.ToString();
            this.txtTelefono.Text = this.AlumnoActual.Telefono.ToString();

            EspecialidadLogic oEspecialidad = new EspecialidadLogic();
            Especialidades listaEspecialidades = oEspecialidad.GetAll();
            this.cbEspecialidad.DataSource = listaEspecialidades;

            PlanLogic oPlan = new PlanLogic();
            Plan plan = oPlan.GetOne(this.AlumnoActual.IDPlan)[0];
            Especialidad esp = oEspecialidad.GetOne(plan.IDEspecialidad)[0];
            Planes listaPlanes = oPlan.GetAllPorEspecialidad(esp.ID);
            this.cbPlan.DataSource = listaPlanes;

            this.cbEspecialidad.SelectedValue = esp.ID;
            this.cbPlan.SelectedValue = this.AlumnoActual.IDPlan;

            if (ModoFormulario == ModoForm.Alta || ModoFormulario == ModoForm.Modificacion)
            {
                this.btnGuardar.Text = "Guardar";
            }
            else if (ModoFormulario == ModoForm.Baja)
            {
                this.btnGuardar.Text = "Eliminar";
            }
            else
            {
                this.btnGuardar.Text = "Aceptar";
            }
        }
Exemplo n.º 20
0
 private void LoadDdlPlanes()
 {
     PlanLogic pl = new PlanLogic();
     List<Plan> planes = new List<Plan>();
     foreach (Plan p in pl.GetAll())
     {
         if (p.Especialidad.ID == Convert.ToInt32(this.ddlEspecialidades.SelectedValue))
         {
             planes.Add(p);
         }
     }
     this.ddlPlanes.DataSource = planes;
     this.ddlPlanes.DataTextField = "Descripcion";
     this.ddlPlanes.DataValueField = "ID";
     this.ddlPlanes.DataBind();
     ListItem init = new ListItem();
     init.Text = "--Seleccionar Plan--";
     init.Value = "-1";
     this.ddlPlanes.Items.Add(init);
     this.ddlPlanes.SelectedValue = "-1";
 }
Exemplo n.º 21
0
 private void LlenarComboPlanes()
 {
     try
     {
         PlanLogic pl = new PlanLogic();
         List<Plan> planes = new List<Plan>();
         foreach (Plan p in pl.GetAll())
         {
             if (p.Especialidad.ID == Convert.ToInt32(cbxEspecialidades.SelectedValue))
             {
                 planes.Add(p);
             }
         }
         cbxPlanes.DataSource = planes;
         cbxPlanes.DisplayMember = "Descripcion";
         cbxPlanes.ValueMember = "ID";
     }
     catch (Exception ex)
     {
         this.Notificar("Error", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 22
0
 public List<Plan> getPlanes()
 {
     PlanLogic esp = new PlanLogic();
     this.lstPlan = esp.GetAll();
     return this.lstPlan;
 }
Exemplo n.º 23
0
 public List<Plan> getPlanes(int IDEspecialidad)
 {
     PlanLogic esp = new PlanLogic();
     this.lstPlan = esp.GetAll(IDEspecialidad);
     return this.lstPlan;
 }
Exemplo n.º 24
0
        public DataTable GetListado(Usuario user)
        {
            List <Curso> cursos = new List <Curso>();

            if ((int)user.TipoPersona == 2)
            {
                DocenteCursoLogic   dcl    = new DocenteCursoLogic();
                List <DocenteCurso> dclist = dcl.GetAllFromUser(user.ID);

                foreach (DocenteCurso dc in dclist)
                {
                    cursos.Add(CursoData.GetOne(dc.IDCurso));
                }
            }
            else
            {
                cursos = CursoData.GetAll();
            }

            //Se crea el DataTable que va a ser el DataSource del dgv
            DataTable Listado = new DataTable();

            Listado.Columns.Add("ID", typeof(int));
            Listado.Columns.Add("AnioCalendario", typeof(int));
            Listado.Columns.Add("Cupo", typeof(int));
            Listado.Columns.Add("Materia", typeof(string));
            Listado.Columns.Add("Comision", typeof(string));
            Listado.Columns.Add("Plan", typeof(string));

            //La columna materia mostrara materia.Descripcion
            //La columna comision mostrara comision.Descripcion
            //La columna plan mostrara especialidad.Descripcion + plan.Descripcion
            //En vez de mostrar los ID's que aportan poca informacion
            PlanLogic           pl             = new PlanLogic();
            List <Plan>         planes         = pl.GetAll();
            EspecialidadLogic   el             = new EspecialidadLogic();
            List <Especialidad> especialidades = el.GetAll();
            MateriaLogic        ml             = new MateriaLogic();
            List <Materia>      materias       = ml.GetAll();
            ComisionLogic       coml           = new ComisionLogic();
            List <Comision>     comisiones     = coml.GetAll();

            foreach (Curso cur in cursos)
            {
                DataRow Linea = Listado.NewRow();

                Linea["ID"]             = cur.ID;
                Linea["AnioCalendario"] = cur.AnioCalendario.ToString();
                Linea["Cupo"]           = cur.Cupo;

                Comision com = comisiones.FirstOrDefault(x => x.ID == cur.IDComision);
                Linea["Comision"] = com.Descripcion;

                Materia      materia = materias.FirstOrDefault(x => x.ID == cur.IDMateria);
                Plan         plan    = planes.FirstOrDefault(x => x.ID == materia.IDPlan);
                Especialidad esp     = especialidades.FirstOrDefault(x => x.ID == plan.IDEspecialidad);
                Linea["Materia"] = materia.Descripcion;
                Linea["Plan"]    = esp.Descripcion + " - " + plan.Descripcion;

                Listado.Rows.Add(Linea);
            }
            return(Listado);
        }
Exemplo n.º 25
0
 private void LoadCmbPlanes()
 {
     PlanLogic pl = new PlanLogic();
     this.cmbPlan.DataSource = pl.GetAll();
     this.cmbPlan.DataTextField = "DescCompleta";
     this.cmbPlan.DataValueField = "ID";
     this.cmbPlan.DataBind();
 }
Exemplo n.º 26
0
        private void InscripcionMateria_Load(object sender, EventArgs e)
        {
            this.lblNombreAlumno.Text = this.AlumnoActual.Nombre + " " + this.AlumnoActual.Apellido + " (" + this.AlumnoActual.Legajo + ")";

            PlanLogic pl = new PlanLogic();
            Plan planActual = pl.GetOne(AlumnoActual.IdPlan);
            this.lblNombrePlan.Text = planActual.DescCompleta;

            CursoLogic cl = new CursoLogic();
            this.cmbMateria.DataSource = cl.GetAllCursosAnio(AlumnoActual.IdPlan);
            this.cmbMateria.DisplayMember = "MateriaComision";
            this.cmbMateria.ValueMember = "ID";

            this.cmbCondicion.DataSource = Enum.GetValues(typeof(Condiciones));

            if(this.Modo.Equals(ModoForm.Alta)){
                this.cmbCondicion.SelectedIndex = 0;
                this.cmbCondicion.Enabled = false;
                this.txtNota.Enabled = false;
            }
            else if (this.Modo.Equals(ModoForm.Modificacion))
            {
                this.cmbMateria.Enabled = false;
                MapearDeDatos();
            }
        }
        public override void MapearDeDatos()
        {
            //Muestro especialidad, plan, materia, comision segun la designacion
            EspecialidadLogic oEspecialidad = new EspecialidadLogic();
            Especialidades listaEspecialidades = oEspecialidad.GetAll();
            this.cbEspecialidad.DataSource = listaEspecialidades;
            PersonaLogic oProfesor = new PersonaLogic();
            Personas listaProfesores = oProfesor.GetAll((int)Persona.TiposPersonas.Profesor);
            Persona profesor = oProfesor.GetOne(this.DocenteCursoActual.IDDocente, (int)Persona.TiposPersonas.Profesor)[0];
            this.cbDocente.DataSource = listaProfesores;

            PlanLogic oPlan = new PlanLogic();
            MateriaLogic oMateria = new MateriaLogic();
            ComisionLogic oComision = new ComisionLogic();
            CursoLogic oCurso = new CursoLogic();
            Curso curso = oCurso.GetOne(this.DocenteCursoActual.IDCurso)[0];
            Comision comision = oComision.GetOne(curso.IDComision)[0];
            Materia materia = oMateria.GetOne(curso.IDMateria)[0];
            Plan plan = oPlan.GetOne(materia.IDPlan)[0];
            Especialidad esp = oEspecialidad.GetOne(plan.IDEspecialidad)[0];
            Planes listaPlanes = oPlan.GetAllPorEspecialidad(esp.ID);
            Materias listaMaterias = oMateria.GetAllPorPlan(plan.ID);
            Comisiones listaComisiones = oComision.GetAllPorPlan(plan.ID);
            Cursos listaCursos = oCurso.GetAllPorMateriaComision(materia.ID, comision.ID);
            this.cbPlan.DataSource = listaPlanes;
            this.cbMateria.DataSource = listaMaterias;
            this.cbComision.DataSource = listaComisiones;
            this.cbCurso.DataSource = listaCursos;

            this.cbEspecialidad.SelectedValue = esp.ID;
            this.cbPlan.SelectedValue = plan.ID;
            this.cbMateria.SelectedValue = materia.ID;
            this.cbComision.SelectedValue = comision.ID;
            //Muestro demás datos
            this.txtId.Text = this.DocenteCursoActual.ID.ToString();
            this.cbCurso.SelectedValue = this.DocenteCursoActual.IDCurso;
            this.cbDocente.SelectedValue = this.DocenteCursoActual.IDDocente;
            this.txtNombreDocente.Text = profesor.Apellido + ", " + profesor.Nombre;
            if(DocenteCursoActual.Cargo  == DocenteCurso.TiposCargos.Profesor)
                this.rbTitular.Checked = true;
            else if(DocenteCursoActual.Cargo == DocenteCurso.TiposCargos.Auxiliar)
                this.rbAuxiliar.Checked = true;
            this.txtId.Text = this.DocenteCursoActual.ID.ToString();

            if (ModoFormulario == ModoForm.Alta || ModoFormulario == ModoForm.Modificacion)
            {
                this.btnAsignar.Text = "Asignar";
            }
            else if (ModoFormulario == ModoForm.Baja)
            {
                this.btnAsignar.Text = "Eliminar";
            }
            else
            {
                this.btnAsignar.Text = "Aceptar";
            }
        }
Exemplo n.º 28
0
 private void tsbEliminar_Click(object sender, EventArgs e)
 {
     var rta = MessageBox.Show("¿Esta seguro que desea eliminar el Plan seleccionado?", "Atencion", MessageBoxButtons.YesNo);
     if (rta == DialogResult.Yes)
     {
         try
         {
             int ID = ((Business.Entities.Plan)this.dgvPlanes.SelectedRows[0].DataBoundItem).ID;
             PlanLogic plan = new PlanLogic();
             plan.Delete(ID);
             this.Listar();
         }
         catch (Exception ex)
         {
             this.Notificar("Error", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }
Exemplo n.º 29
0
        public override void MapearDeDatos()
        {
            //Traigo Especialidades
            EspecialidadLogic oEspecialidad = new EspecialidadLogic();
            Especialidades listaEspecialidades = oEspecialidad.GetAll();
            this.cbEspecialidad.DataSource = listaEspecialidades;

            PlanLogic oPlan = new PlanLogic();
            //Muestro el plan y la especialidad del curso segun la materia y comision
            MateriaLogic oMateria = new MateriaLogic();
            ComisionLogic oComision = new ComisionLogic();
            Comision comision = oComision.GetOne(this.CursoActual.IDComision)[0];
            Materia materia = oMateria.GetOne(this.CursoActual.IDMateria)[0];
            Plan plan = oPlan.GetOne(materia.IDPlan)[0];
            Especialidad esp = oEspecialidad.GetOne(plan.IDEspecialidad)[0];
            Planes listaPlanes = oPlan.GetAllPorEspecialidad(esp.ID);
            Materias listaMaterias = oMateria.GetAllPorPlan(plan.ID);
            Comisiones listaComisiones = oComision.GetAllPorPlan(plan.ID);
            this.cbPlan.DataSource = listaPlanes;
            this.cbMateria.DataSource = listaMaterias;
            this.cbComision.DataSource = listaComisiones;

            this.cbEspecialidad.SelectedValue = esp.ID;
            this.cbPlan.SelectedValue = plan.ID;
            //Muestro demás datos
            this.txtId.Text = this.CursoActual.ID.ToString();
            this.cbMateria.SelectedValue = Convert.ToInt32(this.CursoActual.IDMateria);
            this.cbComision.SelectedValue = Convert.ToInt32(this.CursoActual.IDComision);
            this.txtDescripcion.Text = this.CursoActual.Descripcion;
            this.txtAnio.Text = this.CursoActual.AnioCalendario.ToString();
            this.txtCupo.Text = this.CursoActual.Cupo.ToString();

            if (ModoFormulario == ModoForm.Alta || ModoFormulario == ModoForm.Modificacion)
            {
                this.btnGuardar.Text = "Guardar";
            }
            else if (ModoFormulario == ModoForm.Baja)
            {
                this.btnGuardar.Text = "Eliminar";
            }
            else
            {
                this.btnGuardar.Text = "Aceptar";
            }
        }
Exemplo n.º 30
0
 public override void GuardarCambios()
 {
     this.MapearADatos();
     PlanLogic uLogic = new PlanLogic();
     uLogic.Save(this.Plan);
 }
Exemplo n.º 31
0
        public override void MapearDeDatos()
        {
            this.txtId.Text = this.ComisionActual.ID.ToString();
            this.txtDescripcion.Text = this.ComisionActual.Descripcion;
            this.txtAnioEspecialidad.Text = this.ComisionActual.AnioEspecialidad.ToString();
            this.cbPlan.SelectedValue = this.ComisionActual.IDPlan;

            EspecialidadLogic oEspecialidad = new EspecialidadLogic();
            Especialidades listaEspecialidades = oEspecialidad.GetAll();
            this.cbEspecialidad.DataSource = listaEspecialidades;

            PlanLogic oPlan = new PlanLogic();
            Plan plan = oPlan.GetOne(this.ComisionActual.IDPlan)[0];
            Especialidad esp = oEspecialidad.GetOne(plan.IDEspecialidad)[0];
            Planes listaPlanes = oPlan.GetAllPorEspecialidad(esp.ID);
            this.cbPlan.DataSource = listaPlanes;

            this.cbEspecialidad.SelectedValue = esp.ID;
            this.cbPlan.SelectedValue = plan.ID;

            if (ModoFormulario == ModoForm.Alta || ModoFormulario == ModoForm.Modificacion)
            {
                this.btnGuardar.Text = "Guardar";
            }
            else if (ModoFormulario == ModoForm.Baja)
            {
                this.btnGuardar.Text = "Eliminar";
            }
            else
            {
                this.btnGuardar.Text = "Aceptar";
            }
        }
Exemplo n.º 32
0
 private void MateriaDesktop_Load(object sender, EventArgs e)
 {
     PlanLogic pl = new PlanLogic();
     cmbPlanes.DataSource = pl.GetAll();
     cmbPlanes.DisplayMember = "desc_plan";
     cmbPlanes.ValueMember = "id_plan";
     if (MateriaActual != null)
     {
         this.cmbPlanes.SelectedValue = (this.MateriaActual.IDPlan).ToString();
         this.cmbPlanes.Enabled = false;
     }
 }
Exemplo n.º 33
0
 public override void GuardarCambios()
 {
     this.MapearADatos();
     PlanLogic planLogic = new PlanLogic();
     planLogic.Save(_PlanActual);
 }
Exemplo n.º 34
0
 public Planes(Business.Logic.PlanLogic plan)
 {
     PlanNegocio = plan;
 }
Exemplo n.º 35
0
 private void cbEspecialidad_SelectedValueChanged(object sender, EventArgs e)
 {
     PlanLogic oPlan = new PlanLogic();
     Planes listaPlanes = oPlan.GetAllPorEspecialidad(Convert.ToInt32(this.cbEspecialidad.SelectedValue));
     this.cbPlan.DataSource = listaPlanes;
     this.cbPlan.SelectedValue = 0;
 }
Exemplo n.º 36
0
        public void Listar()
        {
            PlanLogic PL = new PlanLogic();

            this.dgvPlan.DataSource = PL.GetAll();
        }