Package sn.unitech.stock.entity

Examples of sn.unitech.stock.entity.SysUnite


    EntityTransaction tx= em.getTransaction();
    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 */
 
View Full Code Here


    sysSousUnite.setRapport(this.cproperties.idContenu);
    sysSousUnite.setOrdre(1);
    Resultat resultat;
    resultat=this.sysUniteM.saveUnite(sysUnite,sysSousUnite,this.cproperties.idActivite);
    if(resultat.isSucceed()){
    this.setSysUnite(new SysUnite());
    this.cproperties.setIdContenu(1);
    this.cmessages.setSaveMessage(resultat.getMessage());
    }else this.cmessages.setSaveMessage(resultat.getMessage());
  }
View Full Code Here

    this.sysAdherent.setIdAdherent(getParamsUser().adherent.getIdAdherent());
    this.sysProduit.setSysAdherent(sysAdherent);
      this.sysProduit.setSysEtat(new SysEtat(Integer.parseInt(this.cproperties.idEtat)));
      this.sysUnite.setIdUnite(this.cproperties.idPgUnite);
      this.sysProduit.setSysUniteByCodUnitc(this.sysUnite);
      this.sysProduit.setSysUniteByCodUnitd(new SysUnite(this.sysProduitM.getSecondValue(this.citems.getItemsUnitesDuProduit(),this.cproperties.idPgUnite)));
      this.sysProduit.setQteInitiale(this.stock.getQteContenant());
      this.sysProduit.setQntContenant(this.stock.getQteContenant());
      this.sysProduit.setPrixCession(this.stock.getPrixUnitc());
      this.stock.setSysUniteByCodUnitc(new SysUnite(this.cproperties.idPgUnite));
      this.stock.setSysUniteByCodUnitd(new SysUnite(this.sysProduitM.getSecondValue(this.citems.getItemsUnitesDuProduit(),this.cproperties.idPgUnite)));
      this.sysRangmnt.setIdRangmnt(Integer.parseInt(this.cproperties.idRangmnt));
      this.stock.setSysRangmnt(sysRangmnt);
    this.stock.setSysAdherent(sysAdherent);
    Resultat resultat;
    resultat=this.sysProduitM.saveProduit(sysProduit, stock,(List<SysProdCarac>)this.citems.dataCaracDuProd.getWrappedData());
View Full Code Here

TOP

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

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.