378379380381382383384385386387388
number = d.generateNewDespatchNo(); if (number.equals("") == false) { if (d.create()) { d.updateUserID(number, Common.userList.getUser(Common.sessionID).getUserId()); populateDespatchList(number); setConfirmButtonStatus(); }
96979899100101102103104105106
} } else { // Attempt to create Despatch and fail if unsuccessful if (desp.create() == false) { result = false; setErrorMessage("Despatch " + despatchNo + " create error. " + desp.getErrorMessage()); } }
167168169170171172173174175176177
if (number.equals("") == false) { desp.setDespatchNo(number); if (desp.create()) { desp.updateUserID(number, Common.sd.getData(sessionID, "username").toUpperCase()); result = desp.getDespatchNo(); logger.debug("Despatch " + number + " created.");
168169170171172173174175176177178