Vous êtes sur la page 1sur 112

ONLINE CAB

A PROJECT REPORT

Submitted in Partial Fullfillment for the award of the degree


of
Bachelor OF COMPUTER APPLICATION
(M.C.A)

Submitted by

Manish tyagi
Roll No: 9347101
Under the supervision of

Supervisor from I.T.S


Prof Ravil govil
Associate Professor
Department of IT
Institute of Technology & Science
Mohan Nagar,Ghaziabad

NAAC Accredited ‘A’ Grade Institute


NBA Accredited MCA Program
Department of Information Technology
Institute of Technology & Science
Mohan Nagar, Ghaziabad-201002
(2014– 2016)
Page | 1
DECLARATION

I hereby declare that the project work entitled “Online Cab” is an authentic
record of my own work carried out at DUCAT ,Noida as requirements of Industry
Internship project for the award of degree of MCA, I.T.S Mohan Nagar
(Ghaziabad) under the guidance of Prof.Rabins Porwal (during January to June,
2016).

(Signature of student)
Name of Student: ManishTyagi
Roll No : 8347101

Date: ___________________

Certified that the above statement made by the student is correct to the best of our
knowledge and belief

(Name & Designation) (Name & Designation)


Faculty Coordinator Industry Coordinator

Page | 2
Acknowledgement

The satisfaction that accompanies the successful completion of the task would be
incomplete without the mention of the people whose Ceaseless cooperation made it
possible, whose constant guidance and encouragement crown all efforts with
success. We are grateful to our Project Guide “Mr. Vipul Kumar Mishra” for the
inspiration and the constructive suggestions that helped us in preparation of the
project Online Cab.

Page | 3
CONTENT

S.NO TOPIC PAGE NO.


1. Introduction 6
2. Objective & Scope of the Project & Theoretical 7
Background
3. Definition of Problem 8
4. Benefits to User 9
5. System Analysis & Design 10-20
5.1 Input Requirements
5.2 Output Requirements
5.3 Functional Requirements & Modules
5.4 External Interface Requirements
5.5 Design Constraints
5.6 Acceptance Criteria
6. System Planning 21-26
6.1 Wordbreak Down Structure
6.2 PERT Chart
7. Methodology Adopted 27-29
7.1 Introduction
7.2 Methodology Used
7.3 Analysis Methods
7.4 Design Methods
7.5 Coding Methods
7.6 Testing Methods
8. System Implementation 30-31
8.1 Procedure
8.2 Hardware Platform
8.3 Software Platform
8.4 ASP.Net
8.5 SQL Server 2000
9. System Maintenance & Evaluation 32-36
10. Cost & Benefits Analysis 37
11. Life Cycle of the Project 38-45
11.1 Entity-Relationship Diagram
11.2 Data Flow Diagram
11.3 Structure Chart

Page | 4
12. ScreenShoot 46-52
13. Process Involved 53-54
14. Testing Methodology 55
15. Test Reports 56-57
16. Coding 58-102
17. Data Dictionary 103-111
17.1 Databases
17.2 Definition, Acronyms & Abbreviations
17.3 Functions Used for the Implementation of
Algorithms
17.3 Error List
17.4 Limitations
18 Conclusion
19. References 112-113
19.1 Bibliography

Page | 5
1.INTRODUCTION

The Online Cab Web site is the application that provides customers with online
cab booking. Through a Web browser, a customer can browse the catalog, cab for
booking , create and sign in to a user account, and booking the cab online.

The Application is a working demonstration of how to use bluePrints principles


in a real application design. This document is an online guide to the design and
the implementation of the application Enterprise Applications with web
technology.

Each release of the application maintains consistent design features such as


separating logic and presentation, using web component for control and web pages
for presentation, using business components, and so on.

High-level design features, this document goes deeper into the implementation
details of the current application release.

This document is provided as an online-only resource so that it may be


continually extended and updated.This document begins with a description of the
separate applications that the sample application comprises, describes the modular
structure of the shopenmart.com application, and provides an in-depth description
of several pieces of the modules.

Page | 6
2.OBJECTIVES & SCOPE OF THE PROJECT

The objective of this software is to book online cab in various cities.

 This is a web based application through which we can book online cab in
metro cities.

 Thre are two process book online-


1.Registered User
2.Guest User.

 After Registering user can update his/her profile.

 Usea r can also view his/her booking details after booking Cab.

3.THEORETICAL BACKGROUND

The primary goal of this project to analysis the scope of project. So all of
first it finds that application must be beneficial in metro cities. So in initial stage it
is developed for selected metro cities.Thus all possibilities are mentioned such as
Timing ,location and land mark to reach to customer.
Basically project is not so huge ,due to reason it is not divided in modules.
Simply user can register or can be a guest user.

4.PROBLEM DEFINITION

PROBLEM STATEMENT:
ONLINE CAB SERVICE is an online facility by which user/doctor can book cab
in selected metro cities. User can be Registered user or Guest user.

Page | 7
 This software provides very flexible rules to book cab online. User can
register and update his profile.
 User can book from any location but cab facilities is provided in selected
cities.

NEED OF THE SOFTWARE:


This software is developed keeping in mind the
above-mentioned problems. The needs and requirements of the end users are also
kept in mind while designing this software. Thus, ONLINE CAB SERVICE is
developed in order to facilitate it users to provide on Dore To Dore(DTD) service.

5. BENEFITS TO USER

It is a web application that can used in online booking of cab in various


metro cities.

 Provides the user to register free.

 May became Guest user if want book cab when ever.

 Saves time and energy in locating the details of matching profile.

 Makes searching and booking more easier and faster.

 Protects the information from unauthorized users by implementing role


based security.

Page | 8
6. SYSTEM ANALYSIS

Requirements analysis is a software engineering task that bridges the


gap between system level requirements engineering and software design.
Requirements engineering activities result in the specification of software’s
operational characteristics (function, data and behavior), indicate software’s
interface with other system elements, and establish constraints that software must
meet. The most commonly used requirements technique is to conduct a meeting or
interview. The first meeting between a software engineer (the analyst) and the
customer can be likened to the awkwardness of a first date between two
adolescents. Neither person knows what to say or ask; both are worried that they
do say will be misinterpreted; both are thinking about where it might lead (both
likely have radically different expectations here); both want to get the thing over
with, but at the same time, both want it to be a success.

Gause and Weinberg suggest that the analyst start by asking CONTEXT-
FREE QUESTIONS. That is, a set of questions that will lead to a basic
understanding of the problem, the people who want a solution, the nature of the
solution that is desired, and the effectiveness of the first encounter itself.

The goal of the requirements gathering activity is to collect all relevant


information from the customer regarding the product to be developed with a view
to clearly understanding the customer requirements and weeding out the
incompleteness and inconsistencies in these requirements. The requirements
analysis activity is begun by collecting all relevant data regarding the product to be
developed from the users of the product and from the customer through interviews
and discussions.

Data collection is done by taking the copies of the documents involved in


its working from the organization.

Page | 9
6.1Design Pattern:
This software based on concept of the Model View Controller (MVC) design
pattern.

View renders the data from the Model in response to the request made to the
model by controlled events made by user interaction.

Model View Controller is a design approach to separate the application object


model from GUI, originally invented around 80s. Then later on it has become a
widely accepted common design pattern. The main objective behind this pattern is
to decouple the view of the data (presentation layer) from the actual data
processing so that the same model can be used for various views. This is achieved
by using three different types of objects that interact with each other in loosely
coupled manner with their discreet set of tasks.

These three objects are known as Model, View and Controller.

6.2 VIEW:
View is the graphical data presentation (outputting) irrespective of the real data
processing. View is the responsible for look and feel, some custom formatting,
sorting etc. View is completely isolated from actual complex data operations. For
example, Online product catalog view is completely separated from database
connection, query, tables etc. It simply gets final row-data from the model and puts
some cosmetics and formatting before displaying it in browser. View provides
interface to interact with the system. The beauty of MVC approach is that it
supports any kind of view, which is challenging in today’s distributed and multi-
platform environment.

A MVC model can have multiple views, which are controlled by controller. View
interface can be of WEB-FORMS, HTML, XML/XSLT, XTML, and WML or can
be Windows forms etc.

6.3 MODEL:

Page | 10
Model is responsible for actual data processing, like database connection, querying
database, implementing business rules etc. It feeds data to the view without
worrying about the actual formatting and look and feel. Data provided by Model is
display-neutral so it can be interfaced with as many views without code
redundancy; this eases your code maintenance and reduces bugs and allows code
-reuse at good extent. Model responds to the request made by controllers and
notifies the registered views to update their display with new data.

 CONTROLLER:

Page | 11
Controller is responsible for Notice of action. Controller responds to the mouse or
keyboard input to command model and view to change. Controllers are associated
with views.

User interaction triggers the events to change the model, which in turn calls some
methods of model to update its state to notify other registered views to refresh their
display.

 Benefits:
Following are the few of the benefits of MVC design pattern.
 Since MVC handles the multiple views using the same enterprise model it is
easier to maintain, test and upgrade the multiple system.
 It will be easier to add new clients just by adding their views and controllers.
 Since the Model is completely decoupled from view it allows lot of
flexibilities to design and implement the model considering reusability and
modularity. This model also can be extended for further distributed
application.
 It is possible to have development process in parallel for model, view and
controller.

 Modules
The Online Insight Education Library project is divided into three modules
or application systems. They are:

 User Registration Module


 Action Plan management module
 Administration and security module

 User Registration module

Function

Page | 12
Function of this module is to generate and print the health card for the person. It
will display a set of information related to a person regarding.

 Action module

Function:

The function of the Action Plan Module is to capture all kinds of


information related to health and socio-economic data associated with
location wise so that these inputs can further be used to decide about the
effectiveness of the recommendations given to the person.

This module will also produce different kinds of reports and analyses for the
scientists/planners/ so as to enable them for better decision making.

 Administration and Security Module

Security shall be implemented to control access to functions and processes


within the sub-systems as well as by assigning individual table access rights
to each user. This would ensure full control over the updating or extraction
of information within the . The default access for all users at all times will be
“read only”.

When a user runs a specific process the tables updated by that process shall
be “opened” for the duration of the session only. The reason is that with
open database connectivity users can access the database using spreadsheets,
internet tools etc. which may lead to inadvertent change of the data.

The access rights to specific tables must be altered in a controlled way by


the process that updates these tables and re-set to read only at the end of the
process.

Page | 13
6.4 EXTERNAL INTERFACE REQUIREMENTS

The user interface of software is responsible for all the


interactions with the user. Almost every software has a user interface. Many users
often judge a software product based on its user interface. An interface that is difilt
to use leads to higher level of user errors and ultimately leads to user
dissatisfaction. Users become particularly irritated when a system behaves in
unexpected ways i.e. issued commands do not carry out actions according to the
intuitive expectations of the user. Therefore, sufficient care and attention should be
paid to the design of the user interface of any software product. Development of a
good user interface usually takes significant portion of the total system
development effort.
This software is developed keeping in mind the basic characteristics of a good
user interface. Some features of this software can be stated as:-

 It is very easy to learn. It does not require its users to memorize


commands. Neither the users are asked to remember information from
one screen to another while performing various tasks using the
interface.

 The time and user effort necessary to initiate and execute different
commands is minimal.

 It is very attractive to use. It catches user attention and fancy. It is a


Graphical-based user interface.

 The users can seek guidance and online help when they either forget a
command or are unaware of some features of the software.

Page | 14
6.5 DESIGN CONSTRAINTS

SOFTWARE CONSTRAINTS

 The software is to run under Windows Operating System or above


versions.

HARDWARE CONSTRAINTS

 The software will run on an Intel Workstation with 128 MB RAM,


Running on Windows.

6.6 ACCEPTANCE CRITERIA

 Before finally implementing the software at the user’s site, the


developer must demonstrate that the system works on the source data
and other information. The developer will have to show through Test
Cases that all the conditions and requirements are satisfied.

6.7 FESIBILITY ANALYSIS

Feasibility study is conducted to select the best system that meets the
performance requirements. This entails an identification, description, and
evaluation of the candidate system, and the section of the best system for the job.

Many feasibility studies are disillusioning for both user and analyst. First the
study often pre-supposes that when feasibility of the documents is being
Page | 15
prepared, the analysis is in position to evaluate solutions. Second most studies
tend to overlook the confusion inherent in the system development … the
constraints and the assumed attitudes. If the feasibility study is to serve as
decision document, it must answer three key questions: -

* Is there new and better way to do a job that will benefit the user?
* What are the cost and saving of the alternatives?
* What is recommended?

The most successful system projects are not necessary or most visible in
business but rather those that truly need user expectations. More projects failed
because of inflated expectations than for any other reasons …

There main considerations are involved in feasibility analysis: -

6.7.1 TECHNICAL

Technical feasibility centers on the current system and to what extent it can
support the proposed system, it includes current computer system specifications
such as hardware, software etc. it also involves financial considerations to
accommodate the technical enhancements. If the budget is serious constraint
then the project is judged not feasible.

Though the system is developed in the generalized form, which covers all the
procedures and operations carried out in any manual library management system.
The version used in the system is ASP.Net and MS-SqlServer.

Page | 16
The features embedded in the system are latest and according to the need of the
client. Such as the online entry for the complains about h/w and s/w. The
backend used is the latest MicroSoft SQL Server version, which also supports
to view the database contents, relationship with the connected database including
the primary, foreign key. Any up gradations needed can be easily made in the
source code, thus decreasing the headache of changing each and every code. If in
near future, the latest version of ASP.Net/ MS-SQL Server to be installed then ,
the source code handling the connection of the database can easily be modified.
The codes are easily compatible for the changes, as the latest version doesn't
affect the core code.

 MS-SQL Server can manage large amount of data and is simple and secure.

 Using ASP.NET helps us to design the look of our application and its windows.

 ASP.NET full open database connectivity (ODBC) with MS-SQL Server .

 Data accessibility, response and output require less time.

6.7.2 BEHAVIORAL

People are inherently resistance to change. An estimate should be made of how


strong a reaction the user staff is likely to have toward the development of a
computerized system. It is common knowledge that computer installations have
something to do with turn over, transfers, restraining, and changes in employee
job status. Therefore, it is understandable that the introduction of the candidate
Page | 17
system requires special effort to educate, sell, and train the staff on new ways of
conducting business.

The routine operations that are handled manually in the organization take much
time in processing. It is very cumbersome job to search about any specific
hardware component status, details about the complains of particular date, lab
wise details from the huge records of complains. The manual maintenance of
the records may kill the time of the Administrator.

So to ease the processing time, which basically includes the complain list and
generating the reports etc. this system provides all these features at just the click
of the mouse/pressing of the keys. So it's now the job of this system to handle the
operations. The system is capable of handling bulk of records easily. Although, it
is compatible to the changes, which might occur, needed for the better and fast
services. The facilities provided are knowledge of handling the computer system.

6.6.3 ECONOMICAL

Economic analysis is the most frequently used method for evaluating the
candidate system. More commonly known as cost of Benefit Analysis, the
procedure is to determine the benefits and savings that are expected from the
candidate system and compare them with the costs. If benefit outweighs the cost
then the decision is made to design and implementation otherwise further
justification or alterations are made in the proposed system.

Page | 18
This project doesn't have many hardware requirements, thus, it requires less
costing to install the software on the whole.

Though, from the point of economy, the manual handling of the hardware
component is much cheaper and best as compared to computerized systems. This
approach normally works very well in any ordinary organization . The major
problem starts when the no. of hardware components are starts growing with a
time. Manual system needs various registers/books to maintain the daily
complain entry, hardware entry done. In case of any misplacement of hardware
component, the concerned registers have to be searched for the verification of
identifying the status of that component . It is very cumbersome job to maintain
all these manually. So it is very easy to maintain all these in the proposed
system.

 COST ANALYSIS-

 The cost to conduct investigation was negligible, as the center


manager and teachers of center provided most of information.

 The cost of essential hardware and software requirement is not


very expensive.

 Moreover hardware like Pentium I PC and software like


ASP.NET and MS
-SQL Server2005 are easily available in the market.

 BENEFITS AND SAVINGS-

Page | 19
Cost of the maintenance of the proposed system is negligible.

 Money is saved as paper work is minimized.


 Records are easily entered and retrieved.
 Time is saved as all the work can be done by a simple mouse click.
 The proposed system is fully automated and hence easy to use.
 Since benefits out base the cost, hence our project is economically feasible.

 OPERATIONAL FESIBILITY

In this we determine what change will be brought in system, new skills required
and other human organization and political aspects.

 Non-Programmers can easily uses our software. However it is desirable that the
user has the basic knowledge of the computers.
 Without making any changes in the rules and regulations of the existing system
proposed system can easily adopted.

LEGAL FEASIBILITY-
Our Project does not infringe with known acts, status or any pending legislation.
Hence
it is legally feasible.

SOCIAL FEASIBILITY-
Since, the proposed system is inexpensive, easy to install, reduces human errors, fast
and simple, hence socially accepted by all organization and institutes being
Page | 20
directly affected by it.

7. SYSTEM PLANNING

PROJECT EVALUATION AND REVIEW TECHNIQUE

Introduction:
Software project managers take the overall responsibility of
steering a project to success. This surely is a very hazy job description.But, it is
very difficult to objectively describe the job responsibilities of a project manager.

7.1 WORK BREAKDOWN STRUCTURE

Work breakdown structure is used to decompose a given task set


recursively into small activities. WBS provides a notation for representing the
major tasks needed to be carried out in order to solve a problem. The root of the
tree is labeled by the problem name. Each node of the tree is broken down into
smaller activities that are made the children of the node. Each activity is
recursively decomposed into smaller sub-activities until at the leaf level; the
activities require approx. two weeks to develop. If a task is broken down into a
large number of very small activities, these can be distributed to a large number of
engineers. If the activity ordering permits, the solutions to these can be carried out
independently. Thus, it becomes possible to develop the product faster.
The following figure represents the WBS of application software:

Page | 21
Application software

Requirements Design Code Test Document


specification

Database part Graphical user Database part Graphical user


interface part interface part

#ANALYSIS

*CONCEPTION

-CONCEPTION INITIATION
-COMMUNICATION WITH EXPERTS TO
UNDERSTAND REQUIREMENTS

*REQUIREMENT ANALYSIS

-FUNCTIONAL REQUIREMENT ANALYSIS


~SCENARIO DEVELOPMENT
~FUNCTIONAL MODELING

-DATA ANALYSIS
~PERSISTENCY REQUIREMENT
Page | 22
-PERFORMANCE ANALYSIS
~LOAD REQUIREMENT
~RESPONSE TIME REQUIREMENT

#DESIGN

*OVERALL DESIGN

*ARCHITECTURAL DESIGN
-DATA ANALYSIS
-MODULE DECOMPOSITION
-PROCESS DESIGN
-PROCESS INTERFACE DESIGN

*DETAIL DESIGN
-UNIT DESIGN
-MODULE DESIGN

-MECHANISMS DESIGN
-FUNCTIONAL DESIGNS
-SUBSYSTEM DESIGN
-INTERFACE DESIGN
-DFD PREPARATION
-MODULE INTERACTION DIAGRAMS PREPARATION
-FLOWCHART PREPARATION
-HIERARCHICAL STRUCTURE CHART PREPARATION

#CODING

-MODULE PREPARATION
-MODULE IMPLEMENTATION
-UTILITIES DEVELOPMENT
-NAMESPACE ORGANIZATION
Page | 23
-CODING THE FUNCTIONS
-IMPLEMENTATION OF MECHANISMS
-USER INTERACTION DEVELOPMENT
-WORKFLOWS DEVELOPMENT
-DEVELOPMENT OF TESTING PROGRAMS

#TESTING

-TESTING OF TESTING PROGRAMS


-MECHANISMS TESTING
-UNIT TESTING
-MODULE TESTING
-DATA FLOW TESTING
-ALGORITHM COMPLIANCE TESTING
-STRESS TESTING
-ROBUSTNESS TESTING

#DEPLOYMENT

-EXECUTABLE CREATION
-SET UP CREATION
-DEPLOYMENT TO STORAGE MEDIA

#DOCUMENTATION

-USER MANUAL DEVELOPMENT


-PROJECT REPORT DEVELOPMENT

Page | 24
7.2 PERT CHART

PERT shows precedence relationships among the tasks and various stages of a project.
By the helps of PERT chart, a project manager can identify the activities and the
amount of time they require, show their interrelationships, specify their sequence, and
have a meant of monitoring progress on the project.

PERT makes use of tasks. Like milestone charts, it shows achievements. These
achievements however are not task achievements. They are terminal achievements,
called EVENTS.

Each activity/Task of the project is represented by a directional are (more


commonly known as arrow) pointing in the direction of progress in this project.

The circles represent the beginning or completion of a task. The nodes at the network
( also referred as events ) establish the relationship among the different activities of the
project. The rules are available for construction networks:

1. Each activity is represented by one and only One arrow in the network.
2. Each action must be identifying by two distinct nodes.

This is the table of ‘Activity’ and it’s estimated time duration, which are used to
accomplish the project “TOTALHEALTH.CO.IN.

Activity Preprocessor(s) Duration (In Days)


A: Study
B: Analysis
C: Form Design
Page | 25
D: Coding and Testing
E: Database Design
F: Connectivity
G: Test with Database
H: Documentation
I: Error trapping
J: Final Test

5
E 8
A B C D F G I J
1 2 3 4 6 8 9 1 1
0 1
15 12 8 10 10 10 10

15
H7

8. Methodology Adopted

8.1 INTRODUCTION

A software life cycle is the series of identifiable stages that a Software

product undergoes during its lifetime. The first stage in the life Cycle of any
Page | 26
software product is usually the feasibility study stage.

The Subsequent stages are:

requirement analysis and specification, design, coding, testing and maintenance.

Each of these stages is called a life cycle Phase. A life cycle model represents all
the activities required to make a software product transit through its life cycle
phases. It also captures the order in which these activities are to be undertaken. The
most strict life cycle model used is the Classical Life Cycle Model. However, in
any practical software development work, it is not possible to strictly follow the
classical waterfall model from every phase to its preceding phases.

8.2 METHODOLOGY USED

Page | 27
 Structured system analysis techniques had been adopted for the analysis of
the algorithm and software development.

 Structured system design techniques had been adopted for the design of the
algorithm and software development.

 Prototyping model for initial implementation had been used for early testing
and module development.

 Prototyping model had been used for the development of the Graphical User
Interface.

 Incremental Model had been used for the development of the software.

 Structured development life cycle had been used for this project.

 PERT chart is the primary Tool used for system planning.

 Project cost had been estimated as a function of comparing the cost of


similar available products, effort estimation on the project, resources
acquired for the project and COCOMO Model as the theoretical reference.

 Test plan was created to form the strategy of testing. This includes the
decision of testing techniques, decision of testing tools, and decision of
milestones when the testing will commence.

8.3 ANALYSIS METHODS

 Structured system analysis techniques are used for the analysis of algorithm
and development.

 Background analysis: concept of mining and about the algorithm is learned


through research papers on Internet and experts theory.

Page | 28
 Fact-finding: facts about the algorithm are collected from the books and
Internet.

 Fact analysis: facts are analyzed through different examples related to


algorithm.

 DFDs and flowchart are used to model the algorithm and logic design.

8.4 DESIGN METHODS

 Structured design techniques are used to design the software.

 An activity of all phases of a project is the walk-through. It is an


interchange of ideas among the team members. In design walk-through,
the purpose is to recognize as many problems in the software as possible
while they are still “paper tigers”

 Activity diagram are used then to define the behavior of mechanism.

 Layering has been done to refine the architecture. Initially, two layers are
introduced, system layer and application layer.

 Demo version is created on these lines of design techniques to


demonstrate the feasibility of design methods.

 Database design is according to the implementation of algorithms.

8.5 CODING METHODS


Page | 29
 Event driven programming language ASP.Net had been used for coding the
modules and programs.

 Structured English and pseudo-codes are used to closely refine the


mechanisms using the facility of defined objects.

 Various stubs had been used to facilitate incremental coding followed by


testing.

 The basic philosophy followed at this stage:” code one line followed by
rigorous testing”.

 Integrated development environment of .Net had been used for the


development of various modules in integrated manner.

 Incremental compilation had been used to compile and test on which work
was in progress.

 Stepwise refinement technique had been used to code the modules.

8.6 TESTING METHODS

 Structured testing tools had been used for testing the programs.

 Small programs are developed to test the individual modules.

 Each module is tested by the development of appropriate functionality.

 Groups of people were assigned to test the software functionality.

 The same group is responsible to test the reliability of software by using


various inputs and techniques, on various parts and functionalities.

Page | 30
 The group had done Alpha testing.

 Software is distributed to doctors and scientist to Beta-test the entire softwar

9. SYSTEM IMPLEMENTATION

Direct Implementation Method is used to implement the system at


the user’s site. No special Equipment (Hardware Device) is required to install the
Software. The only requirement is the user must have a Printer Installed &
connected to the system for the generation of the various receipts & the reports.

9.2 Hardware Specification

It is recommended that the minimum configuration for clients is as appended


below:-
Suggested Configuration of Windows clients:-

Microprocessor : Pentium-2 class processor, 450 megahertz MHz)


Ram : 128 MB of RAM
Hard Disk : 2.5 gigabytes (GB) on installation drive, which
Includes 500 MB on system drive.

CD ROM Drive : 52 X CD ROM Drive

9.3 Software Specifications

Page | 31
Operating System : Windows 2000XP/Windows 2000 NT
RDBMS : Sql Server 2005
Front End : Microsoft Visual Studio.NET with C#

9.4 INTRODUCTION TO ASP.NET

ASP.NET offers a novel programming model and infrastructure that facilitates a


powerful new class of applications. ASP.NET is a compiled. NET-based
environment, so one can author applications in any .NET compatible language,
including Visual Basic, C# and Jscript.NET. Developers can effortlessly access the
advantage of these technologies, which consist of a managed Common Language
Runtime environment, type safety, inheritance, and so on. With the aid of
Microsoft Visual Studio.NET Web development become easier.

Web Forms permits us to build powerful forms-based Web pages. When building
these pages, we can use Web Forms controls to create common UI elements and
program them for common tasks. These controls permit us to rapidly build up a
WebForm.

Web services enable the exchange of data in client-server or server-server


scenarios, using standards like HTTP, SOAP (Simple Object Access Protocol) and
XML messaging to move data across firewalls. XML provides meaning to data,
and SOAP is the protocol that allows web services to communicate easily with one
another. Web services are not tied to a particular component technology or object-
calling convention. As a result, programs written in any language, using any
component model, and running on any operating system can access Web services.

Page | 32
Advantages of ASP.NET

The .NET Framework comprises over 3,400 classes that we can employ in our
ASP.NET applications. We can use the classes in the .NET Framework to develop
any type of applications. Since ASP.NET is part of the .NET Framework, we can
do all these things from within an ASP.NET page. While ASP Classic pages are
formed with scripting languages such as VBScript and JavaScript. ASP.NET pages
are formed with full-blown programming languages such as Visual Basic and C#.
And whereas there are five

standard objects accessible in the ASP Classic Framework (the Request, Response,
Application, Session, and Server objects), there are over 3,400 standard objects in
the .NET Framework that we can use in an ASP.NET page.

ASP.NET Pages are compiled


When an ASP.NET page is first requested, it is compiled and cached on the server.
This means that an ASP.NET page performs very rapidly. All ASP.NET code is
compiled rather than interpreted, which permits early binding, strong typing, and
just-in-time (JIT) compiling to native code.

XML-Based
ASP.NET configuration settings are stored in XML-based files, which are human
readable and writable. Each one of our applications can have a different
configuration file and we can extend the configuration scheme according to our
necessities.

Page | 33
Code-Behind logic
The main problem with ASP Classic pages is that an *.asp page does not yield
modularized code. Both HTML and Script are present in a single page. But
Microsoft's ASP.NET implementation contains a new-fangled method to break up
business logic code from presentation code. Each ASPX created in Visual Studio
has an equivalent class written in a .NET compliant language such as C#. This
class consists of event handlers, initialization code and other supporting code for
the user interface in the ASPX file. The C# file that hold this class is called the
code-behind file and affords the ASPX file's programmatic implementation.

ASP.NET Pages are built with Server Controls


We can easily build complex Web pages by bring together the pages out of
ASP.NET server controls. For example, by adding validation controls to a page, we
can easily validate form data.

Introduction of Database management System


A database is a collection of

interrelated data. The collection of data must be logically coherent with some

inherent meaning. A database is designed and built for a specific purpose, keeping

in mind the needs of the applications that are going to use it and end users of those

applications. It is managed by a software package known a database management

system (DBMS).

A DBMS is a software system that enables users to record and maintain database.

It provides an environment where in data can be stored and retrieved from database

Page | 34
easily and must efficiently. The data can be any thing that is deemed to be of

significant to the organization, the system is serving.

9.5 SQL-SERVER

In recent years, Database Management System (DBMS) have established


themselves as primary means of data storage for information system ranging from
large commercial transaction to PC desktop application. At the heart of today’s
most of the information system is Relational Database System (RDBMS).

Have been the workhouse for data management operation for over a decade
and continue to evolve and mature, providing sophisticated storage, retrieval and
distribution function to enterprise – wide data processing and management system
compared to the file system, RDBMS provides organization with capability to
easily integrate and leverage the massive amount of operational data into
meaningful data.

The evolution of high-powered database engine such as SQL Server 2005


has faster the development of advance enabling technology including
client/server ,data warehousing and online processing ,all of which comprise the
core today’s state –of –art information system. A database is an organized
collection of related information. Any meaningful data is called information. A
database management system is a collection of interrelated data a set of programs
to access that data.

The SQL Server architecture in this section is generic architecture that


applies all platforms on which SQL run. These may be different platform, but the
fundamentals are same. Physically in its simplest form, an SQL database is nothing
more than a set of files on the disk. The physical relation of these files is irrelevant
to the function of the database. Logically the database is divided into a set of user

Page | 35
account, each of which is identified by username and password unique to the
database. Tables and objects are owned one by one of these. SQL Server maintains
its own list of authorized user and their associated privileged, manages memory
cache paging; control locking for concurrent resource usage; dispatch and
schedules users request ; manages space usage within its table space structure.

SQL SERVER-2005 ARCHITECTURE

SQL Files

There are major three sets of files on the disk that compose
database: 1) Database File 2) Control File 3) Redo Files

The most common is the database files where the data resides. The control and the
redo logs support the functioning of the architecture itself. All of these sets of files
be present, open and available to SQL Server for any data on database to be usable
all these files are binary files.

 Memory

SQL Server uses the memory of the system to turn the user process
and to cache data objects. There are major areas used by SQL Server : memory that
is shared by all process against the data and the database memory that is local to
each individual user process.

 System Memory

Page | 36
SQL Server database wide system memory is known as the SGA
(System Global SQL Shared Area). The data and control structures in SGA are
sharable and all SQL Server background process uses them.

10. SYSTEM MAINTENANCE

System maintenance denotes any changes made to a software product


after it has been delivered to the customer. Maintenance is inevitable for almost
any kind of product. However, most products need maintenance due to the wear
and tear caused by use. On the other hand, software products do not need
maintenance on this count, but need maintenance to correct errors, enhance
features, port to new platforms, etc.

Software maintenance is becoming an important activity of large number


of organizations. This is no surprise, given the rate of hardware obsolescence, the
immortality of a software product per se, and the demand of the user community to
see the existing software products run on newer platforms, run in newer
environments, and/or with enhanced features. When the hardware platform
changes and a software product perform some low-level functions, maintenance is
necessary. Also, whenever the support environment of a software changes, the
software product requires re-work to cope with the newer interface. Thus, every
software product continues to evolve after its development through maintenance
efforts.

Maintenance covers a wide range of activities including correcting, coding


and designing errors, updating documentation and test data and upgrading user
support. Enhancement means adding, modifying or re-developing the code to
support changes in the specifications. It is necessary to keep up with the changing
user needs and the operational environment. The software is designed with the
view of easy updating to the software. Future advancements can be done easily
through the review of product. The software architecture is strong enough to
provide enhancement in functionality, performance and reliability. Functions in the

Page | 37
software are designed in such away that they dynamically update on addition of
new and revised modules. To append new features in this software, the databases
for student details, examination details are sufficient enough for the task. Thus the
software is capable enough of being enhanced easily whenever requires by the
user.

11. COST & BENEFITS ANALYSIS

 Cost of PC/XT, Printer, Voltage Regulator= Rs. 50,000


 Cost of Space (Nil)= no extra space allocated
 Cost of System Analysis/ Programmers/ Consultants for two Months= Rs.
10,000
 Stationery Cost/ Floppy Cost/ Maintenance/ Electricity= Rs. 900 Per
Month
 Capital Cost= Rs. 20,000
 Recurring Cost= Rs. 800 per month

Benefits (Direct Savings)

 Stationery Cost=Rs. 10,000

Intangible Benefits

 Better Performance reflected in the Admission Procedure and Information


Retrieval.

o Total Effort = 1000 man-hours


o Total Benefits= Rs. 10,000 per month

Page | 38
o Recurring Cost= Rs. 800 per month
o Net Benefit per Month= Rs. 9200
o Total Cost= Rs. 20, 000

11.1 ENTITY RELATIONSHIP DIAGRAM

INTRODUCTION

11.2 DATA FLOW DIAGRAM

Page | 39
The DFD also known as the Bubble Chart is a simple graphical formalism that
can be used to represent a system in terms of the input data to the system. Various
processing carried out on these data, and the output data generated by the system.
The main reason why the DFD technique is so popular is probably because of the
fact that DFD is a very simple formalism-it is simple to understand and use. A
DFD uses a very limited number of primitive symbols to represent the functions
performed by a system and the data flow among these functions. Starting with a set
of high-level functions that a system performs, a DFD model hierarchically
represents various sub functions. The five different types of primitive symbols used
for constructing DFDs are:

SYMBOLS USED:

 PROCESS:

A function is represented using a circle. This symbol is called a process


or a bubble. Bubbles are annotated with the names of the corresponding
functions.

 EXTERNAL ENTITY:

Page | 40
An external entity such as a librarian, a library member, etc. is
represented by a rectangle. The external entities are essentially those
physical entities external to the software system that interact with the
system by inputting data to the system or by consuming the data
produced by the system. In addition to the human users, the external
entity symbols can be used to represent external hardware and software
such as application software.

 DATA FLOW:

A directed arc or an arrow is used as a data flow symbol. A data


flow symbol represents the data flow occurring between two processes,
or between an external entity and a process, in the direction of the data
flow arrow. Data flow symbols are usually annotated with the
corresponding data names.

 DATA STORE:

Page | 41
A data store represents a logical file. It is represented using two parallel
lines. A logical file can represent either a data store symbol, which can
represent either a data structure, or a physical file on disk. Each data
store is connected to a process by means of a data flow symbol. The
direction of the data flow arrow shows whether data is being read from
or written into a data store. A arrow flowing in or out of a data store
implicitly represents the entire data of the data store and hence
connecting to a data store need not be annotated with the name of the
corresponding data items.

 OUTPUT SYMBOL:

The output symbol is used when a hard copy is produced and the user of
the copies cannot be clearly specified or there are several users of the
output.

 CONTEXT DIAGRAM

The context diagram is the most abstract data flow


representation of a system. It represents the entire system as a single
bubble. This bubble is labeled according to the main function of the
system. The various external entities with which the system interacts and
the data flows occurring between the system and the external entities are
also represented.

Page | 42
Figgure 1: 0 Lavel
DFD
Admin
User
Get
Get Response Response

Login/Registration
Login

Book Cab Online Cab


Services
Update/Delete
Update Profile Booking Status

Page | 43
FIRST LEVEL DFD

To develop the level 1 DFD, examine the high-level functional


requirements. If there are between three to seven high-level functional
requirements, then these can be directly represented as bubbles in the
level 1 DFD. We can then examine the input data to these functions and
the data output by these functions, and represent them approximately in
the diagram.

LEVEL–1 DFD :
Figgure :1 Lavel
DFD

User

Booking Cab

Get Booking Id View


Registration Book Cab
Booking
Status
Page | 44

Data Table Data Table Data Table Data Table


11.3 STRUCTURE CHART

MAIN MENU SUBMENU

ENTRY FORM
PERSON DETAILS FORM
BLOOD TEST DETAILS
URINE TEST DETAILS
OTHER TEST DETAILS
VIEW
PERSON TEST DETAILS
REPORTS
PERSON BLOOD DETAILS
PERSON URINE DETAILS
STATEWISE REPORT
PERSON GROWTH CHART
REPORT
BLOOD GROUP REPORT
HIV STATUS REPORT
RHS STATUS REPORT
PERSON BLOOD GRAPH
REPORT
PERSON URINE GRAPH
REPORT
REGISTRATI
ON
HOSPITAL REGISTRATION
FORM
ADVERTISE
MENT
ADD ADVERTISEMENT
FORM

Page | 45
DISPLAY
ADVERTISEMENT FORM

12. Screen Shoots

Home page of the project online cab

Page | 46
Booking Page.aspx

Page | 47
MycabBooking.aspx

Page | 48
NewBooking.aspx(Reg
ister User)

Page | 49
Confirm.Aspx

Page | 50
UpdateProfile.Aspx

Page | 51
GestConfirm.Aspx

Page | 52
13. Process Involved

LOGIN PROCESS :
START

Input User ID

NO

If
ID
is correct

YES

Option for page

Generate Output

Page | 53
STOP

SEARCHING TEST DETAILS PROCESS:

START

Enter Details for cab


Booking

NO If
No service Serach
avialbe
Found

YES
Display Coresponding
Details

STOP
Page | 54
14. Test Reports

TESTING METHODOLOGY

 Test plan has been created to guide the overall testing process.

 Modular testing has been used to test each module.

 Black box testing has been used to test the functionality of each module.

 ASP.Net debugger has been used as a tool to black box test functional
behavior of module.

 ASP.Net debugger has also been used for white box testing by comparing
step-by-step execution against white box cases.

 On-line testing of the software by live entering the details of five


 Different students.

T E S T C A S E -1

TEST NO. :1

TEST TYPE : UNIT TESTING

Page | 55
INPUT : PASSWORD

OBJECTIVE : CHECKING PASSWORD SECURITY

EXPECTED OUTPUT: ACCESS TO AUTHORIZED USERS ONLY

ACTUAL OUTPUT : PASSWORD SECURITY SUCCESSFUL

RESULT : ACCESS TO ONLY AUTHORIZED USERS

T E S T C A S E -2

TEST NO. :2

TEST TYPE : UNIT TESTING

INPUT : PASSWORD IN UPPER CASE

OBJECTIVE : CHECKING PASSWORD SECURITY

EXPECTED OUTPUT: ACCESS TO AUTHORIZED USERS ONLY

ACTUAL OUTPUT : PASSWORD SECURITY UNSUCCESSFUL

RESULT : ACCESS TO ONLY AUTHORIZED USERS WITH LOWER


CASE ALPHABETS

T E S T C A S E -3

TEST NO. :3

TEST TYPE : UNIT TESTING

Page | 56
INPUT : TELEPHONE NO., MOBILE NO, ETC.

OBJECTIVE : ALPHABETS IN NUMERIC VALUES

EXPECTED OUTPUT : ERROR MESSAGE

ACTUAL OUTPUT : ERROR MESSAGE

RESULT : ONLY INTEGERS ARE ACCEPTED FOR THE


CONTACT
NUMBERS

Page | 57
17. Coding

Login.Aspx.Cs

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Com.Health.Application;
using Com.Health.DataBase;
using Com.Health.Security;
using Com.Health.Ui;

public partial class Default4 : System.Web.UI.Page


{
protected void sign_in_Click(object sender, EventArgs e)
{
HttpCookie ck = new HttpCookie("Cookie");
HttpCookie ck1 = new HttpCookie("Cookie1");
if (WebFactory.login(user.Text, pwd.Text, Session.SessionID))
{
if (WebFactory.ValidateUser(Session.SessionID))
{
WebSession obj = WebFactory.getUser(Session.SessionID);
if ((obj.GetRole.ToLower().Trim() == "user"))

Page | 58
{
ck.Value = pwd.Text;
ck.Expires = DateTime.Now.AddDays(+2);
Response.Cookies.Add(ck);
ck1.Value = obj.GetRole.ToLower().Trim();
ck1.Expires = DateTime.Now.AddDays(+2);
Response.Cookies.Add(ck1);
Response.Redirect("Person_Detail_Page.aspx");
}
else if ((obj.GetRole.ToLower().Trim() == "admin"))
{
ck1.Value = obj.GetRole.ToLower().Trim();
ck1.Expires = DateTime.Now.AddDays(+2);
Response.Cookies.Add(ck1);
Response.Redirect("Admin_Page.aspx");
}

else if ((obj.GetRole.ToLower().Trim() == "staff"))


{
ck1.Value = obj.GetRole.ToLower().Trim();
ck1.Expires = DateTime.Now.AddDays(+2);
Response.Cookies.Add(ck1);
Response.Redirect("Staff_Page.aspx");
}
}
else
{
Response.Redirect("Home.aspx");
}
Response.Write(Request.Cookies["Cookie1"].Value);
}

protected void l1_Click(object sender, EventArgs e)


{
Response.Redirect("home.aspx");
}

Page | 59
protected void l2_Click(object sender, EventArgs e)
{
Response.Redirect("contact.aspx");
}

Login.Aspx.Cs(Source)

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Home.aspx.cs"


Inherits="Default4" %>

<!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 id="Head1" runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function back()
{
window.history.back();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<br />
<table border="0" >
<tbody>
Page | 60
<tr >
<td style="width:800px; background-color:#FFFBD6;">
<marquee scrollDelay="200" behavior="alternate"><h1><b><font
color="teal"> HEALTH CARE SERVICES</font></b></h1></marquee></td>
<td align="right" style="height: 13px; background-color:#FFFBD6;
width:400px">
<img src="pic/about-us.gif" alt="About Us"/><a href="Home.aspx">About
Us</a>
<img src="pic/news.gif" alt="Latest News"/><a href="Home.aspx">News</a>
<img src="pic/site.gif" alt="Site Map"/><a href="sitemap.aspx">Site Map</a>
<img src="pic/login-key.gif" alt="Login" id="IMG1" /><a
href="Home.aspx">Login</a>
</td>
</tr>
<tr>
<td colspan="2" align="center" style="height:200px; width:1400px;background-
color:#FFFBD6;">

<asp:AdRotator ID="AdRotator1" runat="server" DataSourceID="topadd" />

<asp:SqlDataSource ID="topadd" runat="server" ConnectionString="<%$


ConnectionStrings:health_infoConnectionString %>"
SelectCommand="SELECT [ImageUrl], [Width], [Height], [AlternateText],
[NavigateUrl], [Impression] FROM [Add_Details] WHERE ([keyword] =
@keyword)">
<SelectParameters>
<asp:Parameter DefaultValue="Top Box Banner On Home Page"
Name="keyword" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr style="background-color:#A1CCFF">
<td align="center" onmouseover='style.background="#A1CCFF"'
onmouseout='style.background="#CFE5FF"' style="width:300px"><a
href="Home.aspx">Home</a></td>
Page | 61
<td align="center" onmouseover='style.background="#A1CCFF"'
onmouseout='style.background="#CFE5FF"' style="width:300px"><a
href="Health.aspx">HealthCare Services</a></td>
<td align="center" onmouseover='style.background="#A1CCFF"'
onmouseout='style.background="#CFE5FF"' style="width:300px"><a
href="SiteMap.aspx">Site Map</a></td>
<td align="center" onmouseover='style.background="#A1CCFF"'
onmouseout='style.background="#CFE5FF"' style="width:350px"><img
src="pic/patient.gif" alt="patient info"/><a href="Pinfo.aspx">Patient
Infomation</a></td>

</tr>
</tbody>
</table>
<table border="1">
<tr>
<td style="height:294px; width:597px;background-color:#FFFBD6;"
align="center">
<asp:AdRotator ID="AdRotator2" runat="server" Style="left: 54px; position:
absolute; top: 445px" DataSourceID="SqlDataSource1"
OnAdCreated="AdRotator2_AdCreated" />
&nbsp; &nbsp;
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:health_infoConnectionString5 %>"
SelectCommand="SELECT [ImageUrl], [Width], [Height], [NavigateUrl],
[AlternateText], [Impression] FROM [Add_Details] WHERE ([keyword] =
@keyword)">
<SelectParameters>
<asp:Parameter DefaultValue="Inner Box Banner On Home Page"
Name="keyword" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</td>
<td style="height:294px;width:547px;" valign="top">
<img src="pic/mainhome_top.jpg" alt="emblem" />
<marquee scrollAmount="2" scrollDelay="50" valign="top" direction="up"
style="height:250px; width: 547px;" align="justify"><FONT face="Times New
Roman"
size="3"><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;<B>W</B>elcome
Page | 62
to the <FONT color=teal>TOTAL Health Care Services.</FONT> This
website
will be your gateway to a wealth of information regarding the Health
Indicators of India. The information available on this website is being
compiled from varied information sources such as National Family Health
Survey (NFHS), District Level Household Survey (DLHS), Census, SRS and
performance statistics. </p>
<P>The aim to develop this website is to
capture all kinds of information related to health and socio-economic data
associated with location wise so that these inputs can further be used to
decide about the effectiveness of the recommendations given to the person.
This module will also produce different kinds of reports and analyses for
the scientists / planners / doctor so as to enable them for better
decision making. </P></FONT></marquee>
</td>
<td style="height:294px; width:350px; background-color: #fffbd6;">
&nbsp;<table align="center" border="0">
<tr>
<td colspan="3">
<img src="pic/welcome.gif" alt="WELCOME" />
</td></tr>
<tr>
<td rowspan="3"><img src="pic/wokinglady.gif" alt="Login" /></td>
<td><asp:Label runat="server" id="user_name" Text="User Name"
Style="width:100px"></asp:Label></td>
<td><asp:TextBox runat="server" ID="user" Text=" UserName"
Style="width:150px" ></asp:TextBox></td></tr>
<tr>
<td><asp:Label runat="server" id="password" Text="Password"
Width="67px"></asp:Label></td>
<td><asp:TextBox runat="server" ID="pwd" Text="............"
TextMode="Password" Style="width:150px"></asp:TextBox></td>
</tr>
<tr>
<td colspan="2" align="center" style="height: 30px">
<asp:Button runat="server" ID="sign_in" Text="SignIn"
OnClick="sign_in_Click" /> </td>
</tr>
<tr>
<td colspan="3" align="center" style="height: 94px" >
Page | 63
<marquee behavior="alternate"> <img src="pic/thumbnail[47].jpg"
style="width:350px" alt="image"/></marquee></td></tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" style="height:200px; width:1200px; background-
color:#FFFBD6;" align="center">
<asp:AdRotator ID="add3" runat="server" DataSourceID="DownAdd"
Height="43px" Width="114px" />
<asp:SqlDataSource ID="DownAdd" runat="server" ConnectionString="<%$
ConnectionStrings:health_infoConnectionString4 %>"
SelectCommand="SELECT [ImageUrl], [Width], [Height], [NavigateUrl],
[AlternateText], [Impression] FROM [Add_Details] WHERE ([keyword] =
@keyword)">
<SelectParameters>
<asp:Parameter DefaultValue="Down Box Banner On Home Page"
Name="keyword" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
</td>
</tr>
<tr>
<td align="CENTER" style="background-color:#fffbd6" colspan="3">
<asp:LinkButton ID="l1" runat="server" BackColor="#fffbd6"
Text="HOME" OnClick="l1_Click"></asp:LinkButton>&nbsp;&nbsp;|
&nbsp;&nbsp;
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US"
OnClick="l2_Click" ></asp:LinkButton>&nbsp;&nbsp;|&nbsp;&nbsp;
<input type="button" name="l3" onclick="back()" value="Back"
id="Button1">
</td></tr>
<tr>
<td align="center" colspan="3" style="background-color: #fffbd6">
<img src="pic/wave.gif" alt="wave" /></td></tr>
<tr>
<td colspan="3" align="center" style="background-color: #fffbd6">
@copyright reserved by "Ducat Academy"</td></tr>
</table>
</div>
Page | 64
</form>
</body>
</html>

Add_Page.Aspx.Cs

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Com.Health.Application;
using Com.Health.DataBase;
using Com.Health.Security;
using Com.Health.Ui;
using System.Windows.Forms;

public partial class Add_Page : System.Web.UI.Page


{

DialogResult d;
protected void addbtn_Click(object sender, EventArgs e)
{
d=MessageBox.Show("Are you sure to upload this add
now:","Confirm",MessageBoxButtons.OKCancel,MessageBoxIcon.Infor
mation);
if (d==System.Windows.Forms.DialogResult.OK)
{
Page | 65
string s = null;
s = Server.MapPath("add_pics");
s = s + "/" + fileup.FileName;
fileup.SaveAs(s);
s = "add_pics/" + fileup.FileName;
string query = "insert into Add_Details values ('" + s + "', " + ad_width.Text
+ "," + ad_height.Text + ",'" + navigate_url.Text + "','" + alt_text.Text + "','"
+ add_place.SelectedItem + "'," + impression.Text + ",'" +
DateTime.Now.ToShortDateString() + "')";
Com.Health.DataBase.Connection con =
Com.Health.DataBase.ConnectionPool.getConnection();
int i=con.ExecuteNonQuery(query);
Com.Health.DataBase.ConnectionPool.Free(con);
if (i > 0)
{
MessageBox.Show("Your Addvertisement has been uploaded
successfully", "Add", MessageBoxButtons.OKCancel);
clear();
}
}
else
{
clear();
}
}

public void clear()


{
ad_width.Text = " ";
ad_height.Text = " ";
navigate_url.Text = " ";
alt_text.Text = " ";
impression.Text = " ";
}

protected void add_place_SelectedIndexChanged(object sender, EventArgs e)


{

Page | 66
if ((add_place.SelectedItem.Value == "TBBOHP") ||
(add_place.SelectedItem.Value == "DBBOHP"))
{
ad_width.Text = "1200";
ad_height.Text = "200"
}
else if (add_place.SelectedItem.Value == "IBBOHP")
{
ad_width.Text = "400";
ad_height.Text = "294";
}
else if (add_place.SelectedItem.Value == "IBBOPDP")
{
ad_width.Text = "200";
ad_height.Text = "180";
}
else if(add_place.SelectedItem.Value=="TBBOPDP")
{
ad_width.Text = "200";
ad_height.Text = "180";
}
}

protected void l1_Click(object sender, EventArgs e)


{
Response.Redirect("home.aspx");
}

protected void l2_Click(object sender, EventArgs e)


{
Response.Redirect("contact.aspx");
}

protected void lk1_Click(object sender, EventArgs e)


{
WebFactory.LogOut(Session.SessionID);
Response.Redirect("home.aspx");
}
}
Page | 67
Add_Page.Aspx.Cs(Source)

<%@ Page Language="C#" AutoEventWireup="true"


CodeFile="Add_Page.aspx.cs" Inherits="Add_Page" %>

<!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 id="Head1" runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function back()
{
window.history.back();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td colspan="2" align="right">
<img src="pic/about-us.gif" alt="About Us"/><a href="Home.aspx">About
Us</a>
Page | 68
<img src="pic/news.gif" alt ="News"/><a href="Home.aspx">News</a>
<img src="pic/login-key.gif" alt="Login_key" id="IMG1"/><asp:LinkButton
ID="lk1" runat="server" Text="LogOut"
OnClick="lk1_Click"></asp:LinkButton>
</td>
</tr>

<tr>
<td style="height:180px; width:213px"><img src="pic/pillspic.jpg"alt="pills"
style="width:213px; height:180px"/>
</td>
<td style="height:180px; width:2000px"><img src="pic/topbanner.jpg"
alt="topbanner" style="width: 995px; height: 177px"/>&nbsp;
</td>
</tr>
</table>
<table>
<tr>
<td style="width:300px; height:600px; background:#FFFBD6;" >

<asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6"


DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="Medium" ForeColor="#990000"
Height="303px"
PathSeparator="-" StaticSubMenuIndent="10px" Style="z-index: 100; left:
15px;
position: absolute; top: 270px" Width="1px"
OnMenuItemClick="Menu1_MenuItemClick" >
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#990000" ForeColor="White"
BorderStyle="Solid" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<StaticSelectedStyle BackColor="#FFCC66" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<DynamicMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" BorderStyle="Solid" />
<Items>
<asp:MenuItem Text="Entry Forms" Value="Entry">
<asp:MenuItem Text="Personal Details Form" Value="PDF"
NavigateUrl="~/Person_Entry.aspx"></asp:MenuItem>
Page | 69
<asp:MenuItem Text="Blood Test Form" Value="BTF"
NavigateUrl="~/Blood_Entry.aspx"></asp:MenuItem>
<asp:MenuItem NavigateUrl="~/Urine_Entry.aspx" Text="Urine Test
Form" Value="UTF">
</asp:MenuItem>
<asp:MenuItem NavigateUrl="~/Gen_Details_Entry.aspx"
Text="Other Test Form" Value="OTF">
</asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="View" Value="View">
<asp:MenuItem Text="Person Test Details" Value="PTD"
NavigateUrl="~/Person_Entry.aspx"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Reports" Value="Other Test Details">
<asp:MenuItem Text="Person Blood Report"
Value="PBR"></asp:MenuItem>
<asp:MenuItem Text="Person Urine Report"
Value="PUR"></asp:MenuItem>
<asp:MenuItem Text="Statewise Report"
Value="SR"></asp:MenuItem>
<asp:MenuItem Text="Person Growth Chart Report"
Value="PGCR"></asp:MenuItem>
<asp:MenuItem Text="Blood Group Report"
Value="BGR"></asp:MenuItem>
<asp:MenuItem Text="HIV Status Report"
Value="HSR"></asp:MenuItem>
<asp:MenuItem Text="RHS Status Report"
Value="RSR"></asp:MenuItem>
<asp:MenuItem Text="Person Blood Graph"
Value="PBG"></asp:MenuItem>
<asp:MenuItem Text="Person Urine Graph"
Value="PUG"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Hospital Registration" Value="HR">
<asp:MenuItem Text="Hospital Registration form" Value="HRF"
NavigateUrl="~/Hos_reg.aspx"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Advertisement" Value="Add">
<asp:MenuItem Text="Add Advertisement Form" Value="AAF"
NavigateUrl="~/Add_Page.aspx"></asp:MenuItem>
Page | 70
<asp:MenuItem Text="Display Advertisement Form" Value="DAF"
NavigateUrl="~/Add_Detail.aspx"></asp:MenuItem>
</asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="#990000" ForeColor="White" />
<StaticMenuStyle BorderStyle="None" />
</asp:Menu>

</td>
<td style="width:1146px; height:458px">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="Arial"
Font-Overline="True"
Font-Size="Larger" Font-Underline="True" ForeColor="Teal"
Height="26px" Style="z-index: 100;
left: 269px; position: absolute; top: 259px" Text="Advertisement
Entry Form"
Width="392px"></asp:Label>
<table align="center" border="4" style="background-
color:PaleTurquoise;border-color:DeepSkyBlue;">
<tr>
<td style="width:314px; height:50px" align="left"><asp:Label ID="add"
runat="server" Text="Advertisement Placement" style="width:400px;
height:400px" Font-Size="Larger" Font-Names="Arial" ></asp:Label></td>
<td style="width:350px; height:50px" align="left" >
<asp:DropDownList ID="add_place" runat="server" Width="204px"
OnSelectedIndexChanged="add_place_SelectedIndexChanged"
AutoPostBack="True">
<asp:ListItem Value="TBBOHP">Top Box Banner On Home
Page</asp:ListItem>
<asp:ListItem Value="DBBOHP">Down Box Banner On Home
Page</asp:ListItem>
<asp:ListItem Value="IBBOHP">Inner Box Banner On Home
Page</asp:ListItem>
<asp:ListItem Value="TBBOPDP">Top Box Banner On Person Details
Page</asp:ListItem>
<asp:ListItem Value="IBBOPDP">Inner Box Banner On Person Details
Page</asp:ListItem>
</asp:DropDownList> </td></tr>
<tr>

Page | 71
<td style="width:314px; height:50px" align="left"><asp:Label ID="width"
runat="server" Text="Advertisement Width" Font-Size="Larger" Font-
Names="Arial" ></asp:Label></td>
<td style="width:350px; height:50px" align="left"><asp:TextBox
ID="ad_width" runat="server" Width="201px"></asp:TextBox> </td></tr>
<tr>
<td style="width:314px; height:50px" align="left"><asp:Label ID="height"
runat="server" Text="Advertisement Height" Font-Size="Larger" Font-
Names="Arial"></asp:Label></td>
<td style="width:350px; height:50px" align="left"><asp:TextBox
ID="ad_height" runat="server" Width="203px"></asp:TextBox> </td></tr>
<tr>
<td style="width:314px; height:50px" align="left"><asp:Label ID="img"
runat="server" Text="Advertisement Image" Font-Size="Larger" Font-
Names="Arial"></asp:Label></td>
<td style="width:350px; height:50px" align="left"><asp:FileUpload
ID="fileup" runat="server" Width="292px" /> </td></tr>
<tr>
<td style="width:314px; height:50px" align="left"><asp:Label ID="nurl"
runat="server" Text="Navigate Url Of The Advertisement" Width="293px" Font-
Size="Larger" Font-Names="Arial"></asp:Label></td>
<td style="width:350px; height:50px" align="left"><asp:TextBox
ID="navigate_url" runat="server" Width="203px"></asp:TextBox> </td></tr>
<tr>
<td style="width:314px; height:50px" align="left"><asp:Label ID="atxt"
runat="server" Text="Alternate Text Of The Advertisement" Font-Size="Larger"
Font-Names="Arial"></asp:Label></td>
<td style="width:350px; height:50px" align="left"><asp:TextBox ID="alt_text"
runat="server" Width="203px"></asp:TextBox> </td></tr>

<tr>
<td style="width:314px; height:56px" align="left"><asp:Label ID="imp"
runat="server" Text="Impression Of The Advertisement" Font-Size="Larger"
Font-Names="Arial"></asp:Label></td>
<td style="width:350px; height:56px" align="left"><asp:TextBox
ID="impression" runat="server" Width="201px"></asp:TextBox> </td></tr>
<tr>
<td colspan="2" style="width:200px; border-color:DeepSkyBlue; height:68px"
align="right" ><asp:Button ID="addbtn" runat="server" Text="Add
Advertisement" OnClick="addbtn_Click" /></td></tr>
Page | 72
</table>

</td>
</tr>
<tr><td align="CENTER" colspan="2" style="background-color:#fffbd6">
<asp:LinkButton ID="l1" runat="server" BackColor="#fffbd6"
Text="HOME" OnClick="l1_Click" ></asp:LinkButton>&nbsp;&nbsp;|
&nbsp;&nbsp;
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US"
OnClick="l2_Click" ></asp:LinkButton>&nbsp;&nbsp;|&nbsp;&nbsp;
<asp:LinkButton ID="l3" runat="server" Text="BACK"
OnClientClick="back()"></asp:LinkButton>
</td></tr>
<tr>
<td colspan="2" align="center" style="background-color:#FFFBD6;"><img
src="pic/wave.gif" alt="Created By"/>
</td></tr>
<tr>
<td colspan="2" align="center" style="background-
color:#FFFBD6;">@copyright 2009 reserved by "Ducat Academy"</td></tr>
</table>

</div>
</form>
</body>
</html>

Page | 73
Add_Details.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Add_Detail.aspx.cs" Inherits="Add_Detail" %>

<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">

<table>
<tr>
<td><img src="pic/light.gif" alt="light" style="width:250px; height:150px"/>
</td>
<td style="width:900px; height:150px"><img src="pic/healthcare-software.jpg"
alt="Health Care" style="width:950px; height:150px"/>
</td>
</tr>
</table>
<table border="2" cellpadding="0" cellspacing="0">
<asp:Repeater ID="Repeater1" runat="server"
OnItemCommand="Repeater1_ItemCommand">
<HeaderTemplate>
<thead class="tableHeader" >
<tr>
<th>
</th>
<th>
Id
</th>
<th>
Page | 74
Image
</th>
<th>
Width
</th>
<th>
Height
</th>
<th>
Navigate Url
</th>
<th>
Alternate Text
</th>
<th>
Keyword
</th>
<th>
Impression
</th>
<th>
Addition Date
</th>
</tr>
</thead>

</HeaderTemplate>
<ItemTemplate>

<tr class="tableCellNormal">
<td >
<asp:LinkButton ID="l1" runat="server" Text="Delete"
CommandName="del"></asp:LinkButton></td>
<td style="left:50px">
<asp:TextBox runat="server" ID="txt1" Text='<%#Eval("id") %>'
ReadOnly="true" BorderWidth="0"></asp:TextBox>
</td>
<td>

Page | 75
<asp:Image runat="server" ID="txt2" ImageUrl ='<%# Eval("ImageUrl")
%>' BorderWidth="0" />
</td>
<td>
<asp:TextBox runat="server" ID="txt3" Text='<%# Eval("width")%>'
ReadOnly="true" BorderWidth="0"></asp:TextBox>
</td>
<td>
<asp:TextBox runat="server" ID="txt4" Text='<%# Eval("height")%>'
ReadOnly="true" BorderWidth="0"></asp:TextBox>
</td>
<td>
<asp:TextBox runat="server" ID="txt5" Text='<%# Eval("navigateurl")%>'
ReadOnly="true" BorderWidth="0" ></asp:TextBox>
</td>
<td>
<asp:TextBox runat="server" ID="txt6" Text='<%# Eval("alternatetext")%>'
ReadOnly="true" BorderWidth="0"></asp:TextBox>
</td>
<td>
<asp:TextBox runat="server" ID="txt7" Text='<%# Eval("keyword")%>'
ReadOnly="true" BorderWidth="0"></asp:TextBox>
</td>
<td>
<asp:TextBox runat="server" ID="txt8" Text='<%# Eval("impression")%>'
ReadOnly="true" BorderWidth="0"></asp:TextBox>
</td>
<td>
<asp:TextBox runat="server" ID="txt9" Text='<%#Eval("additiondate")%>'
ReadOnly="true" BorderWidth="0" ></asp:TextBox>
</td>
</tr>

</ItemTemplate>
</asp:Repeater>
</table>

</form>
</body>
Page | 76
</html>

Admin_Page.Aspx.Cs

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Windows.Forms;
using Com.Health.Application;
using Com.Health.DataBase;
using Com.Health.Security;
using Com.Health.Ui;

public partial class Admin_Page : System.Web.UI.Page


{

protected void b1_Click1(object sender, EventArgs e)


{
if (t1.Text == "")
{
MessageBox.Show("Please Enter Voter ID !!!");

Page | 77
}
else
{

Response.Redirect("Person_Detail_Page.aspx?a=" + t1.Text);

}
}

protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)


{
if (Menu1.SelectedItem.Value == "PTD")
{
l1.Visible = true;
b1.Visible = true;
t1.Visible = true;
}

}
protected void l1_Click(object sender, EventArgs e)
{
WebFactory.LogOut(Session.SessionID);
Response.Redirect("home.aspx");
}
protected void l2_Click(object sender, EventArgs e)
{
Response.Redirect("contact.aspx");
}
protected void lk1_Click(object sender, EventArgs e)
{
WebFactory.LogOut(Session.SessionID);
Response.Redirect("home.aspx");

}
}

Page | 78
Admin_Page.Aspx.Cs(Source)

<%@ Page Language="C#" AutoEventWireup="true"


CodeFile="Admin_Page.aspx.cs" Inherits="Admin_Page" %>

<!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>Untitled Page</title>
<script language="javascript" type="text/javascript">
function back()
{
window.history.back();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td colspan="2" align="right" style="background-color: #fffbd6">
<img src="pic/about-us.gif" alt="About Us" style="background-color:
#fffbd6"/><a href="Home.aspx">About Us</a>
<img src="pic/news.gif" alt ="News"/><a href="Home.aspx">News</a>
<img src="pic/login-key.gif" alt="Login_key" id="IMG1"/><asp:LinkButton
ID="lk1" runat="server" Text="LogOut"
OnClick="lk1_Click"></asp:LinkButton>
Page | 79
</td>
</tr>

<tr>
<td style="height:180px; width:220px"><img src="pic/pillspic.jpg"alt="pills"
style="width:220px; height:180px"/>
</td>
<td style="height:180px; width:995px"><img src="pic/topbanner.jpg"
alt="topbanner" style="width: 995px; height: 177px"/>&nbsp;
</td>
</tr>
</table>

<table>
<tr>
<td rowspan="3" style="width:220px; height:600px; background:#FFFBD6;" >

<asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6"


DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="Medium" ForeColor="#990000"
Height="303px"
PathSeparator="-" StaticSubMenuIndent="10px" Style="z-index: 100; left:
15px;
position: absolute; top: 280px" Width="1px"
OnMenuItemClick="Menu1_MenuItemClick" >
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#990000" ForeColor="White"
BorderStyle="Solid" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<StaticSelectedStyle BackColor="#FFCC66" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<DynamicMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" BorderStyle="Solid" />
<Items>
<asp:MenuItem Text="Entry Forms" Value="Entry">
<asp:MenuItem Text="Personal Details Form" Value="PDF"
NavigateUrl="~/Person_Entry.aspx"></asp:MenuItem>
<asp:MenuItem Text="Blood Test Form" Value="BTF"
NavigateUrl="~/Blood_Entry.aspx"></asp:MenuItem>

Page | 80
<asp:MenuItem NavigateUrl="~/Urine_Entry.aspx" Text="Urine Test
Form" Value="UTF">
</asp:MenuItem>
<asp:MenuItem NavigateUrl="~/Gen_Details_Entry.aspx"
Text="Other Test Form" Value="OTF">
</asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="View" Value="View">
<asp:MenuItem Text="Person Test Details"
Value="PTD"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Reports" Value="Other Test Details">
<asp:MenuItem Text="Person Blood Report"
Value="PBR"></asp:MenuItem>
<asp:MenuItem Text="Person Urine Report"
Value="PUR"></asp:MenuItem>
<asp:MenuItem Text="Statewise Report"
Value="SR"></asp:MenuItem>
<asp:MenuItem Text="Person Growth Chart Report"
Value="PGCR"></asp:MenuItem>
<asp:MenuItem Text="Blood Group Report"
Value="BGR"></asp:MenuItem>
<asp:MenuItem Text="HIV Status Report"
Value="HSR"></asp:MenuItem>
<asp:MenuItem Text="RHS Status Report"
Value="RSR"></asp:MenuItem>
<asp:MenuItem Text="Person Blood Graph"
Value="PBG"></asp:MenuItem>
<asp:MenuItem Text="Person Urine Graph"
Value="PUG"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Hospital Registration" Value="HR">
<asp:MenuItem Text="Hospital Registration form" Value="HRF"
NavigateUrl="~/Hos_reg.aspx"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Advertisement" Value="Add">
<asp:MenuItem Text="Add Advertisement Form" Value="AAF"
NavigateUrl="~/Add_Page.aspx"></asp:MenuItem>
<asp:MenuItem Text="Display Advertisement Form" Value="DAF"
NavigateUrl="~/Add_Detail.aspx"></asp:MenuItem>
Page | 81
</asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="#990000" ForeColor="White" />
<StaticMenuStyle BorderStyle="None" />
</asp:Menu>

</td>
<td rowspan="3" style="width:780px; height:600px;" >
<asp:Label ID="l1" Text="Enter Voter Id :" runat="server" Visible="False"
style="position:absolute; left:300px; top:403px;" Font-Size="Larger"
Width="139px"></asp:Label><asp:TextBox ID="t1" Text="" runat="server"
Visible="false" style="position:absolute; left:500px; top:400px" ></asp:TextBox>
<asp:Button ID="b1" Text="Go" runat="server" Visible="false"
Style="position:absolute; left:700px;top:400px; width:60px" Font-Size="Larger"
OnClick="b1_Click1" />
</td>
<td style="width:220px; height:13px; text-align:left; background-
color:#fffbd6">
<font size="5"> Latest Events</font></td></tr>
<tr>
<td style="width:220px; height:120px; background-color:#fffbd6"
valign="top">
<marquee scrollamount="2" scrolldelay="200" direction="up" style="height:
280px"><font size="3">This website is a gateway
to a wealth of information regarding the Health Indicators of India. The
information available on this website has been compiled from various
sources. <br />
<br />
A Health Care System is an online facility by which
user/doctor can view the diagnose information of a person related to
his/her health for better analyzed medicine and medical treatments. <br/><br />
</font></marquee>
</td>
</tr>
<tr>
<td style="width:220px; height:250px; background-color:#fffbd6"
align="center" valign="top">
<font size="3">
<br />
<br />
Page | 82
DUCAT Academy
<br />(Development|Training|Consultancy) <br />
<br />A-52 &amp;A-43 Sector-16 Noida-201301(UP),INDIA<br />
<br />Tele:+91.120.4646464, Mobile:09871055180/81<br />
<br />Email : <A
href="mailto:info@ducatindia.com">info@ducatindia.com</A> <br />
</font>
</td>
</tr>
</table>
<table>
<tr><td align="CENTER" style="background-color:#fffbd6">
<asp:LinkButton ID="LinkButton1" runat="server" BackColor="#fffbd6"
Text="HOME" OnClick="l1_Click" ></asp:LinkButton>&nbsp;&nbsp;|
&nbsp;&nbsp;
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US"
OnClick="l2_Click" ></asp:LinkButton>&nbsp;&nbsp;|&nbsp;&nbsp;
<asp:LinkButton ID="l3" runat="server" Text="BACK"
OnClientClick="back()" ></asp:LinkButton>
</td></tr>
<tr>
<td align="center" style="width:20000px; background-color: #fffbd6;">
<img src="pic/wave.gif" alt="wave" />
</td>
</tr>
<tr>
<td align="center" style="width:20000px; background-color:
#fffbd6;">@copyright reserved by "Ducat Academy"
</td></tr>
</table>

</div>
</form>
</body>
</html>

Page | 83
Blood_Entry.Aspx.Cs
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Windows.Forms;
using Com.Health.Application;
using Com.Health.DataBase;
using Com.Health.Security;
using Com.Health.Ui;

public partial class _Default : System.Web.UI.Page


{

protected void search_Click(object sender, EventArgs e)


{
DataSet ds;
update.Visible = true;
search.Visible = false;
delete.Enabled = true;
string query = "select * from Blood_Person_Test_Details where voter_idno='"
+ vid.Text.Trim()+"'";
Com.Health.DataBase.Connection con =
Com.Health.DataBase.ConnectionPool.getConnection();
ds=con.getDataSet(query);
Com.Health.DataBase.ConnectionPool.Free(con);
if (ds.Tables[0].Rows.Count > 0)
{
wbc.Text = ds.Tables[0].Rows[0][1].ToString();
rbc.Text = ds.Tables[0].Rows[0][2].ToString();
platelates.Text = ds.Tables[0].Rows[0][3].ToString();
Page | 84
Hemoglobin.Text = ds.Tables[0].Rows[0][4].ToString();
Glucose.Text = ds.Tables[0].Rows[0][5].ToString();
burea.Text = ds.Tables[0].Rows[0][6].ToString();
screatinine.Text = ds.Tables[0].Rows[0][7].ToString();
esr.Text = ds.Tables[0].Rows[0][8].ToString();
tlc.Text = ds.Tables[0].Rows[0][9].ToString();
dlc.Text = ds.Tables[0].Rows[0][10].ToString();
polymorphs.Text = ds.Tables[0].Rows[0][11].ToString();
lymphocytes.Text = ds.Tables[0].Rows[0][12].ToString();
esinophills.Text = ds.Tables[0].Rows[0][13].ToString();
basophills.Text = ds.Tables[0].Rows[0][14].ToString();
monocytes1.Text = ds.Tables[0].Rows[0][15].ToString();
adnormal.Text = ds.Tables[0].Rows[0][16].ToString();
malaria.Text = ds.Tables[0].Rows[0][19].ToString();
parasite.Text = ds.Tables[0].Rows[0][20].ToString();
others.Text = ds.Tables[0].Rows[0][21].ToString();
date.Text = "";
month.Text = "";
year.Text = "";
cname.Text = ds.Tables[0].Rows[0][23].ToString();
cadd.Text = ds.Tables[0].Rows[0][24].ToString();

}
else
{
MessageBox.Show("No Record Found!!!");
vid.Text = "";
}

}
protected void update_Click(object sender, EventArgs e)
{
update.Visible = false;
search.Visible = true;
res = MessageBox.Show("Are you sure to Update record", "Update Entry",
MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if (res == System.Windows.Forms.DialogResult.Yes)
Page | 85
{
string date1 = date.SelectedItem.ToString() + "/" +
month.SelectedItem.ToString() + "/" + year.SelectedItem.ToString();
string query = "update Blood_Person_Test_Details set wbc=" +
wbc.Text.Trim() + ",rbc=" + rbc.Text.Trim() + ",platelates=" +
platelates.Text.Trim() + ",hemoglobin=" + Hemoglobin.Text.Trim() + ",glucose="
+ Glucose.Text.Trim() + ",blood_urea=" + burea.Text.Trim() +
",serium_creatinine=" + screatinine.Text.Trim() + " ,esr=" + esr.Text.Trim() + "
,tlc=" + tlc.Text.Trim() + " ,dlc= " + dlc.Text.Trim() + ",polymorphs=" +
polymorphs.Text.Trim() + " ,lymphocytes=" + lymphocytes.Text.Trim() + "
,monocytes=" + monocytes1.Text.Trim() + " ,basophills=" + basophills.Text.Trim()
+ " ,esinophills= " + esinophills.Text.Trim() + " ,adnormal_cells= " +
adnormal.Text.Trim() + ",malaria= " + malaria.Text.Trim() + " ,parasite=" +
parasite.Text.Trim() + ",others=" + others.Text.Trim() + ",test_date='" + date1 +
"',clinic_name=' " + cname.Text.Trim() + "',clinic_address='" + cadd.Text.Trim() +
" ' where voter_idno='"+vid.Text.Trim()+"'";
Com.Health.DataBase.Connection con =
Com.Health.DataBase.ConnectionPool.getConnection();
int i = con.ExecuteNonQuery(query);
Com.Health.DataBase.ConnectionPool.Free(con);

if (i > 0)
{
MessageBox.Show("Value Successfully Updated", "Update",
MessageBoxButtons.OKCancel);
clear();
}
}
else if (res == System.Windows.Forms.DialogResult.No)
{
clear();
}

protected void l1_Click(object sender, EventArgs e)


{
WebFactory.LogOut(Session.SessionID);
Response.Redirect("Home.aspx");
Page | 86
}

DialogResult res;
protected void save_Click(object sender, EventArgs e)
{

res = MessageBox.Show("Are you sure to save now", "Save Entry",


MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if (res == System.Windows.Forms.DialogResult.Yes)
{
string date1 = date.SelectedItem.ToString() + "/" +
month.SelectedItem.ToString() + "/" + year.SelectedItem.ToString();
string query = "insert into Blood_Person_Test_Details values('" +
vid.Text.Trim() + "'," + wbc.Text.Trim() + "," + rbc.Text.Trim() + "," +
platelates.Text.Trim() + "," + Hemoglobin.Text.Trim() + "," + Glucose.Text.Trim()
+ "," + burea.Text.Trim() + "," + screatinine.Text.Trim() + " ," + esr.Text.Trim() + "
," + tlc.Text.Trim() + " , " + dlc.Text.Trim() + "," + polymorphs.Text.Trim() + " ,"
+ lymphocytes.Text.Trim() + " ," + monocytes1.Text.Trim() + " ," +
basophills.Text.Trim() + " , " + esinophills.Text.Trim() + " , " +
adnormal.Text.Trim() + " , " + malaria.Text.Trim() + " ," + parasite.Text.Trim() +
"," + others.Text.Trim() + ",'" + date1 + " ',' " + cname.Text.Trim() + "','" +
cadd.Text.Trim() + " ')";
Com.Health.DataBase.Connection con =
Com.Health.DataBase.ConnectionPool.getConnection();
int i = con.ExecuteNonQuery(query);
Com.Health.DataBase.ConnectionPool.Free(con);

if (i > 0)
{
MessageBox.Show("Value Successfully inserted", "insert",
MessageBoxButtons.OKCancel);
}
}
else if (res == System.Windows.Forms.DialogResult.No)
{

clear();
}

Page | 87
}
protected void clear()
{
vid.Text = "";
cname.Text = "";
cadd.Text = "";
wbc.Text = "";
rbc.Text = "";
platelates.Text = "";
Hemoglobin.Text = "";
Glucose.Text = "";
burea.Text = "";
screatinine.Text = "";
esr.Text = "";
tlc.Text = "";
dlc.Text = "";
polymorphs.Text = "";
lymphocytes.Text = "";
monocytes1.Text = "";
basophills.Text = "";
esinophills.Text = "";
adnormal.Text = "";
malaria.Text = "";
parasite.Text = "";
others.Text = "";
date.Text = "";
month.Text = "";
year.Text = "";
}
protected void delete_Click(object sender, EventArgs e)
{
res = MessageBox.Show("Are you sure to Delete now", "Delete Entry",
MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if (res == System.Windows.Forms.DialogResult.Yes)
{
string query = "delete Blood_Person_Test_Details where voter_idno='" +
vid.Text.Trim() + "'";
Com.Health.DataBase.Connection con =
Com.Health.DataBase.ConnectionPool.getConnection();
int i = con.ExecuteNonQuery(query);
Page | 88
Com.Health.DataBase.ConnectionPool.Free(con);

if (i > 0)
{
MessageBox.Show("Record Deleted Permanently!!!", "Delete",
MessageBoxButtons.OKCancel);
clear();
}
}
else if (res == System.Windows.Forms.DialogResult.No)
{

clear();
}

}
protected void cname_TextChanged(object sender, EventArgs e)
{

}
protected void l2_Click(object sender, EventArgs e)
{
Response.Redirect("contact.aspx");
}
protected void lk1_Click(object sender, EventArgs e)
{
WebFactory.LogOut(Session.SessionID);
Response.Redirect("home.aspx");
}
}

Blood_Entry.Aspx.Cs(Source)

<%@ Page Language="C#" AutoEventWireup="true"


CodeFile="Blood_Entry.aspx.cs" Inherits="_Default" %>

Page | 89
<!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>Untitled Page</title>
<script language="javascript" type="text/javascript">
function back()
{
window.history.back();
}
</script>

</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td colspan="2" align="right" style="background-color: #fffbd6">
<img src="pic/about-us.gif" alt="About Us" style="background-color:
#fffbd6"/><a href="Home.aspx">About Us</a>
<img src="pic/news.gif" alt ="News"/><a href="Home.aspx">News</a>
<img src="pic/login-key.gif" alt="Login_key" id="IMG1"/><asp:LinkButton
ID="lk1" runat="server" Text="LogOut"
OnClick="lk1_Click"></asp:LinkButton>
</td>
</tr>

<tr>
<td style="height:180px; width:230px"><img src="pic/pillspic.jpg"alt="pills"
style="width:230px; height:180px"/>
</td>
<td style="height:180px; width:995px"><img src="pic/topbanner.jpg"
alt="topbanner" style="width: 995px; height: 180px"/>&nbsp;
</td>
</tr>
</table>

<table>
Page | 90
<tr><td style="height:750px;width:230px; background-color:#fffbd6">
<asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6"
DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="Medium" ForeColor="#990000"
Height="303px"
PathSeparator="-" StaticSubMenuIndent="10px" Style="z-index: 100; left:
15px;
position: absolute; top: 270px" Width="1px" >
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#990000" ForeColor="White"
BorderStyle="Solid" />
<DynamicMenuStyle BackColor="#FFFBD6" />
<StaticSelectedStyle BackColor="#FFCC66" />
<DynamicSelectedStyle BackColor="#FFCC66" />
<DynamicMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" BorderStyle="Solid" />
<Items>
<asp:MenuItem Text="Entry Forms" Value="Entry">
<asp:MenuItem Text="Personal Details Form" Value="PDF"
NavigateUrl="~/Person_Entry.aspx"></asp:MenuItem>
<asp:MenuItem Text="Blood Test Form" Value="BTF"
NavigateUrl="~/Blood_Entry.aspx"></asp:MenuItem>
<asp:MenuItem NavigateUrl="~/Urine_Entry.aspx" Text="Urine Test
Form" Value="UTF">
</asp:MenuItem>
<asp:MenuItem NavigateUrl="~/Gen_Details_Entry.aspx"
Text="Other Test Form" Value="OTF">
</asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="View" Value="View">
<asp:MenuItem Text="Person Test Details"
Value="PTD"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Reports" Value="Other Test Details">
<asp:MenuItem Text="Person Blood Report"
Value="PBR"></asp:MenuItem>
<asp:MenuItem Text="Person Urine Report"
Value="PUR"></asp:MenuItem>
<asp:MenuItem Text="Statewise Report"
Value="SR"></asp:MenuItem>
Page | 91
<asp:MenuItem Text="Person Growth Chart Report"
Value="PGCR"></asp:MenuItem>
<asp:MenuItem Text="Blood Group Report"
Value="BGR"></asp:MenuItem>
<asp:MenuItem Text="HIV Status Report"
Value="HSR"></asp:MenuItem>
<asp:MenuItem Text="RHS Status Report"
Value="RSR"></asp:MenuItem>
<asp:MenuItem Text="Person Blood Graph"
Value="PBG"></asp:MenuItem>
<asp:MenuItem Text="Person Urine Graph"
Value="PUG"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Hospital Registration" Value="HR">
<asp:MenuItem Text="Hospital Registration form" Value="HRF"
NavigateUrl="~/Hos_reg.aspx"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Advertisement" Value="Add">
<asp:MenuItem Text="Add Advertisement Form" Value="AAF"
NavigateUrl="~/Add_Page.aspx"></asp:MenuItem>
<asp:MenuItem Text="Display Advertisement Form" Value="DAF"
NavigateUrl="~/Add_Detail.aspx"></asp:MenuItem>
</asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="#990000" ForeColor="White" />
<StaticMenuStyle BorderStyle="None" />
</asp:Menu>

</td>
<td style="height:750px;width:1000px">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-
Names="Arial" Font-Overline="True"
Font-Size="Larger" Font-Underline="True" ForeColor="Teal"
Height="26px" Style="z-index: 100;
left: 269px; position: absolute; top: 260px" Text="Blood Entry
Form"
Width="392px"></asp:Label>

<asp:Panel ID="Panel1" runat="server" BackColor="PaleTurquoise"


BorderColor="DeepSkyBlue"
Page | 92
BorderStyle="Solid" BorderWidth="6px" Height="650px" Style="
left: 386px;
position: absolute; top: 300px" Width="785px">
<asp:Label ID="Label2" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Height="20px" Style="left: 50px; top:40px;
position: absolute;" Text="VoterIdNo" Width="117px"></asp:Label>
<asp:TextBox ID="vid" runat="server" Style="z-index: 100; left:
186px; position: absolute;
top: 41px"></asp:TextBox>
<asp:Label ID="Label3" runat="server" Font-Names="Times New
Roman" Font-Size="Larger"
Style="z-index: 101; left: 47px; position: absolute; top: 142px"
Text="Clinic Name"
Width="108px"></asp:Label>
<asp:TextBox ID="cname" runat="server" Style="z-index: 102;
left: 180px; position: absolute;
top: 140px"
OnTextChanged="cname_TextChanged"></asp:TextBox>
<asp:Label ID="Label4" runat="server" Font-Names="Times New
Roman" Font-Size="Larger"
Style=" left: 384px; position: absolute; top: 140px" Text="Clinic
Address"
Width="119px"></asp:Label>
<asp:TextBox ID="cadd" runat="server" Height="36px" Style="z-
index: 104; left: 537px;
position: absolute; top: 142px" TextMode="MultiLine"
Width="235px"></asp:TextBox>
<asp:Label ID="Label5" runat="server" Font-Names="Times New
Roman" Font-Size="Larger"
Style="z-index: 105; left: 48px; position: absolute; top: 91px"
Text="Test Date"
Width="109px"></asp:Label>
&nbsp;
<asp:DropDownList ID="date" runat="server" Style="z-index: 106;
left: 180px;
position: absolute; top: 93px" Width="61px">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
Page | 93
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>6</asp:ListItem>
<asp:ListItem>7</asp:ListItem>
<asp:ListItem>8</asp:ListItem>
<asp:ListItem>9</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
<asp:ListItem>13</asp:ListItem>
<asp:ListItem>14</asp:ListItem>
<asp:ListItem>15</asp:ListItem>
<asp:ListItem>16</asp:ListItem>
<asp:ListItem>17</asp:ListItem>
<asp:ListItem>18</asp:ListItem>
<asp:ListItem>19</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
<asp:ListItem>21</asp:ListItem>
<asp:ListItem>22</asp:ListItem>
<asp:ListItem>23</asp:ListItem>
<asp:ListItem>24</asp:ListItem>
<asp:ListItem>25</asp:ListItem>
<asp:ListItem>26</asp:ListItem>
<asp:ListItem>27</asp:ListItem>
<asp:ListItem>28</asp:ListItem>
<asp:ListItem>29</asp:ListItem>
<asp:ListItem>30</asp:ListItem>
<asp:ListItem>31</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="month" runat="server" Style="z-index:
107; left: 257px;
position: absolute; top: 93px" Width="71px">
<asp:ListItem>Jan</asp:ListItem>
<asp:ListItem>Feb</asp:ListItem>
<asp:ListItem>Mar</asp:ListItem>
<asp:ListItem>Apr</asp:ListItem>
<asp:ListItem>May</asp:ListItem>
<asp:ListItem>Jun</asp:ListItem>
<asp:ListItem>July</asp:ListItem>
<asp:ListItem>Aug</asp:ListItem>
Page | 94
<asp:ListItem>Sep</asp:ListItem>
<asp:ListItem>Oct</asp:ListItem>
<asp:ListItem>Nov</asp:ListItem>
<asp:ListItem>Dec</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="year" runat="server" Style="z-index: 108;
left: 353px;
position: absolute; top: 92px" Width="61px">
<asp:ListItem>1984</asp:ListItem>
<asp:ListItem>1985</asp:ListItem>
<asp:ListItem>1986</asp:ListItem>
<asp:ListItem>1987</asp:ListItem>
<asp:ListItem>1988</asp:ListItem>
<asp:ListItem>1989</asp:ListItem>
<asp:ListItem>1990</asp:ListItem>
<asp:ListItem>1991</asp:ListItem>
<asp:ListItem>1992</asp:ListItem>
<asp:ListItem>1993</asp:ListItem>
<asp:ListItem>1994</asp:ListItem>
<asp:ListItem>1995</asp:ListItem>
<asp:ListItem>1996</asp:ListItem>
<asp:ListItem>1998</asp:ListItem>
<asp:ListItem>1999</asp:ListItem>
<asp:ListItem>2000</asp:ListItem>
<asp:ListItem>2001</asp:ListItem>
<asp:ListItem>2002</asp:ListItem>
<asp:ListItem>2003</asp:ListItem>
<asp:ListItem>2004</asp:ListItem>
<asp:ListItem>2005</asp:ListItem>
<asp:ListItem>2006</asp:ListItem>
<asp:ListItem>2007</asp:ListItem>
<asp:ListItem>2008</asp:ListItem>
<asp:ListItem>2009</asp:ListItem>
<asp:ListItem>2010</asp:ListItem>
<asp:ListItem>2011</asp:ListItem>
<asp:ListItem>2012</asp:ListItem>
<asp:ListItem>2013</asp:ListItem>
<asp:ListItem>2014</asp:ListItem>
<asp:ListItem>2015</asp:ListItem>
<asp:ListItem>2016</asp:ListItem>
Page | 95
<asp:ListItem>2017</asp:ListItem>
<asp:ListItem>2018</asp:ListItem>
<asp:ListItem>2019</asp:ListItem>
<asp:ListItem>2020</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="save" runat="server"
style="position:absolute;top:600px;left:200px" Text="Save" Height="25px"
Width="104px" OnClick="save_Click" />
<asp:Button ID="search" runat="server"
style="position:absolute;top:600px;left:328px" Text="Search" Height="25px"
Width="104px" OnClick="search_Click" />
<asp:Button ID="update" runat="server"
style="position:absolute;top:600px;left:327px" Visible="false" Text="Update"
Height="25px" Width="104px" OnClick="update_Click" />
<asp:Button ID="delete" runat="server"
style="position:absolute;top:600px;left:462px" Text="Delete" Height="25px"
Width="104px" OnClick="delete_Click" Enabled="false" />
</asp:Panel>
<hr style="z-index: 100; left: 0px; position: absolute; top: 0px" />

<asp:Panel ID="Panel2" runat="server" BorderColor="DeepSkyBlue"


BorderStyle="Solid"
BorderWidth="4px" Height="350px" ScrollBars="Both" Style=" left:
391px;
position: absolute; top: 530px" Width="782px">
<asp:Label ID="Label6" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 100; left: 45px; position: absolute;
top: 14px"
Text="WBC" Width="106px"></asp:Label>
<asp:Label ID="Monocytes" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 142; left: 392px; position: absolute;
top: 63px"
Text="Monocytes" Width="106px"></asp:Label>
<asp:Label ID="Label7" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 102; left: 43px; position: absolute;
top: 63px"
Text="RBC" Width="106px"></asp:Label>
Page | 96
<asp:Label ID="Label8" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 103; left: 44px; position: absolute;
top: 111px"
Text="Platelates" Width="106px"></asp:Label>
<asp:Label ID="Label9" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 104; left: 43px; position: absolute;
top: 154px"
Text="Hemoglobin" Width="106px"></asp:Label>
<asp:Label ID="Label10" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 105; left: 42px; position: absolute;
top: 208px"
Text="Glucose" Width="106px"></asp:Label>
<asp:Label ID="Label11" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 106; left: 40px; position: absolute;
top: 256px"
Text="Blood Urea" Width="106px"></asp:Label>
<asp:Label ID="Label12" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 107; left: 40px; position: absolute;
top: 304px"
Text="Serium Creatinine" Width="138px"></asp:Label>
<asp:TextBox ID="wbc" runat="server" Style="z-index: 108; left: 182px;
position: absolute;
top: 12px"></asp:TextBox>
<asp:TextBox ID="rbc" runat="server" Style="z-index: 109; left: 183px;
position: absolute;
top: 63px"></asp:TextBox>
<asp:TextBox ID="platelates" runat="server" Style="z-index: 110; left:
182px; position: absolute;
top: 114px"></asp:TextBox>
<asp:TextBox ID="Hemoglobin" runat="server" Style="z-index: 111; left:
181px; position: absolute;
top: 158px"></asp:TextBox>
<asp:TextBox ID="Glucose" runat="server" Style="z-index: 112; left:
182px; position: absolute;
top: 204px"></asp:TextBox>
Page | 97
<asp:TextBox ID="burea" runat="server" Style="z-index: 113; left: 184px;
position: absolute;
top: 253px"></asp:TextBox>
<asp:TextBox ID="screatinine" runat="server" Style="z-index: 114; left:
186px; position: absolute;
top: 300px"></asp:TextBox>
<asp:Label ID="Label13" runat="server" Font-Names="Times New
Roman" Font-Size="Larger"
Style="z-index: 115; left: 46px; position: absolute; top: 353px"
Text="ESR" Width="48px"></asp:Label>
<asp:Label ID="Label14" runat="server" Font-Names="Times New
Roman" Font-Size="Larger"
Style="z-index: 116; left: 44px; position: absolute; top: 400px"
Text="TLC" Width="83px"></asp:Label>
<asp:Label ID="Label15" runat="server" Font-Names="Times New
Roman" Font-Size="Larger"
Style="z-index: 117; left: 44px; position: absolute; top: 449px"
Text="DLC" Width="83px"></asp:Label>
<asp:Label ID="Label16" runat="server" Font-Names="Times New
Roman" Font-Size="Larger"
Style="z-index: 118; left: 45px; position: absolute; top: 494px"
Text="Polymorphs"
Width="83px"></asp:Label>
<asp:Label ID="Label17" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 119; left: 389px; position: absolute;
top: 15px"
Text="Lymphocytes" Width="106px"></asp:Label>
<asp:Label ID="Label18" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 120; left: 392px; position: absolute;
top: 159px"
Text="Esinophills" Width="106px" Height="16px"></asp:Label>
<asp:Label ID="Label19" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 121; left: 391px; position: absolute;
top: 109px"
Text="Basophills" Width="106px"></asp:Label>
<asp:TextBox ID="esr" runat="server" Style="z-index: 122; left: 183px;
position: absolute;
Page | 98
top: 354px"></asp:TextBox>
<asp:TextBox ID="tlc" runat="server" Style="z-index: 123; left: 183px;
position: absolute;
top: 398px"></asp:TextBox>
<asp:TextBox ID="dlc" runat="server" Style="z-index: 124; left: 181px;
position: absolute;
top: 448px"></asp:TextBox>
<asp:TextBox ID="polymorphs" runat="server" Style="z-index: 125; left:
182px; position: absolute; top: 493px"></asp:TextBox>
<asp:TextBox ID="lymphocytes" runat="server" Style="z-index: 126; left:
539px; position: absolute;
top: 13px"></asp:TextBox>
<asp:TextBox ID="monocytes1" runat="server" Style="z-index: 127; left:
541px; position: absolute;
top: 57px"></asp:TextBox>
<asp:TextBox ID="basophills" runat="server" Style="z-index: 128; left:
543px; position: absolute;
top: 102px"></asp:TextBox>
<asp:TextBox ID="parasite" runat="server" Style="z-index: 129; left:
547px; position: absolute;
top: 304px"></asp:TextBox>
<asp:TextBox ID="esinophills" runat="server" Style="z-index: 130; left:
542px; position: absolute;
top: 154px"></asp:TextBox>
<asp:Label ID="Label21" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 131; left: 393px; position: absolute;
top: 207px"
Text="Adnormal Cells" Width="127px"></asp:Label>
&nbsp;<br />
<asp:TextBox ID="adnormal" runat="server" Style="z-index: 133; left:
543px; position: absolute;
top: 204px"></asp:TextBox>
&nbsp;<br />
<br />
<br />
<br />
<asp:Label ID="Label24" runat="server" Font-Names="Times New
Roman" Font-Size="Larger"

Page | 99
Height="22px" Style="z-index: 135; left: 393px; position: absolute; top:
256px"
Text="Malaria" Width="56px"></asp:Label>
&nbsp;<br />
<br />
<br />
<br />
<asp:TextBox ID="malaria" runat="server" Style="z-index: 138; left:
543px; position: absolute;
top: 258px"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label25" runat="server" Font-Names="Times New
Roman" Font-Size="Larger"
Height="12px" Style="z-index: 139; left: 393px; position: absolute; top:
309px"
Text="Parasite"></asp:Label>
<br />
<br />
<asp:TextBox ID="others" runat="server" Style="z-index: 140; left: 543px;
position: absolute;
top: 352px"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label26" runat="server" Font-Names="Times New
Roman" Font-Size="Larger"
Style="z-index: 141; left: 393px; position: absolute; top: 355px"
Text="Others"></asp:Label>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</asp:Panel>
</td>
</tr>
</table>
<table>
Page | 100
<tr>
<td align="CENTER" style="background-color:#fffbd6">
<asp:LinkButton ID="l1" runat="server" BackColor="#fffbd6"
Text="HOME" OnClick="l1_Click" ></asp:LinkButton>&nbsp;&nbsp;|
&nbsp;&nbsp;
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US"
OnClick="l2_Click" ></asp:LinkButton>&nbsp;&nbsp;|&nbsp;&nbsp;
<asp:LinkButton ID="l3" runat="server" Text="BACK"
OnClientClick="back()"></asp:LinkButton>
</td>
</tr>
<tr>
<td colspan="2" align="center" style="width:20000px; background-color:
#fffbd6;">
<img src="pic/wave.gif" alt="wave" />
</td>
</tr>
<tr>
<td colspan="2" align="center" style="width:20000px; background-color:
#fffbd6;">@copyright reserved by "Ducat Academy"
</td></tr>
</table>

</form>
</body>
</html>
Gen_Details_Entry.Aspx.Cs

Health.Aspx.Cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
Page | 101
using System.Web.UI.HtmlControls;

public partial class Health : System.Web.UI.Page


{

protected void l1_Click(object sender, EventArgs e)


{
Response.Redirect("home.aspx");
}
protected void l2_Click(object sender, EventArgs e)
{
Response.Redirect("contact.aspx");
}

18. Data Dictionary

DATABASE DESIGN :
Database: health_info

Table1-User_Login_Details

Field name Data Type Size Constraints


Userid Varchar 20 not null
Password Varchar 15 primary key
Role Varchar 15 not null

Table2-Person_Details

Page | 102
Field name Data Type Size Constraints
Voter_idno varchar 15 primary key
Fname varchar 15 not null
Mname varchar 15 allow null
Lname varchar 15 not null
Father_name varchar 25 not null
Mother_name varchar 25 not null
Address1 varchar 30 not null
Address2 varchar 30 allow null
City varchar 20 not null
State varchar 25 not null
Sex char 8 not null
Dob datetime - not null
Email_id varchar 50 allow null
Contact_no varchar 15 allow null
Image varchar 50 not null

Table3-Person_Gen_Blood_Details

Field name Data Type Size Constraints


Voter_idno varchar 15 primary key
Blood_group varchar 10 Not null
Rh_type varchar 10 Not null
Hiv_status varchar 10 not null

Table4-Urine_Std_Values

Field name Data Type Size Constraints


Color varchar 15 not null
Consistancy varchar 15 not null
Sendiments varchar 15 not null
Spf_gravity varchar 15 not null

Page | 103
Acidic varchar 15 not null
Urine_sugar varchar 15 not null
Albumin varchar 15 not null
Phosphate varchar 15 not null
Acetone_bodies varchar 15 not null
Bile_salt varchar 15 not null
Bile_pigment varchar 15 not null
Urobilinogen varchar 15 not null
Luecocytes varchar 15 not null
Erthyocytes varchar 15 not null
Epithelial_cells varchar 15 not null
Casts varchar 15 not null
Ketones varchar 15 not null
Proteins varchar 15 not null
Others varchar 15 not null

Table5-Urine_Person_Details

Field name Data Type Size Constraints


Voter_idno varchar 15 Primary key
Color varchar 15 Null
Consistancy float - Null
Sendiments float - Null
Spf_gravity float - Null
Acidic float - Null
Urine_sugar float - Null
Albumin float - Null
Phosphate float - Null
Acetone_bodies float - Null
Bile_salt float - Null
Bile_pigment float - null
Urobilinogen float - Null
Luecocytes float - Null
Erthyocytes float - Null
Epithelial_cells float - Null
Casts varchar 15 Null

Page | 104
Ketones varchar 15 Null
Proteins varchar 15 Null
Others varchar 15 Null
Test_date datetime - not null
Clinic_name varchar 50 not null
Clinic_address varchar 50 not null

Table6-Blood_Std_Values

Field name Data Type Size Constraints


WBC varchar 15 not null
RBC varchar 15 not null
Platelates varchar 15 not null
Hemoglobin varchar 15 not null
Glucose varchar 15 not null
Blood_urea varchar 15 not null
Serium_creatinine varchar 15 not null
Esr varchar 15 not null
Tlc varchar 15 not null
Dlc varchar 15 not null
Polymorphs varchar 15 not null
Lymphocyte varchar 15 not null
Esinophills varchar 15 not null
Basophills varchar 15 not null
Monocytes varchar 15 not null
Adnormal_cells varchar 15 not null
Malaria varchar 15 not null
Parasite varchar 15 not null
Others varchar 15 not null

Table7-Blood_Person_Test_Details

Field name Data Type Size Constraints


Voter_idno varchar 15 Primary key

Page | 105
Wbc float - allow null
Rbc float - allow null
Platelates float - allow null
Hemoglobin float - allow null
Glucose float - allow null
Blood_urea float - allow null
Serium_creatinine float - allow null
Esr float - allow null
Tlc float - allow null
Dlc float - allow null
Polymorphs float - allow null
Lymphocyte float - allow null
Esinophills float - allow null
Basophills float - allow null
Monocytes float - allow null
Adnormal_cells float - allow null
Malaria float - allow null
Parasite float - allow null
Others float - allow null
Test_date datetime - not null
Clinic_name varchar 50 not null
Clinic_address varchar 50 not null

Table8-Others_Test_Details

Field name Data Type Size Constraints


Voter_idno varchar 15 Primary key
Other_type varchar 25 not null
Description varchar 50 not null
Test_date vatetime - Not null
Clinic_name varchar 50 not null
Clinic_address varchar 50 not null

Page | 106
Table5-Hospital_Details

Field name Data Type Size Constraints


Hospital_id varchar 15 Primary key
Hospital_name varchar 50 not null
Hospital_address varchar 50 not null
City varchar 25 not null
Distt varchar 25 not null
State varchar 25 not null
Head_of_incharge varchar 25 not null

Table9-Add_Details

Field name Data Type Size Constraints


Id int - Identity
ImageUrl varchar 50 not null
Width int - not null
Height int - not null
NavigateUrl varchar 50 not null
AlternateText varchar 50 not null
Keyword varchar 50 not null
Impression varchar 50 not null
additiondate datetime - not null

18.4 DEFINITIONS, ACRONYMS AND ABBREVIATIONS

The following definitions and abbreviations may be used in this document:

Page | 107
Analysis The requirements gathering process is intensified and
focused specifically on software.

Coding The design must be translated into machine readable form.


The code generation step performs this task.

Data store: A logical construct used to depict data that is being recorded
during manual and automated processes. Data stores are
organized by logical data groupings without regard to the
storage medium

DFD Data Flow Diagram-A diagram that shows the inputs and
outputs of a process and the data stores that store the data.

Design The software design actually a multi-step process that


focuses on four distinct attributes of a program: the data
structure, software architecture, interface representations
and procedural details.

Input Data provided to a process.

Output Data produced by a process.

PERT Project Evaluation and Review Technique.

Process A series of steps taken to accomplish a specific action or


produce a specific result based on the input to those steps
and the state of the system at the time of that input.

RAM Random Access Memory.

SIO System Input/Output Selection.

SRS Software Requirements Specifications.


Testing It focuses on the logical internals of the software.

Unit Testing The project is divided into small units and then the testing is
done on each unit separately.

White-Box It is a test case design method that uses the control the

Page | 108
Testing structure of the procedural design to derive test cases.

18.5 LIMITATION

 Provides no facility for Online Payment.

 No Online Chat or voice chats to doctors.

 The site only maintain records of people above 18 years of


age,since in Login process an individual is required to enter his/her
name and voter id.

18.6 FUTURE APPLICATIONS

 Providing the On-Line Chat facility to users to concern the doctor for immediate
response.

 Providing the community for specialize doctors for specific dieses, and share
the information in the form of Blogs, Photos, Videos, discussions in various
new researches in medical science.

 Nurturing the dream of providing Email account facility to users so they can
feel the independence of mail account at the same site.

 In future it will provide information of doctors with their specialization in


the local area of user/patient.

Page | 109
 In future we would provide the facility for online payment and implement
Secure Socket Layer (SSL).

18.6 DEPENDENCIES

 It doesn’t matter how efficiently the application works, if the


bandwidth is not sufficient the transaction will take more time then
expected.
 .Net Framework for execution environment and Ado.Net Provides for
database connectivity.
 IIS server is required for the application.
 Although this software is architecturally independent but following
hardware resources are required.
 For i.e. any IBM compatible PC or any other workstation with mouse
support and relevant software.

19. CONCLUSION
All the procedure in this project is automatic accept the entry of data from
the user.The project gives the user-friendly environment, which gives the
way of working in more efficient manner

Page | 110
It is connected with the internet for easily retrieved data about different
services, newly launched products can be easily added into the site using
database.All the information can be easily accessed the Customer like their
details, booking. Transaction. It can be modify and the others details can be
easily provided to customer.Report on the different basis will be easily
created on the demand.

20. References

BIBLIOGRAPHY

BOOKS:

 ASP .Net By Peter Norton

 Mastering ASP.Net TECHMEDIA

 Learn ASP.Net in 21 days TMH

 Black book ASP.Net.

LIBRARY:

 MSDN

MSDN Library Visual Studio .Net release

The MSDN Library is the essential reference for developers, with more
than a gigabyte of technical programming information; including sample code,

Page | 111
documentation, technical articles, the Microsoft Developer Knowledge Base, and
anything else we might need to develop solutions that implement Microsoft
technology.

WEBSITE:

www.Wikipedia.com
www.ducatindia.com
www.C# Corner.com

Page | 112

Vous aimerez peut-être aussi