Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

C# ПІДРУЧНИКИ / c# / Premier Press - C# Professional Projects

.pdf
Скачиваний:
475
Добавлен:
12.02.2016
Размер:
14.7 Mб
Скачать

Project 4 Overview

An airline portal is an enterprise solution for managing customer and flight information for an airline. The primary function of the portal is to manage flight information and perform reservations and cancellations. However, the

 

Y

duties in an airline also involve performing allied tasks, such as querying the

L

status of flights, managing accounts of executives who perform the reserva-

F

tions, and generating reports to interpret airline performance.

M

 

Airline reservation portals were developed as customized applications in

A

 

which the airline employees primarily managed all customer data and

processed customer requests. However, with the advent of the Internet, it is possible to enable customersEto access their data through a Web site or a mobile device. TheseTmethods of accessing information over the Internet through Web sites and mobile devices has become all the more easier with the advent of ASP.NET.

In this project, I want to show you how to develop an enterprise solution for managing the flight schedules and reservations in an airline. The project uses a blend of the ASP.NET Web applications, ASP.NET Mobile Web Applications, and SQL Server Enterprise Management tools to provide an integrated solution. With the help of the project, you can understand the processes involved in managing business data and also the ability of C# to help you build your application around the business logic.

Team-Fly®

Chapter 18

Project Case

Study and Design

400 Project 4 CREATING AN AIRLINE RESERVATION PORTAL

In the preceding projects, you developed Windows Forms applications. Windows Forms applications are usually run on desktop computers. For a distributed environment, ASP applications are preferred because a large audience can

access them relatively easily.

ASP.NET Web applications are an optimal solution for managing large-scale business applications. You can either deploy these applications on an intranet and make them accessible throughout an organization, or make them securely accessible on the Internet so that Internet users can access and update information on the Web site.

In this project, you will learn to create an ASP.NET Web application for automating the ticketing process of a fictitious airline, SkyShark Airlines. The project, albeit customized for the requirements of SkyShark Airlines, can be easily customized to specific business requirements.This chapter has been written to equip you with the information necessary to begin creating the application.

In this chapter, I present the case study of the application and its design. The design includes the databases and tables, the relationship between database tables, and the structure of the Web forms in the application.

Airline Profile

Launched in 1999, SkyShark Airlines is a United States-based airline that has rapidly grown in the past three years. High service standards and the exceptional commitment of its employees have resulted in a consistent increase in the customer base of the airline over the past years. Following this positive trend, the airline plans to further its profits in the next financial year with the introduction of new aircrafts and new air routes.

Currently, the airline operates from a corporate office and a number of regional offices. In the current setup, the regional offices interact with users somewhat independently. The only interaction that happens between the regional and the head offices is the daily exchange of customer transactions that have happened during business hours.

PROJECT CASE STUDY AND DESIGN

Chapter 18

401

 

 

 

 

The airline plans to add to its existing list of regional offices and enable real-time communication between the regional offices and the corporate office. Each regional office would be connected by an intranet. Subsequently, reservations and cancellations will be performed at each of the regional offices,which will function in an interlinked manner. The data will be collated on a daily basis at the corporate office for the purpose of analysis and reports.

The executives of SkyShark Airlines are categorized into three roles: business management, network administration, and line-of-business operations. Tasks in these roles are well defined and are equally important in the effective functioning of the business transactions. It is important to understand the role of business executives because the design of the application, as you will see later, depends upon these roles.Therefore, in this section, I examine the tasks performed by each business executive.

Role of a Business Manager

Business managers are responsible for framing policies and ensuring that the business operations perform at the optimal level. In the context of SkyShark Airlines, the duties of business managers are specified in the following list:

Introducing new flights. Business managers are responsible for introducing new flights after analyzing the market opportunities and business trends.

Adding new user accounts. Business managers request for new user accounts for users that need to access custom applications deployed by the airline. When requesting for a new user account, the role of the user is also specified. As a policy, when a new employee joins the airline, business managers send a request for the inclusion of a new user account to the network administrator.

Analyzing flight performance. Business managers analyze the performance of flights to determine whether or not a flight generates the expected revenue. The results of the analysis are also used to determine if the capacity of flights is optimally utilized.

Launching frequent flier programs. Frequent flier programs are used to enable discounts for customers who have either flown the airline more than a predefined number of times or paid more than a predetermined fare. To enable the frequent flier program, business managers use the

402 Project 4 CREATING AN AIRLINE RESERVATION PORTAL

flight transaction data and determine which customers should be eligible for the program.

Role of a Network Administrator

Network administrators are responsible for ensuring around-the-clock connectivity of the corporate office with the regional offices. You should note that network administrators are proficient with database management tools, such as SQL Server Enterprise Manager, because they need to use these tools frequently for accomplishing their tasks. The duties of network administrators are given in the following list:

Maintaining Web servers and database ser vers. Network administrators ensure that the latest patches and updates available for Web servers and database servers are installed. They examine database logs and Web server logs to ensure that there are no hardware or software-related problems. They also analyze the network usage to determine if the present infrastructure can sustain the demand. If it cannot, ways to scale the hardware infrastructure are determined and implemented.

Managing user accounts. Network administrators create user accounts for users who are authorized to perform flight-related transactions. They also ensure that the user accounts of users who resign from the organization are disabled.

Backing up and archiving databases. Network administrators back up databases daily and also ensure that data that pertains to flights that have departed is periodically archived.

Role of a Line-of-Business Executive

The line-of-business executives are responsible for performing the reservation and cancellation of tickets for the airline. The responsibilities of these executives are summarized in the following list:

Reservation on flights. Line-of-business executives reserve passengers on flights. While reserving the seats, they generate a ticket that specifies the status and fare to the passenger.

Cancellation on flights. Passengers can approach the line-of-business executives for cancellation of their tickets. When a ticket is cancelled, the fare amount entitled for refund to the passenger is refunded.

PROJECT CASE STUDY AND DESIGN

Chapter 18

403

 

 

 

 

Reporting flight status. On demand, line-of-business executives also report the seat availability in the business and executive classes to passengers.

Confirmation of reservation. Line-of-business executives can confirm the ticket of a passenger 72 to 24 hours before the departure of the flight. The confirmation can be carried out over telephone as well as across the reservation counters at regional offices.

Having examined the role of business executives in SkyShark Airlines, you can understand the requirements of the airline portal easily. These requirements are explained in the next section.

Project Requirements

The airline portal required by the airline should be an integrated solution that allows all business executives and customers to access data that is pertinent to their roles. Notice the inclusion of customers that I made in the preceding sentence. By enabling customers to manage their information, such as their ticket status and the confirmation status of their reservation, the airline wants to reduce the workload of its line-of-business executives and enhance customer experience.

Based on the roles of executives discussed in the previous section, you can infer that the responsibilities of the airline executives are well defined. The airline portal uses the role of these executives as a framework for imparting its functionality. Thus, the portal enables different sets of tasks for business managers, network administrators, and line-of-business executives. In this section, I list all tasks that need to be accomplished in the airline portal and also examine how these tasks will be accomplished.

Creation and Deletion of User Accounts

The procedure of creating a new user account is given in the following list:

1.A business manager decides when a new user account needs to be created and uses the online portal to send an e-mail message to the network administrator. The username and the role of the user are specified in the e-mail message.

404 Project 4 CREATING AN AIRLINE RESERVATION PORTAL

NOTE

As a convention, the username selected by the network administrator for a new user account is the same as the Windows 2000 domain account user ID for the user.

2.Network administrators use the online portal to create a new user account. When the new account is created, an e-mail message is triggered to the user. The e-mail message specifies the username, password, and the privacy policy of the airline (as an attachment).

3.When the user logs on for the first time, it is mandatory for the user to change his or her password.

When a user is no longer required to use the airline portal, the network administrator deletes the user account from the airline portal.

Addition of Flight Details

After you add new user accounts, users can access the airline portal.The next step, after adding user accounts, is to add the details of new flights so that registered users can access the airline portal and perform reservations and cancellations.

To add new flight details, a business manager uses the following information:

Flight number

Origin and destination

Number of seats in the business and executive class

Fares for the two classes

Type of aircraft

The business manager adds the information to the airline portal, and the flight is ready to accept reservations and cancellations.

Reservations

Line-of-business executives perform reservations on flights after flight details are added by business managers. Reservation of passengers on flights is a three-step procedure, as specified following:

PROJECT CASE STUDY AND DESIGN

Chapter 18

 

405

 

 

 

 

 

 

1.The passenger supplies the flight number, the class, and the date of journey. The line-of-business executive uses this information to retrieve the flight status. The flight status is intimated to the passenger.

2.If the passenger wishes to continue with the reservation, the line-of- business executive accepts the name and e-mail address of the user to perform the reservation.

3.The e-mail address of the user is optional and is used to check if the customer qualifies for a frequent flier discount. If the customer qualifies for a discount, the discount is deducted from the ticket fare and the ticket is generated.

Cancellations

If a passenger wishes to cancel a ticket, the passenger approaches the line-of-busi- ness with the ticket number. The line-of-business executive cancels the ticket and refunds the fare to the passenger. The refund applicable to a customer is calculated depending upon the departure time of the flight, by using the following scheme:

If the user has not boarded the flight, as checked by the status in the confirmation of reservations, and the flight has departed, 80 percent of the fare is refunded.

If the flight has not departed, 10 dollars are subtracted from the fare and the remaining amount is refunded.

Query of Status

Passengers can query the status of their tickets as well as the status of flights. To query the status, passengers can either contact the line-of-business executives or query the information from the online portal of SkyShark Airlines. The online portal for the airline presents information about flight schedules, flight status, and ticket status. The online portal can also be used to confirm reservations. I will describe the online portal in detail later in this project.

Confirmation of Tickets

Passengers need to confirm their tickets before the departure of the flight. This practice is established to ensure that seats of passengers who decide not to travel

406 Project 4 CREATING AN AIRLINE RESERVATION PORTAL

on the scheduled date are offered to the passengers in the waiting list. To confirm their ticket, passengers can use the options given in the following list:

Use the ticket number to confirm the ticket with the line-of-business executive, either by telephone or in person.

Use the ticket number and e-mail ID to confirm the reservation on the online portal.

Creation of Reports

Business managers can generate reports to view the performance of flights. The types of reports supported by the airline portal are specified in the following list:

Monthly flight revenue. The monthly flight revenue report retrieves the total revenue generated from all the flights in a given month. The business manager needs to select the month and year to run the report.

Flight revenue report. The flight revenue report reports the total revenue generated from a flight. To run this report, the business manager needs to specify the flight number.

Customer affinity report. The customer affinity report retrieves the customers who have flown the flight maximum number of times or who have paid the maximum fare. To run this report, the business manager needs to specify how many customer records the application should retrieve. This report is used to launch the frequent fliers program.

Total revenue report. The total revenue report is used to retrieve the total revenue that has been generated by the airline since a given month and year.

Launch of Frequent Flier Programs

Business managers are responsible for launching frequent flier programs that are used for giving discounts to customers who frequently fly with the airline. Customers are given discounts if they specify either of the parameters specified in the following list:

Frequency of flight. Customers who frequently fly the airline are given a discount of a certain percent on their ticket fare. The business managers determine the frequency of flight and the discount percentage.

PROJECT CASE STUDY AND DESIGN

Chapter 18

407

 

 

 

 

Total fare collected. Customers who have paid more than a certain amount as fare are also given discounts. The amount and the discount, in this case as well, are decided by the business manager.

The discount applicable to users is applied when they book a ticket on the airline.

Summarizing the Tasks

I have explained all the tasks that need to be performed by the airline. I will now sort each task by role, because this information is used for creating the form design.

The tasks of business managers are summarized as follows:

Add and remove flights

Request for user IDs

Generate reports

Manager frequent flier programs

The tasks of network administrators are summarized as follows:

Add and delete user accounts

Back up and archive databases

Examine Web server and database logs

The tasks of line-of-business executives are summarized as follows:

Create and cancel reservations

Query status of flights and tickets

Confirm tickets

The summarized tasks form the basis of the application. As you will see in the next section, the database structure and the application interface follow closely with the tasks summarized for each business executive.

Project Design

After having examined the requirements of the application in detail, you can now proceed with designing the application. In the project design stage, you identify the database tables and the relationships between them to finalize the database