コード例 #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();
 }
コード例 #2
0
 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);
     };
 }
コード例 #3
0
 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);
     }
 }