Global eriodicity and complete integrability of discrete dynamical systems