Exemplo n.º 1
0
        private void frmSiparis_Load(object sender, EventArgs e)
        {
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            lblMasaNo.Text   = cGenel._ButtonValue;

            cMasalar ms = new cMasalar();

            TableId = ms.TableGetByNumber(cGenel._ButtonName);

            if (ms.TableGetByState(TableId, 2) == 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);



            // ms.MasalariDurumaGoreGetir(cbMasalar);
        }
Exemplo n.º 2
0
        public void frmBill_Load(object sender, EventArgs e)
        {
            lblAdisyonId.Text             = cGenel._AdisyonId;
            txtIndirimTutari.TextChanged += new EventHandler(txtIndirimTutari_TextChanged);
            cs.GetByOrder(lvUrunler, Convert.ToInt32(lblAdisyonId.Text));


            if (lvUrunler.Items.Count > 0)
            {
                decimal toplam = 0;


                for (int i = 0; i < lvUrunler.Items.Count; i++)
                {
                    toplam += Convert.ToDecimal(lvUrunler.Items[i].SubItems[3].Text);
                }

                lblToplamTutar.Text = string.Format("{0:0.000}", toplam);
                lblOdenecek.Text    = string.Format("{0:0.000}", toplam);
            }


            txtIndirimTutari.Clear();
        }