Beispiel #1
0
        private void btnDelivery_click(object sender, EventArgs e)
        {
            Button btnMesa = sender as Button;

            if (btnMesa.Text == "NUEVO DELIVERY")
            {
                FrmValidacionDelivery frm = new FrmValidacionDelivery();
                frm.ShowDialog();
            }
            else if (btnMesa.BackColor == Color.DarkTurquoise)
            {
                FrmConfirmarDelivery frmConfirmar = new FrmConfirmarDelivery();
                frmConfirmar.IDVenta = btnMesa.Tag.ToString();
                frmConfirmar.ShowDialog();
            }
            else if (btnMesa.BackColor == Color.IndianRed)
            {
                FrmAtenderDelivery frm = new FrmAtenderDelivery();
                frm.idVenta = btnMesa.Tag.ToString();
                frm.ShowDialog();
            }
            else
            {
                FrmDetalleVenta frm = new FrmDetalleVenta();
                FrmDetalleVenta.IDVenta = btnMesa.Tag.ToString();
                frm.ShowDialog();
            }



            cargarDelivery();


            //CargarmMesa(idZona);
        }
Beispiel #2
0
        private void btnAtenderDelivery_Click(object sender, EventArgs e)
        {
            FrmAtenderDelivery frm = new FrmAtenderDelivery();

            frm.ShowDialog();

            cargarDelivery();
        }