Package it.unisa.info13d.Articoli

Examples of it.unisa.info13d.Articoli.CeneInRistoranti.eAcquistabile()


            }
            if(deal instanceof CeneInRistoranti)
            {
                CeneInRistoranti dealCena = (CeneInRistoranti)deal;

                if((dealCena.eAcquistabile()))
                {
                    visualizzaCena(dealCena);
                }
                continue;
            }
View Full Code Here


            }
            if(deal instanceof CeneInRistoranti)
            {
                CeneInRistoranti dealCena = (CeneInRistoranti)deal;

                if((dealCena.eAcquistabile() && dealCena.getLuogo().equals(location_user_to_compare )))
                {
                    visualizzaCena(dealCena);
                }
                continue;
            }
View Full Code Here

        if(!(dealBene.eAcquistabile())) {visualizzaBene(dealBene);continue;}
      }
      if(deal instanceof CeneInRistoranti)
      {
        CeneInRistoranti dealCena = (CeneInRistoranti)deal;
        if(!(dealCena.eAcquistabile())) {visualizzaCena(dealCena);continue;}
      }
    }
  }
  /**
   * Questa metodo aggiunge credito al conto dell'utente
View Full Code Here

       
      }
      if( (dealsc instanceof CeneInRistoranti) && ((CeneInRistoranti) dealsc).getIdCena()==idDel)
      {
        CeneInRistoranti dealCena = (CeneInRistoranti)dealsc;
        if(dealCena.eAcquistabile() && loggedUser.getBalance()>=dealCena.getCostoPerPersona())
        {
          trovato=true;
          storico.add(new StoricoItem("Cena ristorante "+dealCena.getNomeRistorante()+" "+dealCena.getDescrizione_cena(), new GregorianCalendar() ,dealCena.getCostoPerPersona()));
          dealCena.setCeneVendute();
          loggedUser.setBalance((dealCena.getCostoPerPersona() * (-1)));
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.