Пример #1
0
        void Focus_Hareket()
        {
            if (Yukleme || GridViewStokHareketleri.GetFocusedDataRow() == null)
            {
                return;
            }

            Yukle_Hareket(Convert.ToInt32(GridViewStokHareketleri.GetFocusedRowCellValue("ID")));
        }
Пример #2
0
        void Ara()
        {
            try
            {
                Yukleme = true;

                if (dateKayitBas.EditValue == null || dateKayitBit.EditValue == null)
                {
                    XtraMessageBox.Show("Arama Yapabilmek İçin Lütfen Tarih Kriterlerini Giriniz.", "Geçersiz İşlem",
                                        MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    return;
                }

                if (dt_StokHareketleri != null)
                {
                    dt_StokHareketleri.Dispose();
                }
                dt_StokHareketleri = null;

                dt_StokHareketleri = Isler.Stok.Ver_StokHareketleri(
                    Araclar.TarihSaat.Ver_BaslangicTarih(Convert.ToDateTime(dateKayitBas.EditValue)),
                    Araclar.TarihSaat.Ver_BitisTarih(Convert.ToDateTime(dateKayitBit.EditValue))
                    , Convert.ToInt32(lookUpDepolar.EditValue));
                gridControlStokHareketleri.DataSource = dt_StokHareketleri;
                GridViewStokHareketleri.ViewCaption   = "Stok Hareketleri (" + dt_StokHareketleri.Rows.Count.ToString() + ")";

                GridViewStokHareketleri.HorzScrollVisibility        = DevExpress.XtraGrid.Views.Base.ScrollVisibility.Always;
                GridViewStokHareketleri.OptionsView.ColumnAutoWidth = false;

                gridControlStokHareketleri.ForceInitialize();
                GridViewStokHareketleri.BestFitColumns();
            }
            catch (Exception hata)
            {
                XtraMessageBox.Show("Stok Hareketleri Getirilirken Bir Hata Oluştu.\n\nHata:\n" + hata.Message, "Hata",
                                    MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
                Yukleme = false;
            }
        }