Package sn.unitech.stock.entity

Examples of sn.unitech.stock.entity.SysActivite


      /*  Verifie si type unite existe dans l'activite avant de l'inserer */
    SysActiviTypUnitId sysActiviTypUnitId=new SysActiviTypUnitId(sysUnite.getSysTypUnite().getIdTypUnite(),Integer.parseInt(idActivite));
    if(this.find(SysActiviTypUnit.class,sysActiviTypUnitId, em)==null){
    SysActiviTypUnit sysActiviTypUnit=new SysActiviTypUnit();
    sysActiviTypUnit.setId(sysActiviTypUnitId);
    sysActiviTypUnit.setSysActivite(new SysActivite(Integer.parseInt(idActivite)));
    sysActiviTypUnit.setSysTypUnite(sysUnite.getSysTypUnite());
    this.persist(sysActiviTypUnit,em);
    }  

    this.persist(sysUnite, em);
View Full Code Here


  ParamsUser getParamsUser(){ //alias
    return ((ParamsUser)ToolsBean.getToolsBean().getAttribute(ToolsBean.idParamUser));
  }

  public void saveClasseProduit(ActionEvent a){
    this.sysGroupProd.setSysActivite(new SysActivite(Integer.parseInt(this.cproperties.idActivite)));
    this.sysAdherGroupProd.setSysAdherent(getParamsUser().adherent);
    if(this.sysGroupProdM.saveGroupProduit(sysGroupProd,sysAdherGroupProd)){
    this.setSysGroupProd(new SysGroupProd());
    this.setSysAdherGroupProd(new SysAdherGroupProd());
    this.cmessages.setSaveMessage(ToolsBean.getToolsBean().getBundleMessage("msgSucces"));
View Full Code Here

  public boolean saveGroupProduit(SysGroupProd sysGroupProd,SysAdherGroupProd sysAdherGroupProd){
    EntityManager em=getEntityManager();
    EntityTransaction tx= em.getTransaction();
    try{
    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);
View Full Code Here

TOP

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

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.