Package sn.unitech.stock.entity

Examples of sn.unitech.stock.entity.SysAdherActivite


    @Override
    public List<SysAdherActivite> getListAdherActivite(String jpql,SysAdherent adherent) {
      List<SysActivite> listActivite= iActiviteDao.getResultList(jpql, null, null);
      List<SysAdherActivite> listAdherActivite=new ArrayList<SysAdherActivite>();
      SysAdherActivite sysAdherActivite;
      for(SysActivite activite:listActivite){
        sysAdherActivite=new SysAdherActivite(new SysAdherActiviteId(adherent.getIdAdherent(),activite.getIdActivite()),activite,adherent);
        sysAdherActivite.setSysNiveau(new SysNiveau());
        listAdherActivite.add(sysAdherActivite);
      }
      return listAdherActivite;
    }
View Full Code Here


 
  public void clickPersitAdherent(ActionEvent e){
    this.sysAdherent.setSysSite(this.sysSite);
    this.sysAdherent.setSysContrat(this.sysContrat);
    SysAdherEvent sysAdherEvent;
    SysAdherActivite sysAdherActivite;
    DataModel<SysAdherEvent> dataAdherEvent=this.citems.getDataAdherEvents();
    for(int i=0;i<dataAdherEvent.getRowCount();i++){
      dataAdherEvent.setRowIndex(i);
      sysAdherEvent=dataAdherEvent.getRowData();
      if(sysAdherEvent.isSelected()){
        sysAdherEvent.setSysAdherent(this.sysAdherent);
        sysAdherEvent.getId().setIdAdherent(this.sysAdherent.getIdAdherent());
        this.sysAdherent.getSysAdherEvents().add(sysAdherEvent);
      }
    }
    DataModel<SysAdherActivite> dataAdherActivite=this.citems.getDataAdherActivite();
    for(int i=0;i<dataAdherActivite.getRowCount();i++){
      dataAdherActivite.setRowIndex(i);
      sysAdherActivite=dataAdherActivite.getRowData();
      if(sysAdherActivite.isSelected()){
        sysAdherActivite.setSysAdherent(this.sysAdherent);
        sysAdherActivite.getId().setIdAdherent(this.sysAdherent.getIdAdherent());
        this.sysAdherent.getSysAdherActivites().add(sysAdherActivite);
      }
    }
    Resultat result=this.iSysAdherentM.persistAdherent(this.sysAdherent);
    if(result.isSucceed()){
View Full Code Here

TOP

Related Classes of sn.unitech.stock.entity.SysAdherActivite

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.