*
* @throws InterruptedException
*/
private void doDelete() throws InterruptedException {
final Customer aCustomer = getCustomer();
// for the guys who delete all times our two demo customers with order
// and orderPositions, we stop this.
if (aCustomer.getId() == new Long(20) || aCustomer.getId() == new Long(21)) {
ZksampleMessageUtils.doShowNotAllowedForDemoRecords();
return;
}
// Show a confirm box
String msg = Labels.getLabel("message.Question.Are_you_sure_to_delete_this_record") + "\n\n --> " + aCustomer.getKunName1() + " " + aCustomer.getKunName2() + " ," + aCustomer.getKunOrt();
String title = Labels.getLabel("message.Deleting.Record");
MultiLineMessageBox.doSetTemplate();
if (MultiLineMessageBox.show(msg, title, MultiLineMessageBox.YES | MultiLineMessageBox.NO, Messagebox.QUESTION, true, new EventListener() {
@Override