예제 #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();
      }
    }
  }
예제 #2
0
 @Override
 protected void onMessageBoxClosed(int messageBoxId, DialogResult result)
     throws PresentationLogicException {
   // TODO Auto-generated method stub
   if (form.getLocalContext().getErrorMessageIsNotNull()
       && form.getLocalContext().getErrorMessage() == messageBoxId) {
     if (DialogResult.OK.equals(result)) engine.close(DialogResult.ABORT);
   }
 }
예제 #3
0
 @Override
 protected void onFormDialogClosed(FormName formName, DialogResult result)
     throws PresentationLogicException {
   if (form.getForms().Emergency.TrackingStatusDialog.equals(formName)
       && DialogResult.OK.equals(result)) {
     if (removeBed(form.getGlobalContext().Emergency.getTrackingAttendanceStatus()))
       engine.close(DialogResult.OK);
   }
 }