Package domain

Examples of domain.Choice


          List choices = f.getChoices();

          if (choices.size() == 1) {

            Choice c2 = new Choice(-1, new Formation(-1, "AUCUN"));
            choices.add(1, c2);

            Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
            choices.add(2, c3);

          } else if (choices.size() == 2) {
            Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
            choices.add(2, c3);

          }
        }

        model.put("folders", finalizedByCandidate);
        link = "wait";

      /* The page of a secretary displaying folders with a paper version received but the version is incomplete, there are some attached documents missing */
      } else if (action.equals("incomplete")) {

        page.add("Secr�tariat : Liste des dossiers papiers incomplets.");
        model.put("page", page);

        /*
         * Liste des dossier ayant recu une version papier mais
         * incomplete
         */
        List<Folder> incomplete = foldermanager.findPersonalInfoByState(Folder.FOLDER_INCOMPLETE);

        for (Folder f : incomplete) {
          List choices = f.getChoices();

          if (choices.size() == 1) {

            Choice c2 = new Choice(-1, new Formation(-1, "AUCUN"));
            choices.add(1, c2);

            Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
            choices.add(2, c3);

          } else if (choices.size() == 2) {
            Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
            choices.add(2, c3);

          }
        }

        model.put("folders", incomplete);
        link = "incomplete";

      /* The page of a secretary displaying folders with a paper version received */
      } else if (action.equals("complete")) {

        page.add("Secr�tariat : Liste des dossiers papiers complets.");
        model.put("page", page);

        /* Liste des dossier ayant recu une version papier complete */
        List<Folder> complete = foldermanager.findPersonalInfoByState(Folder.FOLDER_COMPLETE);

        for (Folder f : complete) {
          List choices = f.getChoices();

          if (choices.size() == 1) {

            Choice c2 = new Choice(-1, new Formation(-1, "AUCUN"));
            choices.add(1, c2);

            Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
            choices.add(2, c3);

          } else if (choices.size() == 2) {
            Choice c3 = new Choice(-1, new Formation(-1, "AUCUN"));
            choices.add(2, c3);

          }
        }

View Full Code Here


    /***/
    pimng.savePersonalInfo(folder.getPi());

    for (Iterator iter = folder.getChoices().iterator(); iter.hasNext();) {
      Choice choice = (Choice) iter.next();
      choice.setPersonalInfo_ref(folder.getPi().getId());
    }

    /***/
    cmng.saveChoices(folder.getChoices());

 
View Full Code Here

TOP

Related Classes of domain.Choice

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.