示例#1
0
 private void btnS4_Click(object sender, EventArgs e)
 {
     Button btn = (Button)sender;
     cGenel.MasaNo=btn.Text;
     cMasa m = new cMasa();
     m.MasaGetir(cGenel.MasaNo);
     this.Close();
 }
        private void SiparisEkrani_Load(object sender, EventArgs e)
        {
            cMasa m = new cMasa();
            m.MasaGetir(cGenel.MasaNo);
            txtMAsaNo.Text = cGenel.MasaID.ToString();
            txtMasaAd.Text = cGenel.MasaNo;
            cSiparisUrunler su = new cSiparisUrunler();
            cSiparis s = new cSiparis();
            s.MasaID = cGenel.MasaID;
            s.PersonelID = cGenel.PersonelID;
            s.Tarih = DateTime.Now;
            cGenel.siparis = s.SiparisNoGetirByMasaDurumu(s);
            su.SiparisleriGoster(lvSiparisler, cGenel.MasaID, cGenel.siparis);
            su.SiparisleriGosterEklemeli(lvEklemeli, cGenel.MasaID, cGenel.siparis);

            Toplama(lvSiparisler, txtToplam);
        }