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);
     }
 }
Beispiel #2
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);
     };
 }
 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 BaseFatSip() : base()
 {
     mng     = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     mngCari = mng.GetCariManager();
     mngSth  = mng.GetStokHareketManager();
     mngStk  = mng.GetStokManager();
     //mngAyar = new AyarlarManager(UserInfo.Sube.Id);
 }
        public frmCariRehber()
        {
            _cariKaydet = true;
            InitializeComponent();
            mngFct     = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
            mngCari    = mngFct.GetCariManager();
            mngCariCat = mngFct.GetCariCategoryManager();


            LoadCari();
        }
Beispiel #6
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();
        }
 public frmSiparisRapor()
 {
     InitializeComponent();
     _mng                   = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     _mngCari               = _mng.GetCariManager();
     _mngSipUst             = _mng.GetSiparisUstManager();
     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);
     };
 }
Beispiel #8
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);
     };
 }
 public PrintFatIrs(IManagerFactory mngFac, FatIrsUst fatIrsUst, Dizayn dizayn, IList <StokHarRpr> stokListe, HesaplaGenelToplam genelToplam)
 {
     _mngFac      = mngFac;
     _fatIrsUst   = fatIrsUst;
     _dizayn      = dizayn;
     _genelToplam = genelToplam;
     _stokListe   = stokListe;
     _mngDizGenel = _mngFac.GetDizaynGenelManager();
     _mngCari     = _mngFac.GetCariManager();
     _mngCariHar  = _mngFac.GetCariHareketManager();
     _mngKal      = _mngFac.GetDizaynKalemManager();
     if (_fatIrsUst.KdvDahilmi.Value)
     {
         ChangePrice();
     }
     printDoc.PrintPage += new PrintPageEventHandler(OnPrintDoc);
 }
 public frmDirekSatisVeresiye()
 {
     InitializeComponent();
     mngFct  = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     mngCari = mngFct.GetCariManager();
     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);
     };
 }
Beispiel #11
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();
        }
Beispiel #12
0
        void InitializeData()
        {
            mngFct     = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
            mngCari    = mngFct.GetCariManager();
            mngCariCat = mngFct.GetCariCategoryManager();
            // LoadAllCari();
            IList <Cari> listef = mngCari.GetBySUBE_KODU(UserInfo.Sube.Id);

            filterDataGridView1.grd.DataSource = listef;
            ManagerIl mngIl = new ManagerIl();

            //txtIl.DataSource = () =>
            //  {
            //    try
            //    {
            //      System.Globalization.CultureInfo dil;
            //      dil = new System.Globalization.CultureInfo("tr-TR");

            //      //txtIl.SelectionStart = txtIl.Text.Length;
            //      string str = txtIl.Text.ToUpper(dil);
            //      return mngIl.IlListe(str) ;
            //    }
            //    catch (Exception exc)
            //    {
            //      MessageBox.Show(exc.Message);
            //      LogWrite.Write(exc);
            //    }
            //    return null;
            //  };
            //txtIlce.DataSource = () =>
            //{
            //  try
            //  {
            //    if (string.IsNullOrEmpty(txtIl.Text))
            //      return null;
            //    System.Globalization.CultureInfo dil;
            //    dil = new System.Globalization.CultureInfo("tr-TR");

            //    //txtIl.SelectionStart = txtIl.Text.Length;
            //    string str = txtIl.Text.ToUpper(dil);
            //    int il = mngIl.SehirId(str);
            //    string ilce = txtIlce.Text.ToUpper(dil);
            //    return mngIl.IlceListe(ilce,il);
            //  }
            //  catch (Exception exc)
            //  {
            //    MessageBox.Show(exc.Message);
            //    LogWrite.Write(exc);
            //  }
            //  return null;
            //};
            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);
            };
            txtCariGrup1.DataSource = () =>
            {
                try {
                    List <string> liste = mngCariCat.GetListRootCategoriesKodAndName(txtCariGrup1.Text).ToStringList(30, "");
                    return(liste);
                } catch (Exception exc) {
                    LogWrite.Write(exc);
                    MessageBox.Show(exc.Message);
                }
                return(null);
            };
            txtCariGrup2.DataSource = () =>
            {
                try {
                    CariCategory parent = mngCariCat.GetById(txtCariGrup1.Text, false);
                    if (parent == null)
                    {
                        return(null);
                    }
                    else
                    {
                        List <string> liste = mngCariCat.GetListParentSubCategoryKodAndName(parent.Id, txtCariGrup2.Text).ToStringList(30, "");
                        return(liste);
                    }
                } catch (Exception exc) {
                    LogWrite.Write(exc);
                    MessageBox.Show(exc.Message);
                }
                return(null);
            };
            txtCariGrup3.DataSource = () =>
            {
                try {
                    CariCategory parent = mngCariCat.GetById(txtCariGrup2.Text, false);
                    if (parent == null)
                    {
                        return(null);
                    }
                    else
                    {
                        List <string> liste = mngCariCat.GetListParentSubCategoryKodAndName(parent.Id, txtCariGrup3.Text).ToStringList(30, "");
                        return(liste);
                    }
                } catch (Exception exc) {
                    LogWrite.Write(exc);
                    MessageBox.Show(exc.Message);
                }
                return(null);
            };
            txtCariGrup4.DataSource = () =>
            {
                try {
                    CariCategory parent = mngCariCat.GetById(txtCariGrup3.Text, false);
                    if (parent == null)
                    {
                        return(null);
                    }
                    else
                    {
                        List <string> liste = mngCariCat.GetListParentSubCategoryKodAndName(parent.Id, txtCariGrup4.Text).ToStringList(30, "");
                        return(liste);
                    }
                } catch (Exception exc) {
                    LogWrite.Write(exc);
                    MessageBox.Show(exc.Message);
                }
                return(null);
            };
        }