private void LimparCampos() { TxtPlaca.Clear(); TxtMarca.Clear(); TxtChassi.Clear(); TxtRenavam.Clear(); }
private void limpiar() { while (DgvProd.Rows.Count > 0) { DgvProd.Rows.RemoveAt(0); } DgvProd.Columns.RemoveAt(8); DgvProd.Columns.RemoveAt(7); DgvProd.Columns.RemoveAt(6); DgvProd.Columns.RemoveAt(5); DgvProd.Columns.RemoveAt(4); DgvProd.Columns.RemoveAt(3); DgvProd.Columns.RemoveAt(2); DgvProd.Columns.RemoveAt(1); DgvProd.Columns.RemoveAt(0); TxtCod.Clear(); TxtCamb.Clear(); Txtdesc.Clear(); TxtMarca.Clear(); TxtPrecio.Clear(); TxtTotal.Clear(); TxtCod.Focus(); TxtEfect.Clear(); }
private void BtnLimparDevolucao(object sender, RoutedEventArgs e) { TxtMarca.Clear(); TxtModelo.Clear(); TxtPlaca.Clear(); TxtDataEntrega.Clear(); TxtPlaca.Focus(); }
void Nuevo() { n_QueHace = 1; Tab1.TabPages[0].Enabled = false; Blanquea(); Bloquea(); ActivarTool(); LblTitulo2.Text = "Agregando Nuevo Registro"; Tab1.SelectedIndex = 1; TxtMarca.Focus(); }
private void limpiar() { TxtCod.Clear(); TxtNom.Clear(); TxtDesc.Clear(); TxtMarca.Clear(); TxtPrecio_M1.Text = "0"; TxtPrecio_M2.Text = "0"; TxtPrecio_V1.Text = "0"; TxtPrecio_V2.Text = "0"; Nud.Value = 0; }
private void LimparFormulario() { TxtMarca.Clear(); txtModelo.Clear(); CmbTipoVeiculo.SelectedIndex = -1; TxtPlaca.Clear(); TxtAno.Clear(); TxtRenavan.Clear(); TxtPortas.Clear(); CmbTipoCombustivel.SelectedIndex = -1; TxtPotencia.Clear(); TxtCor.Clear(); TxtStatus.Clear(); TxtPlaca.Focus(); }
private void btnCancelarCadastroVeiculo(object sender, RoutedEventArgs e) { TxtMarca.Clear(); txtModelo.Clear(); CmbTipoVeiculo.SelectedIndex = -1; TxtPlaca.Clear(); TxtAno.Clear(); TxtRenavan.Clear(); TxtPortas.Clear(); CmbTipoCombustivel.SelectedIndex = -1; TxtPotencia.Clear(); TxtCor.Clear(); TxtStatus.Clear(); TxtPlaca.Focus(); }
void Modificar() { n_QueHace = 2; Tab1.TabPages[0].Enabled = false; Blanquea(); Bloquea(); ActivarTool(); int intIdRegistro = Convert.ToInt32(DgLista.Columns["n_id"].CellValue(DgLista.Row).ToString()); VerRegistro(intIdRegistro); LblTitulo2.Text = "Modificando Registro"; Tab1.SelectedIndex = 1; TxtMarca.Focus(); }
protected void btnInsertar(object sender, EventArgs e) { Clases.Beans.MarcaComputadora mc = new Clases.Beans.MarcaComputadora(); mc.Marca = TxtMarca.Text; mmc.crearMarcaComputadora(mc); TxtMarca.Text = ""; TxtMarca.Focus(); SqlDataSource1.DataBind(); TablaMarcaComputadoras.DataBind(); Response.Redirect("/Vistas/Catalogos/MarcaComputadora.aspx"); }
private void CmdAgregar_Click(object sender, EventArgs e) { string placa = TxtPlacas.Text; string marca = TxtMarca.Text; string modelo = TxtModelo.Text; string telefono = TxtTelefono.Text; string anio = TxtAnio.Text; vehiculo = new Vehiculo(placa, marca, modelo, telefono, anio); inventario.Agregar(vehiculo);// una vez que se agregen los registros los ordenaremos con este metodo inventario.Ordenar(vehiculo); TxtPlacas.Clear(); TxtMarca.Clear(); TxtModelo.Clear(); TxtTelefono.Clear(); TxtAnio.Clear(); TxtPlacas.Focus(); }
/// <summary> /// Limpia los campos dónde se van a introducir datos. /// </summary> private void LimpiarCampos() { TxtNombre.Clear(); TxtApellidos.Clear(); TxtNif.Clear(); TxtDireccion.Clear();; TxtTelefono.Clear(); TxtObservaciones.Clear(); TxtMarca.Clear(); TxtModelo.Clear(); TxtMatricula.Clear(); TxtLlave.Clear(); TxtPlaza.Clear(); TxtBaseImponible.Clear(); TxtIva.Clear(); TxtTotal.Clear(); }
private void LimpiarCajas() { CmbUnidadVenta.SelectedIndex = 0; CmbFabricante.SelectedIndex = 0; TxtCodigo.Clear(); TxtContenido.Text = "0"; TxtDescripcion.Clear(); CmbUnidMed.SelectedIndex = 0; CmbPrestArt.SelectedIndex = 0; TxtMarca.Clear(); TxtNombre.Clear(); TxtRazon.Clear(); TxtIdArticulo.Clear(); TxtRFC.Clear(); TxtTelefono.Clear(); TxtDireccion.Clear(); TxtCorreo.Clear(); TxtCantidadMaximo.Text = "0"; TxtCantidadMinimo.Text = "0"; CmbUnidadVenta.SelectedIndex = 0; CmbEstatus.SelectedIndex = 0; CmbEmpresa.SelectedIndex = 0; CmbSucursal.DataSource = null; }
private bool ValidarCampos() { if (ChkbAgranel.Checked == true) { if (CmbFamiliaAgranel.SelectedIndex == 0) { Soporte.MsgError("Seleccione una Categoria del Articulo en Agranel"); CmbFamiliaAgranel.Focus(); return(false); } } if (TxtCodigo.Visible == true) { if (TxtCodigo.TextLength < 4) { Soporte.MsgError("Ingrese un Codigo del Articulo"); TxtCodigo.Focus(); return(false); } } if (string.IsNullOrEmpty(TxtNombre.Text)) { Soporte.MsgError("Ingrese una Nombre del Articulo"); TxtNombre.Focus(); return(false); } if (string.IsNullOrEmpty(TxtMarca.Text)) { Soporte.MsgError("Ingrese una Marca."); TxtMarca.Focus(); return(false); } if (string.IsNullOrEmpty(TxtDescripcion.Text)) { Soporte.MsgError("Ingrese una Descripcion del Articulo."); TxtDescripcion.Focus(); return(false); } if (CmbPrestArt.SelectedIndex == 0) { Soporte.MsgError("Seleccione una Presentacion del Articulo"); CmbPrestArt.Focus(); return(false); } if (string.IsNullOrEmpty(TxtContenido.Text)) { Soporte.MsgError("Ingrese el Contenido del Articulo"); TxtContenido.Focus(); return(false); } if (CmbUnidMed.SelectedIndex == 0) { Soporte.MsgError("Seleccione una Unidad de Medina del Articulo"); CmbUnidMed.Focus(); return(false); } if (CmbUnidadVenta.SelectedIndex == 0) { Soporte.MsgError("Seleccione Unidad de Medida para la Venta del Articulo"); CmbUnidadVenta.Focus(); return(false); } if (string.IsNullOrEmpty(TxtCantidadMinimo.Text)) { Soporte.MsgError("Ingrese un Valor Valido para la cantidad Minimo del Articulo"); TxtCantidadMinimo.Focus(); return(false); } if (string.IsNullOrEmpty(TxtCantidadMaximo.Text)) { Soporte.MsgError("Ingrese un Valor Valido para la cantidad Maximo del Articulo"); TxtCantidadMaximo.Focus(); return(false); } if (CmbEstatus.SelectedIndex == 0) { Soporte.MsgError("Seleccione un Estatus del Articulo"); CmbPrestArt.Focus(); return(false); } if (CmbFabricante.SelectedIndex == 0) { Soporte.MsgError("Seleccione un Fabricante o elige sin Fabricante"); CmbFabricante.Focus(); return(false); } if (CmbEmpresa.SelectedIndex == 0) { Soporte.MsgError("Seleccione la Empresa en donde se registrara el Articulo"); CmbEmpresa.Focus(); return(false); } if (CmbSucursal.SelectedIndex == 0) { Soporte.MsgError("Seleccione la Sucursal en donde se registrara el Articulo"); CmbSucursal.Focus(); return(false); } return(true); }