Exemple #1
0
  public void addNoteSummary() {

    try {
      if (clientNoteSummaryHome != null
          && !Strings.isNullOrEmpty(clientNoteSummaryHome.getInstance().getNotes())) {

        clientNoteSummaryHome.getInstance().setClient(currentRSDIClient.getClient());
        clientNoteSummaryHome.getInstance().setUsername(currentUser.getUser().getUserName());
        clientNoteSummaryHome.getInstance().setEntrydate(new Date());

        String action = clientNoteSummaryHome.persist();

        if (action.equals("persisted") || action.equals("updated")) {
          init();

          clientNoteSummaryHome.clearInstance();
          clientNoteSummaryHome.wire();
          clientHome.getInstance().getClientNotes().add(clientNoteSummaryHome.getInstance());
          clientHome.update();
        }

        facesMessages.clearGlobalMessages();
        facesMessages.clear();
      }
    } catch (Exception e) {
      String s = "";
    }

    String s = "";
  }
Exemple #2
0
 public void cancelNoteSummary() {
   init();
   clientNoteSummaryHome.clearInstance();
 }