Skip to content

A digital ticket checker to stop wastage of paper in the form of ticket charts used in India

Notifications You must be signed in to change notification settings

Swetaswa/Online-Ticket-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Ticket Checker

  • Online Ticket Checker is a digital ticket checking app built in Java (NetBeans IDE and SQLite database) which aims to digitalize the manual checking (currently done by paper ticket charts) of train ticket reservations in India.
  • This app can help the TTE check tickets faster, reduce the number of TTEs, collect fines from rule violators and generate reports for the Indian Railways.
  • Most importantly this application can help reduce the wastage of paper by eliminating ticket charts.

How to run this application on your computer in NetBeansIDE from GitHub

  1. Copy the repository link from Github under the Code section
  2. Open Netbeans IDE Click on Team -> Git -> Clone and Paste the copied repository link on the repository link field
  3. Click on Proxy Configuration and click on Test connection. Ensure you get a successfull connection then click OK.
  4. Select a convinient path to clone the repository and click Next
  5. From the available branches select master branch and click Next
  6. Verify the parent directory, check the details and click Finish. (Your project files will be ready in the folder you specified)
  7. You can click Open Project to open your project You can ignore the project problems dialog
  8. Click on the play button to run the project

How to use Online Ticket Checker

  • You can log in to the system by entering the correct credentials provided to you as a Ticket Checker (TTE).
  • After login you can select the train you will be checking by selecting the train number from the drop down list
  • Selecting the train number auto fills your train name and also fetches all the coaches in the train
  • You can select the coach to check and also pick the travel date to proceed by clicking Go
  • You will be presented with a list of passengers who are travelling on the selected coach and date
  • You can check the tickets by clicking on the specific passenger, clicking on the check checkbox and clicking OK
  • Unchecking the check checkbox and clicking OK reverts the checked status back to unchecked
  • You may also collect fines and document it by clicking the Collect fine button and entering the appropriate details.
  • After checking process clicking Generate reports generates all the reports of checked, unchecked and fined passengers which can be sent to the Indian Railways
  • Clicking on complete button returns you back to the train selecting page.
  • You may then choose to either check another train or log out and exit the system

Features of Online Ticket Checker

Login

  • Contains two fields to enter username and password
  • Twol buttons, one to log in and one to exit the system
  • Appropriate exception handling done to handle incorrect and empty inputs
  • Checks credentials with the database then logs in the user

Select train

  • We have a drop down to select the train number for which the TTE needs to check tickets
  • After selection of train number the train name is automatically filled by mapping the selected train number to its name and all the coaches of that train is pulled from the database using a query
  • We have a JDateChooser from JCalendar which can be used to pick the date of travel

Passenger details

  • There is a JTable which displays all the passenger details who are travelling on the specified coach and date taken from the database using a query.
  • The same passenger details are queried for any date selected as this is just a prototype and the entries are just dummies.
  • When we click on a passenger record his name is displayed on the text box and you can now check or uncheck the ticket.
  • You can check the tickets by clicking on the check checkbox and clicking OK. The status column turns green and changes status to 'Checked'
  • Unchecking the checkbox and clicking OK reverts the checked status back to unchecked (Red)
  • You can also sort the passengers based on either seat number or destination (done by a query to update the database). Sorting by destination can help the TTE check the tickets of the customers who will be exiting the train soon in order (Priority)

Routes

  • Displays the route of the train from the database by performing a query and displaying on a table
  • Contains station name, Arrival and Departure

Fines

  • Opens a form in which you can enter details for a fine for rule violators
  • Contains Name, Reason and Amount
  • Appropriate exception handling done to take care of empty inputs and very high fine amounts
  • Clicking collect fine sends the details to the database and the details can be use to create reports

Reports

  • Reports of checked, unchecked and fined passengers taken from the database using multiple queries
  • Details can be sent to Indian Railways for their further use.
  • After reports generation the fines table is truncated, all metadata is deleted so it will be empty for the next checking process.

OnlineTTE Database details (SQLite used)

Credentials

  • Fields contained : Username and Password
  • Used to keep track of the credentials used by TTE for logging in

Train coaches

  • Fields contained: Train number and Coach
  • Used to load the coach sequence of a train

Passenger details

  • Fields contained: Seat number, Name, Source, Destination, ID proof, Phone number and Status
  • Contains all the required details of the passengers travelling on the train to check the tickets. There are also fields to indicate status of checking and unchecking.

Train routes

  • Fields contained: Train number, Station, Arrival and Departure
  • Contains the routes of the train selected. Contains all intermediate stations where the train stops and when the train arrives and departs from each station.

Fines

  • Fields contained: Customer name, Reason and Amount
  • Contains fields to know how much fine amount is collected and what reason they were fined for.

How the application looks like

alt text alt text alt text alt text alt text

Future ideas

  • Bringing in scanning options so ID proof can be scanned and automatic verification/checking can be done.
  • Controls which do not require a TTE. Automatic detection of ID proof if placed on the entrance of a coach.
  • Developing this prototype on Android so it can be used as an Android app. (More popular and easily distributable).
  • Automatic allotment of RAC passengers quickly based on the available seats which reduces waiting time and increases satisfaction of more customers

Acknowledgements

About

A digital ticket checker to stop wastage of paper in the form of ticket charts used in India

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages