Exemplo n.º 1
0
        private void simpleButtonSiparisiTamamla_Click(object sender, EventArgs e)
        {
            int musteriKodu = int.Parse(textEditMusteriKodu.Text.ToString());
            int subeKodu    = int.Parse(textEditSubeKodu.Text.ToString());
            int urunMiktari = int.Parse(textEditUrunMiktari.Text.ToString());

            try
            {
                satisYap(textEditUrunBarkodu.Text, musteriKodu, subeKodu, urunMiktari);
                XtraMessageBox.Show("Ürün Satış İşlemi Gerçekleşmiştir", "Faturanız oluşturuluyor...", MessageBoxButtons.OK);
                FormFaturaGoster fatura = new FormFaturaGoster();
                fatura.Show();
            }
            catch
            {
                XtraMessageBox.Show("Ürün satış işlemi gerçekleştirilemedi", "İşlem Başarısız", MessageBoxButtons.YesNo, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 2
0
        private void simpleButtonFaturayiGoster_Click(object sender, EventArgs e)
        {
            FormFaturaGoster fatura = new FormFaturaGoster();

            fatura.Show();
        }