You definitely would want to take a taxi, but it's going to very, very tight. The airport is 45 minutes to an hour from the city and traffic in Beijing is really, really bad. Others may have a different opinion, but I think you'll be lucky if you can manage just the dinner.