Beispiel #1
0
        private void frmSiparis_Load(object sender, EventArgs e)
        {
            lblMasaNo.Text = cGenel._ButtonValue;
            cMasalar ms = new cMasalar();

            tableId = ms.TableGetbyNumber(cGenel._ButtonName);
            if (ms.TableGetbyState(tableId, 2) == true || ms.TableGetbyState(tableId, 4) == true)

            {
                cAdisyon Ad = new cAdisyon();

                AdditionId = Ad.getByAddition(tableId);
                cSiparis orders = new cSiparis();
                orders.getByOrder(lvSiparisler, AdditionId);
            }

            btn1.Click += new EventHandler(islem);
            btn2.Click += new EventHandler(islem);
            btn3.Click += new EventHandler(islem);
            btn4.Click += new EventHandler(islem);
            btn5.Click += new EventHandler(islem);
            btn6.Click += new EventHandler(islem);
            btn7.Click += new EventHandler(islem);
            btn8.Click += new EventHandler(islem);
            btn9.Click += new EventHandler(islem);
            btn0.Click += new EventHandler(islem);
        }
Beispiel #2
0
        private void btnSiparis_Click(object sender, EventArgs e)
        {
            cMasalar masa        = new cMasalar();
            cAdisyon newAddition = new cAdisyon();
            bool     sonuc       = false;

            if (masa.TableGetbyState(tableId, 1) == true)

            {
                newAddition.ServisTurNo = 1;
                newAddition.PersonelId  = 1;
                newAddition.MasaId      = tableId;
                newAddition.Tarih       = DateTime.Now;
            }
        }