Integration of priority dispatching and due-date assignment in a job shop