Package it.unisa.info13d.Articoli

Examples of it.unisa.info13d.Articoli.CeneInRistoranti


             
        System.out.print("Cene da Vendere: ");
        String nCene = inputData.nextLine();
        int ceneDaVendere = Integer.parseInt(nCene);
     
        catalogoOfferte.add(new CeneInRistoranti(Global.get_next_id(), ristorante, localitaCena, descrizioneCena, prezzoPSingCena, dataScadCena, ceneDaVendere));
        store_data();
        break;
      case "3":
        System.out.println("---------- Nuova Offerta Bene ----------");
        System.out.print("Descrizione: ");
View Full Code Here


        BeniDiConsumo dealBene = (BeniDiConsumo)deal;
        visualizzaBene(dealBene);
      }
      else if(deal instanceof CeneInRistoranti)
      {
        CeneInRistoranti dealCena = (CeneInRistoranti)deal;
        visualizzaCena(dealCena);
      }
    }
   
    System.out.print("Elimina prodotto [Inserisci id]: ");
View Full Code Here

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

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

                }
                continue;
            }
            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

        BeniDiConsumo dealBene = (BeniDiConsumo)deal;
        if(!(dealBene.eAcquistabile())) {visualizzaBene(dealBene);continue;}
      }
      if(deal instanceof CeneInRistoranti)
      {
        CeneInRistoranti dealCena = (CeneInRistoranti)deal;
        if(!(dealCena.eAcquistabile())) {visualizzaCena(dealCena);continue;}
      }
    }
  }
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)));
          Access.replace_data(user, loggedUser);
          store_data();
          System.out.println("*************************************\nAcquisto completato con successo! \n************************************\nSaldo Attuale:" + loggedUser.getBalance());
        }
        else
View Full Code Here

TOP

Related Classes of it.unisa.info13d.Articoli.CeneInRistoranti

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.