Esempio n. 1
0
        private void btnOpenTable_Click(object sender, EventArgs e)
        {
            SysConfigInfo.frmOrderDish.dishTable = m_dishTable;

            TableOrdersEntity tableOrders = new TableOrdersEntity();

            tableOrders.GuestCount = Convert.ToInt32(this.txtCount.Text);
            tableOrders.SalesId    = Convert.ToInt32(this.cmbSales.SelectedValue);
            tableOrders.WaiterId   = Convert.ToInt32(this.cmbSales.SelectedValue);
            SysConfigInfo.frmOrderDish.tableOrders = tableOrders;

            SysConfigInfo.frmOrderDish = new frmOrderDishes(m_dishTable, tableOrders);
            SysConfigInfo.frmOrderDish.Init();
            //SysConfigInfo.frmOrderDish.SetCCOrderDishInfo();
            SysConfigInfo.frmOrderDish.ShowDialog();

            this.m_isNewOrderDish = true;
            this.Close();

            if (SysConfigInfo.frmOrderDish.frmOP == null)
            {
                SysConfigInfo.frmOrderDish.frmOP = new frmOP(tableOrders);

                SysConfigInfo.frmOrderDish.frmOP.ShowDialog();
            }



            this.Dispose();
        }
Esempio n. 2
0
 public frmOP(TableOrdersEntity tableOrders)
 {
     m_tableOrders = tableOrders;
     dishTable     = new OD.DataAccess.DBSqlServer.SqlServerDbMapper <TableEntity>().GetSingleObj(new TableEntity {
         Id = m_tableOrders.Table_Id
     });
     InitializeComponent();
 }