Analysis of a Batch-Arrival Batch-Service Queueing System and Its Application to Optimization of the Order of Services Guidance