Package it.hotel.controller.pricelist.DTO

Examples of it.hotel.controller.pricelist.DTO.PriceListDTO


  /**
   * @param
   */
  @Override
  protected void doSubmitAction (Object command){
    PriceListDTO priceListDTO = (PriceListDTO)command;
    int id = priceListDTO.getTypologyId();
   
    Typology typology = (Typology)typologyManager.get(id);
   
    priceListDTO.setTypology(typology);
    double price_double = Double.parseDouble(priceListDTO.getPrice());
    BigDecimal priceValue = BigDecimal.valueOf(price_double);
    GregorianCalendar begin= CalendarUtils.GetGregorianCalendar(priceListDTO.getDate());
   
    GregorianCalendar end= CalendarUtils.GetGregorianCalendar(priceListDTO.getFinishDate());
    String endDate=priceListDTO.getFinishDate();
   
    if(end==null){
      end=begin;
      endDate=priceListDTO.getDate();
     
    }
    int timeBooking=CalendarUtils.GetNumberOfDays(CalendarUtils.GetGregorianCalendar(priceListDTO.getDate()),CalendarUtils.GetGregorianCalendar(endDate));
   
    ArrayList<Price> prices= typology.getPriceListOnDataRange(begin, end);
   
    newPrices(priceValue,  begin,  typology,  timeBooking,   begin)
    updatePrices( prices, priceValue);
View Full Code Here

TOP

Related Classes of it.hotel.controller.pricelist.DTO.PriceListDTO

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.