Пример #1
0
        private void FaturaMasterKaydet()
        {
            FaturaMaster fm = new FaturaMaster();

            fm.IrsaliyeNo  = Convert.ToInt32(txtIrsaliye.Text);
            fm.OdemeTarihi = Convert.ToDateTime(dateTimePicker1.Value);
            fm.MusteriID   = (int)comboMusteri.SelectedValue;
            db.faturamaster.Add(fm);
            db.SaveChanges();
            lblFaturaNo.Text = fm.FaturaID.ToString();
        }
Пример #2
0
        private void faturaMasterKaydet()
        {
            FaturaMaster fm = new FaturaMaster();

            fm.IrsaliyeNo  = Convert.ToInt32(textIrsaliyeNo.Text);
            fm.OdemeTarihi = dateTimeOdeme.Value;
            fm.musteriId   = (int)comboMusteri.SelectedValue;
            db.faturamaster.Add(fm);
            db.SaveChanges();
            label1.Text = fm.faturaId.ToString();
        }