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

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

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

718 Project 6 CREATING A MOBILE APPLICATION

In this project, you will learn to create a mobile Web application. I will discuss the case study and design of the mobile Web application in this chapter. In addition,

you will learn about the project life cycle of the MobileCallStatus application,

which includes creating high-level and low-level designs of the application.

Case Study

 

Y

L

 

Electronix, Inc. is one of the leading electronic goods companies in the United

 

F

States.The company has its offices all over the United States, with its head office

located in California. The company was established in 1990 and has grown

 

M

 

tremendously since then. The company now provides electronic goods services to

more than a million customersAall over the United States.

 

E

 

Electronix, Inc. hasTa huge customer support division comprising more than 500 executives across all branches.The customer support executives at Electronix, Inc. provide services to customers over the telephone, the mobile phone, and the Internet. In addition, the engineers of the customer support division visit the customers to solve their problems. Because of this, the engineers need to travel a lot.

The customer support division tracks all the complaints made by the customers in a CRM (Customer Relations Management) database. The engineers then access the customer complaint data in the CRM database to discover the pending calls and the new complaints that are logged in the database. The senior managers in the customer support division have realized the need for the engineers to be able to access the customer complaint datawhile they are traveling. This would enable the engineers to be aware of the pending and new calls without going back to the office. As a result, the engineers can attend to the pending and new calls while they are traveling.

In this context, the senior management has decided to create a mobile application that can be accessed using an engineer’s mobile phone. The complaints that are logged in the CRM database are then stored in an XML document. The senior management has decided to create a mobile application that can provide the data from this XML document to the users.The engineers can access the mobile application from their mobile phones to discover the status of the complaints.

Team-Fly®

PROJECT CASE STUDY AND DESIGN

Chapter 31

719

 

 

 

 

NOTE

While creating this application, I am assuming that the customer complaint data is already transformed from the CRM database to an XML document.

To develop the application, the senior managers performed an analysis of the available technologies and decided to create the application by using the mobile technologies available as a part of the .NET platform. This is because the .NET Framework provides an easy and user-friendly framework for developing Web applications for the distributed environment. In addition, the Mobile Internet Toolkit, which is based on the .NET Framework, can be installed on the user’s computer. The Mobile Internet Toolkit provides the user with the tools and components that can be used to create a mobile application easily and efficiently.

Therefore, the senior managers have appointed a software developer who has experience in working with the .NET technologies. The software developer has decided to use C# as language to develop this mobile application. The following section discusses the stages in the life cycle of the MobileCallStatus application.

Project Life Cycle

You are familiar with the phases of a DLC (development life cycle) of a project. Therefore, in this chapter, I will only discuss the analysis of the organization’s requirements that were done by the software developer at Electronix, Inc.In addition, I will discuss the design of the application created by the software developer based on the analysis of the organization’s requirements. You, as a developer, will analyze the requirements of Electronix, Inc., and create a design for the MobileCallStatus application.

Analyzing Requirements

To develop an application, it is essential that you analyze the requirements of the customer in detail. This anal ysis is done in the analyzing requirements phase of the project life cycle. Based on the customer’s problem, you can create a plan for developing the application. The analysis of the customer’s problem is completed

720 Project 6 CREATING A MOBILE APPLICATION

on the basis of the problem statement stated by senior managers and the information gathered by the developer.

In the case of Electronix, Inc., the problem statement is as follows: “Electronix, Inc. needs to make the customer complaint data, which contains the status of the calls made by the customers, accessible to the engineers while they are traveling.”

After analyzing the problem statement, the developer created a detailed list of tasks to be done while creating the application:

The organization needs to make the customer complaint data containing the status of the calls accessible to the engineers while they are traveling.

The organization needs to save the time and effort of the engineers.

Because the engineers travel a lot, the application should be deployed on a mobile device, such as their mobile phones.

To provide a solution to the problems of Electronix, Inc., the developer plans to create a mobile Web application that can be accessed from the mobile phones of the engineers. The mobile Web application will have the following features:

The application will prompt the users to enter their logon name and password.

The application will validate the logon name and password of the users.

The information about the logon name and password of the users is stored in the Users.xml file.

The application will show the pending calls to the users.

When a user marks the status of a call as complete, the status is reflected in the Calls.xml file.

The application will show the unattended or new calls to the users.

When a user accepts a call, the status of the call is changed to pending in the Calls.xml file.

High-Level Design

Based on the plan that is created by the developer at Electronix, Inc., the developer needs to create a high-level and low-level design of the application in the high-level and low-level design phases, respectively. To create a design of the mobile application, the developer needs to identify the mobile Web forms to be

PROJECT CASE STUDY AND DESIGN

Chapter 31

721

 

 

 

 

included in the application. In addition, the developer needs to identify the mobile Web form controls to be included in the Web forms. All this is done in the high-level design phase of the DLC of the application.

The MobileCallStatus application consists of four mobile Web forms, frmLogon, frmSelectOption, frmPending, and frmUnattended. You will learn about mobile Web forms in detail in Chapter 32, “Basics of Mobile Applications,” in the section, “The Mobile Web Form.” However, in this chapter, I will only discuss the designs of the four forms. Figure 31-1 shows the layout of the frmLogon form.

FIGURE 31-1 The design of the frmLogon form

The frmLogon form consists of two Label controls, two TextBox controls, two RequiredFieldValidator controls, and one Command control.You will learn about these controls in detail in Chapter 32 in the section “The Design of the MobileTimeRetriever Application.”

Figure 31-2 shows the layout of the frmSelectOption form.

722 Project 6 CREATING A MOBILE APPLICATION

FIGURE 31-2 The design of the frmSelectOption for m

As you can see in Figure 31-2, the frmSelectOption form includes a Label, a SelectionList, and a Command control. You will learn to add controls to a mobile Web form in Chapter 32. As discussed earlier, the MobileCallStatus application also includes a frmPending form. Figure 31-3 shows the layout of the frmPending form.

FIGURE 31-3 The design of the frmPending form

PROJECT CASE STUDY AND DESIGN

Chapter 31

723

 

 

 

 

The frmPending form includes a Label, a SelectionList, and two Command controls.

In addition to the previously mentioned forms, the MobileCallStatus application contains another form, frmUnattended. Figure 31-4 shows the design of the frmUnattended form.

FIGURE 31-4 The design of the frmUnattended form

Low-Level Design

After creating the design of the forms in the high-level design phase, the developer needs to create a detailed design of the software modules. These software modules are then used to create the applications. In addition to creating software modules, the developer needs to decide the flow and interaction of each module. This includes creating flowcharts for each module. The flowcharts for the software modules are created in the low-level design phase of the DLC of the application. Figure 31-5 shows the flowchart for the frmLogon module.

724 Project 6 CREATING A MOBILE APPLICATION

FIGURE 31-5 Flowchart of the frmLogon module

Based on the design of the frmSelectOption form,the developer created the flowchart for the form, as shown in Figure 31-6.

PROJECT CASE STUDY AND DESIGN

Chapter 31

725

 

 

 

 

FIGURE 31-6 Flowchart of the frmSelectOption module

Similarly, based on the design of the frmPending form, the developer created the flowchart for the frmPending module. Figure 31-7 shows the flowchart of the frmPending module.

FIGURE 31-7 Flowchart of the frmPending module

726 Project 6 CREATING A MOBILE APPLICATION

In addition, the developed created a flowchart for the frmUnattended module as shown in Figure 31-8.

FIGURE 31-8 Flowchart of the frmUnattended module

After the developer has created the interface and the software modules, the developer constructs and tests the mobile application. After the application is tested and the errors in the application are detected and removed, the application is deployed on a mobile device. I will discuss how to write the code of the MobileCallStatus application in the following chapters.

Summary

In this chapter, you were introduced to the project case study. Based on the case study of the project, you analyzed the requirements of Electronix, Inc. and created detailed high-level and low-level designs for the MobileCallStatus application. You will learn to create the actual application in the following chapters.

Chapter 32

Basics of Mobile

Applications