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); } }
public frmUyari() { InitializeComponent(); _mngFac = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); _mngFatIrsUst = _mngFac.GetFatirsUstManager(); _mngSipUst = _mngFac.GetSiparisUstManager(); _mngCek = _mngFac.GetCekManager(); _mngSenet = _mngFac.GetSenetManager(); LoadValues(); }
public frmFaturaRapor(bool isFatura) { InitializeComponent(); _mng = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); _mngCari = _mng.GetCariManager(); _mngFatUst = _mng.GetFatirsUstManager(); _isFatura = isFatura; SettingScreen(); 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 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(); }
public frmFatRehber(Form form, FTIRSIP ftirsip) { InitializeComponent(); _frm = form; _ftirsip = ftirsip; _mngFac = new ManagerFactory(Engine.GetConString(), Engine.GetSqlServerType()); _mngFatIrsUst = _mngFac.GetFatirsUstManager(); _mngSipUst = _mngFac.GetSiparisUstManager(); try { dataGridView1.AutoGenerateColumns = false; if (_frm is frmFatura) { dataGridView1.DataSource = _mngFatIrsUst.GetListByFtirsipAndSubeKodu(ftirsip, UserInfo.Sube.Id); clTeslimTarih.Visible = false; clFatirsNo.HeaderText = "IrsaliyeNo"; if (ftirsip == FTIRSIP.SatisFat || ftirsip == FTIRSIP.AlisFat || ftirsip == FTIRSIP.DirektSatis) { clSevkTarih.Visible = false; clFatirsNo.HeaderText = "FaturaNo"; } } else if (_frm is frmSiparis) { EkranAyarla(); dataGridView1.DataSource = _mngSipUst.GetListByFtirsipAndSubeKodu(ftirsip, UserInfo.Sube.Id); clSevkTarih.Visible = false; clFatirsNo.HeaderText = "SiparişNo"; } } catch (Exception exc) { MessageBox.Show(exc.Message); LogWrite.Write(exc); } }