Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
        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();
        }
Beispiel #4
0
        private void btnThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            fThemSimple themKhuVuc = new fThemSimple(true, null, LoadData);

            themKhuVuc.ShowDialog();
        }
Beispiel #5
0
        private void BtnThem_ItemClick(object sender, ItemClickEventArgs e)
        {
            fThemSimple themKhuVuc = new fThemSimple(true, null, LoadData, (float)1);

            themKhuVuc.ShowDialog();
        }