/Train-Station

A windows application for a train station DBMS

Primary LanguageC#MIT LicenseMIT

Train Station

logo


Table of Contents


overview

  • A windows application for a train station DBMS. A train station DBMS that imitates a real transportation system. It is made to overcome manual errors of booking and make it into a computerized system. The train station manager can easily manage the station through the system, manage employees and schedule trips.
  • It has all the schedules of the trains available. From which passengers, who wish to travel, can go to the booking employee to book a ticket or book it through the application.
  • Passengers can also view, cancel or upgrade their ticket, address complaints...etc.
  • The database system helps to maintain all the records of different train trips, available seats and passengers in an easy way.

Get Started

  1. Clone the repository
    git clone https://github.com/EslamAsHhraf/Train-Station
    
  2. you will need to download SQL Server Management Studio (SSMS)
  3. Excute CreateDatabaseQuery to create Data Base
  4. Excute InsertValues to fill Data Base
  5. Do stepsAccessing DB from C# App to link Data Base with application
  6. Excute all files in Stored Procedures
  7. Read Report to undertand well how to use application

Built Using

  • Windows form application
  • my sql

Demo Screenshots










GIF Demo


File Structure

Train-Station
β”œβ”€β”€ Stored Procedures
β”‚   β”œβ”€β”€ Change_Department.sql
β”‚   β”œβ”€β”€ Change_Rate.sql
β”‚   β”œβ”€β”€ Change_Salary.sql
β”‚   β”œβ”€β”€ Dno_Department.sql
β”‚   β”œβ”€β”€ Employee_data.sql
β”‚   β”œβ”€β”€ ID_Station.sql
β”‚   β”œβ”€β”€ Insert_Trip.sql
β”‚   β”œβ”€β”€ SSN_Employee.sql
β”‚   β”œβ”€β”€ SSN_Passenger.sql
β”‚   β”œβ”€β”€ get_tele_E.sql
β”‚   └── get_tele_psql.sql
β”œβ”€β”€ images
β”‚   β”œβ”€β”€ cover.jpg
β”‚   └── cover.png
β”œβ”€β”€ TrainStation
β”‚   β”œβ”€β”€ Admin_forms
β”‚   β”‚   β”œβ”€β”€ Add_admin.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Add_admin.cs
β”‚   β”‚   β”œβ”€β”€ Add_admin.resx
β”‚   β”‚   β”œβ”€β”€ Block_.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Block_.cs
β”‚   β”‚   β”œβ”€β”€ Block_.resx
β”‚   β”‚   β”œβ”€β”€ Remove_admin.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Remove_admin.cs
β”‚   β”‚   └── Remove_admin.resx
β”‚   β”œβ”€β”€ Employee_forms
β”‚   β”‚   β”œβ”€β”€ CancelTicket.Designer.cs
β”‚   β”‚   β”œβ”€β”€ CancelTicket.cs
β”‚   β”‚   β”œβ”€β”€ CancelTicket.resx
β”‚   β”‚   β”œβ”€β”€ TicketBooking.Designer.cs
β”‚   β”‚   β”œβ”€β”€ TicketBooking.cs
β”‚   β”‚   β”œβ”€β”€ TicketBooking.resx
β”‚   β”‚   β”œβ”€β”€ TrainStatus.Designer.cs
β”‚   β”‚   β”œβ”€β”€ TrainStatus.cs
β”‚   β”‚   β”œβ”€β”€ TrainStatus.resx
β”‚   β”‚   β”œβ”€β”€ UpdateMyData.Designer.cs
β”‚   β”‚   β”œβ”€β”€ UpdateMyData.cs
β”‚   β”‚   β”œβ”€β”€ UpdateMyData.resx
β”‚   β”‚   β”œβ”€β”€ UpgradeTicket.Designer.cs
β”‚   β”‚   β”œβ”€β”€ UpgradeTicket.cs
β”‚   β”‚   β”œβ”€β”€ UpgradeTicket.resx
β”‚   β”‚   β”œβ”€β”€ ViewPassengerData.Designer.cs
β”‚   β”‚   β”œβ”€β”€ ViewPassengerData.cs
β”‚   β”‚   β”œβ”€β”€ ViewPassengerData.resx
β”‚   β”‚   β”œβ”€β”€ ViewSeats.Designer.cs
β”‚   β”‚   β”œβ”€β”€ ViewSeats.cs
β”‚   β”‚   β”œβ”€β”€ ViewSeats.resx
β”‚   β”‚   β”œβ”€β”€ ViewTicketDetails.Designer.cs
β”‚   β”‚   β”œβ”€β”€ ViewTicketDetails.cs
β”‚   β”‚   β”œβ”€β”€ ViewTicketDetails.resx
β”‚   β”‚   β”œβ”€β”€ ViewTrips.Designer.cs
β”‚   β”‚   β”œβ”€β”€ ViewTrips.cs
β”‚   β”‚   β”œβ”€β”€ ViewTrips.resx
β”‚   β”‚   β”œβ”€β”€ updatePassengerData.Designer.cs
β”‚   β”‚   β”œβ”€β”€ updatePassengerData.cs
β”‚   β”‚   └── updatePassengerData.resx
β”‚   β”œβ”€β”€ Manager_forms
β”‚   β”‚   β”œβ”€β”€ Change_Deb.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Change_Deb.cs
β”‚   β”‚   β”œβ”€β”€ Change_Deb.resx
β”‚   β”‚   β”œβ”€β”€ Change_Salary.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Change_Salary.cs
β”‚   β”‚   β”œβ”€β”€ Change_Salary.resx
β”‚   β”‚   β”œβ”€β”€ Change_rate.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Change_rate.cs
β”‚   β”‚   β”œβ”€β”€ Change_rate.resx
β”‚   β”‚   β”œβ”€β”€ Employees_data.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Employees_data.cs
β”‚   β”‚   β”œβ”€β”€ Employees_data.resx
β”‚   β”‚   β”œβ”€β”€ Fire_employee.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Fire_employee.cs
β”‚   β”‚   β”œβ”€β”€ Fire_employee.resx
β”‚   β”‚   β”œβ”€β”€ Hire_Employee.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Hire_Employee.cs
β”‚   β”‚   β”œβ”€β”€ Hire_Employee.resx
β”‚   β”‚   β”œβ”€β”€ Passengers_data.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Passengers_data.cs
β”‚   β”‚   β”œβ”€β”€ Passengers_data.resx
β”‚   β”‚   β”œβ”€β”€ Schedule_trips.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Schedule_trips.cs
β”‚   β”‚   └── Schedule_trips.resx
β”‚   β”œβ”€β”€ Passenger forms
β”‚   β”‚   β”œβ”€β”€ Add_PhoneNumber.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Add_PhoneNumber.cs
β”‚   β”‚   β”œβ”€β”€ Add_PhoneNumber.resx
β”‚   β”‚   β”œβ”€β”€ Book_Ticket.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Book_Ticket.cs
β”‚   β”‚   β”œβ”€β”€ Book_Ticket.resx
β”‚   β”‚   β”œβ”€β”€ Cancel_Ticket.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Cancel_Ticket.cs
β”‚   β”‚   β”œβ”€β”€ Cancel_Ticket.resx
β”‚   β”‚   β”œβ”€β”€ Change_Email.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Change_Email.cs
β”‚   β”‚   β”œβ”€β”€ Change_Email.resx
β”‚   β”‚   β”œβ”€β”€ Change_Password.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Change_Password.cs
β”‚   β”‚   β”œβ”€β”€ Change_Password.resx
β”‚   β”‚   β”œβ”€β”€ Change_PhoneNumber.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Change_PhoneNumber.cs
β”‚   β”‚   β”œβ”€β”€ Change_PhoneNumber.resx
β”‚   β”‚   β”œβ”€β”€ Edit_Profile.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Edit_Profile.cs
β”‚   β”‚   β”œβ”€β”€ Edit_Profile.resx
β”‚   β”‚   β”œβ”€β”€ Make_Complaint.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Make_Complaint.cs
β”‚   β”‚   β”œβ”€β”€ Make_Complaint.resx
β”‚   β”‚   β”œβ”€β”€ Ticket_Details.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Ticket_Details.cs
β”‚   β”‚   β”œβ”€β”€ Ticket_Details.resx
β”‚   β”‚   β”œβ”€β”€ Upgrade_Ticket.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Upgrade_Ticket.cs
β”‚   β”‚   └── Upgrade_Ticket.resx
β”‚   β”œβ”€β”€ Properties
β”‚   β”‚   β”œβ”€β”€ AssemblyInfo.cs
β”‚   β”‚   β”œβ”€β”€ Resources.Designer.cs
β”‚   β”‚   β”œβ”€β”€ Resources.resx
β”‚   β”‚   β”œβ”€β”€ Settings.Designer.cs
β”‚   β”‚   └── Settings.settings
β”‚   β”œβ”€β”€ Resources
β”‚   β”‚   β”œβ”€β”€ 1419767.jpg
β”‚   β”‚   β”œβ”€β”€ Back-Ground.jpg
β”‚   β”‚   β”œβ”€β”€ 6108b580.jpg
β”‚   β”‚   β”œβ”€β”€ michal-parzuchowski-dmH3NWhYTHQ-unsplash.jpg
β”‚   β”‚   β”œβ”€β”€ michal-parzuchowski-dmH3NWhYTHQ-unsplash1.jpg
β”‚   β”‚   └─railway-station-platform-with-modern-high-speed-trains-clock_273525-355.jpg
β”‚   β”œβ”€β”€ Admin.Designer.cs
β”‚   β”œβ”€β”€ Admin.cs
β”‚   β”œβ”€β”€ Admin.resx
β”‚   β”œβ”€β”€ App.config
β”‚   β”œβ”€β”€ Controller.cs
β”‚   β”œβ”€β”€ Create_acc.Designer.cs
β”‚   β”œβ”€β”€ Create_acc.cs
β”‚   β”œβ”€β”€ Create_acc.resx
β”‚   β”œβ”€β”€ DBManager.cs
β”‚   β”œβ”€β”€ Employee.Designer.cs
β”‚   β”œβ”€β”€ Employee.cs
β”‚   β”œβ”€β”€ Employee.resx
β”‚   β”œβ”€β”€ Handle.cs
β”‚   β”œβ”€β”€ Manager.Designer.cs
β”‚   β”œβ”€β”€ Manager.cs
β”‚   β”œβ”€β”€ Manager.resx
β”‚   β”œβ”€β”€ Passenger.Designer.cs
β”‚   β”œβ”€β”€ Passenger.cs
β”‚   β”œβ”€β”€ Passenger.resx /9/1419767
β”‚   β”œβ”€β”€ Program.cs
β”‚   β”œβ”€β”€ StoredProcedures.cs
β”‚   β”œβ”€β”€ TrainStation.csproj
β”‚   β”œβ”€β”€ TrainStation.csproj.user
β”‚   β”œβ”€β”€ TrainStation.sln
β”‚   β”œβ”€β”€ UserLog.Designer.cs
β”‚   β”œβ”€β”€ UserLog.cs
β”‚   └── UserLog.resx
β”œβ”€β”€ Accessing DB from C# App.pdf
β”œβ”€β”€ CreateDatabaseQuery.sql
β”œβ”€β”€  InsertValues.sql
β”œβ”€β”€ Lincense
β”œβ”€β”€ README.md
β”œβ”€β”€ Report .pdf
└── Schema.png

Contributors


Sarah Elzayat


Yasmine Ghanem


Yasmin Elgendi


Eslam Ashraf