Пример #1
0
 private void simpleButton3_Click(object sender, EventArgs e)
 {
     Entities.Kitab Silinecek = (Entities.Kitab)gridKitab.GetFocusedRow();
     if (MessageBox.Show("Silmək İstədiyinizdən Əminsiniz?", "Bildiriş", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         kitabServis.Sil(x => x.Id == Silinecek.Id);
         kitabServis.Save();
         List();
     }
 }
Пример #2
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if (navigationFrame1.SelectedPage == navigationPage1)
     {
         Entities.Kitab kitapEntity = (Entities.Kitab)gridKitab.GetFocusedRow();
         navigationFrame1.SelectedPage = navigationPage2;
         gridControlBarkod.DataSource  = kitapEntity.Barkods;
         lblBasliq.Text = "Zəhmət Olmasa Barkod Daxil Edin - " + kitapEntity.KitabAdi;
     }
     else
     {
         barkodEntity = (Entities.Barkod)gridBarkod.GetFocusedRow();
         Secildi      = true;
         this.Close();
     }
 }
Пример #3
0
 private void KitabYukle(int id)
 {
     _kitabEntity          = kitabServis.Getir(x => x.Id == id);
     txtKitabKodu.Text     = _kitabEntity.KitabKodu;
     toggleKiraye.IsOn     = _kitabEntity.KirayeVerilebiler;
     toggleVeziyyet.IsOn   = _kitabEntity.Veziyyet;
     txtISBN.Text          = _kitabEntity.ISBN;
     txtKitabAdi.Text      = _kitabEntity.KitabAdi;
     txtNesriyyatEvi.Text  = _kitabEntity.Nesriyyat;
     txtNesrIli.Text       = _kitabEntity.Nesrili.ToString();
     txtNesrSayi.Text      = _kitabEntity.NesrSayi.ToString();
     txtCildSayi.Text      = _kitabEntity.CildSayi.ToString();
     txtSehifeSayi.Text    = _kitabEntity.SehifeSayi.ToString();
     txtDemirbas.Text      = _kitabEntity.Demirbasno.ToString();
     txtKitabAciqlama.Text = _kitabEntity.Aciqlama;
     txtKitabNovi.Text     = _kitabEntity.Novu;
     gridControlKitabHereket.DataSource = _kitabEntity.KitabHereketler;
     txtMlfAdi.Text          = _kitabEntity.Muellifs.Adi;
     txtMlfSoyadi.Text       = _kitabEntity.Muellifs.Soyadi;
     txtMlfDogumTarixi.Text  = _kitabEntity.Muellifs.DogumTarixi.ToString();
     txtMuellifAciqlama.Text = _kitabEntity.Muellifs.Aciqlama;
 }
Пример #4
0
 public FrmKitabAlisverisIsler(Entities.KitabHereket kitabHereketEntity = null)
 {
     InitializeComponent();
     _kitabHereketEntity = kitabHereketEntity;
     kitabHereketServis.ContextYarad(true);
     barkodServis.ContextBagla(kitabHereketServis.ContextYarad(false));
     istifadeciServis.ContextBagla(kitabHereketServis.ContextYarad(false));
     kitabServis.ContextBagla(kitabHereketServis.ContextYarad(false));
     if (kitabHereketEntity != null)
     {
         _kitabEntity        = kitabServis.Getir(x => x.Id == kitabHereketEntity.KitabId);
         _istifadeciEntity   = istifadeciServis.Getir(x => x.Id == kitabHereketEntity.IstifadeciId);
         _barkodEntity       = barkodServis.Getir(x => x.Id == kitabHereketEntity.BarkodId);
         _kitabHereketEntity = kitabHereketEntity;
         KitabYukle(_kitabEntity.Id);
         IstifadeciYukle(_istifadeciEntity.Id);
         PageİslemSecim.Visible = false;
         editle = true;
     }
     else
     {
         _kitabHereketEntity = new Entities.KitabHereket();
     }
 }
Пример #5
0
        public FrmKitabIsler(Entities.Kitab entity)
        {
            InitializeComponent();
            _entity = entity;
            toggleVeziyyet.DataBindings.Add("EditValue", _entity, "Veziyyet", false, DataSourceUpdateMode.OnPropertyChanged);
            toggleKiraye.DataBindings.Add("EditValue", _entity, "KirayeVerilebiler", false, DataSourceUpdateMode.OnPropertyChanged);
            txtKitabKodu.DataBindings.Add("Text", _entity, "KitabKodu", false, DataSourceUpdateMode.OnPropertyChanged);
            txtISBN.DataBindings.Add("Text", _entity, "ISBN", false, DataSourceUpdateMode.OnPropertyChanged);
            txtKitabAdi.DataBindings.Add("Text", _entity, "KitabAdi", false, DataSourceUpdateMode.OnPropertyChanged);
            txtNovu.DataBindings.Add("Text", _entity, "Novu", false, DataSourceUpdateMode.OnPropertyChanged);
            txtNesriyyatEvi.DataBindings.Add("Text", _entity, "Nesriyyat", false, DataSourceUpdateMode.OnPropertyChanged);
            txtNesrIli.DataBindings.Add("Text", _entity, "Nesrili", false, DataSourceUpdateMode.OnPropertyChanged);
            txtNesrSayi.DataBindings.Add("Text", _entity, "NesrSayi", false, DataSourceUpdateMode.OnPropertyChanged);
            txtCildSayi.DataBindings.Add("Text", _entity, "CildSayi", false, DataSourceUpdateMode.OnPropertyChanged);
            txtSehifeSayi.DataBindings.Add("Text", _entity, "SehifeSayi", false, DataSourceUpdateMode.OnPropertyChanged);
            txtDemirbas.DataBindings.Add("Text", _entity, "Demirbasno", false, DataSourceUpdateMode.OnPropertyChanged);
            txtKitabAciqlama.DataBindings.Add("Text", _entity, "Aciqlama", false, DataSourceUpdateMode.OnPropertyChanged);

            kitabServis.ContextYarad(true);
            barkodServis.ContextBagla(kitabServis.ContextYarad(false));
            gridControlBarkod.DataSource = barkodServis.Birlesdirme(x => x.KitabId == _entity.Id);
            muellifServis.ContextBagla(kitabServis.ContextYarad(false));
            MuellifListele();
        }