On the complete and partial integrability of non-Hamiltonian systems