Пример #1
0
        private void bt_OK_Click(object sender, EventArgs e)
        {
            _tagDiningTable m_DiningTable = new _tagDiningTable();

            int TableNO = Convert.ToInt32(tbTableNO.Text);
            int Number  = Convert.ToInt32(tbNumber.Text);

            m_DiningTable.TableClassifyID = (int)cbTableClassifyID.SelectedValue;
            m_DiningTable.DiningDeptID    = (int)cbDiningDeptID.SelectedValue;

            for (int i = TableNO; i < TableNO + Number; i++)
            {
                m_DiningTable.TableNO   = i;
                m_DiningTable.TableName = tbTableName.Text + i.ToString();

                CGlobalInstance.Instance.DbAdaHelper.AddDiningTable(m_DiningTable);
            }

            this.DialogResult = DialogResult.OK;
        }
Пример #2
0
 public FormDiningTable()
 {
     m_DiningTable = new _tagDiningTable();
     InitializeComponent();
 }