Simultaneous Description of Quasielastic and Fusion Reactions in Low-Energy Heavy-Ion Collisions