public void LimpiarProducto() { ProductoIdTextBox.Clear(); NombreTextBox.Clear(); CostoTextBox.Clear(); CantidadTextBox.Clear(); FleteTextBox.Clear(); ITBISTextBox.Clear(); }
private void NuevoButton_Click(object sender, EventArgs e) { ProductoIdTextBox.Clear(); NombreTextBox.Clear(); PrecioTextBox.Clear(); CostoTextBox.Clear(); ITBISTextBox.Clear(); ProductoIdTextBox.ReadOnly = false; }
public void LimpiarProducto() { ProductoIdTextBox.Clear(); PrecioTextBox.Clear(); ITBISTextBox.Clear(); NombreTextBox.Clear(); CantidadTextBox.Clear(); DescuentosTextBox.Clear(); }
private void NuevoButton_Click(object sender, EventArgs e) { ProductoIdTextBox.Clear(); NombreTextBox.Clear(); PrecioTextBox.Clear(); CostoTextBox.Clear(); ITBISTextBox.Clear(); CantidadTextBox.Clear(); ProductoIdTextBox.ReadOnly = false; DescripcionRichTextBox.Clear(); GuardarButton.Text = "Guardar"; EliminarButton.Enabled = false; miError.Clear(); }
private bool Validar() { bool paso = true; if (string.IsNullOrEmpty(UsuarioIdTextBox.Text)) { paso = false; UsuarioIdTextBox.Focus(); } if (string.IsNullOrEmpty(TotalTextBox.Text)) { paso = false; TotalTextBox.Focus(); } if (string.IsNullOrEmpty(SubTotalTextBox.Text)) { paso = false; SubTotalTextBox.Focus(); } if (string.IsNullOrEmpty(DescuentoTextBox.Text)) { paso = false; DescuentoTextBox.Focus(); } if (string.IsNullOrEmpty(ITBISTextBox.Text)) { paso = false; ITBISTextBox.Focus(); } if (string.IsNullOrEmpty(SubTotalTextBox.Text)) { paso = false; SubTotalTextBox.Focus(); } if (string.IsNullOrEmpty(FechaDeCompraTimePicker.Text)) { paso = false; FechaDeCompraTimePicker.Focus(); } if (string.IsNullOrEmpty(SuplidorIdTextbox.Text)) { paso = false; SuplidorIdTextbox.Focus(); } if (string.IsNullOrEmpty(CompraIDTextBox.Text)) { paso = false; CompraIDTextBox.Focus(); } if (this.Detalle.Count == 0) { MessageBox.Show("La Compra debe tener un producto", "Error", MessageBoxButton.OK, MessageBoxImage.Error); paso = false; } return(paso); }