void GridArayuzIslemleri(enGridArayuzIslemleri islem)
 {
     try
     {
         trGenel = SqlConnections.GetBaglanti().BeginTransaction();
         FormdakiGridleriBul(this, islem);
         trGenel.Commit();
     }
     catch (Exception hata)
     {
         trGenel.Rollback();
         throw new Exception("Hata Kodu : " + hata.Message + "\n\nHata Detay : " + hata.StackTrace);
     }
 }
        private void FormdakiGridleriBul(Control nesne, enGridArayuzIslemleri islem)
        {
            if (nesne is DevExpress.XtraGrid.GridControl)
            {
                if (islem == enGridArayuzIslemleri.Set)
                {
                    GridArayuzleriKaydet(nesne);
                }
                else
                {
                    GridArayuzleriYukle(nesne);
                }
            }

            foreach (Control altnesne in nesne.Controls)
            {
                FormdakiGridleriBul(altnesne, islem);
            }
        }
Example #3
0
        public csGridLayout(enGridArayuzIslemleri islem, Control gelenForm, int kullaniciID, SqlConnection baglanti)
        {
            try
              {
            _islem = islem;
            _gelenForm = gelenForm;
            _kullaniciID = kullaniciID;
            _baglanti = baglanti;

            trGenel = _baglanti.BeginTransaction();
            FormdakiGridleriBul(gelenForm, islem);
            trGenel.Commit();
              }
              catch (Exception hata)
              {
            trGenel.Rollback();
            throw new Exception("Hata Kodu : " + hata.Message + "\n\nHata Detay : " + hata.StackTrace);
              }
        }
Example #4
0
        private void FormdakiGridleriBul(Control nesne, enGridArayuzIslemleri islem)
        {
            if (nesne is DevExpress.XtraGrid.GridControl)
              {
            if (islem == enGridArayuzIslemleri.Set)
              GridArayuzleriKaydet(nesne);
            else
              GridArayuzleriYukle(nesne);
              }

              foreach (Control altnesne in nesne.Controls)
            FormdakiGridleriBul(altnesne, islem);
        }