void AraGrupGetir(int StokGrupID) { TrGenel = SqlConnections.GetBaglanti().BeginTransaction(); lkpAraGrup.Properties.DataSource = AraGrubu.StokAraGrupDoldur(SqlConnections.GetBaglanti(), TrGenel, StokGrupID); lkpAraGrup.Properties.DisplayMember = "StokAraGrupAdi"; lkpAraGrup.Properties.ValueMember = "StokAraGrupID"; TrGenel.Commit(); }
void HammaddeStokAraGrubu_Yukle(int HammaddeStokGrupID) { TrGenel = SqlConnections.GetBaglanti().BeginTransaction(); StokAraGrup = new clsTablolar.Stok.csStokAraGrup(SqlConnections.GetBaglanti(), TrGenel, -1); lkpHammaddeStokAraGrubu.Properties.DataSource = StokAraGrup.StokAraGrupDoldur(SqlConnections.GetBaglanti(), TrGenel, HammaddeStokGrupID); TrGenel.Commit(); lkpHammaddeStokAraGrubu.Properties.DisplayMember = "StokAraGrupAdi"; lkpHammaddeStokAraGrubu.Properties.ValueMember = "StokAraGrupID"; }
private void gvStokGrup_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { try { if (gvStokGrup.GetFocusedRowCellValue("StokGrupID") == null) { return; } //trGenel = SqlConnections.GetBaglanti().BeginTransaction(); gcStokAraGrup.DataSource = stokAraGrup.StokAraGrupDoldur(SqlConnections.GetBaglanti(), trGenel, Convert.ToInt32(gvStokGrup.GetFocusedRowCellValue("StokGrupID"))); gvStokAraGrup.Columns["StokAraGrupID"].Visible = false; gvStokAraGrup.Columns["StokGrupID"].Visible = false; gvStokAraGrup.Columns["StokAraGrupAdi"].Caption = "Stok Ara Grup Adı"; gvStokAraGrup.Columns["StokAraGrupAdi"].Width = gcStokAraGrup.Width - 25; } catch (Exception hata) { frmHataBildir frmHataBildir = new frmHataBildir(hata.Message, hata.StackTrace); frmHataBildir.ShowDialog(); } }
void lkpGrup_EditValueChanged(object sender, EventArgs e) { lkpAraGrup.Properties.DataSource = AraGrubu.StokAraGrupDoldur(SqlConnections.GetBaglanti(), trGenel, csGenelKodlar.IDBossaEksiBirVer(lkpGrup.EditValue)); lkpAraGrup.Properties.ValueMember = "StokAraGrupID"; lkpAraGrup.Properties.DisplayMember = "StokAraGrupAdi"; }