internal static void CreateCatalogBarkod(List <UrunKatalog> obj) { try { using (xFrmCheckList chk = new xFrmCheckList()) { chk.Text = "Kategori Seçiniz!"; chk.DataListCheckhed.ValueMember = "ID"; chk.DataListCheckhed.DisplayMember = "Adi"; chk.DataListCheckhed.DataSource = KategoriMethods.GetSelect(); switch (chk.ShowDialog()) { case System.Windows.Forms.DialogResult.OK: int[] ids = new int[chk.DataListCheckhed.CheckedItems.Count]; for (int i = 0; i < chk.DataListCheckhed.CheckedItems.Count; i++) { ids[i] = int.Parse(chk.DataListCheckhed.CheckedItems[i].ToString()); } xrpUrunKatalogID rptKatalog = new xrpUrunKatalogID(); rptKatalog.Data = obj.Where(p => ids.Contains(p.KategoriID)).ToList(); rptKatalog.ShowPreview(); break; } } } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("CMN", 18) + ex.Message); } }
public void GetData() { try { kategoriBindingSource.DataSource = KategoriMethods.GetSelect(); isRecord = false; } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FKT", 2) + ex.Message); } }
public void GetKategoriler() { try { KategoriCollection k = KategoriMethods.GetSelect(); k.Add(new Kategori { ID = 0, Adi = L.YeniKategori }); this.kategoriBindingSource.DataSource = k; } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FST", 16) + ex.Message); } }
public void GetKategoriler() { try { KategoriCollection k = KategoriMethods.GetSelect(); k.Add(new Kategori { ID = 0, Kod = "...", Adi = L.TumKategorilereUygula }); this.kategoriBindingSource.DataSource = k; } catch (Exception ex) { Commons.Status(Commons.GetErrorCode("FKS", 3) + ex.Message); } }
public void GetKategoriler() { this.kategoriBindingSource.DataSource = KategoriMethods.GetSelect(); }