A Type of Quasi-Frobenius Ring