private Boolean Validar() { Boolean verificado = true; Notificador.Clear(); if (txbAlmacenamientos.TextLength == 0) { Notificador.SetError(txbAlmacenamientos, "Este campo no puede quedar vacío"); verificado = false; } //Verificacion para que no se repita un dato String Consulta = "SELECT LugarAlamacenamiento From almacenamientos WHERE LugarAlmacenamiento = '" + txbAlmacenamientos.Text + "';"; DataTable Datos = new DataTable(); DataManager.CLS.DBOperacion Consultor = new DataManager.CLS.DBOperacion(); Datos = Consultor.Consultar(Consulta); if (Datos.Rows.Count == 1) { verificado = false; MessageBox.Show("La zona de almacenamiento ya se encuentra registrada", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Warning); } return(verificado); }
private Boolean Comprobar() { Boolean Resultado = true; Notificador.Clear(); if (txbUsuario.TextLength == 0) { Resultado = false; Notificador.SetError(txbUsuario, "Este campo no puedo quedar vacio"); } if (txbClave.TextLength == 0) { Resultado = false; Notificador.SetError(txbClave, "Este campo no puedo quedar vacio"); } if (txbEmpleado.TextLength == 0) { Resultado = false; Notificador.SetError(btnSeleccionar, "Seleccione un empleado para el usuario creado"); } return(Resultado); }
private Boolean Validar() { Boolean verificado = true; Notificador.Clear(); if (txbUsuarios.TextLength == 0) { Notificador.SetError(txbUsuarios, "Este campo no puede quedar vacío"); verificado = false; } if (txbCredencial.TextLength == 0) { Notificador.SetError(txbCredencial, "Este campo no puede quedar vacío"); verificado = false; } String Consulta = "SELECT Usuario From Usuarios WHERE usuario = '" + txbUsuarios.Text + "';"; DataTable Datos = new DataTable(); DataManager.CLS.DBOperacion Consultor = new DataManager.CLS.DBOperacion(); Datos = Consultor.Consultar(Consulta); if (Datos.Rows.Count == 1) { verificado = false; MessageBox.Show("Este Usuario ya se encuentra registrado", "Alert", MessageBoxButtons.OK, MessageBoxIcon.Warning); } return(verificado); }
private Boolean Comprobar() { Boolean Resultado = true; Notificador.Clear(); if (txtUsuario.TextLength == 0) { Resultado = false; Notificador.SetError(txtUsuario, "Este campo no puede quedar vacio."); } if (txtClave.TextLength == 0) { Resultado = false; Notificador.SetError(txtClave, "Este campo no puede quedar vacio."); } if (txtIDEmpleado.TextLength == 0) { Resultado = false; Notificador.SetError(txtIDEmpleado, "Este campo no puede quedar vacio."); } if (txtEmpleado.TextLength == 0) { Resultado = false; Notificador.SetError(txtEmpleado, "Este campo no puede quedar vacio."); } return(Resultado); }
private Boolean Comprobar() { Boolean Resultado = true; Notificador.Clear(); if (txbDescripcion.TextLength == 0) { Resultado = false; Notificador.SetError(txbDescripcion, "Este campo no puede quedar vacío"); } if (txbAula.TextLength == 0) { Resultado = false; Notificador.SetError(txbAula, "Este campo no puede quedar vacío"); } if (txbCupo.TextLength == 0) { Resultado = false; Notificador.SetError(txbCupo, "Este campo no puede quedar vacío"); } return(Resultado); }
private Boolean Verificacion() { Boolean Verificado = true; Notificador.Clear(); if (txbIdMarca.TextLength <= 0) { Verificado = false; Notificador.SetError(txbIdMarca, "Este campo debe llenarse"); } if (txbNombre.TextLength <= 0) { Verificado = false; Notificador.SetError(txbNombre, "Este campo debe llenarse"); } if (txbAlias.TextLength <= 0) { Verificado = false; Notificador.SetError(txbAlias, "Este campo debe llenarse"); } if (txbPrecioVenta.TextLength <= 0) { Verificado = false; Notificador.SetError(txbPrecioVenta, "Este campo debe llenarse"); } return(Verificado); }
private Boolean Verificacion() { Boolean Verificado = true; Notificador.Clear(); if (txbExpediente.TextLength <= 0) { Verificado = false; Notificador.SetError(txbExpediente, "Este campo debe llenarse"); } if (txbNombres.TextLength <= 0) { Verificado = false; Notificador.SetError(txbNombres, "Este campo debe llenarse"); } if (txbApellidos.TextLength <= 0) { Verificado = false; Notificador.SetError(txbApellidos, "Este campo debe llenarse"); } if (txbMunicipio.TextLength <= 0) { Verificado = false; Notificador.SetError(txbMunicipio, "Este campo debe llenarse"); } return(Verificado); }
private Boolean VerificarDatos() { Boolean Verificado = true; Notificador.Clear(); if (txbUsuario.TextLength == 0) { Notificador.SetError(txbUsuario, "Este campo no puede quedar vacio"); Verificado = false; } if (txbContra.TextLength == 0) { Notificador.SetError(txbContra, "Este campo no puede quedar vacio"); Verificado = false; } if (txbContra2.TextLength == 0) { Notificador.SetError(txbContra2, "Este campo no puede quedar vacio"); Verificado = false; } return(Verificado); }
private Boolean VerificacionProducto() { Boolean Verificado = true; Notificador.Clear(); if (txbIdProducto.TextLength <= 0) { Verificado = false; Notificador.SetError(txbIdProducto, "Este campo debe llenarse"); } if (txbPrecioCompra.TextLength <= 0) { Verificado = false; Notificador.SetError(txbPrecioCompra, "Este campo debe llenarse"); } if (txbPrecioVenta.TextLength <= 0) { Verificado = false; Notificador.SetError(txbPrecioVenta, "Este campo debe llenarse"); } if (txbCantidad.TextLength <= 0) { Verificado = false; Notificador.SetError(txbCantidad, "Este campo debe llenarse"); } return(Verificado); }
private Boolean Verificacion() { Boolean Verificado = true; Notificador.Clear(); if (rdbGeneral.Checked == false && rdbProductoEspe.Checked == false && rdbMarcaEspe.Checked == false) { Notificador.SetError(gpbTipoCompra, "Seleccione un una opción"); } else if (rdbProductoEspe.Checked == true) { if (txbProducto.TextLength <= 0) { Verificado = false; Notificador.SetError(btnProducto, "Seleccione un producto"); } } else if (rdbMarcaEspe.Checked == true) { if (txbIdMarca.TextLength <= 0) { Verificado = false; Notificador.SetError(btnMarca, "Seleccione un producto"); } } return(Verificado); }
private Boolean ValidarDatos() { Boolean Validado = true; Notificador.Clear(); if (txtMotivos.TextLength == 0) { Notificador.SetError(txtMotivos, "Este campo no puede quedar vacio."); Validado = false; } return(Validado); }
private Boolean Comprobar() { Boolean Resultado = true; Notificador.Clear(); if (txtRol.TextLength == 0) { Resultado = false; Notificador.SetError(txtRol, "Este campo no puede quedar vacio"); } return(Resultado); }
private Boolean Verificacion() { Boolean Verificado = true; Notificador.Clear(); if (txbEspecialidad.TextLength <= 0) { Verificado = false; Notificador.SetError(txbEspecialidad, "Este campo debe llenarse"); } return(Verificado); }
private Boolean VerificacionTxbUsuario() { Boolean Verificado = true; Notificador.Clear(); if (CacheManager.SystemCache.ValidarTxbUsuario(txbUsuario.Text)) { Verificado = false; Notificador.SetError(txbUsuario, "El usuario ya se encuentra en el sistema"); } return(Verificado); }
private Boolean ValidarDatos() { Boolean Validado = true; Notificador.Clear(); if (dtpFechaConsulta.Checked == false) { Notificador.SetError(dtpFechaConsulta, "Este campo no puede quedar vacio."); Validado = false; } return(Validado); }
private Boolean VerificacionAddContactos() { Boolean Verificado = true; Notificador.Clear(); if (txbContacto.TextLength <= 0) { Verificado = false; Notificador.SetError(txbContacto, "Este campo debe llenarse"); } return(Verificado); }
private Boolean VerificarDatos() { Boolean Verificado = true; Notificador.Clear(); if (txbUnidad.TextLength == 0) { Notificador.SetError(txbUnidad, "Este campo no puede quedar vacio"); Verificado = false; } return(Verificado); }
private Boolean Comprobar() { Boolean Resultado = true; Notificador.Clear(); if (TxbRol.TextLength == 0) { Resultado = false; Notificador.SetError(TxbRol, "ESTE CAMPO NO SE PERMITE ESTAR VACIO"); } return(Resultado); }
private Boolean Comprobar() { Boolean Resultado = true; Notificador.Clear(); if (txbMaestro.TextLength == 0) { Notificador.SetError(btnSeleccionar, "Debe seleccionar un maestro"); Resultado = false; } return(Resultado); }
private Boolean VerificarDatos() { Boolean Verificado = true; Notificador.Clear(); if (txbCodigo.TextLength == 0) { Notificador.SetError(txbCodigo, "Este campo no puede quedar vacio"); Verificado = false; } if (txbNombre.TextLength == 0) { Notificador.SetError(txbNombre, "Este campo no puede quedar vacio"); Verificado = false; } if (txbPrecio.TextLength == 0) { Notificador.SetError(txbPrecio, "Este campo no puede quedar vacio"); Verificado = false; } if (txbDescripcion.TextLength == 0) { Notificador.SetError(txbDescripcion, "Este campo no puede quedar vacio"); Verificado = false; } if (txbMarca.TextLength == 0) { Notificador.SetError(txbMarca, "Este campo no puede quedar vacio"); Verificado = false; } if (cbbCategoria.SelectedValue.ToString().Equals("0")) { Notificador.SetError(cbbCategoria, "Este campo no puede quedar vacio"); Verificado = false; } if (cbbUnidad.SelectedValue.ToString().Equals("0")) { Notificador.SetError(cbbUnidad, "Este campo no puede quedar vacio"); Verificado = false; } return(Verificado); }
private Boolean Verificacion() { Boolean Verificado = true; Notificador.Clear(); if (txbUsuario.TextLength <= 0) { Verificado = false; Notificador.SetError(txbUsuario, "Este campo debe llenarse"); } if (txbPropietario.TextLength <= 0) { Verificado = false; Notificador.SetError(txbPropietario, "Este campo debe llenarse"); } return(Verificado); }
private Boolean VerificacionPass() { Boolean Verificado = true; Notificador.Clear(); if (txbPass.TextLength <= 0) { Verificado = false; Notificador.SetError(txbPass, "Este campo debe llenarse"); } if (txbPassConfir.TextLength <= 0) { Verificado = false; Notificador.SetError(txbPassConfir, "Este campo debe llenarse"); } return(Verificado); }
private Boolean Validar() { Boolean verificado = true; Notificador.Clear(); if (Int32.Parse(nudTiempo.Text) < 1) { Notificador.SetError(nudTiempo, "Este campo no puede ser cero"); verificado = false; } if (nudCosto.Text == "0,00") { Notificador.SetError(nudCosto, "Este campo no puede ser cero"); verificado = false; } return(verificado); }
private Boolean Validar() { Boolean verificado = true; Notificador.Clear(); if (txbNombres.TextLength == 0) { Notificador.SetError(txbNombres, "Este campo no puede quedar vacío"); verificado = false; } if (txbApellidos.TextLength == 0) { Notificador.SetError(txbApellidos, "Este campo no puede quedar vacío"); verificado = false; } return(verificado); }
private Boolean Comprobar() { Boolean Resultado = true; Notificador.Clear(); if (txtNombres.TextLength == 0) { Resultado = false; Notificador.SetError(txtNombres, "Este campo no puede quedar vacio."); } if (txtApellidos.TextLength == 0) { Resultado = false; Notificador.SetError(txtApellidos, "Este campo no puede quedar vacio."); } return(Resultado); }
private Boolean Validar(String numero) { int cant = Int32.Parse(numero); Boolean verificado = true; Notificador.Clear(); if (Int32.Parse(nudCantidad.Text) > cant) { Notificador.SetError(nudCantidad, "No se pueden devolver mas de " + numero + " Productos"); verificado = false; } if (Int32.Parse(nudCantidad.Text) == 0) { Notificador.SetError(nudCantidad, "No se pueden devolver 0 Productos"); verificado = false; } return(verificado); }
private Boolean VerificarDatos() { Boolean Verificado = true; Notificador.Clear(); if (txtNombres.TextLength == 0) { Notificador.SetError(txtNombres, "Este campo no puede quedar vacio"); Verificado = false; } if (txtApellidos.TextLength == 0) { Notificador.SetError(txtApellidos, "Este campo no puede quedar vacio"); Verificado = false; } if (txtDUI.TextLength == 0) { Notificador.SetError(txtDUI, "Este campo no puede quedar vacio"); Verificado = false; } if (txtNIT.TextLength == 0) { Notificador.SetError(txtNIT, "Este campo no puede quedar vacio"); Verificado = false; } if (txtDireccion.TextLength == 0) { Notificador.SetError(txtDireccion, "Este campo no puede quedar vacio"); Verificado = false; } if (txtTelefono.TextLength == 0) { Notificador.SetError(txtTelefono, "Este campo no puede quedar vacio"); Verificado = false; } return(Verificado); }
private Boolean VerificarDatos() { Boolean verificado = true; Notificador.Clear(); if (txbNombre.TextLength == 0) { Notificador.SetError(txbNombre, "Este campo no puede quedar vacío"); verificado = false; } //VALOR DEL ESTADO DEL PRODUCTO String estado; if (rbNuevo.Checked) { estado = "Nuevo"; } else { estado = "Usado"; } //EN CASO DE SER ACTUALIZACION if (txbId.TextLength > 0) { if (VerificarProducto2(txbNombre.Text, estado)) { MessageBox.Show("El producto no puede actualizarse, ya se encuentra registrado", "Alerta", MessageBoxButtons.OK, MessageBoxIcon.Warning); verificado = false; } } //EN CASO DE SER INSERSION else { if (VerificarProducto(txbNombre.Text, estado)) { MessageBox.Show("El producto ya se encuentra registrado", "Alerta", MessageBoxButtons.OK, MessageBoxIcon.Warning); verificado = false; } } return(verificado); }
private Boolean Comprobar() { Boolean Resultado = true; Notificador.Clear(); if (txbNombres.TextLength == 0) { Resultado = false; Notificador.SetError(txbNombres, "Este campo no puede quedar vacío"); } if (txbApellidos.TextLength == 0) { Resultado = false; Notificador.SetError(txbApellidos, "Este campo no puede quedar vacío"); } if (txbTelefono.TextLength == 0) { Resultado = false; Notificador.SetError(txbTelefono, "Este campo no puede quedar vacío"); } if (txbDui.TextLength == 0) { Resultado = false; Notificador.SetError(txbDui, "Este campo no puede quedar vacío"); } if (txbNit.TextLength == 0) { Resultado = false; Notificador.SetError(txbNit, "Este campo no puede quedar vacío"); } if (txbTitulo.TextLength == 0) { Resultado = false; Notificador.SetError(txbTitulo, "Este campo no puede quedar vacío"); } return(Resultado); }
private Boolean Verificacion() { Boolean Verificado = true; Notificador.Clear(); if (txbIdTitular.TextLength <= 0) { Verificado = false; Notificador.SetError(txbIdTitular, "Este campo debe llenarse"); } if (dtgvDatosProducto.RowCount <= 0) { Verificado = false; Notificador.SetError(dtgvDatosProducto, "Para realizar una compra debe haber productos en la lista"); } return(Verificado); }