예제 #1
0
        //结账
        private void 宾客结账ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TablesModel tables = new TablesModel();

            tables.TableID1   = id;
            tables.TableName1 = name;
            //查询出当前餐桌得编号
            ConsumerBillModel cbm = new ConsumerBillModel();

            cbm.TableID1 = id;
            cbm.CBClose1 = 0;
            DataTable dt = ConsumerBillBLL.getNo(cbm);

            cbm.CBID1 = dt.Rows[0]["账单编号"].ToString();
            AccountsForm1 af = new AccountsForm1(cbm, tables);

            af.Show();
        }
예제 #2
0
        //增加消费
        private void Insert_Click(object sender, EventArgs e)
        {
            TablesModel tables = new TablesModel();

            tables.TableID1   = id;
            tables.TableName1 = name;
            //查询出当前餐桌得编号
            ConsumerBillModel cbm = new ConsumerBillModel();

            cbm.TableID1 = id;
            cbm.CBClose1 = 0;
            DataTable dt = ConsumerBillBLL.getNo(cbm);

            cbm.CBID1 = dt.Rows[0]["账单编号"].ToString();
            AddForm af = new AddForm(tables, cbm);

            af.Show();
        }