Move code of export general timetable to its dialog