Ejemplo n.º 1
0
 private void frmAlumno_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this);
     LlenarGrilla();
     txtFechaNacimiento.MaxDate = DateTime.Now.AddYears(-3);
     txtFechaNacimiento.MinDate = DateTime.Now.AddYears(-18);
 }
Ejemplo n.º 2
0
        private void frmExamen_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);


            llenarGrillaMateria();
            CursoComponent cursoComponent = new CursoComponent();

            txtCurso.DataSource    = cursoComponent.ReadByAño(DateTime.Now.Year);
            txtCurso.DisplayMember = "nombre";
            txtCurso.ValueMember   = "Id";
            EspecialidadComponent especialidadComponent = new EspecialidadComponent();

            txtEspecialidad.DataSource    = especialidadComponent.Read();
            txtEspecialidad.ValueMember   = "Id";
            txtEspecialidad.DisplayMember = "especialidad";
            int año = DateTime.Now.Year;

            DateTime min = new DateTime(año, 3, 1);

            txtFecha.MinDate = min;
            txtFecha.MaxDate = DateTime.Now;
            SalaHorarioComponent salaHorario = new SalaHorarioComponent();

            txtAño.DataSource    = salaHorario.SoloAño();
            txtAño.DisplayMember = "Año";
        }
Ejemplo n.º 3
0
        private void frmCursoMaestra_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);
            CursoComponent cursoAlumnoComponent = new CursoComponent();
            List <Curso>   cursos = new List <Curso>();
            int            año    = DateTime.Now.Year;

            cursos = cursoAlumnoComponent.ReadByMaestro(persona.Id);

            mgReserva.Rows.Clear();
            int n = 0;

            foreach (var item in cursos)
            {
                n = mgReserva.Rows.Add();

                mgReserva.Rows[n].Cells[0].Value = item.Id;
                mgReserva.Rows[n].Cells[1].Value = item.nombre;
                mgReserva.Rows[n].Cells[2].Value = item.sala.tipoSala;
                mgReserva.Rows[n].Cells[3].Value = item.sala.capacidad;
                mgReserva.Rows[n].Cells[4].Value = item.salaHorario.turno;
                mgReserva.Rows[n].Cells[5].Value = item.salaHorario.hora;
                mgReserva.Rows[n].Cells[6].Value = item.salaHorario.año;

                mgReserva.Rows[n].Cells[7].Value = item.sala.nombre;

                mgReserva.Rows[n].Cells[8].Value = item.grado.nombre;
            }
        }
Ejemplo n.º 4
0
        private void frmComunicadoAlumno_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);
            CursoComponent cursoAlumnoComponent = new CursoComponent();


            cursos = cursoAlumnoComponent.ReadByPersona(persona.Id);
            llenarGrilla();
        }
Ejemplo n.º 5
0
        private void frmMateria_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);
            EspecialidadComponent especialidadComponent = new EspecialidadComponent();

            txtEspecialidad.DataSource    = especialidadComponent.Read();
            txtEspecialidad.DisplayMember = "especialidad";
            txtEspecialidad.ValueMember   = "Id";
            llenargrilla();
        }
Ejemplo n.º 6
0
        private void frmCursos_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);
            llenarAños();
            llenarGrillaReservas();

            SalaHorarioComponent salaHorario = new SalaHorarioComponent();

            txtAño.DataSource    = salaHorario.SoloAño();
            txtAño.DisplayMember = "Año";
        }
Ejemplo n.º 7
0
        private void frmDatosPersonales_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);


            txtApellido.Text         = persona.apellido;
            txtDireccion.Text        = persona.direccion;
            txtDNI.Text              = persona.DNI;
            txtFechaNaciemiento.Text = persona.fechaNacimiento.ToString("dd-MM-yyyy");
            txtNombre.Text           = persona.nombre;
        }
Ejemplo n.º 8
0
        private void frmExamenMaestra_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);
            RecorridoForm.CambiarIdioma(this);

            llenarGrillaCursos();
            MateriaComponent materiaComponent = new MateriaComponent();

            txtMateriaAlta.DataSource    = materiaComponent.ReadByEspecialidad(persona.Id);
            txtMateriaAlta.ValueMember   = "Id";
            txtMateriaAlta.DisplayMember = "materia";
        }
Ejemplo n.º 9
0
        private void frmMantenimiento_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);
            llenarGrillaMantenimiento();
            ProveedorComponenent tipoProveedorComponent = new ProveedorComponenent();

            txtTipoProvv.DataSource    = tipoProveedorComponent.Read();
            txtTipoProvv.ValueMember   = "Id";
            txtTipoProvv.DisplayMember = "tipoProveedor";
            llenarGrillaTipoM();

            txtFecha.MinDate = DateTime.Now;
        }
Ejemplo n.º 10
0
 private void frmInscripcion_Load(object sender, EventArgs e)
 {
     tabIncripcion.SelectedIndex = 0;
     RecorridoForm.CambiarIdioma(this);
     txtFechaNaciemiento.MaxDate   = DateTime.Now.AddYears(-3);
     txtFechaNaciemiento.MinDate   = DateTime.Now.AddYears(-6);
     txtMedicamentosCuales.Visible = false;
     txtAlimentoCuales.Visible     = false;
     txtElementosCuales.Visible    = false;
     txtCualOS.Visible             = false;
     txtTelefonoOS.Visible         = false;
     txtSocioOS.Visible            = false;
     txtMedicamentosCuales.Text    = "";
 }
Ejemplo n.º 11
0
        private void frmCursoAlumnosVerBaja_Load(object sender, EventArgs e)
        {
            if (b == 1)
            {
                metroButton1.Visible = false;
            }
            CursoComponent cursoComponent = new CursoComponent();

            unCurso   = cursoComponent.ReadBy(curso);
            this.Text = " Alumnos y Maestros de la sala " + unCurso.nombre + " Del año " + unCurso.salaHorario.año + " Turno " + unCurso.salaHorario.turno;
            llenarGrillaAlumno();
            llenarGrillaMaestro();
            RecorridoForm.CambiarIdioma(this);
        }
Ejemplo n.º 12
0
        private void frmPersonal_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);
            txtFechaNaciemiento.MaxDate = DateTime.Now.AddYears(-18);
            txtFechaNaciemiento.MinDate = DateTime.Now.AddYears(-65);
            txtFechaNacimiento.MaxDate  = DateTime.Now.AddYears(-18);
            txtFechaNacimiento.MinDate  = DateTime.Now.AddYears(-65);
            txtFechaNacimiento.MaxDate  = DateTime.Now.AddYears(-18);
            txtFechaNacimiento.MinDate  = DateTime.Now.AddYears(-65);

            llenarGrillaEspecialidades();
            llenarGrillaMaestro();

            llenarEspecialidad();
        }
Ejemplo n.º 13
0
        private void frmMaestro_Load(object sender, EventArgs e)
        {
            this.Text = "Bienvenido " + persona.nombreCompleto;
            UsuarioPersonaComponent usuarioPersonaComponent = new UsuarioPersonaComponent();

            persona = usuarioPersonaComponent.ReadByPersona(SessionManager.instance.GetUSuario().Id).persona;
            List <Idioma>   idiomas         = new List <Idioma>();
            IdiomaComponent idiomaComponent = new IdiomaComponent();

            idiomas                = idiomaComponent.Read();
            cbIdioma.DataSource    = idiomas;
            cbIdioma.DisplayMember = "idioma";
            cbIdioma.ValueMember   = "Id";

            RecorridoForm.CambiarIdioma(this);
        }
Ejemplo n.º 14
0
        private void frmAsistencia_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);
            CursoComponent cursoComponent = new CursoComponent();

            unCurso = cursoComponent.ReadBy(curso);
            AlumnoComponent alumnocomponent = new AlumnoComponent();

            alumnos = alumnocomponent.ObtenerAlumnodeCunCurso(curso);


            txtAlumno.DataSource    = alumnos;
            txtAlumno.ValueMember   = "Id";
            txtAlumno.DisplayMember = "nombreCompleto";
            llenarGrillaAsistencias();
            llenarCOmboMesVer();
        }
Ejemplo n.º 15
0
 private void frmReservaSalas_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this); llenarComboSala();
     llenarGrillaGrado();
     llenarGrillaReservas();
 }
Ejemplo n.º 16
0
 private void frmAlumnosCurso_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this);
     llenarGrillaReservas();
 }
Ejemplo n.º 17
0
 private void frmAsignaMaestroGrado_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this);
     llenarCombo();
 }
Ejemplo n.º 18
0
 private void frmEspecialidad_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this);
     llenarCombo();
     llenarGrilla();
 }
Ejemplo n.º 19
0
 private void frmCalendario_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this); llenargrilla();
 }
Ejemplo n.º 20
0
 private void frmComunicaciones_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this);
     LlenarGrilla();
     llenarGrillaListado();
 }
Ejemplo n.º 21
0
 private void frmBoletin_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this);
     llenarGrillaCursos();
 }
Ejemplo n.º 22
0
 private void frmSalasIndex_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this);
 }
Ejemplo n.º 23
0
 private void cbIdioma_SelectedIndexChanged(object sender, EventArgs e)
 {
     SingletonIdioma.intance.CambiarIdioma((Idioma)cbIdioma.SelectedItem);
     RecorridoForm.CambiarIdioma(this);
 }
 private void frmComunicacionesMaestra_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this);
     llenarGrillaCursos();
 }
Ejemplo n.º 25
0
 private void FrmHorarioMaestroGrado_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this);
     llenarGrilla();
     llenarCombo();
 }
Ejemplo n.º 26
0
 private void frmProveedores_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this);
     llenarGrillaProveedor();
     llenargrillaTipo();
 }
Ejemplo n.º 27
0
 private void frmABMsalas_Load(object sender, EventArgs e)
 {
     RecorridoForm.CambiarIdioma(this);
     llenarGrillaTipoSala();
     llenarGrillaSala();
 }