SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
They take bookings only within 48 hours of the start of room occupancy.
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
"One good thing about music - when it hits, you feel no pain" <P>Bob Marley
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
I am afraid, Phil will start calling me names.
I am asking is it OK to just get the system date on the client so that it can be compared to whatever date the "date available" field for the record to be booked has?
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
Bharat:
I recently converted to the fat-client religion. I have been purposely avoiding the "other" thread. I am afraid, Phil will start calling me names.
Andrew:
Perhaps. But you will get Jim, Vlad, and myself all congratulating you on making the intelligent choice
Andrew:
My choice would be to just use the date on the client machine, and document that there is potential for problems, but that these problems can only be partially fixed in a two tier solution.
As Andrew just recalled, it's a choice (at least for the new instructions). And as all of our choices must be documented, the more I read this 48-hours thread, the more I find arguments in favour of the 2-tiers design in this context, and the more I am tempted myself to join the 2-tiers camp (sorry for those guys that I mislead).
SCJP,SCJD,SCWCD,SCBCD,SCDJWS,SCEA
Phil
In case three out of the 20 CSR's get some promotion allowing them to book rooms available in the next 72 hours (the 17 other CSRs keeping the 48hours one), you'll be able to handle the new rule without changing any code neither server-side nor client-side. When they'll move to the web next year (as we may expect from our instructions), you'll have to rewrite your business rule in a servlet, dealing once more with the low-level db API, ... making sure that you'll keep your job at least till next year. If your database stores tens of thousands historical-legacy booked rooms, the fact that you filter out the few bookable records client-side will undoubtedly help the network cables to keep their optimal work temperature : we are entering in the winter and our north-canadian and russian friends should appreciate that nice side effect
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Whip out those weird instruments of science and probe away! I think it's a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|