Exemplo n.º 1
0
        private void btnThemGV_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.Close();
            frmTTGiangVien frmTTGiangVien = new frmTTGiangVien();

            frmTTGiangVien.menu("Them");
            frmTTGiangVien.Show();
        }
Exemplo n.º 2
0
        private void btnSuaGV_ItemClick(object sender, ItemClickEventArgs e)
        {
            String maGV     = gridVGiangVien.Columns.View.GetFocusedRowCellValue("maGV").ToString();
            String diaChi   = gridVGiangVien.Columns.View.GetFocusedRowCellValue("diaChi").ToString();
            String soDT     = gridVGiangVien.Columns.View.GetFocusedRowCellValue("SDT").ToString();
            String gioiTinh = gridVGiangVien.Columns.View.GetFocusedRowCellValue("gioiTinh").ToString();
            String hoTen    = gridVGiangVien.Columns.View.GetFocusedRowCellValue("hoTen").ToString();
            String trinhDo  = gridVGiangVien.Columns.View.GetFocusedRowCellValue("trinhDo").ToString();
            String thamNien = gridVGiangVien.Columns.View.GetFocusedRowCellValue("thamNien").ToString();
            String khoa     = gridVGiangVien.Columns.View.GetFocusedRowCellValue("tenKhoa").ToString();
            String noiSinh  = gridVGiangVien.Columns.View.GetFocusedRowCellValue("noiSinh").ToString();
            String email    = gridVGiangVien.Columns.View.GetFocusedRowCellValue("email").ToString();
            String ngaySinh = gridVGiangVien.Columns.View.GetFocusedRowCellValue("ngaySinh").ToString();

            byte[] ImageArray = (byte[])gridVGiangVien.Columns.View.GetFocusedRowCellValue("hinh");
            this.Close();

            frmTTGiangVien frmTTGiangVien = new frmTTGiangVien();

            frmTTGiangVien.TTGiangVien(maGV, hoTen, diaChi, soDT, gioiTinh, trinhDo, thamNien, khoa, email, noiSinh, ngaySinh, ImageArray);
            frmTTGiangVien.menu("Sua");
            frmTTGiangVien.Show();
        }