private void frmOrderPay_Load(object sender, EventArgs e)
        {
            TableInfo ti      = this.Tag as TableInfo;
            int       orderId = oiBll.GetOrderId(ti.TId);

            oi = oiBll.GetOrderInfo(orderId);
            lblPayMoney.Text         = GetPayMoney().ToString();
            lblPayMoneyDiscount.Text = (Convert.ToDecimal(lblPayMoney.Text) * Convert.ToDecimal(lblDiscount.Text)).ToString();
        }
        private void LoadOrderDetailInfoList()
        {
            TableInfo ti      = tableItem.Tag as TableInfo;
            int       tableId = Convert.ToInt32(ti.TId);
            int       orderId = odBll.GetOrderId(tableId);
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic.Add("OrderId", orderId.ToString());
            odInfoList = odiBll.GetList(dic);
            this.index = odInfoList.Count + 1;
            dgvOrderDetail.AutoGenerateColumns = false;
            dgvOrderDetail.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            bindOdInfoList            = new BindingList <OrderDetailInfo>(odInfoList);
            dgvOrderDetail.DataSource = bindOdInfoList;
        }