Enumerative geometry and integrable hierarchy on curves: classical and quantum