Quasi-injective modules withacc ordec on essential submodules