Package sn.unitech.stock.entity

Examples of sn.unitech.stock.entity.Commande


            // TODO Auto-generated catch block
           e.printStackTrace();
             }
           if(this.commandeM.saveCommande(this.getModelDetailCommande(),commande)){
             this.citems.dataDetailCommand.setWrappedData(new ArrayList<DetailCommand>());
             this.commande=new Commande();
             this.cproperties.prixTotal=new Double(0);
             this.cmessages.setSaveMessage(ToolsBean.getToolsBean().getBundleMessage("msgSucces"));
           }else this.cmessages.setSaveMessage(ToolsBean.getToolsBean().getBundleMessage("msgEchec"));
       }else  this.cmessages.setSaveMessage("Veuillez revoir les quantites saisies du produit ");
   
View Full Code Here


    this.cproperties.setLastIndex(currentIndex);
    this.cproperties.designation=produit.getDesignation();
 

  public String printCommande(){
    Commande commande=this.citems.dataListCommande.getRowData();
    this.cproperties.idCommand=commande.getIdCommand();
    commande.setListDetailDuCommand(this.citems.getListDetailCommand());
    ToolsBean.getToolsBean().setAttribute(ToolsBean.getToolsBean().CURRENT_COMMANDE,commande);
    return NAV_RAPPORT_BON_DE_COMMANDE;
  }
View Full Code Here

      this.citems.dataListCommande.setRowIndex(this.cproperties.getLastIndexDetail());
      this.citems.dataListCommande.getRowData().setListDetailDuCommand(null);
      this.citems.dataListCommande.getRowData().setLabelDetail(ToolsBean.lblDetail);
    }
    this.citems.dataListCommande.setRowIndex(currentIndex);
    Commande commande=this.citems.dataListCommande.getRowData();
    if(commande.getLabelDetail().equals(ToolsBean.lblFermer)){
      commande.setListDetailDuCommand(null);
      commande.setLabelDetail(ToolsBean.lblDetail);
    }   
    else{
      this.cproperties.idCommand=commande.getIdCommand();
      commande.setListDetailDuCommand(this.citems.getListDetailCommand());
      if((commande.getListDetailDuCommand()!=null)&&(commande.getListDetailDuCommand().size()>0))
      commande.setLabelDetail(ToolsBean.lblFermer);
    }
    this.cproperties.setLastIndexDetail(currentIndex);

    }
View Full Code Here

    } 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());
View Full Code Here

TOP

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

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.