• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is a separate booking table necessary

 
aadhi agathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
i have the current mode of booking, wherein batch mode is not allowed.
means that book seats in a flight then move ahead with the next booking.
is this reasonable or does a batch processing kind os stuff required.
i am planning to show the confirmed seats/booking details in a separate
table in the second tabbbed pane. i am planning to have the following too in
the second table, please advice :-

does the second table (history of bookings) need to show the failed mode
also. wherein the user can say, "Oh! not enough seats available, then give
me whatever you have " .
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are overcomplicating things. The only things you have to do is (1) show flight details in a table (2) a facility to search flights by origin and destination and (3) implement a user interface to book one or more seats on a given flight. That's it. Do not go beyond the instructions' brief. It will not give you points and may well cost you some.
- Peter
 
aadhi agathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Peter den Haan:
You are overcomplicating things. The only things you have to do is (3) implement a user interface to book one or more seats on a given flight. That's it. Do not go beyond the instructions' brief. It will not give you points and may well cost you some.
- Peter

Thanks Peter, but is it not the user feedback be given in terms of a separate booking table or "just changing the background color and a status bar update" will do .
please advice.
 
aadhi agathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any thoughts!! only additional information i have thought about is change the cursor state to WORKING when booking/any process is on progress.
my main concern will be the user feedback seconded by that the user can cancel a ticket booked under a session. can someone press the need for a separate table ,if any
:roll:
thank you
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No seperate table needed. When you book a flight it is either succesful or not, so then just display a Message that says success or not.
You can include some flight details with a successful booking, but never a second table.
Mark
 
pascal auderset
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark
... When you book a flight it is either succesful or not, so then just display a Message that says success or not.
As I understand the problem there are three states.
data.lock()
data.readRecord()
checkForSeats() //(1)
data.update() //(2)
data.unlock() //(3)
1: Here no seats are booked.
2: If a remoteException occors: Undefined if booked or not
3: Booked
Did someone implemend this three states or did you just an easy implementation?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pascal, not quite sure what you are asking, so I would say I took the easy approach, which is my motto.
Mark
 
pascal auderset
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
Sorry for my english. Also what I mean is:
If you are writting the new Data Object to the "database" it is possible that the update to the disk is ok. Then it is possible (in the remote case) that on the client you recieve a RemoteException (after the writing the socked closes ...) and you don't know the state of the booking.
So there are three states: ok / nok /unknown
Is this more understandable?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic