Exemplo n.º 1
0
 private void textBoxBarkod_TextChanged(object sender, EventArgs e)
 {
     urun = TemelKurallar.araUrun(sender: sender, e: e);
     if (urun != null)
     {
         numericUpDownAdet.Value    = urun.adet;
         numericUpDownFiyat.Value   = (decimal)urun.fiyat;
         numericUpDownIndirim.Value = (decimal)urun.indrim;
         yeni = sorguUrun.kopyaOlustur(urun);
     }
     else
     {
         numericUpDownAdet.Value    = 0;
         numericUpDownFiyat.Value   = 0;
         numericUpDownIndirim.Value = 0;
     }
 }
Exemplo n.º 2
0
 private void textBoxBarkod_TextChanged(object sender, EventArgs e)
 {
     urun = TemelKurallar.araUrun(sender: sender, e: e);
     if (urun != null)
     {
         pictureBoxUrun.Image   = urun.resim;
         this.labelFiyat.Text   = urun.fiyat.ToString();
         this.labelindirim.Text = urun.indrim.ToString();
         this.labelKDV.Text     = "18"; // varsayılan olarak alınmıştır
                                        // aslında her urun için veya sistemde kayıt olarak ala bilirdim
                                        // fakat sadece bilgi amaçlı bu şekilde ayarladım
                                        //kdv değişince adamcağız uğraşmasın diye hesaplamaya katmayacağım
                                        // bu yüzden değer olarak almadım olaki geliştirmek gerekise urun getire ve urun tablosuna ufak
                                        //ekleme ile bu sorun giderile bilir....
     }
     else
     {
         this.labelFiyat.Text   = "0";
         this.labelindirim.Text = "0";
         this.labelKDV.Text     = "18";
     }
 }
Exemplo n.º 3
0
 private void textBoxBarkod_TextChanged(object sender, EventArgs e)
 {
     urun = TemelKurallar.araUrun(sender: sender, e: e);
 }