I'm currently creating a windows form project which is for a coach booking system using the baked in SQL server.
What I'm trying to figure out at the moment is the best way to reserve a seat for a particular customer.
In my coach table i have the coach Type i.e. single decker and double decker, and so was thinking of creating two user controls to represent a seat reservation for both. When the user has selected their booking from the grid view, one of the user controls will be called displayed on next stage of the booking process based on the type of coach that will be used for that particular journey.
This will be where the user enters journey details, and searches for an available booking:
This will be where the user selects their seat, and where it will confirm their booking details. This is just a rough layout at the moment, to give you the idea of what I'm trying to achieve:
What i want to know is how i can link the input of the seat reservation system to a particular coach schedule, so when another user creates a booking, they can see the seats that have already been taken.
Below are the three tables i currently have implemented. First one is the coach schedules that the employee would add to the system, the second is for the coach information and the third is the table that will store the details of all bookings that have been made by the customers.
Any help would be much appreciated. Thank you
What I'm trying to figure out at the moment is the best way to reserve a seat for a particular customer.
In my coach table i have the coach Type i.e. single decker and double decker, and so was thinking of creating two user controls to represent a seat reservation for both. When the user has selected their booking from the grid view, one of the user controls will be called displayed on next stage of the booking process based on the type of coach that will be used for that particular journey.
This will be where the user enters journey details, and searches for an available booking:
This will be where the user selects their seat, and where it will confirm their booking details. This is just a rough layout at the moment, to give you the idea of what I'm trying to achieve:
What i want to know is how i can link the input of the seat reservation system to a particular coach schedule, so when another user creates a booking, they can see the seats that have already been taken.
Below are the three tables i currently have implemented. First one is the coach schedules that the employee would add to the system, the second is for the coach information and the third is the table that will store the details of all bookings that have been made by the customers.
Any help would be much appreciated. Thank you