} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if(this.cproperties.idCommande!=null && !this.cproperties.idCommande.isEmpty()){
this.events.setCommande(new Commande(Integer.parseInt(this.cproperties.idCommande)));
}
if(this.cproperties.isUseRangmnt()){
this.events.setCodRangement(Integer.parseInt(this.cproperties.idRangement));
}else if(this.citems.dataProduitsEvents.getRowCount()>0){
this.events.setCodRangement(this.getModelProduitsEvents().get(0).getSysRangmnt().getIdRangmnt());
}
this.events.setTiers(ToolsBean.TIERS_RANGEMENT);
if(this.cproperties.isUseClient()){
this.events.setCodTiers(this.sysTypcli.getIsIntern().equals("False")?"-1":this.client.getIdClient()+"");
this.events.setTiers(ToolsBean.TIERS_CLIENT);
this.events.setIntituleTiers(this.client.getNom());
this.events.setAdresseTiers(this.client.getAdresse());
this.events.setNumPiece(this.client.getNumPiece());
}else if(this.cproperties.isUseFournisseur()){
this.events.setCodTiers(this.fournisseur.getIdFourn()+"");
this.events.setTiers(ToolsBean.TIERS_FOURNISSEUR);
this.events.setIntituleTiers(this.fournisseur.getNom()+" "+this.fournisseur.getPrenom());
this.events.setAdresseTiers(this.fournisseur.getAdresse());
this.events.setCommande(new Commande(Integer.parseInt(this.cproperties.getIdCommande())));
}
this.events.setMntNet(this.citems.getMontantNet());
this.events.setMntReglement(this.citems.getMontantRegle());
this.events.setMntReliquat(this.citems.getMontantReliquat());
this.events.setMntTot((this.citems.getMontantNet()+this.citems.getMontantRemise())-this.citems.getTaxeEtFrais());