예제 #1
0
 @Override
 protected void onFormDialogClosed(FormName formName, DialogResult result)
     throws PresentationLogicException {
   if (formName.equals(form.getForms().Emergency.TrackingAreaColumnConfigurationDialog)
       && result.equals(DialogResult.OK)) // WDEV-14896
   {
     // open();
     populateGridWithOrder();
   }
   // WDEV-14896
   else if (formName.equals(form.getForms().Emergency.CopyAreaWorkspaceConfig)
       && result.equals(DialogResult.OK)) {
     form.getLocalContext().setSelectedEvent(AreaWorkspaceEvent.COPYAREAWORKSPACEDIALOGCLOSED);
     form.fireCustomControlValueChanged();
   }
   updateControlsState();
 }
예제 #2
0
  @Override
  protected void onFormDialogClosed(FormName formName, DialogResult result)
      throws PresentationLogicException {
    if (formName.equals(form.getForms().Emergency.DiscriminatorSelectDialog)
        && result.equals(DialogResult.OK)) {
      if (!form.getGlobalContext().Emergency.getManchesterTriageProtocolIsNotNull()) {
        return;
      }

      populateDiscriminatorsGrid(form.getGlobalContext().Emergency.getManchesterTriageProtocol());
      updateControlsState();
    }
  }
예제 #3
0
 @Override
 protected void onMessageBoxClosed(int messageBoxId, DialogResult result)
     throws PresentationLogicException {
   if (form.getLocalContext().getMessageBoxIsNotNull())
     if (messageBoxId == form.getLocalContext().getMessageBox()
         && result.equals(DialogResult.YES)) {
       if (form.treProcedures().getSelectedNode() != null
           && form.treProcedures().getSelectedNode().getIdentifier() != null
           && form.treProcedures().getSelectedNode().getIdentifier()
               instanceof ProceduresPerformedByHCPVo)
         try {
           domain.removeProcedure(
               (ProceduresPerformedByHCPVo)
                   form.treProcedures().getSelectedNode().getIdentifier());
           populateTree(
               domain.listProceduresPerformedByHCP(
                   form.qmbHCP().getValue(), form.cmbServices().getValue()));
         } catch (ForeignKeyViolationException e) {
           e.printStackTrace();
         }
       initialize();
     }
 }