Package sn.unitech.stock.entity

Examples of sn.unitech.stock.entity.SysTypUnite


    Resultat resultat=new Resultat();
    try{
    tx.begin();
    if((this.find(SysUnite.class,sysUnite.getIdUnite(), em))==null){
    SysUnite sysUniteFind=(SysUnite)this.find(SysUnite.class,sysSousUnite.getId().getIdSousUnite(),em)
    SysTypUnite sysTypUniteFind=sysUniteFind.getSysTypUnite();
    SysTypUnite sysTypUnite= new SysTypUnite(ToolsDao.idTypAutresUnites+"_"+sysTypUniteFind.getIdTypUnite());
    sysTypUnite.setLibelle(sysTypUnite.getIdTypUnite().replace("-"," "));
    sysTypUnite.setIsInter("False");
      sysUnite.setSysTypUnite(sysTypUnite);
      /*  Verifie si unite existe avant de l'inserer */
    if((this.find(SysTypUnite.class,sysUnite.getSysTypUnite().getIdTypUnite(),em))==null){
       this.persist(sysUnite.getSysTypUnite(), em);
    }
View Full Code Here

TOP

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

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.