public void LimpiarProducto() { ProductoIdtextBox.Clear(); PreciotextBox.Clear(); ITBIStextBox.Clear(); NombretextBox.Clear(); CantidadtextBox.Clear(); DescuentostextBox.Clear(); }
private void Limpiar() { ProductoIdtextBox.Clear(); descripcionTextBox.Clear(); costoMaskedTextBox.Clear(); precioMaskedTextBox.Clear(); CamposVacioserrorProvider.Clear(); descripcionTextBox.Focus(); }
private void Limpiar() { detalle = new Entidades.CotizacionesDetalle(); //Producto = new Entidades.Cotizaciones(); Cotizacion = new Entidades.Cotizaciones(); CotizacionIdtextBox.Clear(); FechadateTimePicker.Value = DateTime.Today; ClienteIdcomboBox.Text = " "; MontomaskedTextBox.Clear(); ValidarerrorProvider.Clear(); DetalledataGridView.DataSource = null; ProductoIdtextBox.Clear(); PrecioProductotextBox.Clear(); NombreProductotextBox.Clear(); ImportetextBox.Clear(); CantidadnumericUpDown.Value = 0; }
public Productos CompletarProducto() { Productos productor = null; string mensaje = "----!!Este campo debe estar lleno!!---"; if (ProductoIdtextBox.Text != string.Empty) { if (NombretextBox.Text != string.Empty) { Productos pr = new Productos(); pr.IdProducto = Utilidades.ToInt(ProductoIdtextBox.Text); pr.IdProducto = Utilidades.ToInt(PrecioProdtextBox.Text); pr.IdProducto = Utilidades.ToInt(UnidadTextBox2.Text); pr.Nombre = NombretextBox.Text; pr.Marca = MarcatextBox.Text; pr.Descripcion = DescripcionProtextBox.Text; pr.Direccion = DireccionProductotextBox.Text; pr.Pais = PaisProductotextBox.Text; // pr.IdProducto; } else { CampoObligatorioerrorProvider.SetError(NombretextBox, mensaje); NombretextBox.Focus(); } } else { CampoObligatorioerrorProvider.SetError(ProductoIdtextBox, mensaje); ProductoIdtextBox.Focus(); } return(productor); }
private void ProductoIdtextBox_MouseClick(object sender, MouseEventArgs e) { ProductoIdtextBox.Clear(); }