public frmKasaKayitlari() { InitializeComponent(); mng = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); mngKasa = mng.GetKasaManager(); mngKasaHar = mng.GetKasaHarManager(); mngCari = mng.GetCariManager(); mngCariHar = mng.GetCariHareketManager(); LoadKasa(); TapGelirGider(); txtCariKod.DataSource = () => { try { return(mngCari.GetCariKodsBySubeKodu(UserInfo.Sube.Id, txtCariKod.Text).ToStringList(15, txtCariKod.Ayirac)); } catch (Exception exc) { MessageBox.Show(exc.Message); LogWrite.Write(exc); } return(null); }; txtCariKod.DataSource = () => { try { return(mngCari.GetCariKodsBySubeKodu(UserInfo.Sube.Id, txtCariKod.Text).ToStringList(15, txtCariKod.Ayirac)); } catch (Exception exc) { MessageBox.Show(exc.Message); LogWrite.Write(exc); } return(null); }; }
public frmKasaList() { InitializeComponent(); //Kernel _kasa = kernel.Get <IKasaManager>(); //Local }
public frmIrsFatura(string IrsNo, FTIRSIP ftirsip) { _irsNo = IrsNo; _ftirsip = ftirsip; mng = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); mngFatUst = mng.GetFatirsUstManager(); mngCari = mng.GetCariManager(); mngSth = mng.GetStokHareketManager(); mngKasa = mng.GetKasaManager(); mngKasaHar = mng.GetKasaHarManager(); mngCariHrk = mng.GetCariHareketManager(); InitializeComponent(); try { _fatIrsUst = mngFatUst.GetByBelgeNoBelgeTipAndSubeKodu(_irsNo, _ftirsip, UserInfo.Sube.Id); if (_fatIrsUst.FatTipi == FatTipi.KapaliFat || _fatIrsUst.FatTipi == FatTipi.MuhtelifFat) { LoadKasa(); cmboxKasalar.Enabled = true; } txtFatNo.Text = mngFatUst.GetLastArtiOneFatIrsNoBySubeKoduAndFtirsip(UserInfo.Sube.Id, DetermineFtirsip(ftirsip)); } catch (Exception exc) { MessageBox.Show(exc.Message); LogWrite.Write(exc); } }
public frmYeniStok() { InitializeComponent(); stoklarBindingSource.AllowNew = true; stoklarBindingSource.DataSource = stokModel; _stok = kernel.Get <IStoklarManager>(); _kasa = kernel.Get <IKasaManager>(); }
public frmKasaHareketDokumu(frmAnaSayfa mainForm) { InitializeComponent(); this.mainForm = mainForm; mng = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); mngKasa = mng.GetKasaManager(); mngkasaHar = mng.GetKasaHarManager(); LoadKasa(); }
//private IImageBinaryDataManager _image; public EFMaasManager() { _repo = new UnitOfRepo(); _avans = kernel.Get <IAvansManager>(); _izin = kernel.Get <IizinlerManager>(); _personel = kernel.Get <IPersonellerManager>(); _sirket = kernel.Get <ISirketManager>(); //_image = kernel.Get<IImageBinaryDataManager>(); _kasa = kernel.Get <IKasaManager>(); }
public BaseCekSenet() { _mngFac = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); _mngCari = _mngFac.GetCariManager(); _mngCahar = _mngFac.GetCariHareketManager(); _mngBanka = _mngFac.GetBankaHesapManager(); _mngHesapHar = _mngFac.GetHesapHareketManager(); _mngKasa = _mngFac.GetKasaManager(); _mngKasaHar = _mngFac.GetKasaHarManager(); }
public frmYeniAvans(Guid personelid) { InitializeComponent(); avans = new DAL.EntityFramework.Tables.Avanslar(); avans.Id = Guid.NewGuid(); avans.PersonelId = personelid; avans.AvansTarihi = DateTime.Now; avans.MaastanDusulduMu = false; //Kernels _avans = kernel.Get <IAvansManager>(); _kasa = kernel.Get <IKasaManager>(); }
// GET: order public orderController() { #region Cihaz Hareketleri İçin Kullanılan Modüller lock (_hareketLock) { if (_hareket == null) { _hareket = kernel.Get <IMusteriHareketManager>(); } } lock (_clientLock) { if (_client == null) { _client = kernel.Get <IClientManager>(); } } #endregion lock (_yemekLock) { if (_yemek == null) { _yemek = kernel.Get <IYemekManager>(); } } lock (_cariLock) { if (_cari == null) { _cari = kernel.Get <ICarilerManager>(); } } lock (_odemeLock) { if (_odeme == null) { _odeme = kernel.Get <IOdemeManager>(); } } lock (_kasaLock) { if (_kasa == null) { _kasa = kernel.Get <IKasaManager>(); } } _siparis = kernel.Get <ISiparisManager>(); _iyzico = kernel.Get <IIyzicoPaymentManager>(); }
public frmBankaHareket(HesapHareketTuru hareketTuru) { InitializeComponent(); mngFac = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); mngBanka = mngFac.GetBankaHesapManager(); mngHesap = mngFac.GetHesapHareketManager(); mngKasa = mngFac.GetKasaManager(); mngKasaHar = mngFac.GetKasaHarManager(); mngCari = mngFac.GetCariManager(); mngCariHar = mngFac.GetCariHareketManager(); _hareketTuru = hareketTuru; txtCariKodu.DataSource = () => { try { return(mngCari.GetCariKodsBySubeKodu(UserInfo.Sube.Id, txtCariKodu.Text).ToStringList(15, txtCariKodu.Ayirac)); } catch (Exception exc) { MessageBox.Show(exc.Message); LogWrite.Write(exc); } return(null); }; txtHesapNo.DataSource = () => { try { return(mngBanka.GetBankaHesapNoBySubeKodu(UserInfo.Sube.Id, txtHesapNo.Text)); } catch (Exception exc) { LogWrite.Write(exc); MessageBox.Show(exc.Message); } return(null); }; //LoadGrid(); SetLocation(); }
public frmKasaTanimlama() { InitializeComponent(); mngFct = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); mngKasa = mngFct.GetKasaManager(); txtKasaKodu.DataSource = delegate { try { return(mngKasa.GetKasaKodsBySubeKodu(UserInfo.Sube.Id, txtKasaKodu.Text)); } catch (Exception exc) { LogWrite.Write(exc); MessageBox.Show(exc.Message); } return(null); }; dataGridView1.AutoGenerateColumns = false; LoadGrid(); }
public frmDirektSatis() { InitializeComponent(); mng = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); mngHesapHar = mng.GetHesapHareketManager(); mngBanka = mng.GetBankaHesapManager(); mngStk = mng.GetStokManager(); mngSth = mng.GetStokHareketManager(); mngKasa = mng.GetKasaManager(); mngKasaHar = mng.GetKasaHarManager(); mngFatUst = mng.GetFatirsUstManager(); mngCariHar = mng.GetCariHareketManager(); mngDizayn = mng.GetDizaynManager(); SatisYap = false; //txtStokKodu.DataSource = () => //{ // try // { // return mngStk.StokKods(txtStokKodu.Text, UserInfo.Sube); // } // catch (Exception exc) // { // MessageBox.Show(exc.Message); // LogWrite.Write(exc); // } // return null; //}; LoadKasa(); SetFisNo(); txtBarkod.Focus(); txtMiktar.Text = "1"; txtBarkod.Text = string.Empty; dataGridView1.DataSource = null; LoadDizayn(); }
public BaseKasaRapor() { _mng = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); _mngKasa = _mng.GetKasaManager(); _mngKasaHar = _mng.GetKasaHarManager(); }
public KasaManager(IKasaManager manager) { _manager = manager; }