private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int dishId = Convert.ToInt32(dataGridView1.Rows[e.RowIndex].Cells[0].Value);

            if (oiBll.DianCai(orderId, dishId))
            {
                LoadOrderList();
            }
        }
Пример #2
0
        private void gv_DishInfo_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var row    = gv_DishInfo.SelectedRows;
            int dishId = Convert.ToInt32(row[0].Cells[0].Value);

            if (oiBll.DianCai(orderId, dishId))
            {
                LoadOrderDetailList();
            }
        }
Пример #3
0
        private void dgvAllDish_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int orderId = Convert.ToInt32(this.Tag);


            int dishId = Convert.ToInt32(dgvAllDish.Rows[e.RowIndex].Cells[0].Value);


            if (oiBll.DianCai(orderId, dishId))
            {
                LoadDetailList();
            }
        }
Пример #4
0
        private void dgvAllDish_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            //点菜
            //菜品编号
            int dishId = Convert.ToInt32(dgvAllDish.Rows[e.RowIndex].Cells[0].Value);

            //执行点菜
            if (oiBll.DianCai(orderId, dishId))
            {
                //点菜成功
                LoadOrderDish();
            }
        }
Пример #5
0
        private void gvDishInfo_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int dishId = Convert.ToInt32(gvDishInfo.Rows[e.RowIndex].Cells[0].Value);

            //点菜
            if (oiBll.DianCai(orderId, dishId))
            {
                //点菜成功后,重新刷新已点菜单
                LoadOrderList();
            }
            //一旦对已点菜单进行了加菜或删除菜品操作,就需要重新点击下单
            orderFlag = false;
        }
Пример #6
0
        private void dgvAllDish_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            //菜品编号
            int Did = Convert.ToInt32(dgvAllDish.Rows[e.RowIndex].Cells[0].Value);
            //订单号
            int Oid = Convert.ToInt32(this.Tag);

            if (bll.DianCai(Did, Oid))
            {
                LoadDetailList();
                Square();
            }
        }
Пример #7
0
        private void dgvAllDish_DoubleClick(object sender, EventArgs e)
        {
            //获取订单ID
            int OId = Convert.ToInt32(this.Tag);
            //获取菜品ID
            int DId = Convert.ToInt32(dgvAllDish.SelectedCells[0].Value);

            if (oiBll.DianCai(OId, DId))
            {
                LoadOdiList();
            }
            else
            {
                MessageBox.Show("添加失败");
            }
        }