/// <param name="userid">A User ID. 0 to search all.</param>
/// <returns>Bookings information.</returns>
public static DB.viwBookingDataTable GetBookings( int roomid, long from, long to, string host, string part, int purposeid, string rem, bool active, bool canceled, int userid )
{
string sql = "SELECT * FROM "+db.viwBooking.TableName+" WHERE 1=1 ";