if (threadmode)
{
DespatchConfirmThread despconfirmThread = new DespatchConfirmThread(getHostID(), getSessionID(), getDespatchNo());
despconfirmThread.setName("C4J Despatch Confirm Thread");
despconfirmThread.start();
} else
{
for (int j = 0; j < assignedList.size(); j++)
{