ÇANKAYA UNIVERSITY FACULTY OF ENGINEERING COMPUTER ENGINEERING DEPARTMENT Software Development Document Ceng 407 Version 2 ONLINE CAR RENTAL WEB SITE Özlem ŞAHİNER 201111045 Zehra GÜLEN 201111023 Cansun DEMİREL 201111014 ADVISOR: Roya CHOUPANI 1
Table Of Contents Figure... 4 1.Introduction... 6 1.1 Purpose... 6 1.2 Scope... 6 1.3 Glossary... 6 1.4 Overview of Document... 7 2.Deployment... 7 2.1 Client... 7 2.2 Server... 7 2.3 Ms-Sql... 7 2.4 Asp.Net... 7 2.5 C#... 8 3. System Architecture... 8 4. GUI Design... 8 4.1 Login Page... 9 4.2 Customer Page... 11 4.3 Employee Page... 13 4.4 Manager Page... 14 5. Work Follow... 16 5.1 Manager Sequence Diagram... 16 5.2.Employee Sequence Diagram... 17 5.3.Customer Sequence Diagram... 18 5.4 General System Sequence Diagram... 19 6. Database Design... 20 6.1 Tables... 20 2
6.1.1 Customer Table... 20 6.1.2 Car Informatıon To Be Rented Table... 20 6.1.3 Rental Car Table... 21 6.1.4 Customer Passport Table... 22 6.1.5 Customer Licence Table... 22 6.1.6 Guide Table... 22 6.1.7 Interpreter Table... 23 6.1.8 Chauffeur Table... 23 6.1.9 Reserving Car Table... 23 6.1.10 Payment Table... 24 6.2 Database Diagram... 25 6.3 E-R Diagram... 27 6.4 Block Diagram... 28 3
Figure Figure 1: System Architecture... 8 Figure 2: Login Page... 9 Figure 3: Customer Page... 11 Figure 4: Employee Page... 13 Figure 5: Manager Page... 14 Figure 6: Employee Sequence Diagram... 17 Figure 7: Customer Sequence Diagram... 18 Figure 8: General System Sequence Diagram... 19 Figure 9: Database Diagram... 25 Figure 10: E-R Diagram... 27 Figure 11: Block Diagram... 28 4
Tables Table 1: Login Page... 10 Table 2: Customer Page... 12 Table 3: Employee Page... 14 Table 4: Manager Page... 15 Table 1: Customer Information... 20 Table 2: Car Informatıon For Rental... 21 Table 3: Rental Car Information... 22 Table 4: Customer Passport Information... 22 Table 5: Customer Licence Information... 22 Table 6: Guide Information... 23 Table 7: Interpreter Information... 23 Table 8: Chauffeur Information... 23 Table 9: Reserving Car Information... 24 Table 10: Payment Information... 24 5
1.Introduction 1.1 Purpose Online car rental web site to provide the requirements of the target software project. In this system, the target is the system administrator, employees and customers. With the system we have developed, it is aimed to reach the customers quickly by means of the categories determined by the information of the vehicles they want to rent. The car rental system provides the information of the vehicles in categories so that users can easily access the desired information and contents about the vehicle they are looking for. In this way, users will be able to access the route they need without any problems. The car rental system enables the customers to make quick transactions on the solutions offered to the customers and to transfer the transactions to the system. Thanks to this system, users will have the opportunity to solve their needs quickly. The car rental system project aims to rent the vehicle that the customers need. The purpose of the system will be to provide a quick access to the system by responding to the needs of the users. 1.2 Scope The scope of the software is that the user can rent the vehicle he / she wants by signing up and logging on the site via a website which is easily understood by the users. On this count, it will be easier to achieve goals such as reaching more people. The entire system will be created between the site users and the administrator. In the project, C # language is preferred because of its new generation programming language and high performance that MsSQL provides. The forms that users will use in their relationship to the system are outlined in the erface design section. Variables, functions, parameters and types are given and all these values can be changed or improved during implementation. 1.3 Glossary MSSQL ASP.NET C# Microsoft Visual Studio MicroSoft SQL Server is a database server software. It provides the creation and management of databases. Web application language that runs on the Net Framework which is developed by Microsoft. One of the next generation programming languages developed for Microsoft.NET technology. It is an egrated development environment developed by Microsoft. 6
Website Application SRS SDD A location on the World Wide Web A mobile app is a software application designed Software Requirements Specification Software Design Descripton 1.4 Overview of Document In the parts of the document, design decisions to be taken in the system, steps to be followed in the direction of these decisions, assumptions, dependencies, software hardware environments, end user environment, compliance with the standards are detailed. It also includes the components of the software and hardware environments, the components' relationships with the classes, and the diagrams and diagrams of what needs are needed to work together. 2.Deployment 2.1 Client The client sends requests to the servers to perform their transactions. The resulting result after the processing of the code is seen with the help of the user browser. 2.2 Server It has many erfaces for ASP.NET users. There are many components such as email forms, database lists, and so on. 2.3 Ms-Sql MSSQL extract data from the database, record data in the database, update the data, and delete the records. 2.4 Asp.Net It has many erfaces for ASP.NET users. There are many components such as email forms, database lists, and so on. 7
2.5 C# The next generation programming language, C #, runs everywhere that supports the.net framework. 3. System Architecture Figure 1: System Architecture 4. GUI Design The gui design of Online Car Rental Web Site is made by Microsoft Visual Studio. In this section, the forms that the users will use in relation to the system are given in general terms independent of the modules and objects, and it is thought that it will be better to leave the objects and modules to be used in the design stage. 8
4.1 Login Page Figure 2: Login Page 9
Name Type Description Login Page Web Page This page includes four tabs which are username, password fields, login button and remember me. Attributes Username Password Operations Login Enter username Enter password Returns When customer clicks login button, customers redirected to login page. When customer clicks remember me, system does not forget this user. Internet Connection Pre- Condition Post- - Condition Exceptions If the customer password is entered incorrectly, the system will not open. If the customer enters the password correctly, the information will be approved and the system will be turned on. Table 1: Login Page 10
4.2 Customer Page Figure 3: Customer Page Name Customer Page Type Web Page Description It is the page used by the customer. Customer only uses online this page. This pace includes seven buttons which are view rental car, reserving car, guide 11
erpreter, chauffeur and entry and exit hours. Attributes - Operations Rental Car Page Reserving Car Guide Interpreter Chauffeur Entry and Exit Page Returns The customer can see all the car information from the main page, but when he rents the car he cannot do anything without registering in the system. When Pre- Condition Post- Condition Exception recording to the system, it will be able to do all the operations in order. Internet Connection When the customer rents the car, the system must be registered. - The customer will get a bug or warning when he tries to rent a car without registration. Table 2: Customer Page 12
4.3 Employee Page Figure 4: Employee Page Name Employee Page Type Web Page Description Employees are the people who manage the site here. On this page you can add, update or delete cars. The employee is often referred to as the manager of this site. Because the manager has all the authority of the site, but the employee will not do the work. For this reason, the employee will make the registration system of the site, the car information system, the database system and the overall design of the site. Attributes - Operations View, update and delete rental car page View and changing reserving car ne page View, update and delete guide, erpreter and chauffeur page And update all other properties of the site. Returns When employee clicks login button, employee will be directed to five page segments. When employee clicks rental car, employee redirecting to rental car page. This site will be guided like this. Pre- Internet Connection 13
Condition The employee has to log in to the system. Post- Employee enters car information and updating some information. Condition Exception If the employee is not logged in to the system to enter the site he will receive an error message. 4.4 Manager Page Table 3: Employee Page Figure 5: Manager Page Name Manager Page Type Web Page Description Manager use online this page. The manager has all the authority on the site. The 14
manager can see the payment page and report page that the employee has not seen. The manager can add, update and delete all car information. The manager can check the entry and exit times of the employee's site. The manager can make all the changes he wants on the site. But he has transferred all work to work by employing workers. Attributes - Operations View, update and delete rental car page View and changing reserving car page View, update and delete guide, erpreter and chauffeur page View and update payment page View and update report page And update all other properties of the site. Returns When employee clicks login button, employee will be directed to five page segments. When employee clicks rental car, employee redirecting to rental car page. This site will be guided like this. Pre- Internet Connection Condition The employee has to log in to the system. Post- Manager enters all information and views all information of site. Condition Exception If the manager is not logged in to the system to enter the site he will receive an error message. Table 4: Manager Page 15
5. Work Follow 5.1 Manager Sequence Diagram Figure 6 : Manager Sequence Diagram 16
5.2.Employee Sequence Diagram Figure 7: Employee Sequence Diagram 17
5.3.Customer Sequence Diagram Figure 8: Customer Sequence Diagram 18
5.4 General System Sequence Diagram Figure 9: General System Sequence Diagram 19
6. Database Design The data includes the rental car database. Data shows attributes, types, and attribute size from this systems. The relations are shown in the E-R diagram. The data fiels define in section which appears in below. 6.1 Tables 6.1.1 Customer Table Attribute Size CustomerId Name Surname Age City Phone Emailg Driving_licenceId PassportId TC_Id Attribute Type nvarchar() nvarchar() nvarchar() nvarchar() nvarchar() Attribute Name Table 1: Customer Information 6.1.2 Car Informatıon To Be Rented Table Attribute Size R_CarId Brand Attribute Type nvarchar() Attribute Name 20
Model Color Year Plate Km Photograph Fuel BodyType EngineeCapacity EngineePower nvarchar() nvarchar() date nvarchar() image nvarchar() nvarchar() Table 2: Car Informatıon For Rental 6.1.3 Rental Car Table Attribute Size RentalCarId CustomerId R_CarId PaymentId RentalDate RentalTime DeliveryDate DeliveryTime GuideId InterpreterId Attribute Type date time(7) date time Attribute Name 7 21
Chaufferurld Table 3: Rental Car Information 6.1.4 Customer Passport Table Attribute Size PassportId PlaceOfIssue DateOfIssue Attribute Type nvarchar() date Attribute Name 6.1.5 Customer Licence Table Table 4: Customer Passport Information Attribute Size DrivingLicenceId PlaceOfIssue_Licence DateOfIssue_Licence ClassType Attribute Type nvarchar() date varchar(20) Attribute Name 20 Table 5: Customer Licence Information 6.1.6 Guide Table Attribute Size GuideId GuideName GuideSurname GuidePhone Attribute Type nvarchar() nvarchar() nvarchar() Attribute Name 22
GuideGender varchar(20) 20 Table 6: Guide Information 6.1.7 Interpreter Table Attribute Size InterpreterId InterpreterName InterpreterSurname InterpreterPhone InterpreterGender Interpreter_known_language Attribute Type nvarchar() nvarchar() nvarchar() varchar(20) nvarchar() Attribute Name 20 Table 7: Interpreter Information 6.1.8 Chauffeur Table Attribute Size ChauffeurId DrivingLicenceId ChauffeurName ChauffeurSurname ChauffeurPhone ChauffeurGender Attribute Type nvarchar() nvarchar() nvarchar() varchar(20) Attribute Name 20 Table 8: Chauffeur Information 6.1.9 Reserving Car Table 23
Attribute Size ReservationId CustomerId R_CarId S_CarId DateOfReservation TimeOfReservation Attribute Type date time(7) Attribute Name 7 Table 9: Reserving Car Information 6.1.9 Payment Table Attribute Size Attribute Type Attribute Name PaymentId PaymentType nvarchar() Table 9: Payment Information 24
6.2 Database Diagram Figure 10: Database Diagram Brief Description Database Diagram, is necessary for making E-R Diagram and determining primary keys. According to that diagram, we relate and see relationships of entries between each other. 25
26
6.3 E-R Diagram Figure 11: E-R Diagram Brief Description E-R Diagram attributes and relationships between tables are shown. 27
6.4 Block Diagram Figure 12: Block Diagram Brief Description In Block Diagram actors and their tasks are shown. 28