Ejemplo n.º 1
0
        public void btnComplete_Click(object sender, EventArgs e)
        {
            //MessageBox.Show("You clicked Complete Button");
            int id = Convert.ToInt32(lblId.Text);

            CustomerDetails cd1 = new CustomerDetails();
            tbl_customer    cd  = _db.tbl_customer.Where(c => c.CId == id).FirstOrDefault();

            cd1.CId          = cd.CId;
            cd1.OrderNo      = cd.OrderNo;
            cd1.CustomerName = cd.CustomerName;
            cd1.CustomerType = cd.CustomerType;
            cd1.WaiterId     = cd.WaiterId;
            cd1.TableId      = cd.TableId;
            cd1.Completed    = true.ToString();
            cd1.Total        = cd.Total;
            cd1.OrderDate    = cd.OrderDate;
            int i = blc.UpdateCustomer(cd1);


            if (i > 0)
            {
                OngoingOrder od = new OngoingOrder();
                MessageBox.Show("Order Completed Successfully", "Record", MessageBoxButtons.OK, MessageBoxIcon.Information);
                od.populateOngoingOrder();
            }
        }
Ejemplo n.º 2
0
        private void btnOngoingOrder_Click(object sender, EventArgs e)
        {
            OngoingOrder afc = new OngoingOrder();

            MainControlClass.showControl(afc, panelMainContainer);
        }