예제 #1
0
 public FrmUsuario(Form parent)
 {
     InitializeComponent();
     this.parent = parent;
     ubo         = new UsuarioBO();
     pbo         = new PersonaBO();
     validar     = new ValidaDatos();
     tabla.Columns[0].ValueType = typeof(object);
 }
예제 #2
0
 public EditaCarrera(Form parent)
 {
     InitializeComponent();
     this.parent             = parent;
     log                     = new CarreraBO();
     validar                 = new ValidaDatos();
     lblTitulo.Text          = "Carrera - Agregar";
     cmbEstado.SelectedIndex = 0;
 }
 public EditaAdmin(Form parent)
 {
     InitializeComponent();
     this.parent       = parent;
     lblTitulo.Text    = "Administrador - Agregar";
     log               = new AdminBO();
     validar           = new ValidaDatos();
     chkActivo.Visible = false;
     chkActivo.Checked = true;
 }
예제 #4
0
 public EditaCarrera(Form parent, string id)
 {
     InitializeComponent();
     this.parent    = parent;
     Id             = id;
     log            = new CarreraBO();
     validar        = new ValidaDatos();
     lblTitulo.Text = "Carrera - Editar";
     lista          = new List <Carrera>();
     cargar();
 }
예제 #5
0
 public RegistraNota(Form parent, string id)
 {
     InitializeComponent();
     this.parent = parent;
     log         = new RegistroNotaBO();
     logE        = new MatriculaEstudianteBO();
     validar     = new ValidaDatos();
     listaE      = new List <MatriculaEstudiante>();
     logA        = new AsignacionBO();
     listaA      = new List <Asignacion>();
     cargarCombo(id);
 }
 public EditaPersona(Form parent, string u, string idB)
 {
     InitializeComponent();
     this.parent                = parent;
     lblTitulo.Text             = "Persona - Editar";
     log                        = new PersonaBO();
     validar                    = new ValidaDatos();
     lista                      = new List <Persona>();
     txtIdPersona.Enabled       = false;
     txtUsuarioRegistro.Enabled = false;
     chkEstado.Visible          = true;
     llenarEdita(idB);
 }
 public EditaMateria(Form parent)
 {
     InitializeComponent();
     this.parent    = parent;
     lblTitulo.Text = "Materia - Agregar";
     log            = new MateriaBO();
     validar        = new ValidaDatos();
     listaCarrera   = new List <Carrera>();
     logCarrera     = new CarreraBO();
     cargarCombo();
     chkActivo.Visible = false;
     chkActivo.Checked = true;
 }
 public EditaAdmin(Form parent, string usu)
 {
     InitializeComponent();
     this.parent            = parent;
     lblTitulo.Text         = "Administrador - Editar";
     log                    = new AdminBO();
     validar                = new ValidaDatos();
     txtContrasena.Enabled  = false;
     txtContrasena1.Enabled = false;
     chkActivo.Visible      = true;
     usuarioBuscar          = usu;
     lista                  = new List <Admin>();
     cargar();
 }
 /// <summary>
 /// Inicializa la ventana para editar un usuario existente
 /// </summary>
 /// <param name="u">
 /// Instancia de la clase Usuario
 /// </param>
 public FrmEdicionUsuario(Usuario u)
 {
     InitializeComponent();
     txtContrasena.Enabled          = false;
     txtConfirmarContrasena.Enabled = false;
     chkActivo.Enabled = true;
     this.u            = u;
     ubo       = new UsuarioBO();
     pbo       = new PersonaBO();
     validar   = new ValidaDatos();
     idPersona = u.idPersona;
     cargarDatos();
     cmbExpiraContrasena.SelectedIndex = 0;
 }
 public EditaMateria(Form parent, string idMateria)
 {
     InitializeComponent();
     this.parent    = parent;
     lblTitulo.Text = "Materia - Editar";
     log            = new MateriaBO();
     validar        = new ValidaDatos();
     listaCarrera   = new List <Carrera>();
     logCarrera     = new CarreraBO();
     listaM         = new List <Materias>();
     cargarCombo();
     chkActivo.Visible = true;
     id = idMateria;
     cargar();
 }
예제 #11
0
 public Pago(Form parent, string u)
 {
     InitializeComponent();
     this.parent    = parent;
     validar        = new ValidaDatos();
     logMateria     = new MateriaBO();
     listaMateria   = new List <Materias>();
     logMatricula   = new MatriculaEstudianteBO();
     listaMatricula = new List <MatriculaEstudiante>();
     cargarCombo(u);
     txtIdEstudiante.Text    = u;
     txtCostoMateria.Text    = sumaMaterias.ToString();
     txtCostosAsociados.Text = costo.ToString();
     txtTotal.Text           = totalPagar().ToString();
     txtIVA.Text             = "0.13";
 }
 public EditaPersona(Form parent, string u)
 {
     InitializeComponent();
     this.parent             = parent;
     txtUsuarioRegistro.Text = u;
     lblTitulo.Text          = "Persona - Agregar";
     log     = new PersonaBO();
     validar = new ValidaDatos();
     lista   = new List <Persona>();
     cmbTipoPersona.SelectedIndex    = 0;
     cmbSexo.SelectedIndex           = 0;
     cmbNivelAcademico.SelectedIndex = 0;
     cmbNacionalidad.SelectedIndex   = 0;
     txtIdPersona.Enabled            = false;
     txtUsuarioRegistro.Enabled      = false;
     chkEstado.Visible = false;
     chkEstado.Checked = true;
     asignarId();
 }