Example #1
0
        private void LimpiarDatosEmpleado()
        {
            TxtNomina.Focus();
            TxtNomina.SelectAll();
            Lblnombre.Text   = "Nombre Completo";
            LblCorreo.Text   = "*****@*****.**";
            Lbltelefono.Text = "Tel: 00000000";
            LblPuesto.Text   = "Puesto Asignado";

            PtbxFotoPerfil.SizeMode = PictureBoxSizeMode.Zoom;
            PtbxFotoPerfil.Image    = Properties.Resources.LogoRHAquaTrazo;
        }
Example #2
0
        private bool ValidarCampos()
        {
            if (string.IsNullOrEmpty(TxtNomina.Text) || TxtNomina.Text == "Nomina...")
            {
                Soporte.MsgInformacion("Ingrese Numero de nomina para buscar sus Datos");
                TxtNomina.Focus();
                return(false);
            }
            if (string.IsNullOrEmpty(TxtUser_Name.Text) || TxtUser_Name.Text == "User Name...")
            {
                Soporte.MsgInformacion("Ingrese un Nombre de Usuario para continuar");
                TxtUser_Name.Focus();
                return(false);
            }


            if (string.IsNullOrEmpty(txtContraseñaName.Text) || txtContraseñaName.Text == "Contraseña...")
            {
                Soporte.MsgInformacion("Falta ingresar la Contraseña.");
                txtContraseñaName.Focus();
                return(false);
            }

            if (string.IsNullOrEmpty(TxtContraConfirmar.Text) || TxtContraConfirmar.Text == "Confirmar Contraseña...")
            {
                Soporte.MsgInformacion("Confirme la contraseña para poder continuar.");
                TxtContraConfirmar.Focus();
                TxtContraConfirmar.SelectAll();
            }

            if (txtContraseñaName.Text != TxtContraConfirmar.Text)
            {
                Soporte.MsgInformacion("Las Contraseñas no coinciden favor de revisar");
                TxtContraConfirmar.Focus();
                TxtContraConfirmar.SelectAll();
                return(false);
            }

            if (string.IsNullOrEmpty(TxtCorreon.Text))
            {
                TxtCorreon.Text = "*****@*****.**";
            }

            if (Soporte.ValidarMail(TxtCorreon.Text) == false)
            {
                Soporte.MsgInformacion("Correo no valido favor de revisar");
                TxtCorreon.Focus();
                TxtCorreon.SelectAll();
                return(false);
            }
            if (string.IsNullOrEmpty(TxtPin.Text) || TxtPin.Text == "PIN")
            {
                TxtPin.Text = "0";
            }
            if (string.IsNullOrEmpty(TxtPalabraSeguridad.Text) || TxtPalabraSeguridad.Text == "Palabra de Seguridad...")
            {
                TxtPalabraSeguridad.Text = "Sin Registro de Seguridad";
            }

            return(true);
        }