public void GetData() { try { isExcelOkey = false; GridChange("DATA"); this.m_StokData = StokMethods.GetSelect(); this.stokBindingSource.DataSource = m_StokData; } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FST", 3) + ex.Message); } }
public void GetDataExcel() { try { GridChange("EXCEL"); this.m_StokData = StokMethods.GetSelect(); Firma f = this.firmaStokLookUpEdit.GetSelectedDataRow() as Firma; if (f != null) { this.stokBindingSource.DataSource = this.m_StokData.Where(x => x.FirmaID.Equals(f.ID)).ToList(); Commons.Status(string.Format(L.FirmaninFiyatListesi, f.Adi)); } } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FST", 4) + ex.Message); } }