public List <XtraReport> RaporTasarimlariniGetir(DizaynTipi dizaynTipi) { var lst = new List <XtraReport>(); var all = raporDal.GetAll(context, x => x.DizaynTipi == dizaynTipi.ToString()); foreach (var item in all) { lst.Add(RaporTasarimGetir(item)); } return(lst); }
public void YazdirmaSecenekleriniEkle(PopupMenu popupMenu, DizaynTipi dizaynTipi, ItemClickEventHandler action) { var resYSecenekleri = raporDal.GetAll(context, x => x.DizaynTipi == dizaynTipi.ToString()); popupMenu.ClearLinks(); foreach (var item in resYSecenekleri) { var br = CreateItem(item); popupMenu.AddItem(br); br.ItemClick += action; } }
public FrmDashboard(object datasource, DizaynTipi _dizaynTipi, bool Yazdir = true, int DesingID = 0) { InitializeComponent(); dizaynTipi = _dizaynTipi; #pragma warning disable CS0618 // 'Dashboard.AddDataSource(string, object)' is obsolete: 'The Dashboard.AddDataSource method is obsolete now. Use the Dashboard.DataSources.Add method instead.' dashboardDesigner1.Dashboard.AddDataSource(dizaynTipi.ToString(), datasource); #pragma warning restore CS0618 // 'Dashboard.AddDataSource(string, object)' is obsolete: 'The Dashboard.AddDataSource method is obsolete now. Use the Dashboard.DataSources.Add method instead.' if (Yazdir) { raporTasarimlari = raporDal.GetByFilter(context, x => x.Id == DesingID); } }
public void YazdirmaSecenekleriniEkle(BarSubItem btnYazdir, DizaynTipi dizaynTipi, ItemClickEventHandler action) { var resYSecenekleri = raporDal.GetAll(context, x => x.DizaynTipi == dizaynTipi.ToString()); //var resYSecenekleri = repo.Rapor.Getir(x => x.DizaynTipi == dizaynTipi.ToString()); btnYazdir.ClearLinks(); foreach (var item in resYSecenekleri) { var br = CreateItem(item); btnYazdir.AddItem(br); br.ItemClick += action; } }
private void FrmKayitliRaporlar_Load(object sender, EventArgs e) { var res = raporDal.GetAll(context, x => x.DizaynTipi == dizaynTipi.ToString() && x.DizaynAraci == dizaynAraci);// repo.Rapor.Getir(x => x.DizaynTipi == dizaynTipi.ToString()).ToList(); grRaporlar.DataSource = res; }