Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
NIIT is the first and the only Asian Education and Training Organization to feature among the IDC Top 20 Global IT Training market leaders. NIIT is a leading Global Talent Development Corporation, building a skilled manpower pool for global industry requirements. The company which was set up in 1981, to help the nascent IT industry overcome its human resource challenges, has today grown to rank among the worlds leading talent development organisations offering learning solutions to Individuals, Enterprises and Institutions across 40 countries.
1|Page
2|Page
GENERAL TOOL The Visual Basic.Net toolbox contains the tools you use to add controls on your forms. THE VISUAL BASIC.NET TOOLBOX
3|Page
CONTROL CATEGORIES
There are three broad categories of controls in Visual Basic.Net:
Intrinsic controls, such as the command button and frame controls. These controls are contained inside the Visual Basic.Net .exe file. Intrinsic controls are always included in the toolbox, unlike ActiveX controls and insert able objects, which can be removed from or added to the toolbox.
ActiveX controls, which exist as separate files with a .ocx file name extension. These include controls that are available in all editions of Visual Basic.Net (Data Combo, Data List controls, and so on) and those that are available only in the Professional and Enterprise editions (such as List view, Toolbar, Animation, and Tabbed Dialog). Many third-party ActiveX controls are also available. Note Controls with the .vbx file name extension use older technology and are found in applications written in earlier versions of Visual Basic.Net. When Visual Basic.Net opens a project containing a .vbx control, the default behavior is to replace the .vbx control with an .ocx control, but only if an .ocx version of the control is available.
Insertable Objects, such as a Microsoft Excel Worksheet object containing a list of all your company's employees, or a Microsoft Project Calendar object containing the scheduling information for a project. Since these can be added to the toolbox, they can be considered controls. Some of these objects also support Automation (formerly called OLE Automation), which allows you to program another application's objects from within a Visual Basic.Net application.
4|Page
AIRWAYS RESERVATION SYSTEM ACTIVEX CONTROLS Visual Basic.Net contains a number of ActiveX controls (referred to as standard ActiveX controls) that allow you to add advanced features to your applications. ActiveX controls have the file name extension .ocx and can be used in your project by manually adding them to the toolbox. The following table summarizes the standard ActiveX controls available in the Learning edition of Visual Basic.Net. Icon Control name ADO Data Control Class name ADODC Description Creates a connection to a database using ADO. Assignable to the Data Source property of other controls such as the Data Grid. Common dialog Common Dialog Provides a standard set of dialog boxes for operations such as opening and saving files, setting print options, and selecting colours and fonts. DataCombo DataCombo Provides most of the features of the standard combo box control, plus increased data access capabilities. DataGrid DataGrid A grid control that allows can be databound to a data source such as the ADO Data Control. Reading and editing the record set is possible. DataList DataList Provides most of the features of the standard list box control, plus increased data access capabilities. Microsoft Hierarchical MSHFlexGrid FlexGrid A read-only grid control that can be bound the Data Environment designer to show hierarchical record sets.
The multiple document interface (MDI) allows you to create an application that maintains multiple forms within a single container form. Applications such as Microsoft Excel and Microsoft Word for Windows have multiple-document interfaces. An MDI application allows the user to display multiple documents at the same time, with each document displayed in its own window. Documents or child windows are contained in a parent window, which provides a workspace for all the child windows in the application. For example, Microsoft Excel allows you to create and display multipledocument windows of different types. Each individual window is confined to the area of the Excel parent window. When you minimize Excel, all of the document windows are minimized as well; only the parent window's icon appears in the task bar. A child form is an ordinary form that has its MDI Child property set to true. Your application can include many MDI child forms of similar or different types.
At run time, child forms are displayed within the workspace of the MDI parent form (the area inside the form's borders and below the title and menu bars). When a child form is
6|Page
AIRWAYS RESERVATION SYSTEM minimized, its icon appears within the workspace of the MDI form instead of on the taskbar, as shown in Figure. CHILD FORMS DISPLAYED WITHIN THE WORKSPACE OF THE MDI FORM
Note: Your application can also include standard, non-MDI forms that are not contained in the MDI form. A typical use of a standard form in an MDI application is to display a modal dialog box. An MDI form is similar to an ordinary form with one restriction. You can't place a control directly on a MDI form unless that control has an Align property (such as a picture box control) or has no visible interface (such as a timer control).
AIRWAYS RESERVATION SYSTEM At run time, an MDI form and all of its child forms take on special characteristics:
All child forms are displayed within the MDI form's workspace. The user can move and size child forms like any other form; however, they are restricted to this workspace.
When a child form is minimized, its icon appears on the MDI form instead of the taskbar. When the MDI form is minimized, the MDI form and all of its child forms are represented by a single icon. When the MDI form is restored, the MDI form and all the child forms are displayed in the same state they were in before being minimized.
When a child form is maximized, its text is combined with the caption of the MDI form and is displayed in the MDI form's title bar (see Figure). By setting the Auto Show Children property, you can display child forms automatically when forms are loaded (True), or load child forms as hidden (False). The active child form's menus (if any) are displayed on the MDI form's menu bar, not on the child form. A CHILD FORM TEXT COMBINED WITH THE TEXT OF AN MDI FORM
8|Page
MENU EDITOR
TO DISPLAY THE MENU ITEMS
From the toolbox, Choose Menu strip and drop on to the MDI form. You can write the name of the menu items by clicking on the strip. Also, place an ampersand (&) before the letter you want to be the access key for that menu item. This letter will automatically be underlined in the menu. As shown in figure.
Name This is the name you use to reference the menu control from code. Text This is the text that appears on the control.
9|Page
AIRWAYS RESERVATION SYSTEM CREATING SUB MENU ITEMS We can simply add the sub menu items by single clicking on the menu item. Its sub menu boxes will automatically highlighted. Click on a sub menu box and write the name of your sub menu. As in figure:
By following this procedure you can create your desired sub menus. Note: A menu control cannot be a separator bar if it is a menu title, has submenu items, is checked or disabled, or has a shortcut key.
10 | P a g e
11 | P a g e
The menu titles you create are displayed on the form. At design time, click a menu title to drop down its corresponding menu items. SEPARATING MENU ITEMS A separator bar is displayed as a horizontal line between items on a menu. On a menu with many items, you can use a separator bar to divide items into logical groups. For example, the File menu in Visual Basic.Net uses separator bars to divide its menu items into three groups, as shown in figure: Separator bars
12 | P a g e
TO CREATE A SEPARATOR BAR IN THE MENU ITEMS 1. If you are adding a separator bar to an existing menu, which has sub menu items, then right click on the menu item and select Edit DropDownItems.
13 | P a g e
14 | P a g e
2. An Items Collection Editor Box will open. Select separator from select item and add to list below and click on add. A separator will add at the last. Choose your desired position of separator bar by clicking on up or down button. As shown:
3. Choose OK to close the Items Collection Editor. Note: Although separator bars are created as menu controls, they do not respond to the Click event, and users cannot choose them.
15 | P a g e
16 | P a g e
TO ASSIGN AN ACCESS KEY TO A MENU CONTROL IN THE MENU EDITOR 1. Select the menu item to which you want to assign an access key. 2. In the Text box, type an ampersand (&) immediately in front of the letter you want to be the access key. For example, if the Edit menu shown in Figure is open, the following Caption property settings respond to the corresponding keys.
Menu control caption Cut Copy Paste Delete Select All Time/Date
Access keys T O p l a d
Note: Do not use duplicate access keys on menus. If you use the same access key for more than one menu item, the key will not work. For example, if C is the access key for both Cut and Copy, when you select the Edit menu and press C, the Copy command will be selected, but the application will not carry out the command until the user presses ENTER. The Cut command will not be selected at all.
17 | P a g e
AIRWAYS RESERVATION SYSTEM SHORTCUT KEYS Shortcut keys run a menu item immediately when pressed. Frequently used menu items may be assigned a keyboard shortcut, which provides a single-step method of keyboard access, rather than a three-step method of pressing ALT, a menu title access character, and then a menu item access character. Shortcut key assignments include function key and control key combinations, such as CTRL+F1 or CTRL+N. They appear on the menu to the right of the corresponding menu item, as shown in Figure.
TO ASSIGN A SHORTCUT KEY TO A MENU ITEM 1. Open the Items Collection Editor. 2. Select the menu item. 3. Select a function key or key combination in the Shortcut combo box. 4. To remove a shortcut key assignment, choose "(none)" from the top of the list. 5. You can simply set the shortcut keys by the shortcutkeys option in the property window.
18 | P a g e
19 | P a g e
This project is applicable to work of persons working in the Airport Reservation Office and do the work of booking of tickets (data storage), and the required reports are created. Till now they used to follow the old manual methods of storing and collecting data through registers which was very tedious and time consuming. This software can be easily used by them as it aims at providing them with a record of all the tickets booked in the city and also help them in feeding relevant information which can be recalled whenever required. Also by using this we can cancel the reservation if needed. It also generates relevant reports and queries which may be required by them. Thus, it can be successfully used by the end users i.e. office bearers.
20 | P a g e
PROBLEM DEFINITION
The definition of our problem lies in manual system and a fully automated system. Manual system: The system is very time consuming and lazy. This system is more prone to errors and sometimes the approach to various problems is unstructured. Technical system: With the advent of latest technology if we do not update our system then our business result in losses gradually with time. The technical systems contains the tools of latest trend i.e. computers printers, fax, Internet etc. The systems with this technology are very fast, accurate, user-friendly and reliable.
TECNICAL SYSTEM
21 | P a g e
22 | P a g e
23 | P a g e
AIRWAYS RESERVATION SYSTEM NEED OF AIRLINES SYSTEM A few factors that directs us to develop a new system are given below -: 1) Faster System 2) Accuracy 3) Reliability 4) Informative 5) Reservations and cancellations from anywhere to any place
24 | P a g e
SYSTEM STUDY
FEASIBILITY STUDY Feasibility study is to check the viability of the project under consideration. Theoretically various types of feasibilities are conducted, but we have conducted three type of feasibilities explained as under. ECONOMIC FEASIBILITY With the manual system the operating cost of the system is about 60 Lacks P.A. This cost comprises salary of 25 people, stationary, building rent, electricity, water, telephone etc. But with the new system this reoccurring cost comes out to be about 20 Lacks P.A. Hence the new system is economically feasible. TECHNICAL FEASIBILITY The new system requires only 6 trained person to work with the system and in overall 10 people per office are sufficient. So we will identify 6 best people from existing system and train them. As our existing system is purely manual, so we need a one time investment of Rs 4 Lacks for the purchase of 7 computers, 5 Ticket printers, a laser printer, AC and networking etc. It requires 20 Lacks PA as a operating cost. With the above details our system is technically feasible as after investing 24 lacks in a year, the company is still saving Rs 25 Lacks PA. OPERATIONAL FEASIBILITY The new solution is feasible in all sense but operationally it is not. The new system demands the expulsion of at least 15 people from the company. It creates an environment of joblessness and fear among the employees. It can lead to an indefinite strike in the company also. So the management must take corrective actions prior in advance in order to start the further proceedings.
25 | P a g e
SYSTEM ANALYSIS
This was the most important phase of my project life cycle .It had connected my maximum time. The block diagram given below depicts various fact which were understood by one during the analysis phase.
BLOCK DIAGRAM
26 | P a g e
SYSTEM DESIGN
In this phase initially I had designed E-R diagram of the processes, in order to identify various entities and relationship set, entity set, attributers, link attributes The Diagram of this process as under. After this step .We had tried design the data base for the new system and normalized it. The tables motivated in data dictionaries enclosed as annex II is an outcome of this step. The symbols of entities are shown below:
27 | P a g e
28 | P a g e
29 | P a g e
30 | P a g e
31 | P a g e
Symbols
Description A Rectangle defines a source or destination of system data. A Circle or a Bubble represents a process that transforms the incoming data flows into outgoing data flows. An open Rectangle is a data store: data at rest, or a temporary repository of data. Arrows represents the flow of data in a system. It is a pipeline through which the information flows.
32 | P a g e
33 | P a g e
34 | P a g e
35 | P a g e
36 | P a g e
37 | P a g e
38 | P a g e
TABLES USED
39 | P a g e
1.
Useraccount
2.
Flightsinfo
40 | P a g e
Column Name FlightNo FlightDescription Origin DepartureTime Destination ArrivalTime Duration TotalSeatsInFC TotalSeatsInBC TotalSeatsInEC
Data Type varchar (10) primary key, varchar (20), varchar (20), varchar (15), varchar (20), varchar (15), varchar(15), int, int, int
3.
Reservation
41 | P a g e
Column Name
PNRno TicketNo FlightNo PassportNo DepartureTime ArrivalTime DateofIssue DateofJourney Class Fare ModeofPayment Status
Data Type
Varchar(30) primary key, Varchar(30), Varchar(30) foreign key references flightsinfo (flightno) Varchar(30), Varchar(30), Varchar(30), Varchar(30), Varchar(30), Varchar((30), Varchar(30), Varchar(30), Varchar(30)
4.
Pnrstatus
42 | P a g e
Column Name
PNRno PName Gender Age Category
Data Type
Varchar(30) foreign key references reservation(PNRno), Varchar(30), Varchar(30), Varchar(30), Varchar(15)
43 | P a g e
SNAPSHOTS
44 | P a g e
AIRWAYS RESERVATION SYSTEM FRONT END DESIGN The Front End should be so that user who has the proper access to the Software can easily interface with the forms. The user should give a valid Username and the Password to get the access to the Airways Reservation System Software. After that, he will have the access to every Form of the Software. THE SPLASH SCREEN OF OUR SOFTWARE IS AS FOLLOWS:
Splash Screen
45 | P a g e
This is the main form i.e. MDI form of the Airways Reservation System Software. On the top, there is Menu Bar from which various options to operate and access the Software can be selected. But initially, only the first menu option i.e. Login is highlighted and the User is restricted to perform any other operation. On clicking the Login menu option, a Login Form gets loaded on the screen and the user is prompted to type in user-id and password. If the user is authorized one, he will be allowed to access and operate the software. There are two types of users allowedADMINISTRATOR and USER. An ADMINISTATOR can perform all the transactions on software but a USER has only restricted privileges.
46 | P a g e
LOGIN SCREEN
This is the Login Form. Only after entering the valid username and password, the user can access the Airways Reservation System SOFTWARE; otherwise a message of invalid userid or password is displayed to the User. There are two types of users allowedADMINISTRATOR and USER. An ADMINISTATOR can perform all the transactions on software but a USER has only restricted privileges.
47 | P a g e
On entering the wrong password, the user will not be allowed to access the Reservation Software. The message screen in this case would be like as:
48 | P a g e
49 | P a g e
Otherwise if the user is logged in as a STANDARD USER, the main form with all the privileges assigned to the appropriate user will be enabled. In this case only some of the menu bar options are enabled. E.g. A USER cant make additions or deletions in the back end. The screen in this case would be as follows:
50 | P a g e
1. User Account
51 | P a g e
Modifying Password
A user can modify his password by selecting the Modify password option from User Account drop down menu.
52 | P a g e
Delete Account
Only Administrator can do the operation of deleting the existing account. This option can be selected from User Account drop down menu option.
53 | P a g e
54 | P a g e
55 | P a g e
2. RESERVATION SCREEN
This form is for booking of Airways tickets. The Pnr No. and Ticket No. will be generated automatically. Initially only Flight Description box is enabled.
56 | P a g e
As we select Flight Description, Origin and Destination would become highlighted. When we select Origin and Destination, the other options would be enabled. As in figure:
57 | P a g e
Data is saved
After pressing Submit button, the data will be saved in the Reservation table in the database if all the fields are filled by the administrator.
58 | P a g e
59 | P a g e
3.
This option can be used by both Administrator and Standard user. By entering flight description, origin and destination, the relevant information can be taken.
60 | P a g e
AIRWAYS RESERVATION SYSTEM Get Availability We can get the availability of seats by clicking Get Availability button. As:
Get Fair
61 | P a g e
We can also check the fare of selected class by clicking the Get Fare button. As:
62 | P a g e
Seats Availability
We can check the information of seats availability by clicking the Enquiry menu and selecting Seats Inquiry. Firstly we have to select Description and then Origin, Destination and then Journey Date. As:
After clicking Get It we can get the required seats information. As:
63 | P a g e
PNR Status
64 | P a g e
AIRWAYS RESERVATION SYSTEM For checking if the seat is reserved or being cancelled, we can do this job by click Enquiry from menu and selecting PNR Status. We have to enter only our PNR no. and click on Get it. Our flights information and Status will be shown to us. As in figure:
4. WINDOWS
65 | P a g e
AIRWAYS RESERVATION SYSTEM If multiple windows are opened, and we want to arrange these windows as Vertically, Horizontally or in Cascade mode, then we can do this job by pressing Windows option from menu and selecting Vertical or Horizontal or Cascade.
Vertical windows
Horizontal windows
66 | P a g e
Cascade windows
67 | P a g e
Domestic Fares Domestic Reservation International Fares International Reservation Cancelled Reservation Reservation By Date Reprint Ticket
69 | P a g e
70 | P a g e
71 | P a g e
72 | P a g e
73 | P a g e
74 | P a g e
75 | P a g e
ABOUT US
76 | P a g e
TESTING
77 | P a g e
AIRWAYS RESERVATION SYSTEM The purpose of system testing is to identify and correct errors in the new system. Testing is an important phase of system development life cycle. System testing was conducted in order to detect errors and for comparing then the final system with the requirement specification reports, i.e. whether the system meets requirements. During testing the software was executed with the set of test cases and the output of programs for the test cases was evaluated to determine if the program is performing as it was expected to. Testing presents an interesting challenge for the software engineers attempt to build software from an abstract concept to an acceptable implementation. In testing engineer create a series of test cases that occurs when errors are uncovered. Testing is the process of executing a program for finding errors. A good test is one that has the high probability of finding an uncovered error. A successful error is one that uncovers undiscovered errors. There are two methods for testing: 1. White Box Testing 2. Black Box Testing WHITE BOX TESTING White box testing of software is predicate on close examination of procedural details. Logical paths through the software are tested by providing test cases that exercise specific set of conditions and loops. BLACK BOX TESTING Black box tests are performed to access how well a program meets its requirements, looking for incorrect or missing functionality. Functional tests typically exercise code with valid or nearly valid input for which the expected output is known. This includes concepts such as boundary values.
78 | P a g e
BIBLOGRAPHY
These are some of the text material that I have referred during the course of our application development. Besides I have also referred notes from various other books and explored the internet for the same. Books Referred 1. System Analysis and Design 2. Programming in Visual Basic 3. Visual Basic Projects Sites Referred 1. http://www.w3schools.com 2. http://www.kidware.com 3. http://www.scribd.com 4. http://en.wikipedia.org Puneet Wadhwa Gabriel Oancea Somma Dassgupta
79 | P a g e
SPECIAL THANKS
It is my proud to express our heart felt gratitude to our H.O.D of CSE Department Er. Balkrishan at College of Engineering and Management, Kapurthala for giving me suggestions regarding the project. I also thanks to the Project Guide Mr. Jatinder Singh (NIIT Sr. Faculty) under whose guidance the project is carried out successfully. I also give special thanks to all the lecturers of College of Engineering and Management for giving me chance to develop a project. They helped me in almost every field of study.
80 | P a g e