Esempio n. 1
0
 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 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);
     }
 }
Esempio n. 3
0
 public frmKasaHareketDokumu(frmAnaSayfa mainForm)
 {
   InitializeComponent();
   this.mainForm = mainForm;
   mng = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
   mngKasa = mng.GetKasaManager();
   mngkasaHar = mng.GetKasaHarManager();
   LoadKasa();
 }
Esempio n. 4
0
        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();
        }
Esempio n. 5
0
 //DurumGiderler _giderler;
 public frmGenelDurumRaporu()
 {
     InitializeComponent();
     frmGenelDurumRaporu.CheckForIllegalCrossThreadCalls = false;
     _mng        = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     _mngKasaHar = _mng.GetKasaHarManager();
     _mngCariHar = _mng.GetCariHareketManager();
     _mngHesHar  = _mng.GetHesapHareketManager();
     _mngSenet   = _mng.GetSenetManager();
     _mngCek     = _mng.GetCekManager();
     _mngStokHar = _mng.GetStokHareketManager();
 }
Esempio n. 6
0
 public frmSenet()
 {
     InitializeComponent();
     _mngFac      = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     _mngSenet    = _mngFac.GetSenetManager();
     _mngCariHar  = _mngFac.GetCariHareketManager();
     _mngHesapHar = _mngFac.GetHesapHareketManager();
     _mngKasaHar  = _mngFac.GetKasaHarManager();
     dataGridViewSenet.AutoGenerateColumns = false;
     cmbSenetTip.DataSource = Enum.GetValues(typeof(SenetTip));
     LoadGrid();
     LoadSenetDurum();
 }
Esempio n. 7
0
 public frmCek()
 {
     InitializeComponent();
     mngFac      = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     mngCek      = mngFac.GetCekManager();
     mngCahar    = mngFac.GetCariHareketManager();
     mngHesapHar = mngFac.GetHesapHareketManager();
     mngKasaHar  = mngFac.GetKasaHarManager();
     dataGridViewCek.AutoGenerateColumns = false;
     LoadGrid();
     cmbCekTip.DataSource = Enum.GetValues(typeof(CekTip));
     LoadCekDurum();
 }
Esempio n. 8
0
 public frmOzelGelirGiderRapor(GelirGider gelirGider)
 {
     InitializeComponent();
     mngFac      = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     mngKasaHar  = mngFac.GetKasaHarManager();
     _gelirGider = gelirGider;
     if (_gelirGider == GelirGider.Gelir)
     {
         this.Text = "Özel Gelir Raporu";
         rbButunGelirGider.Text   = "Bütün Gelirler";
         rbOzelGelirGiderLod.Text = "ÖzelGelirKod";
     }
     else
     {
         this.Text = "Özel Gider Raporu";
         rbButunGelirGider.Text   = "Bütün Giderler";
         rbOzelGelirGiderLod.Text = "ÖzelGiderKod";
     }
 }
Esempio n. 9
0
        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 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();
        }
Esempio n. 11
0
 public BaseKasaRapor()
 {
     _mng        = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     _mngKasa    = _mng.GetKasaManager();
     _mngKasaHar = _mng.GetKasaHarManager();
 }