Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
JA/Nein - Dialog

if (showDialogEmail("Soll an die  Kundenemail:  " +email1 +" das eine Email verschickt werden?")) {
// Email wird verschickt
}
    private boolean showDialogEmail(String msg) throws BusinessException {
        if (InputContext.isSupported()) {
            Integer iValue =(Integer)InputContext.get("wEmailverschicken");
            if (iValue == null) {
                InputSpecification spec = new InputSpecification(InputSpecification.CONFIRM_YES_NO, "wEmailverschicken", msg);
                throw new InputRequiredException(spec);
            } else {
                return (iValue.equals(1));
            }
        }
        else {
            throw new BusinessException("Nicht unterstützt.");
        }
    }