Пример #1
0
 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);
         };
     }
 }
Пример #2
0
 public frmUyari()
 {
     InitializeComponent();
     _mngFac       = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     _mngFatIrsUst = _mngFac.GetFatirsUstManager();
     _mngSipUst    = _mngFac.GetSiparisUstManager();
     _mngCek       = _mngFac.GetCekManager();
     _mngSenet     = _mngFac.GetSenetManager();
     LoadValues();
 }
Пример #3
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();
 }
Пример #4
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();
 }
Пример #5
0
 public frmCekRapor()
 {
     InitializeComponent();
     _mng     = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     _mngCari = _mng.GetCariManager();
     _mngCek  = _mng.GetCekManager();
     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);
     };
 }