Generalized Schrödinger equation and quantum measurement