Esempio n. 1
0
        private string ValidarCampos(EFormAccion Accion)
        {
            string errores = "";

            if (String.IsNullOrEmpty(txtNombre.Text))
            {
                errores += "El campo NOMBRE es obligatorio\n";
            }


            if (Accion == EFormAccion.Agregar && !String.IsNullOrEmpty(txtNombre.Text))
            {
                Equipo equipo = this.equipoNegocio.Traer(txtNombre.Text);
                if (equipo != null)
                {
                    errores += "Ya existe una oficina con este nombre\n";
                }
            }

            if (String.IsNullOrEmpty(txtDescripcion.Text))
            {
                errores += "El campo DESCIPCIÓN es obligatorio\n";
            }

            return(errores);
        }
Esempio n. 2
0
        private string ValidarCampos(EFormAccion Accion)
        {
            string errores = "";

            if (String.IsNullOrEmpty(txtLegajo.Text))
            {
                errores += "El campo LEGAJO es obligatorio\n";
            }

            if (Accion == EFormAccion.Agregar && !String.IsNullOrEmpty(txtLegajo.Text))
            {
                Usuario usuario = this.usuarioNegocio.Traer(txtLegajo.Text);
                if (usuario != null)
                {
                    errores += "Ya existe un usuario con ese legajo\n";
                }
            }

            if (String.IsNullOrEmpty(txtNombre.Text))
            {
                errores += "El campo NOMBRE es obligatorio\n";
            }

            if (String.IsNullOrEmpty(txtApellido.Text))
            {
                errores += "El campo APELLIDO es obligatorio\n";
            }

            return(errores);
        }
Esempio n. 3
0
        private string ValidarCampos(EFormAccion Accion)
        {
            string errores = "";

            if (String.IsNullOrEmpty(txtNombre.Text))
            {
                errores += "El campo NOMBRE es obligatorio\n";
            }

            return(errores);
        }
Esempio n. 4
0
        private void PrepararFaseEditar()
        {
            this.accion = EFormAccion.Modificar;

            this.HabilitarTextBoxes(true);
            txtNombre.Enabled = false;

            btnAgregar.Enabled  = false;
            btnEditar.Enabled   = false;
            btnEliminar.Enabled = false;

            btnGuardar.Enabled  = true;
            btnCancelar.Enabled = true;
        }
Esempio n. 5
0
        private void PrepararFaseAgregar()
        {
            this.accion = EFormAccion.Agregar;

            this.LimpiarTextBoxes();
            this.HabilitarTextBoxes(true);

            btnAgregar.Enabled  = false;
            btnEditar.Enabled   = false;
            btnEliminar.Enabled = false;

            btnGuardar.Enabled  = true;
            btnCancelar.Enabled = true;
        }
Esempio n. 6
0
        private void PrepararFaseEditarExperiencia()
        {
            this.accion = EFormAccion.Modificar;

            this.HabilitarTextBoxes(true, panelExperiencia);
            this.HabilitarComboBoxes(true, panelExperiencia);
            txtExpCodigo.Enabled = false;

            btnExpAgregar.Enabled  = false;
            btnExpEditar.Enabled   = false;
            btnExpEliminar.Enabled = false;

            btnExpGuardar.Enabled  = true;
            btnExpCancelar.Enabled = true;
        }
Esempio n. 7
0
        private string ValidarCampos(EFormAccion Accion)
        {
            string errores = "";

            if (String.IsNullOrEmpty(txtNombre.Text))
            {
                errores += "El campo NOMBRE es obligatorio\n";
            }

            if (String.IsNullOrEmpty(txtAniosExperiencia.Text))
            {
                errores += "El campo AÑOS DE EXPERIENCIA es obligatorio\n";
            }

            return(errores);
        }
Esempio n. 8
0
        private void PrepararFaseEditarEducacion()
        {
            this.accion = EFormAccion.Modificar;

            this.HabilitarTextBoxes(true, panelEducacion);
            this.HabilitarComboBoxes(true, panelEducacion);
            txtEduCodigo.Enabled = false;

            btnEduAgregar.Enabled  = false;
            btnEduEditar.Enabled   = false;
            btnEduEliminar.Enabled = false;

            btnEduGuardar.Enabled  = true;
            btnEduCancelar.Enabled = true;

            dgvTecnologias.Enabled = true;
        }
Esempio n. 9
0
        private void PrepararFaseEditarCandidato()
        {
            this.accion = EFormAccion.Modificar;

            this.HabilitarTextBoxes(true, panelCandidato);
            this.HabilitarComboBoxes(true, panelCandidato);

            txtContCodigo.Enabled = false;
            txtDirCodigo.Enabled  = false;

            btnCandAgregar.Enabled  = false;
            btnCandEditar.Enabled   = false;
            btnCandEliminar.Enabled = false;

            btnCandGuardar.Enabled   = true;
            btnCandCancelar.Enabled  = true;
            btnCandSiguiente.Enabled = false;
        }
Esempio n. 10
0
        private void PrepararFaseEditar()
        {
            this.accion = EFormAccion.Modificar;

            this.HabilitarTextBoxes(true, panel1);
            this.HabilitarComboBoxes(true, panel1);

            txtCodigo.Enabled = false;

            btnAgregar.Enabled  = false;
            btnEditar.Enabled   = false;
            btnEliminar.Enabled = false;

            btnGuardar.Enabled  = true;
            btnCancelar.Enabled = true;

            btnSeleccionar.Enabled = false;
            btnCerrar.Enabled      = false;
        }
Esempio n. 11
0
        private void PrepararFaseAgregar()
        {
            this.accion = EFormAccion.Agregar;

            this.LimpiarTextBoxes(panel1);
            this.HabilitarTextBoxes(true, panel1);
            this.HabilitarComboBoxes(true, panel1);

            txtCodigo.Enabled = false;

            btnAgregar.Enabled  = false;
            btnEditar.Enabled   = false;
            btnEliminar.Enabled = false;

            btnAgregarTecnologia.Enabled = false;
            btnQuitarTecnologia.Enabled  = false;

            btnGuardar.Enabled  = true;
            btnCancelar.Enabled = true;

            dgvTecnologias.Enabled = false;
        }
Esempio n. 12
0
        private string ValidarCampos(EFormAccion Accion)
        {
            string errores = "";

            if (String.IsNullOrEmpty(txtNombre.Text))
            {
                errores += "El campo NOMBRE es obligatorio\n";
            }


            if (Accion == EFormAccion.Agregar && !String.IsNullOrEmpty(txtNombre.Text))
            {
                Oficina oficina = this.oficinaNegocio.Traer(txtNombre.Text);
                if (oficina != null)
                {
                    errores += "Ya existe una oficina con este nombre\n";
                }
            }

            if (String.IsNullOrEmpty(txtTelefono.Text))
            {
                errores += "El campo TELÉFONO es obligatorio\n";
            }

            if (String.IsNullOrEmpty(txtEmail.Text))
            {
                errores += "El campo EMAIL es obligatorio\n";
            }

            if (String.IsNullOrEmpty(txtProvincia.Text))
            {
                errores += "El campo PROVINCIA es obligatorio\n";
            }

            if (String.IsNullOrEmpty(txtLocalidad.Text))
            {
                errores += "El campo LOCALIDAD es obligatorio\n";
            }

            if (String.IsNullOrEmpty(txtCiudad.Text))
            {
                errores += "El campo CIUDAD es obligatorio\n";
            }

            if (String.IsNullOrEmpty(txtCalle.Text))
            {
                errores += "El campo CALLE es obligatorio\n";
            }

            if (String.IsNullOrEmpty(txtNumero.Text))
            {
                errores += "El campo NÚMERO es obligatorio\n";
            }

            if (String.IsNullOrEmpty(txtCodigoPostal.Text))
            {
                errores += "El campo CÓDIGO POSTAL es obligatorio\n";
            }

            return(errores);
        }