• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

NX: My URLyBrid 48 hrs implementation

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,
I would like to implement the 48 hrs requirement such that a warning dialog is shown if date_available is a past date or date_available - now > 2 days.
I choose to compare only the date but not the hour field since there is no time field in the record.
User can choose to proceed booking and ignore the warning.
Such validation is implemented in the model class of my application, and i am not going to externalize anything (likes the "2 days" parameter) to the property file.
Is this OK?
Thank you!
Ryan
 
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, as I read the instructions and checked for the word "must", there is not one when explaining 48hrs time. Here is what Sun expected:
They take bookings only within 48 hours of the start of room occupancy.
Since there is no must in the statement, do you think we can book the rooms if they call say a week before like that?
Or are we supposed to take bookings only within 48hrs of staying?
Guys, all inputs are greatly appreciated. Thanks.
 
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic