private void LimpiaCajasTextoBox() { //CmbPuesto.SelectedIndex=0; //CmbEstatus.SelectedIndex = 0; TxtNomina.Clear(); TxtId_Usuario.Clear(); TxtNombres.Clear(); TxtApMaterno.Clear(); TxtApPaterno.Clear(); TxtRFC.Clear(); TxtCURP.Clear(); TxtTelefono.Clear(); TxtCelular.Clear(); TxtEmail.Clear(); TxtCalle.Clear(); TxtNumInterno.Clear(); TxtNumExterno.Clear(); TxtEntreCalles.Clear(); TxtColonia.Clear(); TxtCodigoPostal.Clear(); TxtEstado.Clear(); TxtMunicipio.Clear(); TxtPais.Clear(); DtpFechaNacimiento.MaxDate = DateTime.Now.AddYears(-18); PtbxFotoPerfil.Image = Properties.Resources.LgoEsferaBlancTrasp; CmbxPais.SelectedValue = 0; CmbAreas.SelectedValue = 0; CmbEstatus.SelectedValue = 0; CmbEmpresa.SelectedValue = 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; }
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); }