void InitializeData()
 {
     g_mngFac               = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     g_mngCari              = g_mngFac.GetCariManager();
     g_mngCek               = g_mngFac.GetCekManager();
     g_mngBanka             = g_mngFac.GetBankaHesapManager();
     g_mngCariHar           = g_mngFac.GetCariHareketManager();
     txtCariKodu.DataSource = () =>
     {
         try {
             return(g_mngCari.GetCariKodsBySubeKodu(UserInfo.Sube.Id, txtCariKodu.Text).ToStringList(15, txtCariKodu.Ayirac));
         } catch (Exception exc) {
             MessageBox.Show(exc.Message);
             LogWrite.Write(exc);
         }
         return(null);
     };
     if (g_cekTip == CekTip.Verilen)
     {
         btnBankaRehber.Visible = true;
         txtHesapNo.DataSource  = () =>
         {
             try {
                 return(g_mngBanka.GetBankaHesapNoBySubeKodu(UserInfo.Sube.Id, txtHesapNo.Text));
             } catch (Exception exc) {
                 LogWrite.Write(exc);
                 MessageBox.Show(exc.Message);
             }
             return(null);
         };
     }
 }
        public frmBankaHesapRehber()
        {
            InitializeComponent();
            dataGridView1.AutoGenerateColumns = false;

            IManagerFactory mng = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());

            mngBankaHesap = mng.GetBankaHesapManager();
            LoadGrid();
        }
Beispiel #3
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();
        }
Beispiel #4
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();
        }