Learning Cascade Ranking as One Network