private void ThemNhanVien()
        {
            // Khoi tao doi tuong nhan vien voi ma tu dong
            // string strMaNhanVien = NhanVien.GetNextMaNhanVien();
            string strMaNhanVien = NhanVien.GetNextMaNhanVienV2();

            if (strMaNhanVien.Length > 0)
            {
                NhanVien    objNhanVien = new NhanVien(strMaNhanVien, string.Empty, DateTime.Now, true, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, 0, 0, string.Empty, "");
                frmNhanVien frm         = new frmNhanVien(objNhanVien, true);// them moi
                if (frm.ShowDialog(this) == DialogResult.OK)
                {
                    objNhanVien = frm.GetNhanVien();
                    frm.Dispose();

                    //Insert DataBase
                    if (!objNhanVien.Insert())
                    {
                        new MessageBox.MessageBoxBA().Show("Lỗi thêm mới lái xe");
                        return;
                    }
                    else
                    {
                        //Load lai grid
                        LoadListNhanVien();
                    }
                }
                else
                {
                    return;
                }
            }
            else
            {
                new MessageBox.MessageBoxBA().Show("Lỗi cấp mã cho lái xe, liên hệ với quản trị");
                return;
            }
        }
        private void btnLuuThongTin_Click(object sender, EventArgs e)
        {
            try
            {
                ValidateLuu();

                if (isInsert)
                {
                    NhanVien.Insert(LoadNhanVien(), new TAIKHOAN()
                    {
                        TenDangNhap = txtTenDangNhap.Text,
                        MatKhau     = txtMatKhau.Text,
                    });

                    MessageBox.Show("Thêm nhân viên thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    NhanVien.Update(LoadNhanVien(), new TAIKHOAN()
                    {
                        TenDangNhap = txtTenDangNhap.Text,
                        MatKhau     = txtMatKhau.Text,
                    });

                    MessageBox.Show("Sửa nhân viên thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                this.Close();
            }
            catch (ArgumentException ex)
            {
                MessageBox.Show(ex.Message, "Cảnh báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }