Beispiel #1
0
 public frmUyari()
 {
     InitializeComponent();
     _mngFac       = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     _mngFatIrsUst = _mngFac.GetFatirsUstManager();
     _mngSipUst    = _mngFac.GetSiparisUstManager();
     _mngCek       = _mngFac.GetCekManager();
     _mngSenet     = _mngFac.GetSenetManager();
     LoadValues();
 }
Beispiel #2
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();
 }
 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();
 }
Beispiel #4
0
 void InitializeData()
 {
     _mngFac                = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     _mngCari               = _mngFac.GetCariManager();
     _mngSenet              = _mngFac.GetSenetManager();
     _mngCariHar            = _mngFac.GetCariHareketManager();
     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);
     };
 }