Example #1
0
 private void MusteriGoster_Load(object sender, EventArgs e)
 {
     List<DAL.Musteriler> m = new List<DAL.Musteriler>();
     bll = new BLL.BusinessLogicLayer();
     m = bll.MusteriGetir();
     dataGridView1.DataSource = m;
 }
Example #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            bll = new BLL.BusinessLogicLayer();
            List <Kategori> kategori = bll.KategoriGetir();

            cmbxKategori.DataSource    = kategori;
            cmbxKategori.ValueMember   = "ctId";
            cmbxKategori.DisplayMember = "KategoriAdi";
            bll = new BLL.BusinessLogicLayer();
            List <Tedarikci> tedarik = bll.TedarikciGetir();

            comboBox1.DataSource    = tedarik;
            comboBox1.ValueMember   = "tdId";
            comboBox1.DisplayMember = "tedarikciAdi";

            /*  foreach (var item in kategori)
             * {
             *    cmbxKategori.Items.Add(item.KategoriAdi);
             *    cmbxKategori.ValueMember = item.KategoriAdi.ToString();
             *    cmbxKategori.DisplayMember = item.ctId.ToString() ;
             *
             * }*/

            bll = new BLL.BusinessLogicLayer();
            List <Urunler> urun = bll.UrunleriGetir();

            comboBox2.DataSource    = urun;
            comboBox2.ValueMember   = "pId";
            comboBox2.DisplayMember = "UrunAdi";
        }
Example #3
0
        public void kayıtGetir()
        {
            bll = new BLL.BusinessLogicLayer();



            k = bll.KategoriGetir();

            dataGridView1.DataSource = k;
        }
Example #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            bll = new BLL.BusinessLogicLayer();
            int a = bll.TedarikciEkle(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text);

            if (a != -1)
            {
                MessageBox.Show("Tedarikci eklendi.");
            }
            else
            {
                MessageBox.Show("Kayıt Başarısız.");
            }
        }
Example #5
0
 private void buttonGiris_Click(object sender, EventArgs e)
 {
     bll = new BLL.BusinessLogicLayer();
     if (bll.LoginKontrol(textBoxAdi.Text, textBoxSifre.Text) > 0)
     {
         Main main = new Main();
         main.Show();
         // main.StatusLogin.Text = textBoxAdi.Text;
         this.Visible = false;
         MessageBox.Show("Hoşgeldiniz");
     }
     else
     {
         MessageBox.Show("Kullanıcı Adı veya Şifre Hatalı");
     }
 }
Example #6
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            try
            {
                bll = new BLL.BusinessLogicLayer();
                int a = bll.UrunEkle(textBox1.Text, Convert.ToInt32(textBox2.Text), Convert.ToInt32(textBox3.Text), Convert.ToInt32(comboBox2.SelectedValue), Convert.ToInt32(comboBox1.SelectedValue), Convert.ToInt32(cmbxKategori.SelectedValue));

                if (a != -1)
                {
                    MessageBox.Show("Ürün eklendi.");
                }
                else
                {
                    MessageBox.Show("Kayıt Başarısız.");
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Boş değer eklenemez!");
            }
        }
Example #7
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                bll = new BLL.BusinessLogicLayer();
                int a = bll.KategoriEkle(textBox1.Text);

                if (a != -1)
                {
                    MessageBox.Show("Ürün eklendi.");
                }
                else
                {
                    MessageBox.Show("Kayıt Başarısız.");
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Boş değer eklenemez!");
            }
        }
Example #8
0
 public void kayitGetir()
 {
     bll = new BLL.BusinessLogicLayer();
     m = bll.MusteriGetir();
     dataGridView1.DataSource = m;
 }
Example #9
0
 private void UrunleriGoster_Load(object sender, EventArgs e)
 {
     bll = new BLL.BusinessLogicLayer();
     kayitgetir();
 }
Example #10
0
 private void Form1_Load(object sender, EventArgs e)
 {
     bll = new BLL.BusinessLogicLayer();
     kayitgetir();
 }