public FacturasVendedor() { InitializeComponent(); var negocio = new HistorialVendedor(SqlServerDBConnection.Instance()); superGrid1.PageSize = 5; superGrid1.SetPagedDataSource(negocio.searchFacturasAVendedor(-1, null, -1, -1, null, null), bindingNavigator1); }
private void button1_Click(object sender, EventArgs e) { var negocio = new HistorialVendedor(SqlServerDBConnection.Instance()); var Id = textBox1.Text != "" ? Int32.Parse(textBox1.Text) : -1; var Detalle = textBox2.Text; decimal importeDesde = numericUpDown2.Value; decimal importeHasta = numericUpDown1.Value; DateTime fechaDesde = dateTimePicker1.Value; DateTime fechaHasta = dateTimePicker2.Value; superGrid1.SetPagedDataSource(negocio.searchFacturasAVendedor(Id, Detalle, importeHasta, importeDesde, fechaHasta.ToString("yyyy-MM-dd"), fechaDesde.ToString("yyyy-MM-dd")), bindingNavigator1); }
public void RealizarCotizacion() { Cotizacion cotizacion = new Cotizacion(this); if (cotizacion.CantidadUnidades > cotizacion.PrendaCotizada.CantidadEnStock) { { Console.WriteLine("El stock es insuficiente para la cantidad seleccionada"); } } else { HistorialVendedor.Push(cotizacion); cotizacion.RealizarCalculo(); } }