Solvable lattice model and representation theory of quantum affine algebras