public DetalleProductos(NuevaVentaForm detalleProducto, int cveProducto) { InitializeComponent(); this.ControlBox = false; //productosFactory.crearListaDetalleTipoProductos(1); cargaListaDetalleTipoProducto(cveProducto); this.nuevaVentaForm = detalleProducto; }
public SeleccionarTipoPapa(NuevaVentaForm nuevaVentaForm) { InitializeComponent(); this.ControlBox = false; cargarTiposPapas(); this.nuevaVentaForm = nuevaVentaForm; this.saborPapas = ProductosConstantes.PRODUCTO_PAPAS_NATURALES; }
public CobrarComanda(EntComanda entComanda, NuevaVentaForm nuevaVentaForm, PuntoVentaLandingPage puntoVentaLandingPage) { InitializeComponent(); this.nuevaVentaForm = nuevaVentaForm; this.puntoVentaLandingPage = puntoVentaLandingPage; //Se establece la comanda a ser pagada this.entComanda = entComanda; totalComandaLabel.Text = "$ " + this.entComanda.getCostoTotalProductos(); tipoPagoListBox.Items.Add("Efectivo"); this.tipoPagoListBox.SelectedIndex = 0; nombreComandaLabel.Text = this.entComanda.getNombreComanda(); inicializaTipoOrden(); }
private void comandasDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { if( e.RowIndex > listaComandasEnProceso.Count() -1) { return; } var senderGrid = (DataGridView)sender; EntComanda entComanda = null; Console.WriteLine(" Selected column " + e.ColumnIndex); //Si la columna seleccionada es diferente de 3 , se selecciono cualquier cosa menos el borrar if (e.ColumnIndex != 3) { return; } entComanda = listaComandasEnProceso.ElementAt(e.RowIndex); NuevaVentaForm nuevaVentaForm = new NuevaVentaForm(entComanda, this, entComanda.getNombreComanda()); nuevaVentaForm.Show(); this.Hide(); }
private void despliegaNuevaVenta(String nombreComanda) { NuevaVentaForm nuevaVentaForm = new NuevaVentaForm(null, this, nombreComanda); nuevaVentaForm.Show(); this.Hide(); }