Вы находитесь на странице: 1из 236

Report

UNDER SUPERVISION OF G.S.Baluja SUBMITTED BY NAME: ENROLMENT NO:

Submitted in partial fulfillment of the requirements of the degree of

BCA
1

Administrative & Logistic Management System for Courier Company

Under Supervision of
Submitted By:
Name Programme Code Enrollment No. Study centre

: : : : BCA

ACKNOWLEDGEMENT

With Candor and Pleasure I take opportunity to express my sincere thanks and obligation to my esteemed guide G.S.Baluja. It is because of his able and mature guidance and co-operation without which it would not have been possible for me to complete my project. It is my pleasant duty to thank all the staff member of the computer center who never hesitated me from time during the project. Finally, I gratefully acknowledge the support, encouragement & patience of my family, and as always, nothing in my life would be possible without God, Thank You!

Amit Tuteja

DECLARATION

I hereby declare that this project work titled ADMINISTRATIVE & LOGISTIC MANAGEMENT SYSTEM COURIER BOOKING is my original work and no part of it has been submitted for any other degree purpose or published in any other from till date.

Amit Tuteja

Administrative & Logistic Management System for Courier Company TABLE OF CONTENTS
Acknowledgment Declaration 1. Introduction & Objectives of the Project 1.1 Introduction 1.2 Objectives 1.3 Advantage 1.4 Drawback of Current Manual-System 1.5 Proposed System 1.6 Need 2. System Study 2.1 Preliminary Investigation 2.2 System Development Life Cycle 3. System Analysis 3.1 Importance of Computerized System 3.2 Principle of System Analysis 30 31 24 25 3 4 8 8 8 9 10 11 15

4.

System Design 34 40 41 42 48 5

4.1 Design Objectives 4.2 Data Modeling 4.3 E-R Diagram 4.4 Context Level DFD 4.5 Modules

4.6 Process Logic for Each Modules

51

4.7 Tool/Platform, Hardware and Software Requirement Specification 54 4.8 Scheduling 56

5. System Development 5.1 Source Code 5.2 Code Efficiency 5.3 Optimization of code 6. Testing 210 211 216 59 208 208

6.1 Testing Phase 6.2 Level of Testing 6.3 Verification and Validation (V&V) 7. System Implementation Post Implementation Maintenance and Review Hardware Evaluation Factors Software Evaluation Factors Conversion and Training Training Needs

7.1 7.2 7.3 7.4 7.5 8. 9.

219 220 221 222 223 224 222 228 229 230 162

Cost Estimation of the Project GANTT & PERT CHART

10. Security and Validations 11. Scope of Future Application 12. Conclusion 13. Bibliography

1.1 INTRODUCTION:

This system is being developed to manage a process known as Trading, which is one of the basic pillars in development of human society. This system, which is known as Administrative & Logistic Management System for Courier Company, is useful for courier companies, which acts as a carrier to carry goods from one place to another, to and from all stations where it operates. A shipper sends some consignment to the buyer and charge transportation charges to carry those goods.

1.2 Objectives of the Project


1. The main objective of Administrative & Logistic Management System for Courier Company system possess are : 2. This software is developed keeping customer in focus. I have tried to make the whole logic of system very easy and understandable, so that transparency can be achieved. It is very necessary to make system understandable as any person who is giving business to airline (known as Customer), has right of information. At any point of time, a customer can ask about the status of its courier. So, to provide a proper customer service, the system should be able to tell about the current status of courier. 3. Administrative & Logistic Management System for Courier Company is is to manage the whole courier booking and distribution process, so that an error free transaction can be done. Other objectives which this

developed to make process of booking, planning and delivery of Courier very easy and manageable. This system will be mostly used by Courier Companies Employees so, it is very necessary to make their work systematic and ergonomic. All modules will be easy to use. 4. As whole Courier trade is based on commercialism, so accounting should be an integrated part of such system. So, this system should manage all accounts and keeps records of amount credited and debited on individuals.

5. To manage user profiles and to validate who can do business on credit basis and who cannot.

1.3. Advantages
I have designed the given proposed system in the ASP.NET to automate Administrative & Logistic Management System for Courier Company. The following steps that give the detailed information of the need of proposed system are: Performance: During past several decades, the records are supposed to be manually handled for all activities. The manual handling of the record is time consuming and highly prone to error. To improve the performance of the Company system, the computerized system is to be undertaken. The computerized project is fully computerized and user friendly even that any of the members can see the report and status of the company. Efficiency: The basic need of this website is efficiency. The website should be efficient so that a user can track his courier. The website is updated by the administrator. This record will be useful for other users instantly. Control: The complete control of the project is under the hands of authorized person who has the password to access this project and illegal access is not supposed to deal with. All the control is under the administrator and the other members have the rights to just see the records not to change any transaction or entry. Security: Security is the main criteria for the proposed system. Since illegal access may corrupt the database. So security has to be given in this project.

1.4 DRAWBACKS OF CURRENT MANUAL- SYSTEM

The current manual system has a lot of paper work and it does not

deal with old and new car purchase and sale. To maintain the records of sale and service manually, is a Time-

consuming job. With the increase in database, it will become a massive job to

maintain the database. Requires large quantities of file cabinets, which are huge and

require quite a bit of space in the office, which can be used for storing records of previous claims. The retrieval of records of employees will be a tedious job. Lack of security for the records, anyone disarrange the records of

your system.

10

ESTABLISH THE NEED OF NEW SYSTEM

1.

Problem of Reliability: Current system is not reliable. It

seems to vary in quality from one month to the next. Some times it gives good output, but some times the output is worst. 2. reports. 3. Problem of timeliness: In the current system the reports Problem of Accuracy: There are too many mistakes in

and output produced is mostly late and in most of the cases it is useless because it is not on time. 4. Problem of Validity: The output and reports mostly contains

misleading information. The customer's information is sometimes not valid. 5. Problem of Economy: The current system is very costly.

We have to spend lots of money to keep the system up and going, but still not get the desired results. 6. Problem of Capacity: The current system is suffering from

problem of capacity also. The staff for organization is very less and the workload is too much. Few peoples cannot handle all the work.

1.5 PROPOSED SYSTEM

1.

Details: The new proposed system stores and maintains all the eye bank details,donators details,nodal hospital details etc.

2. Calculations: The new proposed system updates tables and other information automatically and it is very fast and accurate. 3. Registers: There is no need of keeping and maintaining salary and information manually. It remembers each and every record and we can get any report at any time. 11

4. Speed: The new proposed system is very fast with 100% accuracy and saves time. 5. Manpower: The new proposed system needs less manpower. Less people can do the large work. 6. Efficiency: The new proposed systems complete the work of many people in less time. 7. Past details: The new proposed system contains the details of every past claims taken by the employees. 8. Reduces redundancy: The most important benefit of this system is that it reduces the redundancy of data within the data. 9. Work load: Reduces the work load of the data store by helping in easy updates of the products and providing them with the necessary details together with financial transactions management. 10. Easy statements: Month-end and day-end statement easily taken out without getting headaches on browsing through the day end statements.

1.6 NEED
I have designed the given proposed system in the ASP.NET to automate the process of ADMINISTRATIVE & LOGISTIC MANAGEMENT SYSTEM COURIER
BOOKING. This project is useful for the authorities who keep track of all the

eye bank details . The following steps that give the detailed information of the need of proposed system are: Performance: During past several decades, the records are supposed to be manually handled for all activities. The manual handling of the record is time consuming and highly prone to error. To improve the performance of the system, the computerized 12

system is to be undertaken. The computerized project is fully computerized and user friendly even that any of the members can see the report and status of the eye bank. Efficiency: The basic need of this website is efficiency. The website should be efficient so that whenever a new user submits his/her details the website is updated automatically. This record will be useful for other users instantly. Control: The complete control of the project is under the hands of authorized person who has the password to access this project and illegal access is not supposed to deal with. All the control is under the administrator and the other members have the rights to just see the records not to change any transaction or entry. Security: Security is the main criteria for the proposed system. Since illegal access may corrupt the database. So security has to be given in this project.

13

SOFTWARE & HARDWARE REQUIREMENTS


Client-Server approach with XML / ASP.NET
The need of todays software development is competence in a GUI based front-end tool, which can connect to Relational Database engines. This gives the programmer the opportunity to develop client server based commercial applications.

FRONT END
.NET programming tools are complete programming environments. It allows programmers to build a GUI program using the various on-screen controls such as buttons, text, menus, boxes etc. These controls are placed on a form and then the processing details related with each control are filled in. In the business world, competitive strategies have become the order of the day to improve quality, cut costs and provide a high response customer service base. Most organizations today need to be market driven and do a lot of value addition to their products and services. This naturally calls for rational decision making, which requires information. Information Technology or IT provides that effective channel to support and implement this strategy. Client/Server is the technology that empowers the desktop, thus setting a trend for the way successful organizations will use technology in the next decade.

INTRODUCTION TO .NET What is .NET?


A vision of how information technology will evolve A platform that supports the vision A business model of software as a service

14

1. A Vision.
Web sites will be joined by Web services New smart devices will join the PC User interfaces will become more adaptable and customizable Enabled by Web standards

2. A Platform.
The .NET Framework Visual Studio.NET .NET Enterprise Servers o Database, Messaging, Integration, Commerce, Proxy, Security, Mobility, Orchestration, Content Management .NET Building Block Services o Passport o .NET My Services (Appin) Goal: make it incredibility easy to build powerful Web applications and Web services

3. A business model.
Software as a service Subscription-based services Application hosting, e.g. bCentral

Interoperability: Web languages and protocols must be compatible with


one another independent of hardware and software.

Evolution: The Web must be able to accommodate future technologies.


Encourages simplicity, modularity and extensibility.

Decentralization: Facilitates Scalability and Robustness. Web Services


A programmable application component accessible via standard Web protocols The center of the .NET architecture Exposes functionality over the Web 15

Built on existing and emerging standards UDDI, WSDL,

are HTTP, XML, SOAP,

The .NET Framework

What is the .NET Framework?


A set of technologies for developing and using components to create: o Web Forms o Web Services o Windows Applications Supports the software lifecycle o Development o Debugging o Deployment o Maintenance Application Architectures o The Different types of Applications may vary from single-tier desktop applications (applications that follow the single-tier architecture) to multi-tier applications (applications that follow the two-, three, or n-tier architecture) o Single-tier architecture 16

A single executable file handles all functions relating to the user, business, and data service layers. o Two-tier architecture Divides an application into the following two components: Client Server o Three-tier architecture All the three service layers reside separately, either on the same machine or on different machines. o n-tier architecture Uses business objects for handling business rules and data access. Has multiple servers handling business services.

The .NET Initiative


The introduction of the Internet and its rapid growth in the recent past has led to the development of a number of new Technologies. One of the most important requirements of such applications is the ability to interchange information across platforms and to benefit from the functionality provided by other applications. organizationIn the current scenario, although applications serve

specific requirements, they are not interoperable. Microsoft has introduced the .NET initiative with the intention of bridging the gap in interoperability between applications. The .NET initiative offers a complete suite for developing and deploying applications, which consists of the following: o NET products: Microsoft has already introduced Visual Studio .NET, which is a tool for developing NET applications by using programming languages such as Visual Basic, C#, and Visual C++. o NET services: Microsoft is coming up with its own set of Web services, known as My Services. These services are based on the Microsoft Passport Authentication service, the same service that is used in Hotmail. 17

Explanation of the .NET Framework


Is a collection of services and classes? Exists as a layer between .NET applications and the underlying operating system. Encapsulates much of the functionality, such as debugging and security services. The following figure depicts the components of the .NET Framework:

The .NET Framework Base Classes or the .NET Class Framework


Consists of a class library that works with any .NET language, such as Visual Basic .NET and C#. Provides classes that can be used in the code to accomplish a range of common programming tasks. Comprises o Namespaces: Namespaces help you to create logical groups of related classes and interfaces that can be used by any language targeting the .NET Framework. o Assembly: An assembly is a single deployable unit that contains all the information about the implementation of classes, structures, and interfaces. The Common Language Runtime o Provides functionality such as exception handling, security, debugging, and versioning support to any language that targets it. o Can host a variety of languages and offer a common set of tools across these languages, ensuring interoperability between the codes. Provides the following features: o Automatic memory management o Standard type system o Language interoperability 18

o Platform independence o Security management o Type safety

Advantages of the .NET Framework


Some advantages of the .NET Framework are: o Consistent programming model o Multi-platform applications o Multi-language integration o Automatic resource management o Ease of deployment

ADO.NET
Is a model used by Visual Basic .NET applications to communicate with a database for retrieving, accessing, and updating data? Uses a structured process flow to interact with a database.

ADO .NET Data Access


Most applications need data access at one point of time making it a crucial component when working with applications. Data access is making the application interact with a database, where all the data is stored. Different applications have different requirements for database access. VB.NET uses ADO.NET (Active X Data Object) as it's data access and manipulation protocol, which also enables us to work with data on the Internet. Let's take a look why ADO.NET came into picture replacing ADO.

Evolution of ADO.NET The first data access model, DAO (data access model) was created for local databases with the built-in Jet engine which had performance and functionality issues. Next came RDO (Remote Data Object) and ADO (Active Data Object) which were designed for Client Server architectures but soon ADO took over RDO. ADO was a good architecture but as the language changes so is the technology within it. With ADO, all the data is contained in a 19

record set object which had problems when implemented on the network (Internet) and penetrating firewalls. ADO was a connected data access which means that when a connection to the database is established the connection remains open until the application is closed, which raises concerns about database security and network traffic. And also as databases are becoming increasingly important and as they are serving more people a connected data access model makes us think about its use. For example, an application with connected data access may do well when connected to two clients, the same may do poorly when connected to 10 and might be unusable when connected to 100 or more. Also, open database connections use system resources to a maximum extent making the system performance less effective.

Why ADO.NET?
To cope up with some of the problems mentioned above, ADO.NET came into existence. ADO.NET addresses the above mentioned problems by maintaining a disconnected database access model which means that when an application interacts with the database the connection is opened to serve the request of the application and is closed as soon as the request is completed. Likewise if a database is updated, the connection is opened long enough to complete the Update operation and is closed. By keeping connections open for only a minimum period of time ADO.NET conserves system resources and provides maximum security for databases and also has less impact on system performance. Also, ADO.NET when interacting with database uses XML by converting all the data into XML and using it for database related operations making them more efficient.

Features of ADO.NET
Disconnected data architecture Applications connect to the database only while retrieving and updating data. Data cached in datasets ADO.NET is based on a disconnected data structure. Therefore, the data is retrieved and stored in datasets. Data transfer in XML format ADO.NET uses XML for transferring information from a database into a dataset and from the dataset to another component. 20

Interaction with the database is done through data commands.

ADO.NET Object Model


Key Components of the ADO.NET Model
Data Provider o Is used for connecting to a database, retrieving data, and storing the data. Is of two types: o OLE DB data provider o SQL Server data provider

Components of a Data Provider


Connection o Used to establish a connection with a data source o Some commonly used properties and methods: ConnectionString property Open()method Close()method State property Data adapter o Creates a dataset and updates the database. o Handles data transfer between the database and the dataset through its properties and methods. o Displays the data through the process of table mapping. o Are of two types: SqlDataAdapter OleDbDataAdapter Data command o Is a SQL statement or a stored procedure that is used to retrieve, insert, delete, or modify data from a data source. o Is an object of the OleDbCommand or SQLCommand class. Data reader

21

o Is used to retrieve data from a data source in a read-only and forward-only mode. o Stores a single row at a time in the memory. o Commonly used methods: Read() Close() NextResult() Dataset o Is a disconnected, cached set of records that are retrieved from a database. o Is present as a DataSet class in the System.Data namespace. o Has its own object model.

22

23

2.1 PRELIMINARY INVESTIGATION


System development, a process consisting of two major steps of system analysis and design, start when management or sometimes system development personnel feel that a new system or an improvement in the existing system is required. The system development life cycle is classically thought of as the set of activities that analysts, designers and users carry out to develop and implement an information system. The system development life cycle consists of the following activities: Preliminary investigation Determination of system requirements Design of system Development of software System testing Implementation, evaluation, and maintenance A request to take assistance from information system can be made for many reasons, but in each case someone in the organization initiates the request is made, the first system activity the preliminary investigation begins. This activity has three parts: 1) Request clarification 2) Feasibility study 3) Request approval Request clarification: Many requests from employees and users in the organizations are not clearly defined, therefore it becomes necessary that project request must be examined and clarified properly before considering systems investigation.

24

2.2 SYSTEM DEVELOPMENT LIFE CYCLE


Systems are created to solve problems. One can think of the systems approach as an organized way of dealing with a problem. In this dynamic world, the subject System Analysis and Design (SAD), mainly deals with the software development activities.

DEFINING A SYSTEM
A collection of components that work together to realize some objective forms a system. Basically there are three major components in every system, namely input, processing and output. In a system the different components are connected with each other and they are interdependent. For example, human body represents a complete natural system. We are also bound by many national systems such as political system, economic system, educational system and so forth. The objective of the system demands that some output is produced as a result of processing the suitable inputs.

SYSTEM LIFE CYCLE


System life cycle is an organizational process of developing and maintaining systems. It helps in establishing a system project plan, because it gives overall list of processes and sub-processes required for developing a system. System development life cycle means combination of various activities. In other words we can say that various activities put together are referred as system development life cycle. In the System Analysis and Design terminology, the system development life cycle means software development life cycle.

25

Following are the different phases of software development cycle:


System study Feasibility study System analysis System design Coding Testing Implementation Maintenance

26

The Different Phases Of Software Development Life Cycle Are Shown Below.
PRELIMINARY INVESTIGATION DETERMINATION OF REQUIREMENTS DEVELOPMENT OF PROTOTYPE SYSTEM DESIGN OF SYSTEM

REVIEW RUNNING SYSTEM AND SYSTEM MAINTENANCE

SYSTEM IMPLEMENTATION

SYSTEM TESTING SYSTEM ANALYSIS 50% DESIGN DESI GN OF SYST EM

DEVELOPMENT OF SOFTWARE AND CODING

30% CODING 20%

FIG: SHOWING GENERAL LIFE CYCLE PROCESS AND PERCENTAGE OF TIME DEVOTED

27

A system analysis is a separation of a substance into parts for study and their implementation and detailed examination. Before designing any system it is important that the nature of the business and the way it currently operates are clearly understood. The detailed examination provides the specific data required during designing in order to ensure that all the client's requirements are fulfilled. The investigation or the study conducted during the analysis phase is largely based on the feasibility study. Rather it would not be wrong to say that the analysis and feasibility phases overlap. High-level analysis begins during the feasibility study. Though analysis is represented as one phase of the system development life cycle (SDLC), this is not true. Analysis begins with system initialization and continues until its maintenance. Even after successful implementation of the system, analysis may play its role for periodic maintenance and up gradation of the system. One of the main causes of project failures is inadequate understanding, and one of the main causes of inadequate understanding of the requirements is the poor planning of system analysis. Analysis requires us to recall the objectives of the project and consider following three questions: What type of information is required? What are the constraints on the investigation? What are the potential problems that may make the task more difficult?

28

29

3.1 IMPORTANCE OF COMPUTERIZED ADMINISTRATIVE & LOGISTIC MANAGEMENT SYSTEM


There are several attributes in which the computer based information works. Broadly the working of computer system is divided into two main groups: Transaction System Decision Support System

Transaction System:
A transaction is a record of some well-defined single and usually small occurrence in a system. Transactions are input into the computer to update the database files. It checks the entering data for its accuracy. This means that numeric data appears in numeric field and character data in character field. Once all the checks are made, transaction is used to update the database. Transaction can be inputted in on-line mode or batch mode. In on-line mode, transactions are entered and updated into the database almost instantaneously. In batch mode, transactions are collected into batches, which may be held for a while and inputted later.

Decision Support System:


It assists the user to make analytical decision. It shows the various data in organized way called analysis. This analysis can be made to syrdy preferences and help in making decisions. Computer system works out best with record maintenance. It will tell you which customer would get how much pending/reports statements. It will also help to search the information about a particular person by simply entering his telephone number. User can store information as per requirement, which can be used for comparison with other reports.

30

3.2 PRINCIPLES OF SYSTEM ANALYSIS


Principles:
1. 2. 3. 4. 5. Understand the problem before you begin to create the Develop prototypes that enable a user to understand how Record the origin of and the reason for every requirement. Use multiple views of requirements like building data, Work to eliminate ambiguity.

analysis model. human machine interaction will occur.

function and behavioral models.

A Complete Structure:
The limited time and resources have restricted us to incorporate, in this project, only the main activities that are performed in news sites, but utmost care has been taken to make the system efficient and user friendly. For the optimum use of practical time it is necessary that every session is planned. Planning of this project will include the following things: Topic Understanding. Modular Break Up of the System. Processor Logic for Each Module. Database Requirements.

Topic Understanding:
It is vital that the field of application as introduced in the project may be totally a new field. So as soon as the project was allocated to me, I carefully went through the project to identify the requirements of the project.

31

Modular Break Up of the System: Identify The Various Modules In The System. List Them In The Right Hierarchy. Identify Their Priority Of Development Description Of The Modules:

32

33

The final deliverable from system analysis is a document containing an unambiguous statement of the client's requirements from the new system and what the development project will have to deliver in order to be considered a success. The functional specification is the starting point for designing, which depends to a large extent on the accuracy and thoroughness with which the analysis has been carried out. Understanding of the business, appreciation of the client's problems and documentation of requirements provide the foundation on which the designing is based. A key factor in this approach is the use of the structured techniques. Analysis ends with a description of what the new system must do to fulfill the requirements of the organization, while design specifies how this will be done by selecting one of the many ways of doing it.

ANALYSIS
Describing WHAT the System will do?
The gap

DESIGN Describing HOW the system will do it

The structured techniques used during the analysis which provide this logical view are: Data flow diagrams - representing the process, which manipulate the data as it passes through the system. Entity model - showing the relationship within the data items held within the system. A data dictionary - providing an overall consistent definition of the data used during the system development. This definition includes the content of the data stores, data flows and the process shown on the data flow diagrams, and the entities that make up the entity model. 34

4.1 DESIGN OBJECTIVES AND CONSTRAINTS:


Flexible
The design would enable future requirements of the organization to be incorporated without much difficulty. Often the organizational needs and objectives change over time and hence such a design enables the system to reflect these changes.

Maintainable A good design is easy to maintain and this reduces the client's maintenance cost, which usually represents a proportion of the lifetime of the system. Portable A client for whom the software was developed may wish to change the hardware on which the system run. A good design is portable - in other words it is capable of being transferred from one machine environment to another with minimum amount of effort. Easy to use With increasing number of general users having exposure to computers and access to web sites, expectations of computer applications in term of their ease of use are also increasing. A good design will result in a system which is `user - friendly' - easy to understand, not difficult to learn how to use and straightforward to operate. Reliable The system designed must be secure against human error, deliberate misuse or machine failure, and which the data will be stored without corruption.

35

4.2 Data Modeling Describing Data Elements:


Each entry in the data dictionary consists of a set of details describing the data used or produced in the system. Each item is identified by a data name, description, alias, and length and has specific values that are permissible for it in the system being studied.

User Table
Field Name User id User Name Password Email Address Phone Type Char (30) Char (30) Char (30) Char (30) Char (30) Numeric Constrains Primary key Not Null Not Null Not Null Not Null Not Null

ADMIN TABLE
Field Name User name Password Type Char (30) Char (30) Constrains Primary key Not Null

COURIER TABLE
Field Name Reg. No. Shipper Name S Address S Phone S Email Receiver Name R Address R Phone No. Type Char (30) Char (30) Char (50) Numeric Char (30) Char (30) Char (30) Numeric 36 Constrains Primary Key Not Null Not Null Not Null Not Null Not Null Not Null Not Null

R City R Pin Country Amount Time Date Weight

Char (30) Numeric Char (30) Numeric Date/ Time Date/ Time Numeric

Not Null Not Null Not Null Not Null Not Null Not Null Not Null

AGENT TABLE
Field Name Agent_Id Agent Name Address City Phone Type Char (30) Char (30) Char (30) Char (30) Numeric Constrains Primary key Not Null Not Null Not Null Not Null

MNFST TABLE (Contain Summery of Shipments sent to a Particular Station)


Field Name Mnfst ID Pieces Weight Remarks Type Char (30) Numeric Numeric Char (100) Constrains Primary key Not Null Not Null Not Null

37

RATE TABLE (Contains rate applicable on each shipment)


Field Name Orgn Destination Rate Min Rate Q100 Rate Q300 Rate Q500 Type Char (30) Char (30) Numeric Numeric Numeric Numeric Constrains Not Null Not Null Not Null Not Null Not Null Not Null

DIMENSION TABLE
Field Name Courier No Length Weight Width Height Piece Type Char (30) Numeric Numeric Numeric Numeric Numeric Constrains Not Null Not Null Not Null Not Null Not Null Not Null

BOOKING BRANCH TABLE


Field Name Branch id Name Address Phone Email Type Char (30) Char (30) Char (30) Numeric Char (30) Constrains Primary Key Not Null Not Null Not Null Not Null

38

DO TABLE
Field Name DONO Courier_id Pieces Origin Destination Amount Paid Weight Remark Type Char (30) Char (30) Char (30) Char (30) Char (30) Numeric Numeric Char (100) Constrains Primary Key Not Null Not Null Not Null Not Null Not Null Not Null Not Null

SEGREGATION TABLE (Registers all discrepancies in shipments and record of action steps taken thereafter)
Field Name Courier Id Origin Destination Descrep Detail Action Tkn Type Char (30) Char (30) Char (30) Char (100) Char (100) Constrains Not Null Not Null Not Null Not Null Not Null

39

4.3 Entity-Relationship Diagram:


An Entity-Relationship model is an abstract conceptual representation of structural data. In an E-R Diagram, Data objects are represented by labeled rectangles and Relationships are indicated with diamonds. Connections between data objects and relationships are established using a variety of special connection lines. In Administrative & Logistic Management System for Courier Company, identified Data objects or Entities are given below:

40

Name Address Cust Id City N

4.3 E-R-Diagram Date Tim e

Na me Address Agent Id N Agent City

Customer

Books Courier

Forwar d Na me Branch Id Consignment No Date Id Delivery Slip ID Shipping Branch 1 Addr ess City

Delive rs To

Shippe d To

41

4.4. Data Flow Diagrams: Context Level Diagram

1. ADMIN

2. Customer

3. Agent

Administrative & Logistic Management System for Courier Company

6. Delivery Module

5. Booking

7. Shipping

42

DFD for ADMIN

Password & username 1.1 Validate Password & username

USER

Not Validated

Not Validated

1.3 Error Message Screen

1.2 Main Screen

43

DFD for Customer

Customer data 2.1 Accept the customer data

Customer

Customer data

Update Date

2.3 Display DATATA

Customer

Screen / Print

44

DFD for Agent

Agent Data 3.1 Accept agent data Agent

Agent data

Update Date

3.2 Display Agent Data

Agent

Screen | Print

45

DFD for Branch

Accept Data 3.1 Accept Branch data Branch

Branch data

Update Date

3.2 Display Branch Data

Branch

Screen | Print

46

DFD for Booking


Booking Courier

Customer

Bill

5.1 Accept Courier

5.2 Forward to branch

5.3 Shipped

5.4 Delivery to customer

47

4.5 Modules Number of Modules and their description:


1.1 Password Module In this module, this website is for multiple users. If a User enters a password and the software checks its validity. If the password is valid then option is given to change the password, otherwise Invalid User/Password message is displayed. There is an option for password recovery, log out, login, new users sign in. The Administrator can also update changes in the site after login. 1.2 Creating new Entities ( Users , Courier, Agents, Rates, Administrator)In this module, whenever a new entity is required to be added the corresponding forms are opened and the database is manipulated to check whether the data is already existing or not. If it already exists, then it prompts that Entry already existing and if not than the data is entered with the various validation checks. 1.3 Modifying / Updating Existing Entities In this module, whenever an existing entity is required to be modified the corresponding forms are opened and the database is manipulated and the data is fetched. Now the administrator can made the required changes and then accordingly, he updates the data. Again, the checks are followed in case there is any invalid entry. 1.4 Searching In this module, whenever an existing entity is required to be searched the corresponding forms are opened and the database is manipulated and the data is fetched. Again, the checks are followed in case there is any invalid entry. 1.5 Booking Module This module deals with booking of the courier. A shipper or its agent puts the details of the goods which he wants to send to an active destination. He can just put mandatory data to request a booking and rest of the information for complete booking can be provided later on, which facilitates shipper as sometimes shipper doesnt have full information.

48

1.6. Reconciliation Module This module comes into effect at Destination stage there. All Courier is checked as per the manifest and all discrepancies like pilferage, tear and wear etc. are noted. All shipments which are received in good condition are kept in warehouse. 1.7 Courier Arrival Notification Module

A Courier Arrival Notice is send to Consignees of all shipments which were received in good condition from Origin Station using this module. 1.8 Courier Delivery Module

That entire Courier, which is lying at Import Warehouse of a station and bears no discrepancy, can be delivered to Consignee. At this stage, Courier is delivered to consignee or its authorized agent using a Delivery Challan, and amount pertaining to shipment, if any, is collected from them. 1.9 Bill Status Module

Using this module, we can display the whole Consignment Note. It shows all details of a Bill and its current status. 1.10 Dimensions Module.

This module contains dimensions of all pieces of each consignment. As weight of each piece matters, likewise volume of each piece is also required because we have to accommodate shipment into the aircrafts, railways. 1.11 Discrepancies Module.

When shipment reaches destination, Courier check is done under Reconciliation Module. Any discrepancy found there is registered under Discrepancy Module and a report is sent to Origin Station for further action. All shipments which lies under discrepancy list, are not delivered to consignee or its authorized agent until the discrepancy is solved.

49

COMPLETE STRUCTURE:
The limited time and resources have restricted us to incorporate, in this project, only the main activities that are performed in Courier Company, but utmost care has been taken to make the system efficient and user friendly. For the optimum use of practical time it is necessary that every session is planned. Planning of this project will include the following things: Topic Understanding. Modular Break Up of the System. Processor Logic for Each Module. Database Requirements. Topic Understanding: It is vital that the field of application as introduced in the project may be totally a new field. So as soon as the project was allocated to me, I carefully went through the project to identify the requirements of the project. Modular Break Up of the System: Identify The Various Modules In The System. List Them In The Right Hierarchy. Identify Their Priority Of Development Description Of The Modules:

50

4.6 Process logic:

Bill Generation

Input Proces s Output Input

input data to request a booking A new AWB is created or existing AWB gets updated. Bill is ready to be planned for loading

Pre

All finalised Bills are available at warehouse for planning Process Bills are selected on basis of destination and priority Output A Pre-Manifest is generated for load planning

Manifestation

Manifest

Input Proces s

Pre Manifest report after loading on transport Offloaded Courier is eliminated from Pre Manifest and rest Courier is finalised and Manifest report is generated. Output Manifest report is sent to Destination. Input Proces s Output Manifest report for a particular area Courier is checked physically and any discrepancy is registered and informed to Origin Station. Segregation report of received Courier.

Segregation

Input

Shipments which are received at Destination without any discrepancy. Proces A notice is prepared to be sent to Consignee to s inform them to collect their Courier. Output Courier Arrival Notice. CAN
51

Input

All Bills which bears no discrepancy and are related to one Consignee. Process All such Bills are listed, date and time of delivery is noted. Any amount pending on any Bill is also shown in report. Output Delivery Challan Report is generated for record purpose.

Courier Delivery

Input Shipments which are delivered Process Amount of all shipments booked within a particular time period by individual agent or shipper are listed and total amount due on them is shown in list Output CSR is generated and sent to those agents or shippers for releasing payment. Courier Sales Report

52

Report Generation
'Crystal Reports' is a popular third party package that is included with .NET, which allows you to create reports for your application. The package consists of a designer where you can design and test the reports, Crystal Reports API calls and Crystal Report Viewer control. The administrator can generate following reports 1. Report on different Users: This report contains total no. of Users Logged in the system (such as in a day, week, month etc.). 2. Report on Courier Details: This report contains how many couriers booked in the system (such as in a day, week, month etc.). 3. Report on discrepencies listing: This report contains the time taken in delivering courier. 4. Report on tracking couriers: This report contains information about courier from origin to destination. 5. Report on different agencies: This report contains total no. of agencies of a courier company. 6. Report on different transactions: This report contains the total no. of transactions.

53

4. 7. TOOLS/PLATFORM,

HARDWARE AND SOFTWARE

REQUIREMENT SPECIFICATIONS:
Tools/Platform used are: FRAMEWORK:- ASP.NET version 2 .0 with C# DATABASE:- SQL Server PLATFORM USED:- Windows XP S/w Requirement specification: .NET framework 2.0 Visual Studio.NET 2005 ASP.NET ADO.NET SQL Server 2005 Visual C#.NET HTML Internet Information Services (IIS) v 5.1 H/w Requirement specification: Pentium 3, 1.5 GHz and above 256 MB DDRAM or more 20 GB HDD Pen Drive 2Gb

Advantages of the .NET Framework


Some advantages of the .NET Framework are: o Consistent programming model o Multi-platform applications o Multi-language integration o Automatic resource management 54

o Ease of deployment

Security
Evidence-based security (authentication) Based on user identity and code identity Configurable policies Imperative and declarative interfaces

SQL SERVER
Microsoft SQL Server is an application used to create computer databases for the Microsoft Windows family of server operating systems. It provides an environment used to generate databases that can be accessed from workstations, the web, or other media such as a personal digital assistant (PDA). Microsoft SQL Server is probably the most accessible and the most documented enterprise database environment right now. This also means that you can learn it a little quicker than most other database environments on the market.

55

4.8 SCHEDULING
Scheduling of a software project does not differ greatly from scheduling of any multi- task engineering effort. Therefore, generalized project scheduling tools and techniques can be applied with little modification to software projects. Program evaluation and review technique (PERT) and critical path method (CPM) are two project scheduling methods that can be applied to software development. Both techniques are driven by information already developed in earlier project planning activities.

Estimates of Effort
A decomposition of the product function. The selection of the appropriate process model and task set. Decomposition of tasks.

Interdependencies among tasks may be defined using a task network. Tasks, sometimes called the project Work Breakdown Structure (WBS) are defined for the product as a whole or for individual functions. Both PERT and CPM provide quantitative tools that allow the software planner to (1) determine the critical path-the chain of tasks that determines the duration of the project; (2) establish "most likely" time estimates for individual tasks by applying statistical models; and (3) calculate "boundary times" that define a time window" for a particular task. Boundary time calculations can be very useful in software project scheduling. Slippage in the design of one function, for example, can retard further development of other functions. It describes important boundary times that may be discerned from a PERT or CPM network: (I) the earliest time that a task can begin when preceding tasks are completed in the shortest possible time, (2) the latest time for task initiation before the minimum project completion time is delayed, (3) the earliest finish-the sum of the earliest start 56

and the task duration, (4) the latest finish- the latest start time added to task duration, and (5) the total float-the amount of surplus time or leeway allowed in scheduling tasks so that the network critical path maintained on schedule. Boundary time calculations lead to a determination of critical path and provide the manager with a quantitative method for evaluating progress as tasks are completed.

Both PERT and CPM have been implemented in a wide variety of automated tools that are available for the personal computer. Such tools are easy to use and take the scheduling methods described previously available to every software project manager.

57

58

5.1 Source code


Default.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2

59

width: 800px; } .style6 { width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 800px; font-weight: bold; } .style15 { color: #FFFFFF; } .style16 { width: 600px; height: 230px; } .style17 { width: 22px; } .style18 { width: 22px; height: 31px; } .style19 { height: 31px;

60

} .style20 { font-size: large; font-weight: bold; font-family: "Times New Roman", Times, serif; color: #333333; } .style22 { font-family: Verdana; font-size: small; color: #333333; } </style> </head> <body> <form id="form1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> < table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left"> &nbsp;&nbsp; Login</td>

61

</tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> rowspan="5" valign="top">

< </td> <td

< table align="center" cellpadding="0" cellspacing="0" class="style16"> <tr> <td class="style18"> </td> <td bgcolor="#FF6600" class="style19">

62

&nbsp;<span class="style20">Welcome to Online Courier, Booking, Distribution and Tracking System&nbsp;</span></td> </tr> <tr> <td class="style17"> &nbsp;</td> <td> <span class="style22"> <br /> Online Courier, Booking, Distribution and Tracking System&nbsp; operates a cost effective collection and delivery service available throughout the India and India&nbsp; mainland. Through our various delivery partners we are able to offer high levels of service backed up by our dedicated customer service team, based at our head office.</span><br /> </td> </tr> <tr> <td class="style17"> &nbsp;</td> <td> <asp:Image ID="Image1" runat="server" ImageUrl="~/Image/courier.bmp" Width="575px" /> </td> </tr> /table>

< </td> </tr> <tr>

63

width="200"> nbsp;</td>

<td & </tr> <tr> <td <

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp;

asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Cikch ere to send a courier</asp:HyperLink>

h </td> </tr> <tr> <td & </tr> <tr> <td <

width="200"> nbsp;</td>

width="200">

table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12">

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/PostCodeAndAddressFinder.aspx" ForeColor="#333333">Postcode and address finder</asp:HyperLink> </td> </tr> <tr>

64

<td> <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/CourierTracking.aspx" ForeColor="#333333">Track your courier here</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Feedback.aspx" ForeColor="#333333">Leave feedback</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td>

65

</tr> </table> </td> </tr> /table> < </td> </tr> <tr> <td width="200"> nbsp;</td> nbsp;</td> <td> & &

</tr> </table> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td bgcolor="#0099FF" class="style15" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reserved</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </form> </body> </html>

66

67

Aboutus.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AboutUs.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2 { width: 800px; } .style6

68

width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 800px; font-weight: bold; } .style15 { color: #FFFFFF; } .style16 { width: 500px; border: 1px solid #EFEFEF; } .style19 { width: 500px; border-color: #E8E8E8; } .style20 { height: 17px; } .style25 { font-size: x-large; font-weight: bold; color: #800000; height: 31px; }

69

</style> </head> <body> <form id="form1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> < table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left"> &nbsp;&nbsp; Login</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;&nbsp;

70

<asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> rowspan="6" valign="top">

< </td> <td

< table align="center" cellpadding="0" cellspacing="0" class="style16"> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr bgcolor="#0099FF"> <td class="style25" colspan="2" bgcolor="#F1AC1D"> &nbsp;&nbsp; About Us</td> </tr>

71

<tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style19"> <tr> <td colspan="2"> <ul> <li>Online Courier, Booking, Distribution and Tracking System&nbsp; operates a cost effective collection and delivery service available throughout the India and India&nbsp; mainland. Through our various delivery partners we are able to offer high levels of service backed up by our dedicated customer service team, based at our head office.<br /> </li> <li>Praveen kumar<br /> A-2, A/82,<br /> Type -II, Telecom Colony<br /> Janakpuri, New Delhi<br /> 110058 <br /> </li> </ul> </td> </tr> <tr> <td> &nbsp;</td> <td>

72

&nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> /table>

< </td> </tr> <tr> <td & </tr> <tr> <td <

width="200"> nbsp;</td>

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp;

asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Cikch ere to send a courier</asp:HyperLink>

h </td> </tr> <tr> <td & </tr> <tr> <td <

width="200"> nbsp;</td>

width="200">

table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11">

73

&nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12"> <table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;<asp:HyperLink ID="HyperLink4" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Postcode and address finder</asp:HyperLink> </tr> <tr> <td> <asp:HyperLink ID="HyperLink5" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track your courier</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink6" runat="server" ForeColor="#333333" NavigateUrl="~/Feedback.aspx">Leave feedback</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> < </td> </tr>

74

<tr> width="200" class="style20"> /td>

<td <

</tr> </table> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td bgcolor="#0099FF" class="style15" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reserved</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </form> </body> </html>

75

Contactus.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ContactUs.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2 { width: 800px; } .style6

76

width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 800px; font-weight: bold; } .style15 { color: #FFFFFF; } .style16 { width: 500px; border: 1px solid #EFEFEF; } .style19 { width: 500px; border-color: #E8E8E8; } .style20 { height: 17px; } .style25 { font-size: x-large; font-weight: bold; color: #800000; height: 31px; }

77

.style26 { color: #FF0000; font-weight: bold; } </style> </head> <body> <form id="form1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> < table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left"> &nbsp;&nbsp; Login</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style9">

78

<tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> rowspan="6" valign="top"> < </td> <td < table align="center" cellpadding="0" cellspacing="0" class="style16"> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr bgcolor="#0099FF"> <td class="style25" colspan="2" bgcolor="#F1AC1D">

79

&nbsp;&nbsp; Contact Us</td> </tr> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style19"> <tr> <td colspan="2"> <p> &nbsp;</p> </td> </tr> <tr> <td colspan="2"> &nbsp;</td> </tr> <tr> <td class="style26"> Balujalabs</td> <td height="150" rowspan="6" valign="top" width="150"> &nbsp;</td> </tr> <tr> <td> A-1/17,III Floor,Janak Puri,</td> </tr> <tr> <td> New Delhi</td>

80

</tr> <tr> <td> Mobile : 9313565406,9212002599</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> </table> </td> </tr> /table> < </td> </tr> <tr> <td width="200"> nbsp;</td> </tr> <tr> <td < &

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp; asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Cikch ere to send a courier</asp:HyperLink> h </td> </tr> <tr> <td width="200">

81

nbsp;</td> </tr> <tr> <td

&

width="200">

table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12">

<

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> <asp:HyperLink ID="HyperLink6" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Post code and address finder</asp:HyperLink> &nbsp;</tr> <tr> <td> <asp:HyperLink ID="HyperLink5" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track your courier</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink4" runat="server" ForeColor="#333333" NavigateUrl="~/Feedback.aspx">Leave feedback</asp:HyperLink> </td> </tr>

82

</table> </td> </tr> /table>

< </td> </tr> <tr> <td <

width="200" class="style20"> /td>

</tr> </table> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td bgcolor="#0099FF" class="style15" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reserved</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </form> </body> </html>

Register.aspx

83

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2 { width: 800px; height: 733px; }

84

.style6 { width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 600px; height: 386px; } .style15 { width: 536px; } .style16 { height: 45px; font-weight: bold; color: #666666; font-size: large; } .style17 { height: 65px; font-weight: bold; font-size: x-large; color: #333333; } .style18 { height: 40px; font-weight: bold; font-size: medium; color: #FFFFFF;

85

} .style21 { text-align: left; font-size: small; font-family: Verdana; font-weight: bold; color: #666666; } .style22 { font-size: small; font-family: Verdana; font-weight: bold; color: #666666; } .style23 { width: 800px; font-weight: bold; } .style24 { color: #FFFFFF; font-size: medium; } .style25 { color: #FF0000; } .style26 { font-size: small; } </style> </head> <body> <form id="form1" defaultfocus ="TextBox1" defaultbutton="Button1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr>

86

<td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left"> &nbsp;&nbsp; Login</td> </tr> <tr> <td>

<tr>

<

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> </tr>

87

</table> </td> </tr> /table> rowspan="13" valign="top">

< </td> <td

< table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style15"> <tr> <td class="style16"> Register for Online cbdt</td> </tr> <tr> <td bgcolor="#F2BB15" class="style17"> Sign up for your Online Courier, Booking, Distribution &amp; Tracking System account</td> </tr> <tr> <td> <table align="center" bgcolor="#EFEFEF" cellpadding="0" cellspacing="0" class="style15"> <tr> <td bgcolor="#0099FF" class="style18" colspan="2"> Please Enter Your Details Below</td> </tr>

88

<tr> <td> &nbsp;</td> <td style="text-align: right"> <span class="style25">*</span><span class="style26">Mandatory Fields</span></td> </tr> <tr> <td class="style22"> Email :<span class="style25">*</span>&nbsp; </td> <td> <asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" Display="None" ErrorMessage="Invalid Email Id" SetFocusOnError="True">*</asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" Display="None" ErrorMessage="Invalid Email Id" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+ ([-.]\w+)*">*</asp:RegularExpressionValidator> </td> </tr> <tr> <td class="style22"> Password :<span class="style25">*</span></td> <td>

89

<asp:TextBox ID="TextBox8" runat="server" Width="150px" TextMode="Password"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox8" Display="None" ErrorMessage="Invalid Password" SetFocusOnError="True">*</asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox8" Display="None" ErrorMessage="Password should be 6-12 characters" ValidationExpression="\S{6,12}">*</asp:RegularExpressionValidator> </td> </tr> <tr> <td class="style22"> Confirm Password :<span class="style25">*</span></td> <td style="text-align: left"> <asp:TextBox ID="TextBox3" runat="server" Width="150px" TextMode="Password"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBox3" Display="None" ErrorMessage="Password does not match" SetFocusOnError="True">*</asp:RequiredFieldValidator> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox8" ControlToValidate="TextBox3" Display="None" ErrorMessage="Password does not match" SetFocusOnError="True">*</asp:CompareValidator> </td> </tr> <tr>

90

<td class="style21"> Contact Name :<span class="style25">*</span></td> <td> <asp:TextBox ID="TextBox4" runat="server" Width="150px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox4" Display="None" ErrorMessage="Enter Contact Name" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style21"> Telephone/Mob No.</span><span class="style25">*</span></td> <td> <asp:TextBox ID="TextBox5" runat="server" Width="150px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox5" Display="None" ErrorMessage="Enter Telephone/Mob No." SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style21"> Security Question :<span class="style25">*</span></td> <td> <asp:TextBox ID="TextBox6" runat="server" Width="150px"></asp:TextBox>

91

<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox6" Display="None" ErrorMessage="Enter Security Question" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style21"> Security Answer :<span class="style25">*</span></td> <td> <asp:TextBox ID="TextBox7" runat="server" Width="150px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox7" Display="None" ErrorMessage="Enter Security Answer" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td> <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List" ShowMessageBox="True" ShowSummary="False" /> </td> <td> <asp:Label ID="Label1" runat="server" Font-Bold="True" FontSize="Small" ForeColor="#000099"></asp:Label> </td> </tr>

92

<tr> <td> &nbsp;</td> <td> <asp:Button ID="Button1" runat="server" Font-Bold="True" ForeColor="#666666" Text="Create User" onclick="Button1_Click" /> </td> </tr> </table> </td> </tr> </table> </td> </tr> /table>

< </td> </tr> <tr> <td & </tr> <tr> <td <

width="200"> nbsp;</td>

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp;

asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Cikch ere to send a courier</asp:HyperLink>

h </td> </tr> <tr> <td & </tr> <tr>

width="200"> nbsp;</td>

93

width="200">

<td <

table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12">

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> <asp:HyperLink ID="HyperLink4" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Post code and address finder</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink5" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track your courier</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink6" runat="server" ForeColor="#333333" NavigateUrl="~/Feedback.aspx">Leave feedback</asp:HyperLink> </td> </tr>

94

</table> </td> </tr> /table>

< </td> </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> </table> </td> </tr> <tr>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

95

<td> <td>

&nbsp;</td>

&nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style23"> <tr> <td bgcolor="#0099FF" class="style24" height="10" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reserved</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </form> </body> </html> using using using using using using using using using using using using

Administrativeregister.aspx.cs

System; System.Configuration; System.Data; System.Data.SqlClient ; System.Linq; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.HtmlControls; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Xml.Linq;

public partial class _Default : System.Web.UI.Page { SqlConnection con;

96

protected void Page_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.AppSettings["mycon"]); } protected void Button1_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("Insert into UserRegistration values(@Email,@Password,@ContactName,@ContactNo,@SecurityQuestion,@Se curityAnswer)", con); SqlParameter pa1 = new SqlParameter("@Email", DbType.String); pa1.Value = TextBox1.Text; cmd.Parameters.Add(pa1); SqlParameter pa2 = new SqlParameter("@Password", DbType.String); pa2.Value = TextBox8.Text; cmd.Parameters.Add(pa2); SqlParameter pa3 = new SqlParameter("@ContactName", DbType.String); pa3.Value = TextBox4.Text; cmd.Parameters.Add(pa3); SqlParameter pa4 = new SqlParameter("@ContactNo", DbType.String); pa4.Value = TextBox5.Text; cmd.Parameters.Add(pa4); SqlParameter pa5 = new SqlParameter("@SecurityQuestion", DbType.String); pa5.Value = TextBox6.Text; cmd.Parameters.Add(pa5); SqlParameter pa6 = new SqlParameter("@SecurityAnswer", DbType.String); pa6.Value = TextBox7.Text; cmd.Parameters.Add(pa6); con.Open(); try { cmd.ExecuteNonQuery(); con.Close(); Label1.Text = "You are successfully registered!"; TextBox1.Text = ""; TextBox3.Text = ""; TextBox4.Text = ""; TextBox5.Text = ""; TextBox6.Text = ""; TextBox7.Text = ""; TextBox8.Text = ""; } catch (Exception ex) { Response.Write(ex.Message); } } }

97

Adminlogin.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminLogin.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2 { width: 800px; } .style6

98

width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 800px; font-weight: bold; } .style15 { color: #FFFFFF; } .style16 { width: 509px; border: 1px solid #EFEFEF; height: 212px; } .style20 { height: 17px; } .style19 { width: 311px; border-color: #E8E8E8; } .style21 { font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; color: #666666;

99

} .style23 { font-family: Arial, Helvetica, sans-serif; font-size: small; } .style25 { color: #333333; font-weight: bold; font-size: x-large; } .style26 { height: 199px; } </style> </head> <body> <form id="form1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> < table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left">

100

&nbsp;&nbsp; Login</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> rowspan="7" valign="top">

< </td> <td <

table align="center" cellpadding="0" cellspacing="0" class="style16" bgcolor="#FF6600"> <tr> <td class="style25">

101

&nbsp;&nbsp; Administration Login</td> </tr> <tr> <td class="style26"> <asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="1" BackColor="#F7F6F3" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" Height="187px" style="textalign: right" Width="534px"> <StepStyle BorderWidth="0px" ForeColor="#5D7B9D" /> <WizardSteps> <asp:WizardStep runat="server" title="Head Office Login"> <table align="center" cellpadding="0" cellspacing="0" class="style19"> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style21" style="text-align: right"> Admin Id:&nbsp;&nbsp; </td> <td> <asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox> </td> </tr>

102

<tr> <td class="style21" style="text-align: right"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td style="text-align: right"> <span class="style21">Password :</span><span class="style23">&nbsp;&nbsp; </span> </td> <td> <asp:TextBox ID="TextBox2" runat="server" TextMode="Password" Width="150px"></asp:TextBox> </td> </tr> <tr> <td style="text-align: right"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> <asp:Button ID="Button3" runat="server" Font-Bold="True" OnClick="Button3_Click" Text="Login" Width="75px" /> </td>

103

</tr> <tr> <td> &nbsp;</td> <td> <asp:Label ID="Label1" runat="server" Font-Bold="True" FontSize="Small" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </asp:WizardStep> <asp:WizardStep runat="server" title="Branch Login"> <table align="center" cellpadding="0" cellspacing="0" class="style19"> <tr> <td>

104

&nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style21" style="text-align: right"> Branch Id :&nbsp;&nbsp; </td> <td> <asp:TextBox ID="TextBox3" runat="server" Width="150px"></asp:TextBox> </td> </tr> <tr> <td class="style21" style="text-align: right"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td style="text-align: right"> <span class="style21">Password :</span><span class="style23">&nbsp;&nbsp; </span> </td> <td> <asp:TextBox ID="TextBox4" runat="server" TextMode="Password" Width="150px"></asp:TextBox> </td> </tr> <tr>

105

<td style="text-align: right"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> <asp:Button ID="Button2" runat="server" Font-Bold="True" OnClick="Button2_Click" style="margin-left: 0px" Text="Login" Width="85px" /> </td> </tr> <tr> <td> &nbsp;</td> <td> <asp:Label ID="Label2" runat="server" Font-Bold="True" FontSize="Small" ForeColor="Red"></asp:Label> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr>

106

<tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </asp:WizardStep> </WizardSteps> <SideBarButtonStyle BorderWidth="0px" Font-Names="Verdana" ForeColor="White" /> <NavigationButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" FontSize="0.8em" ForeColor="#284775" /> <SideBarStyle BackColor="#7C6F57" BorderWidth="0px" Font-Size="0.9em" VerticalAlign="Top" /> <HeaderStyle BackColor="#5D7B9D" BorderStyle="Solid" Font-Bold="True" Font-Size="0.9em" ForeColor="White" HorizontalAlign="Left" /> </asp:Wizard> </td> </tr> /table> < </td> </tr> <tr> <td width="200"> nbsp;</td> </tr> <tr> <td < &

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp; asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True"

107

Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Cikch ere to send a courier</asp:HyperLink> h </td> </tr> <tr> <td width="200"> nbsp;</td> </tr> <tr> <td < &

width="200"> table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12">

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> <asp:HyperLink ID="HyperLink6" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Postcode and address finder</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink5" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track your courier</asp:HyperLink> </td> </tr>

108

<tr> <td> <asp:HyperLink ID="HyperLink4" runat="server" ForeColor="#333333" NavigateUrl="~/Feedback.aspx">Leave feedback</asp:HyperLink> </td> </tr> </table> </td> </tr> /table>

< </td> </tr> <tr> <td < </tr> <tr> <td &

width="200" class="style20"> /td>

width="200" class="style20"> nbsp;</td>

</tr> </table> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td bgcolor="#0099FF" class="style15" style="text-align: center">

109

CBDT All Rights Reserved</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </form> </body> </html>

Copyrights 2010 Online

110

Adminwelcome.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdminWelcome.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2 { width: 800px; } .style6

111

width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 800px; font-weight: bold; } .style15 { color: #FFFFFF; } .style16 { width: 600px; } .style17 { font-size: x-large; font-weight: bold; color: #333333; } .style18 { height: 39px; } .style19 { height: 39px; } .style20 { width: 543px;

112

} .style21 { width: 39px; } </style> </head> <body> <form id="form1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> < table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left"> &nbsp;&nbsp; Login</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style9">

113

<tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;</td> </tr> </table> </td> </tr> /table>

<

</td> <td> < table align="center" cellpadding="0" cellspacing="0" class="style16"> <tr> <td class="style18"> </td> <td bgcolor="#FF6600" class="style19" colspan="2" style="color: #FF6600">

114

<span class="style17">&nbsp;Welcome Admin</span>&nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td class="style20"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td class="style20"> <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/Courier.aspx" Font-Bold="True">Click here for fill courier table</asp:HyperLink> </td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td class="style20"> <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/Agent.aspx" Font-Bold="True">Click here for fill agent table</asp:HyperLink> </td>

115

<td> &nbsp;</td> </tr> /table>

< </td> </tr> <tr> <td <

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp;

asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Click ere for send a courier</asp:HyperLink> rowspan="4" valign="top">

h </td> <td

< table align="center" cellpadding="0" cellspacing="0" class="style16"> <tr> <td class="style21"> &nbsp;</td> p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:HyperLink ID="HyperLink7" runat="server" Font-Bold="True" NavigateUrl="~/CourierOrderDetails.aspx">Click here for Courier Order Details</asp:HyperLink> </td> </tr> <tr> <td class="style21"> &nbsp;</td> <td> <asp:HyperLink ID="HyperLink10" runat="server" Font-Bold="True" NavigateUrl="~/Delivery.aspx">Click here for submit delivery Information</asp:HyperLink>

&nbsp;&nbsp;&nbsp;&nbs

116

</td> </tr> <tr> <td class="style21"> &nbsp;</td> <td> <asp:HyperLink ID="HyperLink11" runat="server" Font-Bold="True" NavigateUrl="~/CourierDeliveryReport.aspx">Click here for Courier Delivery Report</asp:HyperLink> </td> </tr> <tr> <td class="style21"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style21"> &nbsp;</td> <td> &nbsp;</td> </tr> /table> < </td> </tr> <tr> <td class="style22"> nbsp;</td> </tr> <tr> &

117

class="style22"> nbsp;</td>

<td & </tr> <tr> <td <

class="style22">

table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12">

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp; <asp:HyperLink ID="HyperLink9" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Post code and address finder</asp:HyperLink> &nbsp;</td> </tr> <tr> <td> &nbsp; <asp:HyperLink ID="HyperLink8" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track here your courier here</asp:HyperLink> </td> </tr> <tr> <td>

118

&nbsp; <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Feedback.aspx" ForeColor="#333333">Leave feedback</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> < </td> </tr> <tr> <td class="style22"> nbsp;</td> nbsp;</td> </tr> <tr> <td & <td> nbsp;</td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> & <td> & &

class="style22"> nbsp;</td>

119

<td> cellspacing="0" class="style14">

<table align="center" cellpadding="0" <tr>

<td bgcolor="#0099FF" class="style15" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reservedine CBDT All Rights Reserved </form> </body> </html>

120

Packagingsupplies.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PackagingSupplies.aspx.cs" Inherits="PackagingSupplies" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking, Distribution and Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-style: solid; border-width: 1px; } .style2 { width: 803px; } .style6 { width: 800px; border-style: solid; border-width: 1px; }

121

.style8 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style12 { height: 20px; } .style13 { width: 286px; color: #333300; height: 38px; } .style14 { font-size: large; font-weight: bold; } .style15 { width: 295px; } .style16 { color: #333333; font-weight: bold; } .style17 { font-size: small; color: #333333; } .style18 { height: 20px; font-weight: bold; color: #333333; } .style19 { width: 200px; height: 32px; } .style20 { width: 200px; height: 18px; } .style21 { height: 18px; } .style22 { width: 793px; font-weight: normal;

122

color: #FFFFFF; } .style23 { height: 18px; width: 336px; } .style24 { width: 336px; } .style25 { width: 200px; height: 4px; } .style26 { width: 281px; } .style27 { width: 290px; float: left; } .style28 { font-size: small; } .style29 { font-weight: bold; background-color: #FFFFFF; } </style> </head> <body> <form id="form1" runat="server"> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td bgcolor="#0099FF" class="style20">

123

<span class="style10">&nbsp;Login</span>&nbsp;</td> <td class="style21"> <table bgcolor="#FF6600" cellpadding="0" cellspacing="1" class="style13"> <tr> <td> <span class="style14">&nbsp;Bubble Wrap</span>&nbsp;</td> </tr> </table> </td> <td class="style23"> <table bgcolor="#FF6600" cellpadding="0" cellspacing="1" class="style13"> <tr> <td> <span class="style14">&nbsp;Packing Tape</span>&nbsp;</td> </tr> </table> </td> </tr> <tr> <td class="style8"> <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#333333" NavigateUrl="~/Login.aspx ">Click here to sign in</asp:HyperLink> </td> <td rowspan="9" valign="top"> <table cellpadding="0" cellspacing="0" class="style15"> <tr> <td class="style16"> &nbsp;Roll of Foam Rubber Protection&nbsp;</td> </tr> <tr> <td> &nbsp;<span class="style16">Rs. 39.99&nbsp;</span></td> </tr> <tr> <td> <asp:Image ID="Image1" runat="server" ImageUrl="~/Image/blackroll.jpg" /> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td class="style17"> &nbsp; - One roll provides protection for up to 10 laptops</td> </tr> <tr> <td class="style17"> &nbsp; - 25mm thick x 4m long x 1m wide</td> </tr> <tr> <td class="style17">

124

&nbsp; - Ideal for protection and packaging of laptops</td> </tr> </table> </td> <td class="style24" rowspan="9" valign="top"> <table cellpadding="0" cellspacing="0" class="style15"> <tr> <td class="style16"> 36x Brown Packing Tape</td> </tr> <tr> <td class="style18"> Rs. 22.99</td> </tr> <tr> <td> <asp:Image ID="Image2" runat="server" ImageUrl="~/Image/parceltape.jpg" /> </td> </tr> <tr> <td class="style17"> &nbsp;&nbsp; -Very strong, split and tear resistant </td> </tr> <tr> <td class="style17"> &nbsp;&nbsp; -66m x 48cm PER ROLL</td> </tr> </table> </td> </tr> <tr> <td class="style8"> <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#333333" NavigateUrl="~/Register.a spx">Click here to Register</asp:HyperLink> </td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td bgcolor="#0099FF" class="style8"> <asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Click here to send a courier</asp:HyperLink> </td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr>

125

class="style19">

<td bgcolor="#0099FF"

<span class="style10">&nbsp;Site Tool</span>&nbsp;</td> </tr> <tr> <td class="style8"> <asp:HyperLink ID="HyperLink4" runat="server" ForeColor="#333333" NavigateUrl="~/OrderPlace Successfully.aspx">Postcode and address finder</asp:HyperLink> </td> </tr> <tr> <td class="style8"> <asp:HyperLink ID="HyperLink5" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTra cking.aspx">Track your courier</asp:HyperLink> </td> </tr> <tr> <td class="style25"> <asp:HyperLink ID="HyperLink6" runat="server" ForeColor="#333333" NavigateUrl="~/Feedback.a spx">Leave Feedback</asp:HyperLink> </td> </tr> <tr> <td class="style8"> &nbsp;</td> <td rowspan="25" valign="top"> <table align="left" cellpadding="0" cellspacing="0" class="style26"> <tr> <td class="style16"> &nbsp;Roll of Bubble wrap&nbsp;</td> </tr> <tr> <td class="style16"> &nbsp;Rs. 10.99&nbsp;</td> </tr> <tr> <td> &nbsp;<asp:Image ID="Image3" runat="server" ImageUrl="~/Image/bubblewrap.jpg" /> &nbsp;</td> </tr> <tr> <td class="style17"> -Air-filled bubbles cushion for fragile products&nbsp;</td> </tr> <tr> <td class="style17"> -Length 100m x 300 mm wide</td> </tr> <tr> <td class="style17">

126

will be despatched Thursday</td> </tr> <tr> <td>

-Note: Orders

&nbsp;</td> </tr> <tr> <td class="style16"> 25 x&nbsp; Bubble Bags</td> </tr> <tr> <td class="style16"> Rs. 10.99</td> </tr> <tr> <td> <asp:Image ID="Image5" runat="server" ImageUrl="~/Image/bubblez.jpg" /> </td> </tr> <tr> <td class="style28"> -Bubble cushion bags for fragile products </td> </tr> <tr> <td class="style28"> -350mm x 250mm per roll</td> </tr> <tr> <td class="style28"> -Please note these bags are clear</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> </table> </td> <td class="style24" rowspan="25" valign="top"> <table cellpadding="0" cellspacing="0" class="style27"> <tr> <td class="style16"> &nbsp;36 x Fragile Packing Tape&nbsp;</td> </tr> <tr> <td class="style16">

127

sp;</td> </tr> <tr> <td>

&nbsp;Rs.29.99&nb

<asp:Image ID="Image4" runat="server" ImageUrl="~/Image/fragile.jpg" /> </td> </tr> <tr> <td class="style28"> -Very strong, split and tear resistant </td> </tr> <tr> <td class="style28"> -66m x 48cm PER ROLL</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td class="style29"> 36 x Clear Packing Tape</td> </tr> <tr> <td class="style29"> &nbsp;Rs. 29.99&nbsp;</td> </tr> <tr> <td> <asp:Image ID="Image6" runat="server" ImageUrl="~/Image/cleartape.jpg" /> </td> </tr> <tr> <td class="style28"> -Very strong, split and tear resistant </td> </tr> <tr> <td class="style28"> -66m x 48cm PER ROLL</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr>

128

<tr>

<td> &nbsp;</td>

</tr> <tr> <td> </tr> <tr> <td>

&nbsp;</td>

&nbsp;</td> </tr> </table> </td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr>

129

<tr>

<td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> <td> &nbsp;</td> <td class="style24"> &nbsp;</td> </tr> <tr> <td class="style8"> &nbsp;</td> <td> &nbsp;</td> <td class="style24"> &nbsp;</td>

130

</tr> <tr> <td class="style8"> &nbsp;</td> <td> &nbsp;</td> <td class="style24"> &nbsp;</td> </tr> <tr> <td class="style12" colspan="3"> <table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td bgcolor="#0099FF" class="style22" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reserved</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </form> </body> </html>

131

Login2.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login2.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2 { width: 800px; } .style6

132

width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 800px; font-weight: bold; } .style15 { color: #FFFFFF; } .style16 { width: 500px; border: 1px solid #EFEFEF; } .style17 { font-size: medium; font-weight: bold; color: #FFFFFF; height: 31px; } .style18 { font-family: Arial, Helvetica, sans-serif; } .style19 { width: 500px; border-color: #E8E8E8; }

133

.style20 { height: 17px; } .style21 { font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; color: #666666; } .style23 { font-family: Arial, Helvetica, sans-serif; font-size: small; } </style> </head> <body> <form id="form1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> < table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left">

134

&nbsp;&nbsp; Login</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> rowspan="6" valign="top">

< </td> <td

< table align="center" cellpadding="0" cellspacing="0" class="style16"> <tr bgcolor="#0099FF"> <td class="style17"> &nbsp;&nbsp; <span class="style18">Login</span></td> </tr>

135

<tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style19"> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style21" style="text-align: right"> Email Address :&nbsp;&nbsp; </td> <td> <asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox> </td> </tr> <tr> <td class="style21" style="text-align: right"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td style="text-align: right"> <span class="style21">Password :</span><span class="style23">&nbsp;&nbsp; </span> </td>

136

<td> <asp:TextBox ID="TextBox2" runat="server" Width="150px" TextMode="Password"></asp:TextBox> </td> </tr> <tr> <td style="text-align: right"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> <asp:Button ID="Button1" runat="server" Font-Bold="True" ForeColor="#666666" Text="Login" Width="97px" onclick="Button1_Click" /> </td> </tr> <tr> <td> &nbsp;</td> <td> <asp:Label ID="Label1" runat="server" Font-Bold="True" FontSize="Small" ForeColor="Red"></asp:Label> </td> </tr> <tr>

137

<td> &nbsp;</td> <td> <asp:HyperLink ID="HyperLink4" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Small" ForeColor="Gray" NavigateUrl="~/Register.aspx">New User Signup</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;</td> <td> <asp:HyperLink ID="HyperLink5" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Small" ForeColor="Gray" NavigateUrl="~/ForgetPassword.aspx">Forget Password</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> < </td> </tr> <tr> <td width="200"> nbsp;</td> </tr> <tr> <td < &

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp; asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True"

138

Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Cikch ere to send a courier</asp:HyperLink> h </td> </tr> <tr> <td width="200"> nbsp;</td> </tr> <tr> <td < &

width="200"> table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12">

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> <asp:HyperLink ID="HyperLink6" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Postcode and address finder</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink7" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track your courier</asp:HyperLink> </td> </tr>

139

<tr> <td> <asp:HyperLink ID="HyperLink8" runat="server" ForeColor="#333333" NavigateUrl="~/Feedback.aspx">Leave feedback</asp:HyperLink> </td> </tr> </table> </td> </tr> /table>

< </td> </tr> <tr> <td <

width="200" class="style20"> /td>

</tr> </table> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td bgcolor="#0099FF" class="style15" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reserved</td> </tr> </table> </td> </tr> </table>

140

</td> </tr> </table> </div> </form> </body> </html>

Adminlogin2.cs
using using using using using using using using using using using using System; System.Configuration; System.Data; System.Data.SqlClient ; System.Linq; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.HtmlControls; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Xml.Linq;

public partial class _Default : System.Web.UI.Page { SqlConnection con; protected void Page_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.AppSettings["mycon"]); } protected void Button1_Click(object sender, EventArgs e) { SqlDataAdapter da = new SqlDataAdapter("Select * from UserRegistration where Email='" + TextBox1.Text + "' and Password='" + TextBox2.Text + "'", con); DataSet ds = new DataSet(); da.Fill(ds); if (ds.Tables[0].Rows.Count == 0) { Label1.Text = "Invalid email id & password!"; } else { } } }

Session["Login"] = "Yes"; Response.Redirect("Send_a_Parcel.aspx");

141

Send_a_parcel.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Send_a_Parcel.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2 { width: 800px; } .style6

142

width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 800px; font-weight: bold; } .style15 { color: #FFFFFF; } .style16 { width: 600px; } .style17 { height: 19px; } .style21 { height: 44px; font-weight: bold; font-size: x-large; font-family: Arial; } .style22 { color: #666666; } .style23 {

143

height: 29px; } .style24 { font-size: large; color: #FFFFFF; font-family: Arial; } .style25 { height: 30px; font-weight: bold; font-size: large; font-family: Arial; color: #FFFFFF; } .style26 { color: #666666; font-weight: bold; text-align: right; width: 232px; } .style28 { height: 19px; width: 232px; font-weight: bold; text-align: right; color: #666666; } .style29 { font-weight: normal; } .style30 { height: 30px; font-size: large; font-family: Arial; color: #FFFFFF; } .style31 { height: 44px; font-weight: bold; font-size: x-large; font-family: Arial; width: 23px; } .style32 { width: 23px; } .style33 { height: 30px; font-weight: bold; font-size: large; font-family: Arial; color: #FFFFFF; width: 23px; }

144

.style34 { color: #666666; font-weight: bold; text-align: right; width: 23px; } .style35 { height: 29px; width: 23px; } .style36 { height: 30px; font-size: large; font-family: Arial; color: #FFFFFF; width: 23px; } .style37 { height: 19px; width: 23px; font-weight: bold; text-align: right; color: #666666; } .style38 { color: #FF0000; } .style39 { font-size: small; } </style> </head> <body> <form id="form1" defaultfocus ="TextBox1" defaultbutton ="Button1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" />

145

</td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left"> &nbsp;&nbsp; Login</td> </tr> <tr> <td>

<

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> </tr> </table>

146

</td> </tr> /table> rowspan="21" valign="top" colspan="4"> table align="center" cellpadding="0" cellspacing="0" class="style16" bgcolor="White"> <tr> <td bgcolor="White" class="style31"> &nbsp;</td> <td bgcolor="#FF6600" class="style21" colspan="2"> &nbsp; <span class="style22">Place My Order</span></td> </tr> <tr> <td class="style32"> &nbsp;</td> <td colspan="2"> &nbsp;&nbsp;</td> </tr> <tr> <td bgcolor="White" class="style33"> &nbsp;</td> <td bgcolor="#0099FF" class="style25" colspan="2"> &nbsp; <span class="style29">My Details</span></td> </tr> <tr> <td class="style32"> &nbsp;</td> <td colspan="2" style="text-align: right"> < </td> <td <

147

<span class="style38">*</span><span class="style39">Mandatory fields</span></td> </tr> <tr> <td class="style34"> &nbsp;</td> <td class="style26"> Your Name :<span class="style38">*</span></td> <td> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" Display="None" ErrorMessage="Enter Your Name">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style34"> &nbsp;</td> <td class="style26"> Your Courier ID :<span class="style38">*</span></td> <td> <asp:TextBox ID="TextBox2" runat="server" ReadOnly="True"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" Display="None" ErrorMessage="nter Your eBay id">*</asp:RequiredFieldValidator> </td> </tr> <tr>

148

<td class="style34"> &nbsp;</td> <td class="style26"> Your Email Address :<span class="style38">*</span></td> <td> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox3" Display="None" ErrorMessage="Enter Your email id">*</asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox3" Display="None" ErrorMessage="Invalid email id" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+ ([-.]\w+)*">*</asp:RegularExpressionValidator> </td> </tr> <tr> <td class="style32"> &nbsp;</td> <td colspan="2"> &nbsp;</td> </tr> <tr> <td bgcolor="White" class="style35"> &nbsp;</td> <td bgcolor="#0099FF" class="style23" colspan="2"> &nbsp; <span class="style24">Collection/Destination</span></td> </tr> <tr>

149

<td class="style32"> &nbsp;</td> <td colspan="2"> &nbsp;</td> </tr> <tr> <td class="style34"> &nbsp;</td> <td class="style26"> Origin :<span class="style38">*</span></td> <td> <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox4" Display="None" ErrorMessage="Enter the orgin">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style34"> &nbsp;</td> <td class="style26"> Destination :<span class="style38">*</span></td> <td> <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox5" Display="None" ErrorMessage="Enter the destination">*</asp:RequiredFieldValidator> </td>

150

</tr> <tr> <td class="style32"> &nbsp;</td> <td colspan="2"> &nbsp;</td> </tr> <tr> <td bgcolor="White" class="style36"> &nbsp;</td> <td bgcolor="#0099FF" class="style30" colspan="2"> &nbsp; My Parcel Details</td> </tr> <tr> <td class="style32"> &nbsp;</td> <td colspan="2"> &nbsp;</td> </tr> <tr> <td class="style34"> &nbsp;</td> <td class="style26"> Parcel Quantity :<span class="style38">*</span></td> <td> <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"

151

ControlToValidate="TextBox6" Display="None" ErrorMessage="Enter the quantity">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style37"> &nbsp;</td> <td class="style28"> Weight :<span class="style38">*</span></td> <td class="style17"> <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox7" Display="None" ErrorMessage="Enter the weight">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style34"> &nbsp;</td> <td class="style26"> Length :<span class="style38">*</span></td> <td> <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBox8" Display="None" ErrorMessage="Enter the length">*</asp:RequiredFieldValidator> </td> </tr> <tr>

152

<td class="style34"> &nbsp;</td> <td class="style26"> Width :<span class="style38">*</span></td> <td> <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TextBox9" Display="None" ErrorMessage="Enter the width">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style34"> &nbsp;</td> <td class="style26"> Height :<span class="style38">*</span></td> <td> <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="TextBox10" Display="None" ErrorMessage="Enter the height">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style34"> &nbsp;</td> <td class="style26"> My measurements are given in :<span class="style38">*</span></td>

153

<td> <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"> <asp:ListItem>cms</asp:ListItem> <asp:ListItem>inches</asp:ListItem> </asp:RadioButtonList> </td> </tr> /table> < </td> </tr> <tr> <td width="200"> nbsp;</td> </tr> <tr> <td & < &

bgcolor="#0099FF" class="style13" width="200"> nbsp;&nbsp; asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Click ere to send a courier</asp:HyperLink>

h </td> </tr> <tr> <td & </tr> <tr> <td <

width="200"> nbsp;</td>

width="200">

table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr>

154

<tr> <td class="style12"> <table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> <asp:HyperLink ID="HyperLink6" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Postcode and address finder</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink5" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track my courier</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Feedback.aspx" ForeColor="#333333">Leave feedback</asp:HyperLink> </td> </tr> </table> </td> </tr> /table>

< </td> </tr> <tr>

155

width="200"> nbsp;</td>

<td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200">

156

nbsp;</td> </tr> <tr> <td

&

width="200"> nbsp;</td>

& </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & <td & </tr> <tr> <td & <td> &

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td> colspan="4"> nbsp;</td>

width="200"> nbsp;</td> nbsp;</td>

<td>

& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp; < asp:Button ID="Button1" runat="server" Font-Bold="True"

157

onclick="Button1_Click" Text="Submit" Width="89px" />

</td> <td> <

asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" /> </td> <td> & </tr> <tr> <td & <td & </tr> </table> </td> </tr> </table>

nbsp;</td>

width="200"> nbsp;</td> colspan="4"> nbsp;</td>

</td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td bgcolor="#0099FF" class="style15" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reservedhts Reserved</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </form> </body> </html>

Send_a_parcel.cs
using System; using System.Configuration;

158

using using using using using using using using using using

System.Data; System.Data.SqlClient ; System.Linq; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.HtmlControls; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Xml.Linq;

public partial class _Default : System.Web.UI.Page { SqlConnection con; protected void Page_Load(object sender, EventArgs e) { if (Session["Login"] != "Yes") { Response.Redirect("Login2.aspx"); } con = new SqlConnection(ConfigurationManager.AppSettings["mycon"]); SqlDataAdapter da = new SqlDataAdapter("Select * from SendParcel", con); DataSet ds = new DataSet(); da.Fill(ds); int id = ds.Tables[0].Rows.Count; id++; TextBox2.Text = id.ToString(); } protected void Button1_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("Insert into SendParcel values(@Name,@Ebay,@Email,@Orgin,@Destination,@Quant,@Weight,@Length, @Width,@Height,@Measurements,@Date,@CourierPickedFromSource)", con); SqlParameter pa1 = new SqlParameter("@Name", DbType.String); pa1.Value = TextBox1.Text; cmd.Parameters.Add(pa1); SqlParameter pa2 = new SqlParameter("@Ebay", DbType.String); pa2.Value = TextBox2.Text; cmd.Parameters.Add(pa2); SqlParameter pa3 = new SqlParameter("@Email", DbType.String); pa3.Value = TextBox3.Text; cmd.Parameters.Add(pa3); SqlParameter pa4 = new SqlParameter("@Orgin", DbType.String); pa4.Value = TextBox4.Text; cmd.Parameters.Add(pa4); SqlParameter pa5 = new SqlParameter("@Destination", DbType.String); pa5.Value = TextBox5.Text; cmd.Parameters.Add(pa5); SqlParameter pa6 = new SqlParameter("@Quant", DbType.Int32); pa6.Value = TextBox6.Text; cmd.Parameters.Add(pa6); SqlParameter pa7 = new SqlParameter("@Weight", DbType.Int32 ); pa7.Value = TextBox7.Text; cmd.Parameters.Add(pa7); SqlParameter pa8 = new SqlParameter("@Length", DbType.Int32 ); pa8.Value = TextBox8.Text;

159

cmd.Parameters.Add(pa8); SqlParameter pa9 = new SqlParameter("@Width", DbType.Int32); pa9.Value = TextBox9.Text; cmd.Parameters.Add(pa9); SqlParameter pa10 = new SqlParameter("@Height", DbType.Int32); pa10.Value = TextBox10.Text; cmd.Parameters.Add(pa10); SqlParameter pa11 = new SqlParameter("@Measurements", DbType.String); pa11.Value = RadioButtonList1.SelectedItem.Text; cmd.Parameters.Add(pa11); SqlParameter pa12 = new SqlParameter("@Date", DbType.String ); pa12.Value = System.DateTime.Now.ToString(); cmd.Parameters.Add(pa12); SqlParameter pa13 = new SqlParameter("@CourierPickedFromSource", DbType.String); pa13.Value = "No"; cmd.Parameters.Add(pa13); con.Open(); cmd.ExecuteNonQuery(); con.Close(); Response.Redirect("OrderPlaceSuccessfully.aspx");

} }

Couriertracking.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CourierTracking.aspx.cs" Inherits="_Default" %>

160

<%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2 { width: 800px; } .style6 { width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14

161

} .style15 { color: #FFFFFF; } .style16 { width: 600px; height: 176px; } .style17 { color: #666666; font-weight: bold; } .style18 { height: 40px; } .style19 { font-size: x-large; font-weight: bold; } .style20 { color: #333333; } .style21 { height: 200px; } .style22 { width: 591px; height: 52px; } </style> </head> <body> <form id="form1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr>

width: 800px; font-weight: bold;

162

<td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left"> &nbsp;&nbsp; Login</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> <

163

</tr> </table> </td> </tr> /table> rowspan="5" valign="top"> < </td> <td < table align="center" cellpadding="0" cellspacing="0" class="style16"> <tr> <td bgcolor="#FF6600" class="style18" colspan="2"> <span class="style19">&nbsp;<span class="style20">Courier Tracking</span></span>&nbsp;</td> </tr> <tr> <td colspan="2"> &nbsp;</td> </tr> <tr> <td colspan="2"> <p class="style17"> If you know your Courier Id, please enter the Courier Id below depending on the Courier that picked up your Parcel. If you are unsure of the Courier then please see your Email Confirmation.</p> </td> </tr> <tr> <td style="text-align: right"> &nbsp;</td> <td>

164

&nbsp;</td> </tr> <tr> <td style="text-align: right"> <span class="style17">Enter Courier Id:</span>&nbsp;&nbsp; </td> <td> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> <asp:Button ID="Button1" runat="server" Font-Bold="True" ForeColor="#666666" onclick="Button1_Click" Text="Submit" /> </td> </tr> <tr> <td colspan="2" style="text-align: center"> <asp:Label ID="Label1" runat="server" Font-Bold="False" FontSize="Small"

165

ForeColor="Red"></asp:Label> </td> </tr> <tr> <td colspan="2" style="text-align: center"> <table align="center" cellpadding="0" cellspacing="0" class="style22"> <tr> <td> <asp:DataList ID="DataList1" runat="server" ExtractTemplateRows="True"> <ItemTemplate> <table > <tr ><td bgcolor="#ff6600" width="600"> Courier Details</td></tr> <tr> <table > <tr> <td width="250"> Courier Id</td><td width="450">: %#Eval("CourierId") %></td> </tr> <tr> <td width="250"> %></td> </tr> <tr> <td width="250"> Destination </td><td width="450">: < %#Eval("Destination") %></td> </tr> <tr> <td width="250"> Branch Id </td><td width="450">: < %#Eval("BranchId") %></td> Source </td><td width="450">: <%#Eval("Source") <

166

</tr> <tr> <td width="250"> Branch Name </td><td width="450">: < %#Eval("BranchName") %></td> </tr> <tr> <td width="250"> Branch Contact No. </td><td width="450">: < %#Eval("BranchContactNo") %></td> </tr> <tr> <td width="250"> Branch Address </td><td width="450">: < %#Eval("BranchAddress") %></td> </tr> <tr> <td width="250"> </tr> <tr> <td width="250"> Delivery Status </td><td width="450">: < %#Eval("Status") %></td> </tr> </table> </tr> </table> Date </td><td width="450">: <%#Eval("Date") %></td>

</ItemTemplate> </asp:DataList> </td> </tr> </table> </td> </tr>

167

/table>

< </td> </tr> <tr> <td

width="200"> nbsp;</td> </tr> <tr> <td

&

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp; asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Cikch ere to send a courier</asp:HyperLink> h </td> </tr> <tr> <td width="200"> nbsp;</td> </tr> <tr> <td < & <

width="200" class="style21"> table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12">

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> <asp:HyperLink ID="HyperLink5" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Postcode and address finder</asp:HyperLink> </td>

168

</tr> <tr> <td> <asp:HyperLink ID="HyperLink6" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track your courier</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Feedback.aspx" ForeColor="#333333">Leave feedback</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr>

169

<td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> </tr> </table> </td> </tr> /table> < </td> </tr> <tr>

170

width="200"> nbsp;</td>

<td & <td> &

nbsp;</td>

</tr> </table> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td bgcolor="#0099FF" class="style15" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reserved </table> </td> </tr> </table> </td> </tr> </table> </div> </form> </body> </html>

Courirer tracking.aspx.cs
using using using using using using using using using using using using

System; System.Configuration; System.Data; System.Data.SqlClient ; System.Linq; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.HtmlControls; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Xml.Linq;

171

public partial class _Default : System.Web.UI.Page { SqlConnection con; protected void Page_Load(object sender, EventArgs e) { if (Session["Login"] != "Yes") { Response.Redirect("Login1.aspx"); } con = new SqlConnection(ConfigurationManager.AppSettings["mycon"]); } protected void Button1_Click(object sender, EventArgs e) { SqlDataAdapter da = new SqlDataAdapter("Select top 1 * from CourierTable where CourierId='"+TextBox1 .Text +"' order by Date desc", con); DataSet ds = new DataSet(); da.Fill(ds); if (ds.Tables[0].Rows.Count != 0) { DataList1.ExtractTemplateRows = false; DataList1.DataSource = ds; DataList1.DataBind(); } else { Label1.Text = "Sorry there are currently no details available for this courier"; } } }

172

Help.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Help.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2 { width: 800px; } .style6 {

173

width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 800px; font-weight: bold; } .style15 { color: #FFFFFF; } .style16 { width: 500px; border: 1px solid #EFEFEF; } .style19 { width: 500px; border-color: #E8E8E8; } .style20 { height: 17px; } .style25 { font-size: x-large; font-weight: bold; color: #800000; height: 31px; } .style26

174

</head> <body> <form id="form1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> < table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left"> &nbsp;&nbsp; Login</td> </tr> <tr> <td>

list-style-type: square; } .style27 { color: #626262; font-weight: bold; } </style>

175

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> rowspan="6" valign="top">

< </td> <td

< table align="center" cellpadding="0" cellspacing="0" class="style16"> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr bgcolor="#0099FF">

176

<td class="style25" colspan="2" bgcolor="#F1AC1D"> &nbsp;&nbsp;Help</td> </tr> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style19"> <tr> <td> &nbsp;</td> </tr> <tr> <td> <ul class="style26"> <li class="style27"> <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/How_It_Works.aspx">How does Online- CBDT work?</asp:HyperLink> </li> <li class="style27"> <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/Report_Failed_Collection.aspx">What happend if driver doesn&#39;t collect my parcel?</asp:HyperLink> </li> <li class="style27"> <asp:HyperLink ID="HyperLink7" runat="server" NavigateUrl="~/ContactUs.aspx">How can I contact Online-CBDT?</asp:HyperLink> </li>

177

<li class="style27"> <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl="~/Claim.aspx">What happen if a parcel is lost or damaged during delivery? </asp:HyperLink> </li> <li class="style27"> <asp:HyperLink ID="HyperLink9" runat="server" NavigateUrl="~/Tips_on_Making_Claim.aspx">Tips on making a claim? </asp:HyperLink> </li> </ul> </td> </tr> </table> </td> </tr> /table>

< </td> </tr> <tr> <td & </tr> <tr> <td <

width="200"> nbsp;</td>

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp;

asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Cikch ere to send a courier</asp:HyperLink>

h </td> </tr> <tr> <td &

width="200"> nbsp;</td>

178

width="200">

</tr> <tr> <td <

table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12">

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> <asp:HyperLink ID="HyperLink10" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Postcode and address finder </asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink11" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track your courier</asp:HyperLink> </td> </tr> </table> </td> </tr> /table>

< </td> </tr>

179

<tr> width="200" class="style20">

<td <

asp:HyperLink ID="HyperLink12" runat="server" ForeColor="#333333" NavigateUrl="~/Feedback.aspx">Leave feedback</asp:HyperLink> /td> < </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td bgcolor="#0099FF" class="style15" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reserved</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </form> </body> </html>

180

News.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="News.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2 { width: 800px; } .style6

181

width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 800px; font-weight: bold; } .style15 { color: #FFFFFF; } .style16 { width: 500px; border: 1px solid #EFEFEF; } .style19 { width: 500px; border-color: #E8E8E8; } .style20 { height: 17px; } .style25 { font-size: x-large; font-weight: bold; color: #800000; height: 31px; }

182

.style26 { list-style-type: square; } .style27 { color: #626262; font-weight: bold; } </style> </head> <body> <form id="form1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> < table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left"> &nbsp;&nbsp; Login</td> </tr> <tr>

183

<td> <table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> rowspan="6" valign="top"> < </td> <td < table align="center" cellpadding="0" cellspacing="0" class="style16"> <tr bgcolor="#0099FF"> <td class="style25" bgcolor="#F1AC1D"> &nbsp;&nbsp;News</td> </tr> <tr> <td>

184

<table align="center" cellpadding="0" cellspacing="0" class="style19"> <tr> <td> &nbsp;</td> </tr> <tr> <td> <ul class="style26"> <li class="style27"> <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/News1.aspx">Councillors plan meeting over harrow post office</asp:HyperLink> </li> <li class="style27"> <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/News2.aspx">Investigation expose Royal Mail failure</asp:HyperLink> </li> <li class="style27"> </li> <li class="style27"> </li> <li class="style27"> </li> </ul> </td> </tr> </table> </td>

185

</tr> /table>

< </td> </tr> <tr> <td & </tr> <tr> <td <

width="200"> nbsp;</td>

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp;

asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Cikch ere to send a courier</asp:HyperLink>

h </td> </tr> <tr> <td & </tr> <tr> <td <

width="200"> nbsp;</td>

width="200">

table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12">

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> <asp:HyperLink ID="HyperLink6" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Postcode and address finder</asp:HyperLink>

186

</td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink7" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track your courier</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> < </td> </tr> <tr> <td width="200" class="style20"> asp:HyperLink ID="HyperLink8" runat="server" ForeColor="#333333" NavigateUrl="~/Feedback.aspx">Leave feedback</asp:HyperLink> /td> < </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style14"> <

187

<td bgcolor="#0099FF" class="style15" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reserved</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </form> </body> </html>

<tr>

188

Login.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; } .style2 { width: 800px; } .style6 {

189

width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 800px; font-weight: bold; } .style15 { color: #FFFFFF; } .style16 { width: 500px; border: 1px solid #EFEFEF; } .style17 { font-size: medium; font-weight: bold; color: #FFFFFF; height: 31px; } .style18 { font-family: Arial, Helvetica, sans-serif; } .style19 { width: 500px; border-color: #E8E8E8; } .style20

190

height: 17px; } .style21 { font-family: Arial, Helvetica, sans-serif; font-size: small; font-weight: bold; color: #666666; } .style23 { font-family: Arial, Helvetica, sans-serif; font-size: small; } </style> </head> <body> <form id="form1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> < table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left"> &nbsp;&nbsp; Login</td>

191

</tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> rowspan="6" valign="top"> < </td> <td < table align="center" cellpadding="0" cellspacing="0" class="style16"> <tr bgcolor="#0099FF"> <td class="style17"> &nbsp;&nbsp; <span class="style18">Login</span></td> </tr>

192

<tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style19"> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td class="style21" style="text-align: right"> Email Address :&nbsp;&nbsp; </td> <td> <asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox> </td> </tr> <tr> <td class="style21" style="text-align: right"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td style="text-align: right"> <span class="style21">Password :</span><span class="style23">&nbsp;&nbsp; </span> </td>

193

<td> <asp:TextBox ID="TextBox2" runat="server" Width="150px" TextMode="Password"></asp:TextBox> </td> </tr> <tr> <td style="text-align: right"> &nbsp;</td> <td> &nbsp;</td> </tr> <tr> <td> &nbsp;</td> <td> <asp:Button ID="Button1" runat="server" Font-Bold="True" ForeColor="#666666" Text="Login" Width="97px" onclick="Button1_Click" /> </td> </tr> <tr> <td> &nbsp;</td> <td> <asp:Label ID="Label1" runat="server" Font-Bold="True" FontSize="Small" ForeColor="Red"></asp:Label> </td> </tr> <tr>

194

<td> &nbsp;</td> <td> <asp:HyperLink ID="HyperLink4" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Small" ForeColor="Gray" NavigateUrl="~/Register.aspx">New User Signup</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;</td> <td> <asp:HyperLink ID="HyperLink5" runat="server" Font-Bold="True" Font-Names="Arial" Font-Size="Small" ForeColor="Gray" NavigateUrl="~/ForgetPassword.aspx">Forget Password</asp:HyperLink> </td> </tr> </table> </td> </tr> /table> < </td> </tr> <tr> <td width="200"> nbsp;</td> </tr> <tr> <td < &

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp; asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True"

195

Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Cikch ere to send a courier</asp:HyperLink> h </td> </tr> <tr> <td width="200"> nbsp;</td> </tr> <tr> <td < &

width="200"> table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12">

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> <asp:HyperLink ID="HyperLink6" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Postcode and address finder</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink7" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track your courier</asp:HyperLink> </td> </tr>

196

<tr> <td> <asp:HyperLink ID="HyperLink8" runat="server" ForeColor="#333333" NavigateUrl="~/Feedback.aspx">Leave feedback</asp:HyperLink> </td> </tr> </table> </td> </tr> /table>

< </td> </tr> <tr> <td <

width="200" class="style20"> /td>

</tr> </table> </td> </tr> <tr> <td> &nbsp;</td> <td> &nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td bgcolor="#0099FF" class="style15" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reserved</td> </tr> </table> </td> </tr> </table>

197

</td> </tr> </table> </div> </form> </body> </html>

Login.aspx.cs
using using using using using using using using using using using using System; System.Configuration; System.Data; System.Data.SqlClient ; System.Linq; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.HtmlControls; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Xml.Linq;

public partial class _Default : System.Web.UI.Page { SqlConnection con; protected void Page_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.AppSettings["mycon"]); } protected void Button1_Click(object sender, EventArgs e) { SqlDataAdapter da = new SqlDataAdapter("Select * from UserRegistration where Email='" + TextBox1.Text + "' and Password='" + TextBox2.Text + "'", con); DataSet ds = new DataSet(); da.Fill(ds); if (ds.Tables[0].Rows.Count == 0) { Label1.Text = "Invalid email id & password!"; } else { } } }

Session["Login"] = "Yes"; Response.Redirect("Default.aspx");

198

Register.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="_Default" %> <%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %> <%@ Register src="WebUserControl2.ascx" tagname="WebUserControl2" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Online Courier Booking Distribution & Tracking System</title> <style type="text/css"> .style1 { width: 800px; height: 900px; border-left-style: solid; border-left-width: 1px; border-right: 1px solid #C0C0C0; border-top-style: solid; border-top-width: 1px; border-bottom: 1px solid #C0C0C0; }

199

.style2 { width: 800px; height: 733px; } .style6 { width: 800px; } .style7 { height: 8px; text-align: center; } .style8 { } .style9 { width: 200px; } .style10 { font-size: large; font-weight: bold; color: #FFFFFF; } .style11 { height: 33px; } .style12 { height: 18px; } .style13 { height: 27px; } .style14 { width: 600px; height: 386px; } .style15 { width: 536px; } .style16 { height: 45px; font-weight: bold; color: #666666; font-size: large; } .style17 { height: 65px; font-weight: bold; font-size: x-large; color: #333333; } .style18

200

} .style21 { text-align: left; font-size: small; font-family: Verdana; font-weight: bold; color: #666666; } .style22 { font-size: small; font-family: Verdana; font-weight: bold; color: #666666; } .style23 { width: 800px; font-weight: bold; } .style24 { color: #FFFFFF; font-size: medium; } .style25 { color: #FF0000; } .style26 { font-size: small; } </style> </head> <body> <form id="form1" defaultfocus ="TextBox1" defaultbutton="Button1" runat="server"> <div> <table align="center" cellpadding="0" cellspacing="0" class="style1"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style2"> <tr> <td> <uc1:WebUserControl ID="WebUserControl1" runat="server" /> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr>

height: 40px; font-weight: bold; font-size: medium; color: #FFFFFF;

201

<td class="style7"> <uc2:WebUserControl2 ID="WebUserControl21" runat="server" /> </td> </tr> <tr> <td class="style8"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td colspan="2"> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td width="200"> table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style10" height="30" style="text-align: left"> &nbsp;&nbsp; Login</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#666666" NavigateUrl="~/Login.aspx">Click here to sign in</asp:HyperLink> </td> </tr> <tr> <td> &nbsp;&nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#666666" NavigateUrl="~/Register.aspx">Click here to register</asp:HyperLink> <

202

</td> </tr> </table> </td> </tr> /table> rowspan="13" valign="top">

< </td> <td

< table align="center" cellpadding="0" cellspacing="0" class="style14"> <tr> <td valign="top"> <table align="center" cellpadding="0" cellspacing="0" class="style15"> <tr> <td class="style16"> Register for Online cbdt</td> </tr> <tr> <td bgcolor="#F2BB15" class="style17"> Sign up for your Online Courier, Booking, Distribution &amp; Tracking System account</td> </tr> <tr> <td> <table align="center" bgcolor="#EFEFEF" cellpadding="0" cellspacing="0" class="style15"> <tr> <td bgcolor="#0099FF" class="style18" colspan="2">

203

Please Enter Your Details Below</td> </tr> <tr> <td> &nbsp;</td> <td style="text-align: right"> <span class="style25">*</span><span class="style26">Mandatory Fields</span></td> </tr> <tr> <td class="style22"> Email :<span class="style25">*</span>&nbsp; </td> <td> <asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" Display="None" ErrorMessage="Invalid Email Id" SetFocusOnError="True">*</asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" Display="None" ErrorMessage="Invalid Email Id" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+ ([-.]\w+)*">*</asp:RegularExpressionValidator> </td> </tr> <tr> <td class="style22">

204

Password :<span class="style25">*</span></td> <td> <asp:TextBox ID="TextBox8" runat="server" Width="150px" TextMode="Password"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox8" Display="None" ErrorMessage="Invalid Password" SetFocusOnError="True">*</asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox8" Display="None" ErrorMessage="Password should be 6-12 characters" ValidationExpression="\S{6,12}">*</asp:RegularExpressionValidator> </td> </tr> <tr> <td class="style22"> Confirm Password :<span class="style25">*</span></td> <td style="text-align: left"> <asp:TextBox ID="TextBox3" runat="server" Width="150px" TextMode="Password"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBox3" Display="None" ErrorMessage="Password does not match" SetFocusOnError="True">*</asp:RequiredFieldValidator> <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox8" ControlToValidate="TextBox3" Display="None" ErrorMessage="Password does not match" SetFocusOnError="True">*</asp:CompareValidator> </td>

205

</tr> <tr> <td class="style21"> Contact Name :<span class="style25">*</span></td> <td> <asp:TextBox ID="TextBox4" runat="server" Width="150px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox4" Display="None" ErrorMessage="Enter Contact Name" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style21"> Telephone/Mob No.</span><span class="style25">*</span></td> <td> <asp:TextBox ID="TextBox5" runat="server" Width="150px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox5" Display="None" ErrorMessage="Enter Telephone/Mob No." SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style21"> Security Question :<span class="style25">*</span></td> <td>

206

<asp:TextBox ID="TextBox6" runat="server" Width="150px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox6" Display="None" ErrorMessage="Enter Security Question" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td class="style21"> Security Answer :<span class="style25">*</span></td> <td> <asp:TextBox ID="TextBox7" runat="server" Width="150px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox7" Display="None" ErrorMessage="Enter Security Answer" SetFocusOnError="True">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td> <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List" ShowMessageBox="True" ShowSummary="False" /> </td> <td> <asp:Label ID="Label1" runat="server" Font-Bold="True" FontSize="Small" ForeColor="#000099"></asp:Label> </td>

207

</tr> <tr> <td> &nbsp;</td> <td> <asp:Button ID="Button1" runat="server" Font-Bold="True" ForeColor="#666666" Text="Create User" onclick="Button1_Click" /> </td> </tr> </table> </td> </tr> </table> </td> </tr> /table> < </td> </tr> <tr> <td width="200"> nbsp;</td> </tr> <tr> <td < &

bgcolor="#0099FF" class="style13" width="200"> &nbsp;&nbsp; asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="White" NavigateUrl="~/Send_a_Parcel.aspx">Cikch ere to send a courier</asp:HyperLink> h </td> </tr> <tr> <td width="200"> nbsp;</td> &

208

width="200">

</tr> <tr> <td <

table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td bgcolor="#0099FF" class="style11"> &nbsp; <span class="style10">Site Tools&nbsp;</span></td> </tr> <tr> <td class="style12">

<table align="center" cellpadding="0" cellspacing="0" class="style9"> <tr> <td> <asp:HyperLink ID="HyperLink4" runat="server" ForeColor="#333333" NavigateUrl="~/PostCodeAndAddressFinder.aspx">Post code and address finder</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink5" runat="server" ForeColor="#333333" NavigateUrl="~/CourierTracking.aspx">Track your courier</asp:HyperLink> </td> </tr> <tr> <td> <asp:HyperLink ID="HyperLink6" runat="server" ForeColor="#333333" NavigateUrl="~/Feedback.aspx">Leave feedback</asp:HyperLink> </td>

209

</tr> </table> </td> </tr> /table> < </td> </tr> <tr> <td width="200"> nbsp;</td> </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> <tr> <td & </tr> </table> </td> &

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

width="200"> nbsp;</td>

210

</tr> <tr> <td> <td>

&nbsp;</td>

&nbsp;</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style6"> <tr> <td> &nbsp;</td> </tr> <tr> <td> <table align="center" cellpadding="0" cellspacing="0" class="style23"> <tr> <td bgcolor="#0099FF" class="style24" height="10" style="text-align: center"> Copyrights 2010 Online CBDT All Rights Reserved</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </div> </form> </body> </html>

Register.aspx.cs
using using using using using using using using using using using using

System; System.Configuration; System.Data; System.Data.SqlClient ; System.Linq; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.HtmlControls; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Xml.Linq;

211

public partial class _Default : System.Web.UI.Page { SqlConnection con; protected void Page_Load(object sender, EventArgs e) { con = new SqlConnection(ConfigurationManager.AppSettings["mycon"]); } protected void Button1_Click(object sender, EventArgs e) { SqlCommand cmd = new SqlCommand("Insert into UserRegistration values(@Email,@Password,@ContactName,@ContactNo,@SecurityQuestion,@Se curityAnswer)", con); SqlParameter pa1 = new SqlParameter("@Email", DbType.String); pa1.Value = TextBox1.Text; cmd.Parameters.Add(pa1); SqlParameter pa2 = new SqlParameter("@Password", DbType.String); pa2.Value = TextBox8.Text; cmd.Parameters.Add(pa2); SqlParameter pa3 = new SqlParameter("@ContactName", DbType.String); pa3.Value = TextBox4.Text; cmd.Parameters.Add(pa3); SqlParameter pa4 = new SqlParameter("@ContactNo", DbType.String); pa4.Value = TextBox5.Text; cmd.Parameters.Add(pa4); SqlParameter pa5 = new SqlParameter("@SecurityQuestion", DbType.String); pa5.Value = TextBox6.Text; cmd.Parameters.Add(pa5); SqlParameter pa6 = new SqlParameter("@SecurityAnswer", DbType.String); pa6.Value = TextBox7.Text; cmd.Parameters.Add(pa6); con.Open(); try { cmd.ExecuteNonQuery(); con.Close(); Label1.Text = "You are successfully registered!"; TextBox1.Text = ""; TextBox3.Text = ""; TextBox4.Text = ""; TextBox5.Text = ""; TextBox6.Text = ""; TextBox7.Text = ""; TextBox8.Text = ""; } catch (Exception ex) { Response.Write(ex.Message); } } }

212

213

5.2 CODE EFFICIENCY


Reviewing of Code efficiency for a module is carried out after the module is successfully compiled and all the syntax errors eliminated. Code efficiency review is extremely cost-effective strategies for reduction in coding errors in order to produce high quality code. Normally, two types of efficiency are carried out on the code of a module - code optimization and code inspection. The procedure and final objective of these two efficiency techniques are very different as discussed below.

5.3 OPTIMIZATION OF CODE


Code optimization is an informal code analysis technique. In this technique, after a module has been coded, it is successfully compiled and all syntax errors are eliminated. Some members of the development team are given the code a few days before the optimization meeting to read and understand the code. Each member selects some test cases and simulates execution of the code by hand (i.e. trace execution through each statement and function execution). The main objectives of the optimization are to discover the algorithmic and logical errors in the code. The members note down their findings to discuss these in a optimization meeting where the coder of the module is also present. Even though a code optimization is an informal analysis technique, several guidelines have evolved over the years for making this nave technique more effective and useful. Of course, these guidelines are based on personal experience, common sense, and several subjective factors. Therefore are based on personal experience, common sense, and several subjective factors. Therefore, guidelines should be considered as examples rather than as rules to be applied dogmatically. Some of these guidelines are the following: The team performing the code optimization should not be either too big or too small. Ideally, it should consist of three to seven members.

214

215

6.1 TESTING PHASE


One of the purposes of the testing is to validate and verify the system. Verification means checking the system to ensure that it is doing what the function is supposed to do and Validation means checking to ensure that system is doing what the user wants it to do. No program or system design is perfect; communication between the user and the designer is not always complete or clear, and time is usually short. The result is errors and more errors. Theoretically, a newly designed system should have all the pieces in working order, but in reality, each piece works independently. Now is the time to put all the pieces into one system and test it to determine whether it meets the user's requirements. This is the best chance to detect and correct errors before the system is implemented. The purpose of system testing is to consider all the likely variations to which it will be subjected and then push the system to its limits. If we implement the system without proper testing then it might cause the problems. 1. Communication between the user and the designer. 2. The programmer's ability to generate a code that reflects exactly the system specification. 3. The time frame for the design. Theoretically, a new designed system should have all the pieces in working order, but in reality, each piece works independently. Now is the time to put all the pieces into one system and test it to determine whether it meets the requirements of the user. The process of system testing and the steps taken to validate and prepare a system for final implementation are:

216

6.2 LEVELS OF TESTING


The different types of testing are as follows:

UNIT TESTING

VALIDATION INTEGRATION SYSTEM

217

1. UNIT TESTING:
This is the smallest testable unit of a computer system and is normally tested using the white box testing. The author of the programs usually carries out unit tests.

2. INTEGRATION TESTING:
In integration testing, the different units of the system are integrated together to form the complete system and this type of testing checks the system as whole to ensure that it is doing what is supposed to do. The testing of an integrated system can be carried out top-down, bottom-up, or big-bang. In this type of testing, some parts will be tested with white box testing and some with black box testing techniques. This type of testing plays very important role in increasing the systems productivity. We have checked our system by using the integration testing techniques.

3. SYSTEM TESTING:
A part from testing the system to validate the functionality of software against the requirements, it is also necessary to test the nonfunctional aspect of the system. Some examples of non-functional tools include tests to check performance, data security, usability/user friendliness, volume, load/stress that we have used in our project to test the various modules.

System testing consists of the following steps:


1. Program(s) testing. 2. String testing. 3. System testing. 4. System documentation. 5. User acceptance testing.

218

4. FIELD TESTING:
This is a special type of testing that may be very important in some projects. Here the system is tested in the actual operational surroundings. The interfaces with other systems and the real world are checked. This type of testing is very rarely used. So far our project is concerned; we haven't tested our project using the field testing.

5. ACCEPTANCE TESTING:
After the developer has completed all rounds of testing and he is satisfied with the system, then the user takes over and re-tests the system from his point of view to judge whether it is acceptable according to some previously identified criteria. This is almost always a tricky situation in the project because of the inherent conflict between the developer and the user. In this project, it is the job of the bookstores to check the system that whether the made system fulfills the goals or not.

WHY SYSTEM TESTING?


Testing is vital to the success of the system. System testing makes a logical assumption that if all the parts of the system are correct, the goal will be successfully achieved. Inadequate testing results in two types of problems: 1. The time lag between the cause and the appearance of the problem. 2. The effect of system errors on the files and records within the system.

219

ACTIVITY NETWORK FOR SYSTEM TESTING

The test plan entails the following activities: 1. Prepare test plan. 2. Specify conditions for user acceptance testing. 3. Prepare test data for program testing. 4. Prepare test data for transaction path testing. 5. Plan user training. 6. Compile/assemble programs. 7. Prepare job performance aids. 8. Prepare operational documents.

PREPARE TEST : A workable test plan must be prepared in accordance


with established design specifications. It includes the following items: Outputs expected from the system. Criteria for evaluating outputs. A volume of test data. Procedure for using test data. Personnel and training requirements.

SPECIFY CONDITIONS FOR USER ACCEPTANCE TESTING Planning for user acceptance testing calls for the analyst and the user to agree on conditions for the test. PREPARE TEST DATA FOR PROGRAM TESTING As each program is coded, test data are prepared and documented to ensure that all aspects of the program are properly tested. PREPARE TEST DATA FOR TRANSACTION PATH TESTING This activity develops the data required for testing every condition and transactions to be introduced into the system. The path of each transaction from origin to destination is carefully tested reliable results.

220

PLAN USER TRAINING User training is designed to prepare the user for testing and converting the system. User involvement and training take place parallel with programming for three reasons: The system group has time available to spend on training while the programs are being written. Initiating a user-training program gives the systems group a clearer image of the user's interest in the new system. A trained user participates more effectively in system testing. The training plan is followed by preparation of the user training manual and other text materials. COMPILE / ASSEMBLE PROGRAMS All programs have to be compiled / assembled for testing. PREPARE JOB PERFORMANCE AIDS In this activity the materials to be used by personnel to run the system are specified and scheduled. This includes a display of materials. PREPARE OPERATIONAL DOCUMENTS During the test plan stage, all operational documents are finalized including copies of the operational formats required by the candidate system. SYSTEMS TESTING The computer department to ensure that the system functions as specified does this testing. This testing is important to ensure that a working system is handed over to the user for acceptance testing. ACCEPTANCE TESTING The user to ensure that the system functions, as the user actually wanted performs this testing. With prototyping techniques, this stage becomes very much a formality to check the accuracy and completeness of processing. The screen layouts and output should already have been tested during the prototyping phase. 221

An error in the program code can remain undetected indefinitely. To prevent this from happening the code was tested at various levels. To successfully test a system, each condition, and combinations of conditions had to be tested. Each program was tested and linked to other programs. This unit of program is tested and linked to other units and so on until the complete system has been tested. The purpose of testing is to ensure that each program is fully tested. To do so a test plan had to be created. The test plan consists of a number of test runs such as the valid paths through the code, and the exception and error handling paths. For each test run there is a list of conditions tested, the test data used and the result expected. The test plan was then reviewed to check that each path through the code is tested correctly. It is the responsibility of the programmer to collect the data that will produce the required test condition.

6.3 VERIFICATION AND VALIDATION (V&V)


The objectives of verification, validity activities are to assess and improve the quality of the work products generated during development and modification of the software. Quality depends upon the various attributes like correctness, completeness, consistency, reliability, usefulness, usability, efficiency and conformance to standards. The terms verification and validation are used synonymously. defined as under: Verification: Are we building the product right? Validation: Are we building the right product? Verification activities include proving, testing, and reviews. Validation is the process of evaluating software at the end of the software development to ensure compliance with the software requirements. Testing is a common method of validation. Clearly, for high reliability we need to perform both activities. Together, they are often called V&V activities. These are

222

The major V&V activities for software development are inspection, reviews, and testing (both static and dynamic). The V&V plan identifies the different V&V tasks for the different phases and specifies how these tasks contribute to the project V&V goals. The methods to be used for performing these V&V activities, the responsibilities and milestones for each of these activities, inputs and outputs for each V&V task, and criteria for evaluating the outputs are also specified. The two major V&V approaches are testing and inspections. Testing is an activity that can be generally performed only on code. It is an important activity and is discussed in detail in a later chapter. Inspection is a more general activity that can be applied to any work product, including code. Many of the V&V tasks are such that for them, an inspection type of activity is the only possible way to perform the tasks (e.g. trace ability and document evaluation). Due to this, inspections play a significant role in verification.

223

224

7.1 SYSTEM IMPLEMENTATION MAINTENANCE AND REVIEW

As we know, creating software is one thing and the implementation of the created software is another. The process of implementing software is much difficult as compared to the task of creating the project. First we have to implement the software on a small scale for removing the bugs and other errors in the project and after removing them we can implement the software on a large scale.

Before we think in terms of implementing the Software on a large basis, we must consider the Hardware requirements.

Whenever we develop software or project a certain hardware and software is being used by the programmer for developing the project. The hardware and software to be used by the programmer for developing the project should be such that it would result in the development of a project, which would satisfy all the basic needs for which the project has been created by the programmer. The Hardware should be such that cost constraints of the Client should also be taken into account without affecting the performance.

225

7.2 HARDWARE EVALUATION FACTORS


When we evaluate computer hardware, we should first investigate specific physical and performance characteristics for each hardware component to be acquired. These specific questions must be answered concerning many important factors. These hardware evaluation factors questions are summarized in the below figure. Notice that there is much more to evaluating hardware than determining the fastest and cheapest computing device. For e.g. the question of possible obsolescence must be addressed by making a technology evaluation. The factor of ergonomics is also very important. Ergonomics is the science and technology that tries to ensure that computers and other technologies are "user-friendly", that is safe, comfortable and easy to use. Connectivity is another important evaluation factor, since so many computer systems are now interconnected within wide area or local area telecommunications networks.

7.2 HARDWARE EVALUATION FACTORS


1) Performance 2) Cost 3) Reliability 4) Availability 5) Compatibility 6) Modularity 7) Technology 8) Ergonomics 9) Connectivity 10) Environmental requirements 11) Software 12) Support

7.3 SOFTWARE EVALUATION FACTORS


226

Software can be evaluated according to many factors similar to the hardware evaluation. Thus the factors of performance, cost, reliability, compatibility, modularity, technology, ergonomics, and support should be used to evaluate proposed software acquisitions. In addition, however, the software evaluation factors are summarized in below figure. For e.g. some software packages require too much memory capacity and are notoriously slow, hard to use, or poorly documented. They are not a good selection for most end users, even if offered at attractive prices.

SOFTWARE EVALUATION FACTORS:


1. EFFICIENCY: is the software a well-written system of computer instructions that does not use much memory capacity or CPU time? 2. FLEXIBILITY: can it handle its processing assignments easily without major modifications? 3. SECURITY: does it provide control procedures for errors, malfunctions and improper use? 4. LANGUAGE: do our computer programmers and users write it in a programming language that is used? 5. DOCUMENTATION: is the s/w well documented? Does it include helpful user instructions? 6. HARDWARE: does existing hardware have the features required to best use this software? 7. Other characteristics of hardware such as its performance, what about the cost, how much is reliable and etc.

7.4 CONVERSION AND TRAINING


227

An important aspect of is to make sure that the new design is implemented to establish standards. The term implementation has different meanings, ranging form the conversion of a basic application to a complete replacement of a computer system. Implementation is used here to mean the process of converting a new or revise system into an operational one. Conversion is one aspect of implementation. Conversion means changing form one system to another. The objective is to put the tested system into operation while holding costs, risks, and personnel irritation to a minimum. It involves creating computer-compatible files, training the operation staff, and installing terminal and hardware. A critical aspect of conversion is not disrupting the functioning of the organization. When a new system is used over and old, existing and running one, there are always compatibility errors. These errors are caused because of the lack of equipment or personnel to work the new system. Running any specified system at an organization does require some or other hardware or, in this case, software requirement as well.

Conversion is one aspect of implementation review & software maintenance.


There are three types of implementation: 1. Implementation of a computer system to replace a manual system. The problems encountered are converting files, training users, creating accurate files and verifying printouts for integrity. 2. Implementation of a new computer system to replace an existing one. This is usually a difficult conversion. If not properly planned there can be many problems. Some large computer systems have taken as long as year to convert. 3. Implementation of a modified application to replace an existing one, using the same computer. This type of conversion is relatively easy to handle, provided there are no major changes in the files.

228

7.5 TRAINING NEEDS


Training needs refer to the gaining of knowledge required for running the system. First of all the system is a computer based system therefore the person should have good knowledge about computer and its working. He should know how to use software's on the computer. For a better usage and working of the software the organization should appoint a person who has good knowledge of all the required softwares. The organization gets a person trained through different institutes present in the market. The training should be as per the above requirements.

229

8. COST ESTIMATION OF THE PROJECT

Cost in a project is due to the requirements for software, hardware, and human resources. Hardware resources are computer time, terminal time and memory required for the project. Software resources include the tools and compilers needed during development. The bulk of cost of software development is due to human resources needed. Cost estimates are determined in terms of person-months (PM).

Total No. Of Persons Involved In This Project: 1. Administrator 2. Senior Programmer 3. Junior Programmers 4. On line Users. Since this Project will complete in 4 months COST ESTIMATE: (Salary of Project Manager + Salary of Senior Programmer + 2 * Salary of Junior Programmer) * 2

230

9. GANTT & PERT CHART


GANT CHART
Gantt charts mainly used to allocate resources to activities. The resources allocated to activities include staff, hardware, and software. Gantt charts (named after its developer Henry Gantt) are useful for resource planning. A Gantt chart is special type of bar chart where each bar represents an activity. The bars are drawn along a timeline. The length of each bar is proportional to the duration of the time planned for the corresponding activity.
Gantt chart is a project scheduling technique. Progress can be represented easily in a Gantt chart, by coloring each milestone when completed. The project will start in the month of January and end after 4 months at the end of April.

System Design

Detailed Design Coding Unit Testing Test Plan Testing

Sept.

Oct.

Nov.

Dec.

231

Pert Chart
PERT (Project Evaluation and Review Technique) charts consist of a network of boxes and arrows. The boxes represent activities and the arrows represent task dependencies. PERT chart represents the statistical variations in the project estimates assuming a normal distribution. Thus in a PERT chart instead of making a single estimate for each task, pessimistic, likely, and optimistic estimates are also made. The boxes of PERT charts are usually annotated with the pessimistic, likely, and optimistic estimates for every task. Since all possible completion times between the minimum and maximum durations for every task have to be considered, there are many critical paths, depending on the permutations of the estimates for each task. This makes critical path analysis in PERT charts very complex. A critical path in a PERT chart is shown by using thicker arrows. The PERT chart representation of the ADMINISTRATIVE & LOGISTIC MANAGEMENT SYSTEM COURIER BOOKING problem of Figure A. is shown in Figure B. Task Specification Part Design Database Part Design GUI Part Code Database Part Code GUI Part Integrate and Test Write User Manual ES 0 15 15 60 45 165 15 EF 15 60 45 165 90 285 75 LS 0 15 90 60 120 165 225 LF 15 60 120 165 165 285 285 ST 0 0 75 0 75 0 210

Figure A : Different Tasks for the ADMINISTRATIVE & LOGISTIC MANAGEMENT SYSTEM COURIER BOOKING shown in above table.

232

Design Database part 40, 45, 60 Specificati on 12, 15, 20 Design GUI part 24, 30, 38

Code Database part 95,105,120 Integrated And test 100,120,14 0 Code GUI part 4538,, 52

Finish 0

Write user Manual 50, 60, 70

FIGURE B : PERT Chart representation of the ADMINISTRATIVE & LOGISTIC MANAGEMENT SYSTEM COURIER BOOKING
PERT charts are a more sophisticated form of activity chart. In activity diagrams only the estimated task durations are represented. Since the actual durations might vary from the estimated durations, the utility of the activity diagrams is limited.

233

10. SECURITY AND VALIDATION CHECKS


In this project we have used following validation checks.
While entering the data into the form it will check for the name of the client is properly filled & it should not be null. Whenever we enter the data for the new customer, company, or user will automatically check the details from the database tables and also generate the connection number automatically. Similarly in the complaint table complaint number will generate automatically. Entered text / number should not exceed the limit (width). Almost for all fields we have used the validation for example if name of the fields requires the text type of data then it will check for the string and if the data is numeric then it will check if the number entered is proper numeric or not.

ASP.NET Provides Security


Evidence-based security (authentication) Based on user identity and code identity Configurable policies Imperative and declarative interfaces

234

11. Scope of Future Application

Administrative & Logistic Management System for Courier Company is not developed for any particular client, but observing the increasing trade between countries and within a country, this system can be implemented by any transporting or shipping company who runs their business via Road, Air, Sea or Train. As trading in multiple countries involve Custom Regulations also, this software can prove to be a best choice for record keeping and accounting system. This system is developed in a simple GUI, so it can be understood simply by a person of any status or understanding. Also, Administrative & Logistic Management System for Courier Company can be extended in various forms, depending on the nature or requirement of any shipping or transportation company who wants to use it. The core transactions which happen at any shipping company are developed in this system. Further, this system can be extended depending on Custom Regulations of any country, or nature of goods which the shipping company carries and extensibility can also depend on increasing market competition.

235

12. CONCLUSION
This project is decided to meet the requirements of the users for online courier tracking and requirements of courier companies . It has been developed in ASP.NET, keeping in mind the specifications of the system. For designing the system we have used simple data flow diagrams. Overall the project teaches us the essential skills like: Using system analysis and design techniques like data flow diagram in designing the system.

Understanding the database handling and query processing using SQL SERVER.

13. Bibliography
1. Senn James A : Analysis and Design of Information Systems, McGraw Hill,

International Ed, 1989. 2. O'Brien Jamea A : Management Information Systems, Galgotia Publications Pvt Ltd, New Delhi, 1998. 3. Laudon & Laudon : Management Information Systems, Organisation and Technology, PHI, New Delhi, 1998. 4. Wetherebe James : Systems Analysis and Design, Galgotia Publications Pvt Ltd, New Delhi, 1990

236