Staff Planning Spanning Several Functions and Shifts within a Day