예제 #1
0
  protected void onFormDialogClosed(FormName formName, DialogResult result)
      throws PresentationLogicException {
    if (form.getForms().RefMan.ElectiveListAddLaterDialog.equals(formName)) {
      if (DialogResult.OK.equals(result)) {
        PatientElectiveListAddLaterVo electiveListLater =
            form.getGlobalContext().RefMan.getPatientElectiveListAddLaterVo();
        if (electiveListLater != null) {
          try {
            domain.savePatientElectiveList(electiveListLater);
          } catch (StaleObjectException e) {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
          } catch (UniqueKeyViolationException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            engine.showMessage(e.getMessage());
          }

          open();
        }
      } else if (DialogResult.ABORT.equals(result)) {
        open();
      } else if (DialogResult.CANCEL.equals(result)) // WDEV-22488
      {
        open();
      }
    }
  }