void LoadData()
 {
     try {
         DataTable _source = new DataTable();
         if (_beginDate.HasValue && _finishDate.HasValue)
         {
             _source = mngstokHar.StokHareketDokumu(UserInfo.Sube.Id, _stokKodu, _gcKod, _beginDate.Value
                                                    , _finishDate.Value);
         }
         else
         {
             _source = mngstokHar.StokHareketDokumu(UserInfo.Sube.Id, _stokKodu, _gcKod);
         }
         _source.Replace("GCKod", "G", "MalAlış"); _source.Replace("GCKod", "C", "MalSatış");
         _source.Replace("Tip", "F", "Fatura"); _source.Replace("Tip", "I", "İrsaliye");
         dataGridView1.DataSource = _source;
         dataGridView1.Columns["Tutar"].DefaultCellStyle.Format = "F2";
     } catch (Exception exc) {
         MessageBox.Show(exc.Message);
         LogWrite.Write(exc);
     }
 }
        void LoadGrid()
        {
            try {
                string gcKod = GetGirisCikisKod();
                _source = mngstokHar.StokHareketDokumu(UserInfo.Sube.Id, txtStokKodu.Text, gcKod, dtpStart.Value.JustDate(), dtpFinish.Value.JustDate());
                _source.Replace("GCKod", "G", "MalAlış"); _source.Replace("GCKod", "C", "MalSatış");
                _source.Replace("Tip", "F", "Fatura"); _source.Replace("Tip", "I", "İrsaliye");

                dataGridView1.DataSource = _source;
                if (_source != null && _source.Rows.Count > 0)
                {
                    tslabToplamMiktar.Text = ToplamMiktar().ToString("F2");
                    tslabToplamTutar.Text  = ToplamTutar().ToString("F2");
                    dataGridView1.Columns["Tutar"].DefaultCellStyle.Format = "F2";
                }
            } catch (Exception exc) {
                MessageBox.Show(exc.Message);
                LogWrite.Write(exc);
            }
        }