Package sn.unitech.stock.entity

Examples of sn.unitech.stock.entity.SysAdherent


    return   ((ParamsUser)ToolsBean.getToolsBean().getAttribute(ToolsBean.idParamUser));
  }
 
  public void clickPersitClient(ActionEvent e){
    ParamsUser paramUser=getParamsUser();
    SysAdherent adherent=paramUser.getAdherent();
    this.client.setSysAdherent(adherent);
    this.client.setSysPiece(new SysPiece(this.cproperties.getTypePiece()));
    this.client.setSysTypcli(new SysTypcli(this.cproperties.getTypeClient(),adherent.getIdAdherent()));
    if(clientM.persistClient(client)){
      this.cmessages.setSaveMessage(ToolsBean.getToolsBean().getBundleMessage("msgSucces"));
      this.client=new Client();
    }else{
      this.cmessages.setSaveMessage(ToolsBean.getToolsBean().getBundleMessage("msgEchec"));
View Full Code Here


    tx.begin()
    SysActivite activite =(SysActivite)this.find(SysActivite.class,sysGroupProd.getSysActivite().getIdActivite(),em);
    sysGroupProd.setSysActivite(activite);
    this.persist(sysGroupProd, em);
    sysAdherGroupProd.setSysGroupProd(sysGroupProd);
    SysAdherent adherent=(SysAdherent)this.find(SysAdherent.class,sysAdherGroupProd.getSysAdherent().getIdAdherent(), em);
    sysAdherGroupProd.setSysAdherent(adherent);
    sysAdherGroupProd.setId(new SysAdherGroupProdId(adherent.getIdAdherent(),sysGroupProd.getIdGroupProd()));
    this.persist(sysAdherGroupProd, em);
    tx.commit();
    return true;
    }
    catch(Exception ex){
View Full Code Here

        detailCommand.setQteContenant(sysProduit.getQteOpti()-sysProduit.getQntContenant());
        detailCommand.setQteDetail(0);
        this.cproperties.setUseDetail(Boolean.parseBoolean(sysProduit.getUseDetail()));
        detailCommand.setId(new DetailCommandId());
        detailCommand.setSysProduit(sysProduit);
        detailCommand.setSysAdherent(new SysAdherent(this.getParamsUser().adherent.getIdAdherent()));
        detailCommand.setCodFourn(Integer.parseInt(this.cproperties.idFournisseur));
        detailCommand.setCodUser(getParamsUser().sysUser.getId().getIdUser());
        this.getModelDetailCommande().add(detailCommand)
      }
    }
View Full Code Here

        this.sysAdherent.getSysAdherActivites().add(sysAdherActivite);
      }
    }
    Resultat result=this.iSysAdherentM.persistAdherent(this.sysAdherent);
    if(result.isSucceed()){
      this.sysAdherent=new SysAdherent();
      this.cmessages.saveMessage=ToolsBean.getToolsBean().getBundleMessage("msgSucces");
    }else this.cmessages.saveMessage=ToolsBean.getToolsBean().getBundleMessage("msgEchec");
  }
View Full Code Here

    }else this.cmessages.saveMessage=ToolsBean.getToolsBean().getBundleMessage("msgEchec");
  }
 
 
  public void clickCancelSysAdherent(ActionEvent e){
    this.sysAdherent=new SysAdherent();
  }
View Full Code Here

TOP

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

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.