Package sn.unitech.stock.modal

Examples of sn.unitech.stock.modal.Resultat


    ToolsBean.getToolsBean().setAttribute(this.cproperties.paramIdLot,null);
    if(this.citems.dataProduitsEvents.getRowCount()==0){
      this.cmessages.saveMessage="La liste est vide.";
    }
    else if(listDetailEvent.size()==this.citems.dataProduitsEvents.getRowCount()){
      Resultat result;
      result=this.eventsM.saveEvents(listDetailEvent, this.citems.listTaxesEtValues);
      this.cmessages.saveMessage=result.getMessage();
      if(result.isSucceed()){
        ToolsBean.getToolsBean().setAttribute(this.cproperties.paramIdLot,result.getId());
        this.events=new Events();
        this.getModelProduitsEvents().clear();
      }
    }
    else{
View Full Code Here


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

        sysAdherActivite.setSysAdherent(this.sysAdherent);
        sysAdherActivite.getId().setIdAdherent(this.sysAdherent.getIdAdherent());
        this.sysAdherent.getSysAdherActivites().add(sysAdherActivite);
      }
    }
    Resultat result=this.iSysAdherentM.persistAdherent(this.sysAdherent);
    if(result.isSucceed()){
      this.sysAdherent=new SysAdherent();
      this.cmessages.saveMessage=ToolsBean.getToolsBean().getBundleMessage("msgSucces");
    }else this.cmessages.saveMessage=ToolsBean.getToolsBean().getBundleMessage("msgEchec");
  }
View Full Code Here

TOP

Related Classes of sn.unitech.stock.modal.Resultat

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.