Exemple #1
0
        private void btiThemChiTiet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string sad = dgv_danhgiattb.GetRowCellValue(dgv_danhgiattb.FocusedRowHandle, "ma").ToString();
            string m   = dgv_danhgiattb.GetRowCellValue(dgv_danhgiattb.FocusedRowHandle, "ngaydanhgia").ToString();
            frm_ThemChiTietDGTTB ctdgttb = new frm_ThemChiTietDGTTB(strConnect, sad);

            ctdgttb.txtMaDanhGia.Text = dgv_danhgiattb.GetRowCellValue(dgv_danhgiattb.FocusedRowHandle, "hienthima").ToString();
            ctdgttb.datThoiGian.Text  = dgv_danhgiattb.GetRowCellValue(dgv_danhgiattb.FocusedRowHandle, "ngaydanhgia").ToString();
            ctdgttb.Show();
        }
Exemple #2
0
        private void btiHienCHiTiet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string sad = dgv_danhgiattb.GetRowCellValue(dgv_danhgiattb.FocusedRowHandle, "ma").ToString();
            string l   = dgv_danhgiattb.GetRowCellValue(dgv_danhgiattb.FocusedRowHandle, "hienthima").ToString();
            string m   = dgv_danhgiattb.GetRowCellValue(dgv_danhgiattb.FocusedRowHandle, "ngaydanhgia").ToString();
            string n   = dgv_chitietdanhgiattb.GetRowCellValue(dgv_chitietdanhgiattb.FocusedRowHandle, "capchatluong").ToString();
            string p   = dgv_chitietdanhgiattb.GetRowCellValue(dgv_chitietdanhgiattb.FocusedRowHandle, "ketqua").ToString();
            string o   = dgv_chitietdanhgiattb.GetRowCellValue(dgv_chitietdanhgiattb.FocusedRowHandle, "thietbima").ToString();
            frm_ThemChiTietDGTTB add = new frm_ThemChiTietDGTTB(strConnect, sad);

            add.Show();
            add.textBox1.Text        = dgv_danhgiattb.GetRowCellValue(dgv_danhgiattb.FocusedRowHandle, "hienthima").ToString();
            add.cboCapChatLuong.Text = dgv_chitietdanhgiattb.GetRowCellValue(dgv_chitietdanhgiattb.FocusedRowHandle, "capchatluong").ToString();
            add.txtKetQua.Text       = dgv_chitietdanhgiattb.GetRowCellValue(dgv_chitietdanhgiattb.FocusedRowHandle, "ketqua").ToString();
            add.cboMaThietBi.Text    = dgv_chitietdanhgiattb.GetRowCellValue(dgv_chitietdanhgiattb.FocusedRowHandle, "thietbima").ToString();
            //add.txtMaDanhGia.Text = dgv_danhgiattb.GetRowCellValue(dgv_danhgiattb.FocusedRowHandle, "ma").ToString();
            add.datThoiGian.Text = dgv_danhgiattb.GetRowCellValue(dgv_danhgiattb.FocusedRowHandle, "ngaydanhgia").ToString();
        }