Package org.ldv.sio.getap.app

Examples of org.ldv.sio.getap.app.DemandeValidationConsoTempsAccPers


    if (bindResult.hasErrors())
      return "prof-intervenant/edit";
    else {

      DemandeValidationConsoTempsAccPers dctapForUpdate = manager
          .getDVCTAPById(Long.valueOf(formDctap.getId()));

      AccPersonalise acc = manager.getAPById(formDctap.getAccPersId());
      String accPersNom = acc.getNom();

      if (!dctapForUpdate.getDateAction().equals(
          formDctap.getDateAction())
          && !dctapForUpdate.isDateModifiee()) {
        dctapForUpdate.setDctapDateModif();
      }
      if (!dctapForUpdate.getMinutes().equals(formDctap.getMinutes())
          && !dctapForUpdate.isDureeModifiee()) {
        dctapForUpdate.setDctapDureeModif();
      }
      if (!dctapForUpdate.getAccPers().getNom().equals(accPersNom)
          && !dctapForUpdate.isApModifiee()) {
        dctapForUpdate.setDctapAccModif();
      }

      dctapForUpdate.setDateAction(formDctap.getDateAction());
      dctapForUpdate.setMinutes(formDctap.getMinutes());
      dctapForUpdate.setAccPers(manager.getAPById(formDctap
          .getAccPersId()));

      manager.updateDVCTAP(dctapForUpdate);

      return "redirect:/app/prof-intervenant/index";
View Full Code Here

TOP

Related Classes of org.ldv.sio.getap.app.DemandeValidationConsoTempsAccPers

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.