private void btnSua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { int rowIndex = gvMain.FocusedRowHandle; CKhuVuc kv = new CKhuVuc { MaKV = gvMain.GetRowCellValue(rowIndex, "CUSTOMER_GROUP_ID").ToString(), TenKV = gvMain.GetRowCellValue(rowIndex, "CUSTOMER_GROUP_Name").ToString(), GhiChu = gvMain.GetRowCellValue(rowIndex, "Description").ToString(), ConQL = bool.Parse(gvMain.GetRowCellValue(rowIndex, "Active").ToString()) }; fThemSimple sua = new fThemSimple(false, kv, LoadData); sua.ShowDialog(); }
private void BtnSua_ItemClick(object sender, ItemClickEventArgs e) { int rowIndex = gvMain.FocusedRowHandle; CNhomHang nh = new CNhomHang { MaNH = gvMain.GetRowCellValue(rowIndex, "ProductGroup_ID").ToString(), TenNH = gvMain.GetRowCellValue(rowIndex, "ProductGroup_Name").ToString(), GhiChu = gvMain.GetRowCellValue(rowIndex, "Description").ToString(), ConQL = bool.Parse(gvMain.GetRowCellValue(rowIndex, "Active").ToString()) }; fThemSimple sua = new fThemSimple(false, nh, LoadData); sua.ShowDialog(); }
private void BtnSua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { int rowIndex = gvMain.FocusedRowHandle; CDonViTinh dv = new CDonViTinh { MaDV = gvMain.GetRowCellValue(rowIndex, "Unit_ID").ToString(), TenDV = gvMain.GetRowCellValue(rowIndex, "Unit_Name").ToString(), GhiChu = gvMain.GetRowCellValue(rowIndex, "Description").ToString(), ConQL = bool.Parse(gvMain.GetRowCellValue(rowIndex, "Active").ToString()) }; fThemSimple sua = new fThemSimple(false, dv, LoadData); sua.ShowDialog(); }
private void BtnThem_ItemClick(object sender, ItemClickEventArgs e) { fThemSimple themKhuVuc = new fThemSimple(true, null, LoadData, (float)1); themKhuVuc.ShowDialog(); }