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);
     }
 }
示例#2
0
 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 frmStokHareketListesi(string stokKodu, string gcKod, DateTime?beginDate, DateTime?fisihDate)
 {
     InitializeComponent();
     mngFac      = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     mngstokHar  = mngFac.GetStokHareketManager();
     _stokKodu   = stokKodu;
     _gcKod      = gcKod;
     _finishDate = fisihDate;
     _beginDate  = beginDate;
     LoadData();
 }
示例#4
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 frmStokListe(FTIRSIP ftirsip, string fisNo)
 {
     InitializeComponent();
     mngFac     = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     mngStokHar = mngFac.GetStokHareketManager();
     try {
         dataGridView1.AutoGenerateColumns = false;
         IList <StokHarRpr> rpr = mngStokHar.GetByFisNoAndSubeKodu(fisNo, UserInfo.Sube.Id, ftirsip);
         dataGridView1.DataSource = rpr;
         dataGridView1.Columns[clTutar.Name].DefaultCellStyle.Format = "F2";
     } catch (Exception exc) {
         MessageBox.Show(exc.Message);
         LogWrite.Write(exc);
     }
 }
示例#6
0
 public frmStokDurumRaporu()
 {
     InitializeComponent();
     mngFac                 = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     mngStok                = mngFac.GetStokManager();
     mngStokHar             = mngFac.GetStokHareketManager();
     txtStokKodu.DataSource = () =>
     {
         try {
             return(mngStok.StokKods(txtStokKodu.Text, UserInfo.Sube).ToStringList(35, txtStokKodu.Ayirac));
         } catch (Exception exc) {
             MessageBox.Show(exc.Message);
             LogWrite.Write(exc);
         }
         return(null);
     };
 }
示例#7
0
        private void frmStokSearch_Load(object sender, EventArgs e)
        {
            _stokKaydet  = true;
            managerFctry = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
            managerStk   = managerFctry.GetStokManager();
            mngStokCat   = managerFctry.GetStokCategoryManager();
            _mngStokHar  = managerFctry.GetStokHareketManager();
            mngKur       = managerFctry.GetKurManager();
            LoadStok();
            Form frm = this.Owner;

            if (frm is frmStok)
            {
                tsbtnYeniKayit.Enabled = false;
                _stokKaydet            = false;
            }
        }
示例#8
0
 public frmStokMaliyetRaporu()
 {
     InitializeComponent();
     //_alisSatis = alisSatis;
     //_alisGirisKod = alisSatis == StokAlisSatisRapor.AlisRapor ? "G" : "C";
     //tabPageFiltre.Text = this.Text = alisSatis == StokAlisSatisRapor.AlisRapor ?
     //    "MalAlışMaliyetRaporu" : "MalSatışMaliyetRaporu";
     mngFac                 = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType());
     mngStok                = mngFac.GetStokManager();
     mngStokHar             = mngFac.GetStokHareketManager();
     txtStokKodu.DataSource = () =>
     {
         try {
             return(mngStok.StokKods(txtStokKodu.Text, UserInfo.Sube).ToStringList(35, txtStokKodu.Ayirac));
         } catch (Exception exc) {
             MessageBox.Show(exc.Message);
             LogWrite.Write(exc);
         }
         return(null);
     };
 }
        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();
        }