Esempio n. 1
0
        private int Id;//存餐桌的id
        public void SetTxt(object sender, EventArgs e)
        {
            FrmEventArgs fea = e as FrmEventArgs;

            this.Id          = fea.DkIdZ;           //获取餐桌的id
            labDeskName.Text = fea.Name;            //餐桌的编号
            labOrderId.Text  = fea.Temp.ToString(); //订单的id

            //根据订单的id查询这个订单消费了多少钱
            OrderInfoBLL bll = new OrderInfoBLL();

            labMoney.Text = bll.GetOrderMoney(fea.Temp).ToString();
            lblMoney.Text = labMoney.Text;//结账金额和消费金额一样------坑
        }