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());
if(resultat.isSucceed()){
if(this.citems.itemsRangmnts.size()==1){
this.setSysProduit(new SysProduit());
this.citems.dataCaracDuProd.setWrappedData(new ArrayList<SysProdCarac>());
}else this.cproperties.setDisableProduit(true);
this.setStock(new Stock());
this.cmessages.setSaveMessage(resultat.getMessage());
}else this.cmessages.setSaveMessage(resultat.getMessage());
}