예제 #1
0
 public String getDataMagasinInventaire() {
   StringBuilder sb = new StringBuilder();
   sb.append("[");
   for (TransactionCaisse t :
       serviceResultat.statCaisseByProduit(session.getCurrentCoop(), session.getCurrentPeriode()))
     sb.append("['" + t.getTypeTransaction() + "', " + t.getMontant() + "],");
   sb.append("]");
   return sb.toString();
 }
예제 #2
0
 public String getDataMagByProd() {
   StringBuilder sb = new StringBuilder();
   sb.append("[");
   for (TransactionMagasin t :
       serviceResultat.statMagasinByProduit(session.getCurrentCoop(), session.getCurrentPeriode()))
     sb.append("['" + t.getProduit().getName() + "', " + t.getQuantite() + "],");
   sb.append("]");
   return sb.toString();
 }