Ejemplo n.º 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();
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 3
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();
 }
Ejemplo n.º 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);
     };
 }
Ejemplo n.º 5
0
        public frmSenetDurum(int senetId, SenetTip senetTip, SenetDurum senetDurum) : base()
        {
            InitializeComponent();
            //_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();
            _mngSenet   = _mngFac.GetSenetManager();
            _senetId    = senetId;
            _senetTip   = senetTip;
            _senetDurum = senetDurum;
            SetData();

            txtBankaHesap.DataSource = () =>
            {
                try {
                    return(_mngBanka.GetBankaHesapNoBySubeKodu(UserInfo.Sube.Id, txtBankaHesap.Text));
                } catch (Exception exc) {
                    LogWrite.Write(exc);
                    MessageBox.Show(exc.Message);
                }
                return(null);
            };
            txtCari.DataSource = () =>
            {
                try {
                    return(_mngCari.GetCariKodsBySubeKodu(UserInfo.Sube.Id, txtCari.Text).ToStringList(15, txtCari.Ayirac));
                } catch (Exception exc) {
                    MessageBox.Show(exc.Message);
                    LogWrite.Write(exc);
                }
                return(null);
            };
            LoadKasa(cmbKasa);
            InitializeScreenValues();
            SetControlLocation();
        }