Você está na página 1de 243

Project

Report
On
HealthCare System
For
…………………………………………………..
( for partial fulfillment of the requirement for the award of the Degree of )

Master in Computer Applications


From

Indira Gandhi National


Open University
Submitted By
…………………
(Enroll. No………….. )
Under the able guidance of
……………………….
(Project Manager In …….)

CERTIFICATE

This is certify that ………….. has carried out the work embodies in this project in

entitled “HealthCare System” under my guidance and supervision during the

academic session 2008-2008 in fulfillment of the requirement for MCA Final Year

from IGNOU.The Work in this project is original and I am completely satisfied

with this work, and wish her all success in future life.

MR…………………
(PROJECT MANAGER)
ACKNOWLEDGEMENT

Many persons have contributed to make this software on HEALTHCARE


SYSTEM a reality. I would especially like to express my appreciation to ………..
for his unstinted support, encouragement and his painstakingly and meticulous
effort towards developing this software.

I acknowledge the help and cooperation received from all the faculty members
of …….. Academy Noida. Several colleagues and students have contributed
directly and indirectly to the contents this software, as they had given me numerous
ideas. Their criticism gave me the much-needed hints about the areas that needed
elaboration and amendments and also to present them with greater clarity.

I sincerely express my gratitude to Mr. ………. , the present Center manager


of Ducat Consultancy Ltd Noida, for his support and help in the final preparation of
this Report.

Finally, I wish to express my sincere thanks to all my family members,


especially my Parents for their constant moral support and Encouragement.

I would Welcome Constructive Suggestions to improve this software, which


can be implemented in my further attempts.

Thanking you!
Deepika Singh
Enrollment No. …………….
CONTENT

S.NO TOPIC PAGE NO.


1. Preface 5-6
2. Objective & Scope of the Project 7-8
3. Theoretical Background 9-12
4. Definition of Problem 13-14
5. Benefits to User 15-16
6. System Analysis & Design 17-29
i) Input Requirements
ii) Output Requirements
iii) Functional Requirements
iv) External Interface Requirements
v) Design Constraints
vi) Acceptance Criteria
7. System Planning 30-39
i) Wordbreak Down Structure
ii) PERT Chart
8. Methodology Adopted 40-46
i) Introduction
ii) Methodology Used
iii) Analysis Methods
iv) Design Methods
v) Coding Methods
vi) Testing Methods
9. System Implementation 47-56
i) Procedure
ii) Hardware Platform
iii) Software Platform
iv) ASP.Net
v) SQL Server 2000
10. System Maintenance & Evaluation 57-59
11. Cost & Benefits Analysis 60-61
12. Life Cycle of the Project 62-72
i) Entity-Relationship Diagram
ii) Data Flow Diagram
iii) Structure Chart
13. Input & Output Screens 73-91
14. Process Involved 92-95
15. Testing Methodology 96
16. Test Reports 97-100
17. Coding 101-233
18. User Operational Manual 234-237
i) Security Aspects
ii) Access Rights
iii) Back-Up
iv) Controls
19. Annexure 238-264
i) About the Organization
ii) Data Dictionary
- Databases
- Definition, Acronyms & Abbreviations
- Functions Used for the Implementation of
Algorithms
iii) Error List
iv) Limitations
v) Future Applications
20. References 265-266
i) Bibliography
21. Softcopy of the Project (CD) 267
PREFACE

When A Computer Software succeeds-when it meets the needs of the


people who use it, when it performs flawlessly over along period of time, when it is
easy to modify and even easier to use-it can and does change things for the better.
But when software fails-when its users are dissatisfied, when it is error prone, when
it is difficult to change and even harder to use-bad things can and do happen.

We all want to build software that makes things better, avoiding the bad
things that lurk in the shadow of failed efforts. To succeed we need discipline when
software is designed and built. Many individuals and companies still develop
software haphazardly, even as they build systems to service the most advanced
technologies of the day. As a result, the quality of the software that we produce
suffers and bad things happen.

This project report is intended to serve as a guide to the software developed


on HEALTHCARE SYSTEM . I have tried to follow the principles and rules as
suggested by the software engineers as far as possible, in order to make this
software a Successful one.

The report starts with a comprehensive introduction to the project undertaken


as its very First Section. It includes objectives and scope of the project; about the
front-end tool used i.e. ASP.Net with C# and the back-end tool i.e. SQL Server.
The second part presents and discusses the theoretical background of the project.
The third section encompasses all the problems of the software that includes what
is expected from the software, the demands and the requirements of the end-users.
The fourth part is the System analysis and design section. This part focuses on
requirements analysis and specification, analysis issues, detailed procedures and the
database designs. In The fifth section, different approaches to formal evaluation
and review techniques are explored. The sixth section highlights the methodology
adopted for this project. The seventh part suggests the steps required to implement
the software on the user machine. The eighth part discusses the hardware and
software requirements of the user machines. The ninth part deals with the cost
benefit analysis. The tenth section contains the data flow diagrams. The next
section is the flowchart part. The next section is for the entity relationship diagram
of the project. The thirteenth part explains the methodology used for testing. The
fourteenth section is the test report. The fifteenth part is the most important part of
the project i.e. the code for the software. The sixteenth part is the user manual
section. The seventeenth part is the annexure for the topic that includes some
details about the organization, the data dictionary, definitions, acronyms and
abbreviations used in the report. The final section is the reference part that contains
a list of the books and reports that were referred during the development of the
project and the report as well.

The emphasis in this report is to document the important concepts and


techniques used for the successful development of this project.

I do hope fervently that, through this report, the readers will get a real
picture of what the project is all about. I also wish that may this software satisfies
all the needs and requirements of the organization, for which it is meant.
OBJECTIVES & SCOPE
OF THE PROJECT

The objective of this software is to completely automate the following


process:

 This software provides the health card for the patient. It will display a set of
information related to a patient regarding blood, urine, others.

 Provides 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 patient.

 Provides different kinds of reports and analysis for the scientists, planners, doctor
so as to enable them for better decision making on different occasions.

 Provides excellent and easy to access means of communication medium


between doctors and its patients.

 To maintain and store diseases information for past few months.

 Provides as a comparison chart among different reports at different stages.

 This system is providing different types of tests reports

 Blood test
 Urine test
 Other tests
THEORETICAL BACKGROUND

The primary goal of this software is to provide 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. The guidelines and formats
used while designing this software are given below. Blood test report, Urine test
report and Other tests such as ECG, X-Ray, etc . are to be properly maintained.

Modules Of Health Care System:

This system consists of three modules, which are described below:

 Administrative and Security Module.


 Action Module.
 Health Card Module.

Administration and Security Module:

Health Card Security shall be implemented to control access to function and


processes within the subsystems 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 health card. The default access for all users and at all times
will be “Read Only” . When a user runs 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 user can access the database connectivity user can
access the database using spreadsheets, internet tools, etc.

The access right to specific table must be altered in a control way by the
processes that updates these tables and reset to read only at the end of the
processes.
Security Module provides the access to the end-user on the basis of the role
assigned to a particular end-user.
This module implements three types of roles:
 Admin(for administrator)
 Staff( Governmen hospitals employees)
 User(for other end users)

Access Permission forAdministrator :

Administrator have rights to do the following operations:


 Access to various Entry Forms related to individual persons :
- Blood Test Details
- Urine Test Details
- Other Test Details(such as an X-ray, ECG, etc.)
- General Blood Details( i.e Blood group, HIV Status, etc.)
 Updation/Deletion of an individual test details.
 Hospital Entry Form
 Viewing various test details related to an individual.
 Generating reports and graphs.
 Maintaining Advertisements :
- Uploading Advertisements
- Deleting Advertisements
- Viewing details of all the Advertisements on the respective site.

Access Permission for Hospital Staff :

 Access to various Entry Forms related to individual persons :


- Blood Test Details
- Urine Test Details
- Other Test Details(such as an X-ray, ECG, etc.)
- General Blood Details( i.e Blood group, HIV Status, etc.)
 Updation/Deletion of an individual test details.
 Viewing various test details related to an individual.
 Generating reports and graphs.
Access Permission for Users :

 Viewing various test details.


 Viewing various reports and graphs.

Action Module:

The function of the Action Plan Module is to capture all kinds of information
related to health and 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
analysis for the scientist/planers/doctors, so as to enable them for better decision
making.

Various types of reports and graphs/charts generated by this module are:


 Individual Blood Test Report
 Individual Urine Test Report
 Graph related to Blood Test of an individual
 Graph related to Urine Test of an individual
 State-wise Blood Test Analysis Report
 State-wise Blood Group Pie-Chart
 State-wise HIV Status Pie-Chart
 State-wise RH-Type Pie-Chart
 State-wise Growth Chart

Health Card Module :

Function of this module is to generate and print the health card for the person. It
will display the assets of information related to a person regarding
 Blood Test Details
 Urine Test Details
 HIV status, Blood group and RH-Type.
 Other Test Details(i.e. X-Ray, ECG, etc.)
PROBLEM DEFINITION

PROBLEM STATEMENT:
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.

 This system helps in disease management and preventive services. It


provides very vital information like patients without an exam for certain time,
patient with certain levels BP, patients who are taking a certain class of
medication, patients who are suffering from a certain type of disease, screening
and immunization information, Lab tests Results, etc.
 Rules can be created for various time frames like a certain time period, last
visit to the hospital, latest Data available Visit, across all visits. The system is
completely dynamic in the sense; each user can have his own rule and his own
conditions and can decide if he wants to be alerted for the patient meeting the rule
or for not .

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. This software will enable its users to
maintain, retrieve and generate reports quickly and requiring minimum effort.
Thus, HEALTHCARE SYSTEM is developed in order
to facilitate it users to keep a track of case history regarding health status of Indian
citizens. It also helps them to save their time and energy when they want to retrieve
some kind of information for their specific purposes and needs.
BENEFITS TO USER

Computer software has become a driving force. It is the engine that


drives business decision-making. It serves as the basis for modern scientific
investigations and engineering problems solving. It is a key factor that
differentiates modern products and services. It is embedded in systems of all kinds:
transportation, medical, telecommunication, military, industrial processes,
entertainment, office products . . . the list is almost endless. Software is virtually
inescapable in a modern world. And as we move into the twenty-first century, it
will become the driver for new advances in everything from elementary education
to genetic engineering. Similarly, this software is very beneficial for the
organization from the financial as well as the time consumption point of view. This
software will help in analyzing geographically the diseases in a particular area. This
will also reduce the time required to retrieve the details of a particular patient and
generate reports for the same. Conclusively this software will provide following
benefits to its users:

 Provides the previous 10 test history of a patient.

 Makes information retrieval quicker and easier.

 Shows graphically the number of different blood group persons in various


states of our country, thus helps in analyzing blood requirements by Blood
Banks.

 Saves time and energy in locating the details of a patient.

 Makes report generations easier and faster.

 Protects the information from unauthorized users by implementing role


based security.
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.
Design 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.

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.

MODEL:

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:

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.
INPUT REQUIREMENTS

 For Medical Tests:


- Blood Test details such as WBC, RBC, Platelates , Heomoglobin,
Glucose, Blood_Urea, Serium Creatinine, ESR, TLC, DLC, etc.
- Urine Test Details such as Color, Sendiments, Specific, Gravity,
Proteins, etc.
- General Blood Details such as Blood Group, HIV Status, RH-Type.
- Other Test Details such as X-Ray, ECG, CT-Scan, etc.

 For viewing the HealthCard of an individual his/her voter idno will be


required as an input.

 A legal citizen of India can Login on this site by entering his/her name as
the username and his/her voter idno as the password.

 For uploading the advertisements, the required information is: Add


Position(i.e. the page on which a/an company/organization wants to place its
add) , Width and Height for the Adds are reserved in advance which cannot
be changed by an individual. On entering the location page, the width and
height will automatically gets reflected. Other details which are needed for
uploading an advertisement are – Add Picture, Navigation Url, Alternate
Text, and Impressions of an Add.
OUTPUT REQUIREMENTS

 Person should have a Voter id .


 There must be a net connection and browser to view the web pages of
respective site.

FUNCTIONAL REQUIREMENTS

 Person should have a Voter id .


There must be a net connection and browser to view the web pages of
respective site
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 difficult 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.
PERFORMANCE CONSTRAINTS

 For 100 Entries in the database it takes 2-3 seconds approximately.

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 32 MB RAM,


Running on Windows.

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.
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
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: -


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.

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.

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
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.

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.

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-


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
directly affected by it.
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.

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:
Application software

Requirements
Design Code Test Document
specification

Graphical user Graphical user


Database part Database part
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

-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
-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
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 - 15
B: Analysis A 15
C: Form Design B 8
D: Coding and Testing C 12
E: Database Design B 8
F: Connectivity D, E 10
G: Test with Database F 15
H: Documentation C 10
I: Error trapping F, H 10
J: Final Test I, J 10

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

H 15
7
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

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.


METHODOLOGY ADOPTED

 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.
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.

 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.
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.


CODING METHODS

 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.


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.

 The group had done Alpha testing.

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


software.
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.
Health Care System Specification:
The system specification is the final work produced by the system and
requirements engineer. It serves as the foundation for hardware engineering, software
engineering, database engineering and human engineering.

Once requirements have been gathered explore each requirements in


relationship to others, examine requirements for consistency, omissions and ambiguity.

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

Software Specifications
Operating System : Windows 2000XP/Windows 2000 NT
RDBMS : Sql Server 2005
Front End : Microsoft Visual Studio.NET with C#
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.
Advantages of ASP.NET

ASP.NET is Part of the .NET Framework:


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.
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
easily and must efficiently. The data can be any thing that is deemed to be of

significant to the organization, the system is serving.

What is .NET?

.NET is set of common services which can be used from a number of

languages and have the following specialties:

i. These services are executed in the form of intermediate code that is

independent of the underlying architecture.

ii. They operate in the runtime (Common Language Runtime), which

manages resources and monitors applications execution.

The .NET frameworks are a multi-language environment for building, deploying,

and running web services and applications. The Microsoft .NET platform

provides .NET infrastructure and tools to build and operate a new generation of

services.
SQL-SERVER 2005

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
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

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.
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 toGATHER
the software. Future advancements can be done easily through
CHANGE REQUIREMENTS
the review of product. The software architecture is strong enough to provide
enhancement in functionality, performance and reliability. Functions in the
ANALYZE
software are designed CHANGE
in such REQUIREMENTS
away that they dynamically update on addition of
new and revised modules. To append new features in this software, the databases
for student details,DEVISE
examination
CODE details
CHANGE areSTRATEGIES
sufficient enough for the task. Thus the
software is capable enough of being enhanced easily whenever requires by the user.

APPLY CODE CHANGE STRATEGIES


TO THE OLD ONE
MAINTENANCE PROCESS MODEL

UPDATE DOCUMENTS INTEGRATE AND TEST


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


Total Benefits= Rs. 10,000 per month
Recurring Cost= Rs. 800 per month
Net Benefit per Month= Rs. 9200
o Total Cost= Rs. 20, 000
ENTITY RELATIONSHIP DIAGRAM
DATA FLOW DIAGRAM

INTRODUCTION
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:

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:

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.

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 :
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
REGISTRATIO
N
HOSPITAL REGISTRATION
FORM
ADVERTISEME
NT
ADD ADVERTISEMENT
FORM
DISPLAY ADVERTISEMENT
FORM
Home.Aspx
Health.Aspx
Pinfo.Aspx
SiteMap.Aspx
Add_Details.Aspx
Add_Details.Aspx
Admin_Page.Aspx
Blood_Entry.Aspx
General_Details_Entry.Aspx
Hospital_Details_Entry.Aspx
Person_Detail_Page.Aspx
Person_Entry.Aspx
Staff_Page.Aspx
Urine_Entry.Aspx
Home.Aspx
Add_Page.Aspx
Blood_Entry.Aspx
Gen_Details_Entry.Aspx
Hos_Reg.Aspx
Person_Entry.Aspx
Person_Detail_Page.Aspx
Urine_Entry.Aspx
LOGIN PROCESS :

START
Input Voter
ID/Hospital ID

NO

If
ID
is correct

YES

Option for page

Generate Output

STOP

SEARCHING TEST DETAILS PROCESS:

START
Enter Voter ID

NO If
Voter ID
Error Message Is
Correct

YES

Display Coresponding
Test Details

STOP

HEALTHC ARD PROCESS:

START
Input Voter ID

NO

If
ID
is correct

YES

Generate HealthCard

STOP
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

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

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
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"))
{
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");
}

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>
<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>
<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>el
come
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" >
<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>
</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.Information);
if (d==System.Windows.Forms.DialogResult.OK)
{
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)


{
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");
}
}
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>
<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>
<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>
<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>
<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>
</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>

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>
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>
<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>
</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 !!!");

}
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");

}
}
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>
</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>
<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>
</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 />
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>

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();
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)
{
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");
}

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();
}

}
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);
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" %>

<!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>
<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>
<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"
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>
<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>
<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>
<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>
<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>
<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;
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"
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>
<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
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 Person_Gen_Blood_Details : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void search_Click(object sender, EventArgs e)
{
DataSet ds,ds1;
save.Enabled = false;
update.Visible = true;
search.Visible = false;
delete.Enabled = true;
string query = "select * from Person_Gen_Blood_Details where voter_idno='" +
vidno.Text.Trim() + "'";
string query1 = "select * from Others_Test_Details where voter_idno='" +
vidno.Text.Trim() + "'";
Com.Health.DataBase.Connection con =
Com.Health.DataBase.ConnectionPool.getConnection();
Com.Health.DataBase.Connection con1 =
Com.Health.DataBase.ConnectionPool.getConnection();
ds = con.getDataSet(query);
ds1 = con1.getDataSet(query1);
Com.Health.DataBase.ConnectionPool.Free(con);
Com.Health.DataBase.ConnectionPool.Free(con1);
if (ds.Tables[0].Rows.Count > 0)
{
blood_group.Text = ds.Tables[0].Rows[0][1].ToString();
rh_type.Text = ds.Tables[0].Rows[0][2].ToString();
hiv_status.Text = ds.Tables[0].Rows[0][3].ToString();
}
if (ds1.Tables[0].Rows.Count > 0)
{
otype.Text = ds1.Tables[0].Rows[0][1].ToString();
description.Text = ds1.Tables[0].Rows[0][2].ToString();
cname.Text = ds1.Tables[0].Rows[0][4].ToString();
cadd.Text = ds1.Tables[0].Rows[0][5].ToString();
}
else
{
MessageBox.Show("No Such Record Found!!!!");
search.Visible = true;
update.Visible = false;
}
}
protected void update_Click(object sender, EventArgs e)
{
search.Visible = true;
update.Visible = false;
res = MessageBox.Show("Are you sure to Update record", "Update 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 = "update Person_Gen_Blood_Details set blood_group='" +
blood_group.Text.Trim() + "',rh_type='" + rh_type.Text.Trim() + "',hiv_status='" +
hiv_status.Text.Trim() +"' where voter_idno='" + vidno.Text.Trim() + "'";
string query1 = "update Others_Test_Details set other_type='" + otype.Text.Trim() + "
',description='" + description.Text.Trim() + " ',test_date='" + date1 + "',clinic_name='" +
cname.Text.Trim() + "',clinic_address='" + cadd.Text.Trim() + "' where voter_idno='" +
vidno.Text.Trim() + "'";
Com.Health.DataBase.Connection con =
Com.Health.DataBase.ConnectionPool.getConnection();
Com.Health.DataBase.Connection con1 =
Com.Health.DataBase.ConnectionPool.getConnection();
int i = con.ExecuteNonQuery(query);
int j = con1.ExecuteNonQuery(query1);
Com.Health.DataBase.ConnectionPool.Free(con);
Com.Health.DataBase.ConnectionPool.Free(con1);

if ((i > 0)&&(j>0))


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

protected void l1_Click1(object sender, EventArgs e)


{
WebFactory.LogOut(Session.SessionID);
Response.Redirect("Home.aspx");
}
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 Person_Gen_Blood_Details values('" + vidno.Text.Trim() +
"','" + blood_group.Text.Trim() + "','" + rh_type.Text.Trim() + "','" + hiv_status.Text.Trim() + "
')";
string query1 ="insert into Others_Test_Details values('" + vidno.Text.Trim() + "','" +
otype.Text.Trim() + "','" + description.Text.Trim() + "','" +date1 + " ',' " + cname.Text.Trim() +
"','" + cadd.Text.Trim() + " ')";
Com.Health.DataBase.Connection con =
Com.Health.DataBase.ConnectionPool.getConnection();
Com.Health.DataBase.Connection con1 =
Com.Health.DataBase.ConnectionPool.getConnection();
int i = con.ExecuteNonQuery(query);
int j = con1.ExecuteNonQuery(query1);

Com.Health.DataBase.ConnectionPool.Free(con);
Com.Health.DataBase.ConnectionPool.Free(con1);

if ((i > 0) && (j > 0))


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

clear();
}

public void clear()


{
vidno.Text = "";
blood_group.Text = "";
rh_type.Text = "";
hiv_status.Text = "";
otype.Text = "";
description.Text = "";
date.Text = "";
cname.Text = "";
cadd.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 Person_Gen_Blood_Details where voter_idno='" +
vidno.Text.Trim() + "'";
string query1 = "delete Others_Test_Details where voter_idno='" + vidno.Text.Trim() +
"'";

Com.Health.DataBase.Connection con =
Com.Health.DataBase.ConnectionPool.getConnection();
Com.Health.DataBase.Connection con1 =
Com.Health.DataBase.ConnectionPool.getConnection();
int i = con.ExecuteNonQuery(query);
int j = con1.ExecuteNonQuery(query1);
Com.Health.DataBase.ConnectionPool.Free(con);
Com.Health.DataBase.ConnectionPool.Free(con1);
if ((i > 0) && (j > 0))
{
MessageBox.Show("Record Deleted Permanently!!!", "Delete",
MessageBoxButtons.OKCancel);
clear();
}
else
{
MessageBox.Show("No Such Record Exists!!!");
}
}
else if (res == System.Windows.Forms.DialogResult.No)
{

clear();
}

}
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");
}
}
Gen_Details_Entry.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Gen_Details_Entry.aspx.cs"
Inherits="Person_Gen_Blood_Details" %>

<!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">


<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:976px"><img src="pic/topbanner.jpg" alt="topbanner"
style="width: 995px; height: 180px"/>&nbsp;
</td>
</tr>
</table>
<table>
<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>
<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:1019px">
<asp:Label ID="Label7" 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: 289px; position: absolute; top: 268px" Text="General Details Entry Form"
Width="392px"></asp:Label>

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


BorderColor="DeepSkyBlue"
BorderStyle="Solid" BorderWidth="7px" Height="630px" Style="left: 403px;
position: absolute; top: 334px" Width="764px">
<asp:TextBox ID="vidno" runat="server" Style="z-index: 100; left: 173px;
position: absolute;
top: 42px" Width="127px" ></asp:TextBox>
<asp:Label ID="Label3" runat="server" Font-Names="Times New Roman" Font-
Size="Medium"
Style="z-index: 101; left: 32px; position: absolute; top: 151px" Text="RH
Type"
Width="104px"></asp:Label>
<asp:TextBox ID="rh_type" runat="server" Style="z-index: 102; left: 174px;
position: absolute;
top: 149px" Width="129px" ></asp:TextBox>
<asp:Label ID="Label4" runat="server" Font-Names="Times New Roman" Font-
Size="Medium"
Height="13px" Style="z-index: 103; left: 392px; position: absolute; top: 151px"
Text="HIV Status" Width="103px"></asp:Label>
&nbsp;
<asp:Label ID="Label5" runat="server" Font-Names="Times New Roman" Font-
Size="Medium"
Style="z-index: 104; left: 36px; position: absolute; top: 96px" Text="Blood
Group"
Width="106px"></asp:Label>
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;
<asp:Label ID="Label12" runat="server" Font-Bold="False" Font-Names="Times
New Roman"
Font-Size="Medium" Style="z-index: 105; left: 36px; position: absolute; top:
556px"
Text="Clinic Address" Width="106px"></asp:Label>
<br />
<br />
<asp:Label ID="Label2" runat="server" Font-Names="Times New Roman" Font-
Size="Medium"
Style="z-index: 106; left: 38px; position: absolute; top: 43px" Text=" Voter
Idno"></asp:Label>

&nbsp;&nbsp;<br />
<hr style="z-index: 122; left: 1px; position: absolute; top: 195px" id="HR1"
onclick="return HR1_onclick()" />
&nbsp;<br />
<br />
<br />
<br />
<br />
<br />
<asp:Label ID="Label6" runat="server" Font-Names="Times New Roman" Font-
Size="Medium"
Style="z-index: 107; left: 31px; position: absolute; top: 267px" Text="Other
Type"
Width="138px"></asp:Label>
<asp:TextBox ID="otype" runat="server" Style="z-index: 108; left: 192px;
position: absolute;
top: 266px" Width="186px" ></asp:TextBox>
&nbsp;
<asp:TextBox ID="description" runat="server" Style="z-index: 109; left: 189px;
position: absolute;
top: 343px" Width="191px" TextMode="MultiLine"></asp:TextBox>
&nbsp;&nbsp;
<asp:Label ID="Label9" runat="server" Font-Names="Times New Roman" Font-
Size="Medium"
Style="z-index: 110; left: 37px; position: absolute; top: 348px"
Text="Description"
Width="129px"></asp:Label>
&nbsp;
<asp:Label ID="Label11" runat="server" Font-Bold="False" Font-Names="Times
New Roman"
Font-Size="Medium" Style="z-index: 111; left: 38px; position: absolute; top:
495px"
Text="Clinic Name" Width="110px"></asp:Label>
<asp:Label ID="Label13" runat="server" Font-Bold="False" Font-Names="Times
New Roman"
Font-Size="Medium" Style="z-index: 112; left: 40px; position: absolute; top:
432px"
Text="Test Date" Width="77px"></asp:Label>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<asp:DropDownList ID="blood_group" runat="server" Style="z-
index: 113; left: 175px;
position: absolute; top: 95px" Width="132px">
<asp:ListItem>--Select--</asp:ListItem>
<asp:ListItem>A+</asp:ListItem>
<asp:ListItem>A-</asp:ListItem>
<asp:ListItem>B+</asp:ListItem>
<asp:ListItem>B-</asp:ListItem>
<asp:ListItem>AB+</asp:ListItem>
<asp:ListItem>O+</asp:ListItem>
<asp:ListItem>O-</asp:ListItem>
<asp:ListItem>ABO</asp:ListItem>
</asp:DropDownList>

<asp:TextBox ID="cname" runat="server" Style="z-index: 114; left: 192px;


position: absolute;
top: 491px" Width="189px" ></asp:TextBox>
&nbsp;&nbsp;&nbsp;
<asp:Label ID="Label1" runat="server" Font-Names="Times New Roman" Font-
Size="Larger"
Style="z-index: 123; left: 33px; position: absolute; top: 205px" Text="Other Test
Details :"
Width="345px" Height="28px"></asp:Label>
<br />
<br />
<asp:TextBox ID="cadd" runat="server" Style="z-index: 116; left: 192px;
position: absolute;
top: 552px" Width="189px" ></asp:TextBox>
&nbsp;&nbsp;&nbsp;<br />
<br />
<br />
&nbsp;&nbsp;<br />
<br />
&nbsp; &nbsp;<br />
<br />
&nbsp; &nbsp;
&nbsp;
<asp:DropDownList ID="date" runat="server" Height="154px" Style="z-index: 118;
left: 191px; position: absolute; top: 427px" >
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<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" Height="154px"
Style="z-index: 119; left: 249px; position: absolute; top: 429px" Width="63px">
<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>june</asp:ListItem>
<asp:ListItem>july</asp:ListItem>
<asp:ListItem>aug</asp:ListItem>
<asp:ListItem>sept</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" Height="154px" Style=" left: 325px;
position: absolute; top: 430px" 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>1997</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>
<asp:ListItem>2017</asp:ListItem>
<asp:ListItem>2018</asp:ListItem>
<asp:ListItem>2019</asp:ListItem>
<asp:ListItem>2020</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="hiv_status" runat="server" Style="z-index: 121; left: 533px;
position: absolute; top: 152px" Width="113px">
<asp:ListItem>--select--</asp:ListItem>
<asp:ListItem>negative</asp:ListItem>
<asp:ListItem>positive</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="save" runat="server" style="position:absolute;top:590px;left:200px"
Text="Save" Height="25px" Width="104px" OnClick="save_Click" />
<asp:Button ID="search" runat="server"
style="position:absolute;top:590px;left:328px" Text="Search" Height="25px" Width="104px"
OnClick="search_Click" />
<asp:Button ID="update" runat="server"
style="position:absolute;top:590px;left:326px" Visible="false" Text="Update" Height="25px"
Width="104px" OnClick="update_Click" />
<asp:Button ID="delete" runat="server"
style="position:absolute;top:590px;left:462px" Text="Delete" Height="25px" Width="104px"
Enabled="false" OnClick="delete_Click"/>

</asp:Panel>
</td>
</tr>

</table>
<table>
<tr><td align="CENTER" style="background-color:#fffbd6">
<asp:LinkButton ID="l1" runat="server" BackColor="#fffbd6" Text="HOME"
OnClick="l1_Click1" ></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>

Hos_Reg.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 Hos_reg : System.Web.UI.Page


{

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 query = "insert into Hospital_Deatils values('" + hospital_id.Text.Trim() + "','" +


hospital_name.Text.Trim() + "','" + hospital_add.Text.Trim() + "','" + city.Text.Trim() + "','" +
district.Text.Trim() + "','" + state.Text.Trim() + "','" + head_incharge.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);
clear();
}
}
else if (res == System.Windows.Forms.DialogResult.No)
{

clear();
}

}
private void clear()
{
hospital_id.Text = "";
hospital_name.Text = "";
hospital_add.Text = "";
city.Text = "";
district.Text = "";
state.Text = "";
head_incharge.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)
{

string query = "update Hospital_Deatils set hospital_name='" +


hospital_name.Text.Trim() + "',hospital_address='" + hospital_add.Text.Trim() + "',city='" +
city.Text.Trim() + "',district='" + district.Text.Trim() + "',state='" + state.Text.Trim() +
"',head_of_incharge='" + head_incharge.Text.Trim() + " ' where hospital_id='" +
hospital_id.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 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 Hospital_Deatils where hospital_id='" + hospital_id.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("Record Deleted Permanently!!!", "Delete",
MessageBoxButtons.OKCancel);
clear();
}
}
else if (res == System.Windows.Forms.DialogResult.No)
{

clear();
}

}
protected void search_Click(object sender, EventArgs e)
{
DataSet ds;
update.Visible = true;
search.Visible = false;
delete.Enabled = true;
save.Enabled = false;
string query = "select * from Hospital_Deatils where hospital_id='" +
hospital_id.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)
{
hospital_name.Text = ds.Tables[0].Rows[0][1].ToString();
hospital_add.Text = ds.Tables[0].Rows[0][2].ToString();
city.Text = ds.Tables[0].Rows[0][3].ToString();
district.Text = ds.Tables[0].Rows[0][4].ToString();
state.Text = ds.Tables[0].Rows[0][5].ToString();
head_incharge.Text = ds.Tables[0].Rows[0][6].ToString();
}
else
{
MessageBox.Show("No Record Found!!!");
hospital_id.Text = "";
}
}

protected void l2_Click(object sender, EventArgs e)


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

Hos_Reg.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Hos_reg.aspx.cs"
Inherits="Hos_reg" %>

<!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">
<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>
<tr><td rowspan="3" style="height:750px;width:280px; 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>
<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:1019px" rowspan="3">
<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: 270px" Text="Hospital Details Entry Form"
Width="392px"></asp:Label>

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


BorderColor="DeepSkyBlue"
BorderStyle="Solid" BorderWidth="7px" Height="540px" Style="left: 312px;
position: absolute; top: 350px" Width="600px">
<asp:TextBox ID="hospital_id" runat="server" Style=" left: 289px; position:
absolute;
top: 60px" Width="174px" ></asp:TextBox>
<asp:Label ID="Label3" runat="server" Font-Names="Times New Roman" Font-
Size="Medium"
Style="left: 76px; position: absolute; top: 165px" Text="Hospital Address"
Width="115px"></asp:Label>
<asp:TextBox ID="hospital_add" runat="server" Style="left: 289px; position:
absolute;
top: 159px" Width="174px" ></asp:TextBox>

<asp:Label ID="Label5" runat="server" Font-Names="Times New Roman" Font-


Size="Medium"
Style=" left: 76px; position: absolute; top: 113px" Text="Hospital Name"
Width="106px"></asp:Label>

<asp:Label ID="Label2" runat="server" Font-Names="Times New Roman" Font-


Size="Medium"
Style="left: 76px; position: absolute; top: 61px" Text=" Hospital Id"
Width="111px"></asp:Label>

<asp:TextBox ID="hospital_name" runat="server" Style="left: 289px; position: absolute;


top: 107px" Width="174px"></asp:TextBox>

<asp:Label ID="Label6" runat="server" Font-Names="Times New Roman" Font-


Size="Medium"
Style=" left: 76px; position: absolute; top: 211px" Text="City"
Width="116px"></asp:Label>
<asp:TextBox ID="city" runat="server" Style=" left: 289px; position: absolute;
top: 206px" Width="178px"></asp:TextBox>
<asp:TextBox ID="district" runat="server" Style=" left: 289px; position: absolute;
top: 270px" Width="187px" TextMode="MultiLine"></asp:TextBox>

<asp:Label ID="Label9" runat="server" Font-Names="Times New Roman" Font-


Size="Medium"
Style=" left: 76px; position: absolute; top: 270px" Text="District"
Width="129px"></asp:Label>
<asp:Label ID="Label11" runat="server" Font-Bold="False" Font-Names="Times New
Roman"
Font-Size="Medium" Style="left: 76px; position: absolute; top: 394px"
Text="Head Incharge" Width="110px"></asp:Label>
<asp:Label ID="Label13" runat="server" Font-Bold="False" Font-Names="Times
New Roman"
Font-Size="Medium" Style="left: 76px; position: absolute; top: 344px"
Text="State" Width="77px"></asp:Label>

<asp:TextBox ID="state" runat="server" Style="left: 289px; position: absolute;


top: 338px" Width="189px"></asp:TextBox>

<asp:TextBox ID="head_incharge" runat="server" Style=" left: 289px; position:


absolute;
top: 389px" Width="189px"></asp:TextBox>

<asp:Button ID="save" runat="server"


style="position:absolute;top:455px;left:97px" Text="Save" Height="25px" Width="104px"
OnClick="save_Click" />
<asp:Button ID="search" runat="server"
style="position:absolute;top:455px;left:231px" Text="Search" Height="25px" Width="104px"
OnClick="search_Click" />
<asp:Button ID="update" runat="server"
style="position:absolute;top:455px;left:232px" Visible="false" Text="Update" Height="25px"
Width="104px" OnClick="update_Click" />
<asp:Button ID="delete" runat="server" Enabled="false"
style="position:absolute;top:455px;left:364px" Text="Delete" Height="25px" Width="104px"
OnClick="delete_Click"/>

</asp:Panel>

</td>
<td style="width:220px; height:20px; 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: 320px"><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:300px; background-color:#fffbd6" align="center"
valign="top">
<font size="3">
<br />
<br />
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; width:1256px" >
<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 align="center" style="background-color:#fffbd6" >
<img src="pic/wave.gif" alt="wave"/></td></tr>
<tr>
<td align="center" style="background-color:#fffbd6">@copyright reserved by "Ducat
Academy"
</td></tr>
</table>
</form>
</body>
</html>
Person_Detail_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.Ui;
using Com.Health.DataBase;
using Com.Health.Security;
using Com.Health.Application;

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


{

string str,str1;

protected void Page_Load(object sender, EventArgs e)


{

str1 = Request.Cookies["Cookie1"].Value;
if (str1 == "user")
{
str = Request.Cookies["Cookie"].Value.ToString();

}
else if ((str1 == "admin") || (str1 == "staff"))
{
str = Request.QueryString["a"].ToString();
}
}
public void fgh(string s1)
{
DataSet ds;

Connection con = Com.Health.DataBase.ConnectionPool.getConnection();


ds = con.getDataSet(s1);
g1.DataSource = ds.Tables[0];
g1.DataBind();
Com.Health.DataBase.ConnectionPool.Free(con);

}
public void save(string s,string s1)
{
Connection con = Com.Health.DataBase.ConnectionPool.getConnection();
object i = con.ExecuteScaler(s);
Com.Health.DataBase.ConnectionPool.Free(con);
if ((int)i <= 0)
{
p1.Visible = false;
g1.Visible = false;
MessageBox.Show("No record exists");
}
else
{
fgh(s1);
p1.Visible = true;
g1.Visible = true;

}
}

static string menuopt;


protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
{
if (Menu1.SelectedItem.Value == "BReports")
{
string s = "select count(*) from Blood_Person_Test_Details where voter_idno='" +
str+"'";
string s1 = "select * from Blood_Person_Test_Details where voter_idno='" + str + "'";
save(s, s1);
}
if (Menu1.SelectedItem.Value == "UReports")
{
string s = "select count(*) from Urine_Person_Details where voter_idno='" + str + "'";
string s1 = "select * from Urine_Person_Details where voter_idno='" + str + "'";
save(s,s1);

}
if (Menu1.SelectedItem.Value == "OReports")
{
string s = "select count(*) from Others_Test_Details where voter_idno='" + str + "'";
string s1 = "select * from Others_Test_Details where voter_idno='" + str + "'";
save(s,s1);
}
if (Menu1.SelectedItem.Value == "BDate")
{
l1.Visible = true;
txt1.Visible = true;
b1.Visible = true;
menuopt = "BDate";
}
if (Menu1.SelectedItem.Value == "UDate")
{
l1.Visible = true;
txt1.Visible = true;
b1.Visible = true;
menuopt = "UDate";
}
if (Menu1.SelectedItem.Value == "ODate")
{
l1.Visible = true;
txt1.Visible = true;
b1.Visible = true;
menuopt = "ODate";

}
protected void b1_Click(object sender, EventArgs e)
{
if (menuopt == "BDate")
{
string s = "select count(*) from Blood_Person_Test_Details where voter_idno='" + str + "'
and test_date='" + txt1.Text + "'";
string s1 = "select * from Blood_Person_Test_Details where voter_idno='" + str + "' and
test_date='" + txt1.Text + "'";
save(s, s1);

}
if (menuopt == "UDate")
{
string s = "select count(*) from Urine_Person_Details where voter_idno='" + str + "' and
test_date='" + txt1.Text + "'";
string s1 = "select * from Urine_Person_Details where voter_idno='" + str + "' and
test_date='" + txt1.Text + "'";
save(s, s1);

}
if (menuopt == "ODate")
{
string s = "select count(*) from Others_Test_Details where voter_idno='" + str + "' and
test_date='" + txt1.Text + "'";
string s1 = "select * from Others_Test_Details where voter_idno='" + str + "' and
test_date='" + txt1.Text + "'";
save(s, s1);
}

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

}
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");
}
}

Person_Details_Page.Aspx.Cs(source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Person_Detail_Page.aspx.cs"
Inherits="Person_Detail_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">
<table>
<tr>
<td colspan="2" align="right">
<img src="pic/about-us.gif" alt="About Us"/><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: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:214px; height:600px; background:#FFFBD6;" >
<asp:Menu ID="Menu1" runat="server" BackColor="#FFFBD6"
DynamicHorizontalOffset="2"
Font-Names="Verdana" Font-Size="Medium" ForeColor="#990000" Height="360px"
OnMenuItemClick="Menu1_MenuItemClick"
PathSeparator="-" StaticSubMenuIndent="10px" Style="left: 14px;
position: absolute; top: 295px" Width="199px">
<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="Blood Test Details" Value="Blood Test Details">
<asp:MenuItem Text="All Reports" Value="BReports"></asp:MenuItem>
<asp:MenuItem Text="Based On Date" Value="BDate"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Urine Test Details" Value="Urine Test Details">
<asp:MenuItem Text="All Reports" Value="UReports"></asp:MenuItem>
<asp:MenuItem Text="Based On Date" Value="UDate"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Other Test Details" Value="Other Test Details">
<asp:MenuItem Text="All Reports" Value="OReports"></asp:MenuItem>
<asp:MenuItem Text="Based On Date" Value="ODate"></asp:MenuItem>
</asp:MenuItem>
</Items>
<StaticHoverStyle BackColor="#990000" ForeColor="White" />
<StaticMenuStyle BorderStyle="None" />
</asp:Menu>

</td>
</tr>
<tr>
<td style="width:200px; height:180px">
&nbsp; &nbsp;&nbsp;
<asp:AdRotator ID="AdRotator1" runat="server" DataSourceID="Inner" Style="z-index:
100;
left: 49px; position: absolute; top: 873px" />
<asp:SqlDataSource ID="Inner" runat="server" ConnectionString="<%$
ConnectionStrings:health_infoConnectionString2 %>" SelectCommand="SELECT [ImageUrl],
[Width], [Height], [NavigateUrl], [AlternateText], [Impression] FROM [Add_Details] WHERE
([keyword] = @keyword)">
<SelectParameters>
<asp:Parameter DefaultValue="Inner Box Banner On Person Details Page"
Name="keyword"
Type="String" />
</SelectParameters>
</asp:SqlDataSource>
&nbsp;
</td></tr>
</table>
<asp:Label ID="l1" runat ="server" Visible="false" Text="Enter Voter Id" style="left:300px;
position:absolute;top:330px;" Width="137px"></asp:Label>
<asp:TextBox ID="txt1" runat ="server" style="left: 500px; position: absolute; top:330px; z-
index: 101;" Visible="false"></asp:TextBox>
<asp:Button ID="b1" runat="server" style="left: 700px; position: absolute; top:330px; z-
index: 102;" Visible="false" Text="GO" Width="67px" OnClick="b1_Click" />
<asp:Panel ID ="p1" runat="server" ScrollBars="Both" BorderStyle="Solid" BorderWidth
="2" Style=" left: 272px; top:450px; position:absolute;" Width="950px" Height="180px"
Visible="false">
<asp:GridView ID="g1" runat="server" BorderWidth="2" HeaderStyle-Font-Bold="true"
HeaderStyle-Height="50px" EditRowStyle-Width="400px" HeaderStyle-Width="400px"
style="top:100px">
</asp:GridView>
</asp:Panel>

<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:2000px; background-color:#fffbd6"><img src="pic/wave.gif"
alt="wave" />
</td>
</tr>
<tr>
<td align="center" style="width:2000px;background-color:#fffbd6;">@copyright reserved by
"Ducat Academy"
</td></tr>
</table>
</form>
</body>
</html>

Person_Entry.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.Xml.Serialization;
using Com.Health.Ui;
using Com.Health.DataBase;
using Com.Health.Security;
using Com.Health.Application;
using System.Windows.Forms;
using System.IO;
using System.Drawing;
using System.Drawing.Imaging;

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


{

protected void Button1_Click(object sender, EventArgs e)


{
string date1 = DropDownList1.SelectedItem.ToString() + "/" +
DropDownList2.SelectedItem.ToString() + "/" + DropDownList3.SelectedItem.ToString();
string query="insert into Person_Details values('"+vidno.Text.Trim()
+"','"+fname.Text.Trim()+"','"+mname.Text.Trim()+"','"+lname.Text.Trim()
+"','"+faname.Text.Trim()+"','"+moname.Text.Trim()+"','"+add1.Text.Trim()
+"','"+add2.Text.Trim()+" ','"+city.Text.Trim()+" ','"+state.Text.Trim()+" ', '
"+sex.Text+"','"+date1+"','"+emailid.Text.Trim()+" ','"+contactno.Text.Trim()+"
','"+Image1.ImageUrl.Trim()+" ')";
int i = Com.Health.DataBase.ConnectionPool.getConnection().ExecuteNonQuery(query);
if (i > 0)
{

MessageBox.Show("Value Successfully inserted", "insert",


MessageBoxButtons.OKCancel);
}

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");
}
}
Person_Entry.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Person_Entry.aspx.cs"
Inherits="Default3" %>

<!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 date()
{
var d=document.getElementById("DropDownList1");
var d1= d.options[d.selectedIndex].value;
var m=document.getElementById("DropDownList2");
var m1=m.options[m.selectedIndex].value;
var y=document.getElementById("DropDownList3");
var y1=y.options[y.selectedIndex].value;

if(m1=="apr")
{
if(d1==31)
alert('Please enter a correct date !!!');
}
else if(m1=="feb")
{
if(d1>=30)
window.alert('Please enter a correct date !!!');
else if(d1==29)
{
if((y1%4)!=0)
window.alert('Please enter a correct date !!!');
}
else if(d1==28)
{
if(y1%4==0)
window.alert('Please enter a correct date !!!');
}
}
}
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"/><a href="Home.aspx">
LogOut</a>
</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>
<tr><td style="height:850px;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>
<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:850px;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: 250px" Text="Person Details Entry Form"
Width="392px"></asp:Label>
<asp:Label ID="Label18" runat="server" Font-Bold="True" ForeColor="Red"
Height="25px"
Style="z-index: 104; left: 692px; position: absolute; top: 320px" Text="(* Represents
compulsory field )"
Width="242px"></asp:Label>

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


BorderColor="DeepSkyBlue"
BorderStyle="Solid" BorderWidth="7px" Height="700px" Style="z-index: 101;
left: 402px;
position: absolute; top: 350px" Width="764px">
<asp:TextBox ID="vidno" runat="server" Style="z-index: 100; left: 138px;
position: absolute;
top: 35px" Width="124px"></asp:TextBox>
<asp:Label ID="Label3" runat="server" Font-Names="Times New Roman" Font-
Size="Larger"
Style="z-index: 101; left: 272px; position: absolute; top: 169px" Text="Middle
Name"
Width="104px"></asp:Label>
<asp:TextBox ID="mname" runat="server" Style="z-index: 102; left: 389px;
position: absolute;
top: 168px" Width="109px"></asp:TextBox>
<asp:Label ID="Label4" runat="server" Font-Names="Times New Roman" Font-
Size="Larger"
Height="13px" Style="z-index: 103; left: 516px; position: absolute; top: 170px"
Text="* Last Name" Width="103px"></asp:Label>
<asp:TextBox ID="lname" runat="server" Height="15px" Style="z-index: 104;
left: 626px;
position: absolute; top: 170px" Width="115px"></asp:TextBox>
<asp:Label ID="Label5" runat="server" Font-Names="Times New Roman" Font-
Size="Larger"
Style="z-index: 105; left: 32px; position: absolute; top: 170px" Text="* First
Name"
Width="106px"></asp:Label>

<asp:Label ID="Label12" runat="server" Font-Bold="False" Font-Names="Times


New Roman"
Font-Size="Larger" Style="z-index: 106; left: 451px; position: absolute; top:
407px"
Text="State" Width="48px"></asp:Label>

<asp:Label ID="Label2" runat="server" Font-Names="Times New Roman" Font-


Size="Larger"
Style="z-index: 107; left: 32px; position: absolute; top: 36px" Text="* Voter
Idno"></asp:Label>

<asp:TextBox ID="fname" runat="server" Style="z-index: 108; left: 145px;


position: absolute;
top: 167px" Width="113px"></asp:TextBox>
&nbsp;&nbsp;<br />
<hr style="z-index: 135; left: -1px; position: absolute; top: 149px" id="HR1"
onclick="return HR1_onclick()" />

<asp:Label ID="Label6" runat="server" Font-Names="Times New Roman" Font-


Size="Larger"
Style="z-index: 109; left: 32px; position: absolute; top: 229px" Text="Father's
Name"
Width="138px"></asp:Label>
<asp:TextBox ID="faname" runat="server" Style="z-index: 110; left: 185px;
position: absolute;
top: 226px" Width="186px" ></asp:TextBox>
<asp:Label ID="Label7" runat="server" Font-Names="Times New Roman" Font-
Size="Larger"
Style="z-index: 111; left: 37px; position: absolute; top: 286px"
Text="Address1"
Width="108px"></asp:Label>
<asp:TextBox ID="moname" runat="server" Style="z-index: 112; left: 551px;
position: absolute;
top: 223px" Width="191px"></asp:TextBox>
<asp:Label ID="Label8" runat="server" Font-Names="Times New Roman" Font-
Size="Larger"
Style="z-index: 113; left: 38px; position: absolute; top: 344px"
Text="Address2"
Width="102px"></asp:Label>
<asp:TextBox ID="add1" runat="server" Style="z-index: 114; left: 187px;
position: absolute;
top: 286px" Width="217px" TextMode="MultiLine"></asp:TextBox>
<asp:Label ID="Label9" runat="server" Font-Names="Times New Roman" Font-
Size="Larger"
Style="z-index: 115; left: 398px; position: absolute; top: 228px"
Text="Mother's Name"
Width="129px"></asp:Label>
<asp:TextBox ID="add2" runat="server" Style="z-index: 116; left: 186px;
position: absolute;
top: 347px" Width="215px" TextMode="MultiLine"></asp:TextBox>
<asp:Label ID="Label11" runat="server" Font-Bold="False" Font-Names="Times
New Roman"
Font-Size="Larger" Style="z-index: 117; left: 40px; position: absolute; top:
424px"
Text="City" Width="54px"></asp:Label>
<asp:Label ID="Label13" runat="server" Font-Bold="False" Font-Names="Times
New Roman"
Font-Size="Larger" Style="z-index: 118; left: 38px; position: absolute; top:
485px"
Text="DOB" Width="77px"></asp:Label>
&nbsp;&nbsp;
<asp:Label ID="Label15" runat="server" Font-Bold="False" Font-Names="Times
New Roman"
Font-Size="Larger" Height="18px" Style="z-index: 119; left: 43px; position:
absolute;
top: 591px" Text="Contact No" Width="92px"></asp:Label>
<asp:Label ID="Label14" runat="server" Font-Bold="False" Font-Names="Times
New Roman"
Font-Size="Larger" Style="z-index: 120; left: 42px; position: absolute; top:
534px"
Text="Email Id" Width="68px"></asp:Label>
<asp:Label ID="Label16" runat="server" Font-Bold="False" Font-Names="Times
New Roman"
Font-Size="Larger" Style="z-index: 121; left: 506px; position: absolute; top:
26px"
Text="* Image"></asp:Label>
<asp:DropDownList ID="sex" runat="server" Style="z-index: 122;
left: 550px;
position: absolute; top: 295px">
<asp:ListItem>--Select--</asp:ListItem>
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem>Female</asp:ListItem>
</asp:DropDownList>

<asp:TextBox ID="city" runat="server" Style="z-index: 123; left: 188px;


position: absolute;
top: 417px" Width="211px" ></asp:TextBox>

<asp:TextBox ID="state" runat="server" Style="z-index: 125; left: 553px;


position: absolute;
top: 409px" Width="196px"></asp:TextBox>
&nbsp;<br />
<br />
<br />
<asp:TextBox ID="emailid" runat="server" Style="z-index: 126; left: 188px;
position: absolute;
top: 534px" Width="212px" ></asp:TextBox>

<asp:TextBox ID="contactno" runat="server" Style="z-index: 127; left: 193px;


position: absolute;
top: 591px" Width="214px" ></asp:TextBox>

<asp:Image ID="Image1" runat="server" Height="111px" Style="z-index: 128;


left: 579px;
position: absolute; top: 12px" Width="142px" />

<asp:FileUpload ID="FileUpload1" runat="server" OnLoad="FileUpload1_Load"


Style="z-index: 129;
left: 517px; position: absolute; top: 123px" />
<asp:Button ID="Button1" runat="server" BorderStyle="Solid" Font-Bold="False"
Font-Size="Larger"
Height="30px" OnClick="Button1_Click" OnClientClick="date();" Style="z-
index: 130; left: 320px; position: absolute;
top: 659px" Text="Submit" Width="108px" />
<asp:Label ID="Label10" runat="server" Font-Names="Times New Roman" Font-
Size="Larger"
Style="z-index: 131; left: 452px; position: absolute; top: 295px" Text=" Sex"
Width="70px"></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server" Height="154px" Style="z-
index: 132;
left: 197px; position: absolute; top: 483px">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<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="DropDownList2" runat="server" Height="154px"
OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged"
Style="z-index: 133; left: 261px; position: absolute; top: 482px" Width="63px">
<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:DropDownList>
<asp:DropDownList ID="DropDownList3" runat="server" Height="154px"
OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged"
Style="z-index: 136; left: 343px; position: absolute; top: 483px" Width="61px">
<asp:ListItem>1995</asp:ListItem>
<asp:ListItem>1996</asp:ListItem>
<asp:ListItem>1997</asp:ListItem>
<asp:ListItem>2000</asp:ListItem>
</asp:DropDownList>
</asp:Panel>

</table>
<table>
<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>
</div>
</form>
</body>
</html>

Staff_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 Staff_Page : System.Web.UI.Page


{
protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
{
if (Menu1.SelectedItem.Value == "PTD")
{
l1.Visible = true;
t1.Visible = true;
b1.Visible = true;

}
}

protected void b1_Click1(object sender, EventArgs e)


{
if (t1.Text=="")
{
MessageBox.Show("Please Enter Voter ID !!!");
}
else
{
Response.Redirect("Person_Detail_Page.aspx?a=" + t1.Text);
}
}

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");
}

}
Staff_Page.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Staff_Page.aspx.cs"
Inherits="Staff_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">
<table>
<tr>
<td colspan="2" align="right" style="background-color: #fffbd6; height: 30px;">
<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: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: 270px" Width="1px"
OnMenuItemClick="Menu1_MenuItemClick1" >
<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>
<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" Enabled="False">
<asp:MenuItem Text="Hospital Registration form" Value="HRF"
NavigateUrl="~/Hos_reg.aspx" Enabled="False"></asp:MenuItem>
</asp:MenuItem>
<asp:MenuItem Text="Advertisement" Value="Add" Enabled="False">
<asp:MenuItem Text="Add Advertisement Form" Value="AAF"
NavigateUrl="~/Add_Page.aspx" Enabled="False"></asp:MenuItem>
<asp:MenuItem Text="Display Advertisement Form" Value="DAF"
NavigateUrl="~/Add_Detail.aspx" Enabled="False"></asp:MenuItem>
</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:400px;" 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 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 />
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 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>

Urine_Entry.Aspx.Cs(Source)
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 Default2 : 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 Urine_Person_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)
{
color.Text = ds.Tables[0].Rows[0][1].ToString();
consistancy.Text = ds.Tables[0].Rows[0][2].ToString();
sendiments.Text = ds.Tables[0].Rows[0][3].ToString();
spf_gravity.Text = ds.Tables[0].Rows[0][4].ToString();
acidic.Text = ds.Tables[0].Rows[0][5].ToString();
urine_sugar.Text = ds.Tables[0].Rows[0][6].ToString();
albumin.Text = ds.Tables[0].Rows[0][7].ToString();
phosphate.Text = ds.Tables[0].Rows[0][8].ToString();
acetone_bodies.Text = ds.Tables[0].Rows[0][9].ToString();
bile_salt.Text = ds.Tables[0].Rows[0][10].ToString();
bile_pigment.Text = ds.Tables[0].Rows[0][11].ToString();
urobilinogen.Text = ds.Tables[0].Rows[0][12].ToString();
luecocytes.Text = ds.Tables[0].Rows[0][13].ToString();
erthyocytes.Text = ds.Tables[0].Rows[0][14].ToString();
epithelial_cells.Text = ds.Tables[0].Rows[0][15].ToString();
casts.Text = ds.Tables[0].Rows[0][16].ToString();
ketones.Text = ds.Tables[0].Rows[0][17].ToString();
protiens.Text = ds.Tables[0].Rows[0][18].ToString();
turbidity.Text = ds.Tables[0].Rows[0][19].ToString();
others.Text = ds.Tables[0].Rows[0][20].ToString();
date.Text = "";
month.Text = "";
year.Text = "";
clinic_name.Text = ds.Tables[0].Rows[0][22].ToString();
clinic_addess.Text = ds.Tables[0].Rows[0][23].ToString();

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

DialogResult res;
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)
{
string date1 = date.SelectedItem.ToString() + "/" + month.SelectedItem.ToString() + "/" +
year.SelectedItem.ToString();
string query = "update Urine_Person_Details set color='" + color.Text.Trim() +
"',consistancy=" + consistancy.Text.Trim() + ",sendiments=" + sendiments.Text.Trim() +
",spf_gravity=" + spf_gravity.Text.Trim() + ",acidic=" + acidic.Text.Trim() + ",urine_sugar=" +
urine_sugar.Text.Trim() + ",albumin=" + albumin.Text.Trim() + " ,phosphate=" +
phosphate.Text.Trim() + " ,acetone bodies=" +acetone_bodies.Text.Trim() + " ,bile salt= " +
bile_salt.Text.Trim() + ",bile pigment=" + bile_pigment.Text.Trim() + " ,urobilinogen=" +
urobilinogen.Text.Trim() + ",luecocytes=" + luecocytes.Text.Trim() + ",basophills=" +
erthyocytes.Text.Trim() + " ,epithelial cells= " + epithelial_cells.Text.Trim() + ",casts= ' " +
casts.Text.Trim() + " ',ketones=' " + ketones.Text.Trim() + " ',proteins= ' " + protiens.Text.Trim()
+ " ',turbidity=' " + turbidity.Text.Trim() + " ',others='" + others.Text.Trim() + " ',test_date='" +
date1 + " ',clinic_name=' " + clinic_name.Text.Trim() + "',clinic_address='" +
clinic_addess.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");
}

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 Urine_Person_Details values('" + vid.Text.Trim() + "','" +
color.Text.Trim() + "'," +consistancy.Text.Trim() + "," + sendiments.Text.Trim() + "," +
spf_gravity.Text.Trim() + "," + acidic.Text.Trim() + "," + urine_sugar.Text.Trim() + "," +
albumin.Text.Trim() + "," + phosphate.Text.Trim() + " ," + acetone_bodies.Text.Trim() + " , " +
bile_salt.Text.Trim() + "," + bile_pigment.Text.Trim() + " ," + urobilinogen.Text.Trim() + " ," +
luecocytes.Text.Trim() + " ," + erthyocytes.Text.Trim() + " , " + epithelial_cells.Text.Trim() + " ,
' " + casts.Text.Trim() + " ',' " + ketones.Text.Trim() + " ', ' " + protiens.Text.Trim() + " ',' " +
turbidity.Text.Trim() + " ', '" + others.Text.Trim() + " ','" + date1 + " ',' " +
clinic_name.Text.Trim() + "','" + clinic_addess.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);
clear();
}
}
else if (res == System.Windows.Forms.DialogResult.No)
{

clear();
}

}
public void clear()
{
color.Text = "";
consistancy.Text = "";
sendiments.Text = "";
spf_gravity.Text = "";
acidic.Text = "";
urine_sugar.Text = "";
albumin.Text = "";
phosphate.Text = "";
acetone_bodies.Text = "";
bile_salt.Text = "";
bile_pigment.Text = "";
urobilinogen.Text = "";
luecocytes.Text = "";
erthyocytes.Text = "";
epithelial_cells.Text = "";
casts.Text = "";
ketones.Text = "";
protiens.Text = "";
turbidity.Text = "";
others.Text = "";
date.Text = "";
month.Text = "";
year.Text = "";
clinic_name.Text = "";
clinic_addess.Text = "";

protected void delete_Click1(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 Urine_Person_Details 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("Record Deleted Permanently!!!", "Delete",
MessageBoxButtons.OKCancel);
clear();
}
}
else if (res == System.Windows.Forms.DialogResult.No)
{

clear();
}

}
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");
}
}

Urine_Entry.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Urine_Entry.aspx.cs"
Inherits="Default2" %>

<!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 runat="server"
ID="lk1" 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:1004px"><img src="pic/topbanner.jpg" alt="topbanner"
style="width: 995px; height: 180px"/>&nbsp;
</td>
</tr>
</table>
<table>
<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>
<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: 270px" Text="Urine Entry Form"
Width="392px"></asp:Label>

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


BorderColor="DeepSkyBlue"
BorderStyle="Solid" BorderWidth="7px" Height="600px" Style=" left: 360px;
position: absolute; top: 330px" Width="812px">
<asp:Label ID="Label2" runat="server" Font-Bold="False" Font-Names="Times
New Roman"
Font-Size="Larger" Height="20px" Style=" left: 50px; position: absolute;
top: 41px" 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="clinic_name" runat="server" Style="z-index: 102; left: 180px;
position: absolute;
top: 140px"></asp:TextBox>
<asp:Label ID="Label4" runat="server" Font-Names="Times New Roman" Font-
Size="Larger"
Style="z-index: 103; left: 384px; position: absolute; top: 143px" Text="Clinic
Address"
Width="119px"></asp:Label>
<asp:TextBox ID="clinic_addess" 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: 46px; 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>
<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>
<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>1997</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>
<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:563px;left:200px" Text="Save" Height="25px" Width="104px"
OnClick="save_Click" />
<asp:Button ID="search" runat="server"
style="position:absolute;top:563px;left:328px" Text="Search" Height="25px" Width="104px"
OnClick="search_Click" />
<asp:Button ID="update" runat="server"
style="position:absolute;top:564px;left:329px" Visible="false" Text="Update" Height="25px"
Width="104px" OnClick="update_Click" />
<asp:Button ID="delete" runat="server"
style="position:absolute;top:563px;left:462px" Text="Delete" Enabled="false" Height="25px"
Width="104px" OnClick="delete_Click1" />
<asp:Panel ID="Panel2" runat="server" BorderColor="DeepSkyBlue"
BorderStyle="Solid"
BorderWidth="4px" Height="350px" ScrollBars="Both" Style=" left: -2px;
position: absolute; top: 200px" Width="807px">
<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="Color" 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="Luecocytes" 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="Consistancy" Width="106px"></asp:Label>
<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="Sendiments" 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="Spf_Gravity" 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="Acidic" 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="Urine_Sugar" 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="Albumin" Width="138px"></asp:Label>
<asp:TextBox ID="color" runat="server" Style="z-index: 108; left: 182px;
position: absolute;
top: 12px"></asp:TextBox>
<asp:TextBox ID="consistancy" runat="server" Style="z-index: 109; left:
183px; position: absolute;
top: 63px"></asp:TextBox>
<asp:TextBox ID="sendiments" runat="server" Style="z-index: 110; left:
182px; position: absolute;
top: 114px"></asp:TextBox>
<asp:TextBox ID="spf_gravity" runat="server" Style="z-index: 111; left:
181px; position: absolute;
top: 158px"></asp:TextBox>
<asp:TextBox ID="acidic" runat="server" Style="z-index: 112; left: 182px;
position: absolute;
top: 204px"></asp:TextBox>
<asp:TextBox ID="urine_sugar" runat="server" Style="z-index: 113; left:
184px; position: absolute;
top: 253px"></asp:TextBox>
&nbsp;
<asp:TextBox ID="albumin" 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="Phosphate"
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="Acetone Bodies"
Width="118px"></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="Bile
Salt"
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="Bile
Pigment"
Width="115px"></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="Urobilinogen" Width="106px"></asp:Label>
<asp:Label ID="Label18" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Height="16px" Style="z-index: 120; left: 392px;
position: absolute;
top: 159px" Text="Epithelial Cells" Width="106px"></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="Erthyocytes" Width="106px"></asp:Label>
<asp:TextBox ID="phosphate" runat="server" Style="z-index: 122; left: 183px;
position: absolute;
top: 354px"></asp:TextBox>
<asp:TextBox ID="acetone_bodies" runat="server" Style="z-index: 123; left:
183px; position: absolute;
top: 398px"></asp:TextBox>
<asp:TextBox ID="bile_salt" runat="server" Style="z-index: 124; left: 181px;
position: absolute;
top: 448px"></asp:TextBox>
<asp:TextBox ID="bile_pigment" runat="server" Style="z-index: 125; left:
182px; position: absolute;
top: 493px"></asp:TextBox>
<asp:TextBox ID="urobilinogen" runat="server" Style="z-index: 126; left:
539px; position: absolute;
top: 13px"></asp:TextBox>
<asp:TextBox ID="luecocytes" runat="server" Style="z-index: 127; left: 541px;
position: absolute;
top: 57px"></asp:TextBox>
<asp:TextBox ID="erthyocytes" runat="server" Style="z-index: 128; left:
543px; position: absolute;
top: 102px"></asp:TextBox>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<asp:TextBox ID="turbidity" runat="server" Style="z-index: 129; left: 544px;
position: absolute;
top: 394px"></asp:TextBox>
<br />
<br />
<br />
<asp:TextBox ID="epithelial_cells" 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="Casts" Width="127px"></asp:Label>
<asp:Label ID="Label22" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 132; left: 395px; position: absolute; top:
257px"
Text="Crystals" Width="125px"></asp:Label>
<br />
<asp:TextBox ID="casts" runat="server" Style="z-index: 133; left: 543px;
position: absolute;
top: 204px"></asp:TextBox>
<br />
<br />
<br />
<asp:TextBox ID="crystals" runat="server" Style="z-index: 134; left: 544px;
position: absolute;
top: 252px"></asp:TextBox>
<br />
<asp:Label ID="Label24" runat="server" Font-Names="Times New Roman"
Font-Size="Larger"
Height="22px" Style="z-index: 135; left: 399px; position: absolute; top:
353px"
Text="Protiens" Width="56px"></asp:Label>
<br />
<asp:Label ID="Label23" runat="server" Font-Bold="False" Font-
Names="Times New Roman"
Font-Size="Larger" Style="z-index: 136; left: 394px; position: absolute; top:
301px"
Text="Ketones" Width="122px"></asp:Label>
<asp:TextBox ID="ketones" runat="server" Style="z-index: 137; left: 542px;
position: absolute;
top: 299px"></asp:TextBox>
<br />
<br />
<br />
<asp:TextBox ID="protiens" runat="server" Style="z-index: 138; left: 542px;
position: absolute;
top: 347px"></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: 397px; position: absolute; top:
399px"
Text="Turbidity"></asp:Label>
<br />
<br />
<asp:TextBox ID="others" runat="server" Style="z-index: 140; left: 545px;
position: absolute;
top: 443px" ></asp:TextBox>
<br />
<br />
<asp:Label ID="Label26" runat="server" Font-Names="Times New Roman"
Font-Size="Larger"
Style="z-index: 141; left: 400px; position: absolute; top: 446px"
Text="Others"></asp:Label>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</asp:Panel>
</asp:Panel>
</td>
</tr>
</table>
<table>
<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>

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

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

<!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>
<tr><td rowspan="3" style="height:750px;width:330px; 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>
<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:990px;top:100px" rowspan="3" align="center" valign="top" >
<br /> <br /><br /><br />
<br /><br />
<br />
<br />

<b><font size="4">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></b>

</td>
<td style="width:220px; height:20px; 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: 320px"><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:300px; background-color:#fffbd6" align="center"
valign="top">
<font size="3">
<br />
<br />
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; width:1256px" >
<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 align="center" style="background-color:#fffbd6" >
<img src="pic/wave.gif" alt="wave"/></td></tr>
<tr>
<td align="center" style="background-color:#fffbd6">@copyright reserved by "Ducat
Academy"
</td></tr>
</table>
</div>
</form>
</body>
</html>

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;
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");
}

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

<!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 border="0" >
<tbody>
<tr >
<td style="width:800px; background-color:#FFFBD6;">
<marquee scrollDelay="200" scrollAction="2" 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" style="height:200px; width:1400px;background-color:#FFFBD6;"
align="center">

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

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


ConnectionStrings:health_infoConnectionString2 %>"
SelectCommand="SELECT [ImageUrl], [Width], [Height], [NavigateUrl],
[AlternateText], [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>
<td align="center" onmouseover='style.background="#A1CCFF"'
onmouseout='style.background="#CFE5FF"' style="width:300px"><a
href="Home.aspx">HealthCare Services</a></td>
<td align="center" onmouseover='style.background="#A1CCFF"'
onmouseout='style.background="#CFE5FF"' style="width:300px"><a
href="sitemap.aspx">Sitemap</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="Home.aspx">Patient Infomation</a></td>

</tr>
</tbody>
</table>
<table border="1">
<tr>
<td style="height:294px; width:597px;background-color:#FFFBD6;" align="left">
<asp:AdRotator ID="AdRotator2" runat="server" Style="left: 22px; position: absolute; top:
332px" DataSourceID="InnerAdd" />
<asp:SqlDataSource ID="InnerAdd" runat="server" ConnectionString="<%$
ConnectionStrings:health_infoConnectionString2 %>"
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 scrollDelay="200" valign="top" direction="up" style="height:250px; width:
547px;" align="justify"><FONT face="Times New Roman"
size=3><P><font color="black" size="5"><b>HealthCare Services</b></FONT>

<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 />
This
system helps in disease management and preventive services.
It provides very vital information like patients without an exam
for certain time, patient with certain levels BP, patients who
are taking a certain class of medication, patients who are suffering
from a certain type of disease, screening and immunization information,
Lab tests Results, etc.
<br />
<br />
Rules can be created for various time frames
like a certain time period, last visit to the hospital, latest Data
available Visit, across all visits. The system is completely dynamic in
the sense; each user can have his own rule and his own conditions and can
decide if he wants to be alerted for the patient meeting the rule or for not .
</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: 62px" >
<marquee behavior="alternate"> <img src="pic/HC-Title.jpg" style="width:250px"
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="20px"
Width="100px" />
<asp:SqlDataSource ID="DownAdd" runat="server" ConnectionString="<%$
ConnectionStrings:health_infoConnectionString2 %>"
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;
<asp:LinkButton ID="l3" runat="server" Text="BACK" OnClientClick="back()"
OnClick="l3_Click"></asp:LinkButton>
</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>
</form>
</body>
</html>

Pinfo.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;

public partial class Pinfo : 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");
}

Pinfo.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Pinfo.aspx.cs"
Inherits="Pinfo" %>
<!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">

<table border="0" >


<tbody>
<tr >
<td style="width:800px; background-color:#FFFBD6;">
<marquee scrollDelay="200" scrollAction="2" 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_infoConnectionString2 %>"
SelectCommand="SELECT [ImageUrl], [Width], [Height], [NavigateUrl],
[AlternateText], [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>
<td align="center" onmouseover='style.background="#A1CCFF"'
onmouseout='style.background="#CFE5FF"' style="width:300px"><a
href="Home.aspx">HealthCare Services</a></td>
<td align="center" onmouseover='style.background="#A1CCFF"'
onmouseout='style.background="#CFE5FF"' style="width:300px"><a
href="sitemap.aspx">Sitemap</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="Home.aspx">Patient Infomation</a></td>

</tr>
</tbody>
</table>
<table border="1">
<tr>
<td style="height:294px; width:597px;background-color:#FFFBD6;">
<asp:AdRotator ID="AdRotator2" runat="server" Style="left: 22px; position: absolute; top:
332px" DataSourceID="InnerAdd" />
<asp:SqlDataSource ID="InnerAdd" runat="server" ConnectionString="<%$
ConnectionStrings:health_infoConnectionString2 %>"
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 scrollDelay="200" valign="top" direction="up" style="height:250px; width:
547px;" align="justify"><FONT face="Times New Roman"
size=3><P><font color="black" size="5"><b>Patient Information</b></FONT>

<BR /><BR />This software provides the health card for the patient. It
will display a set of information related to a patient regarding blood,
sugar, b.p. <BR /><BR />Provides 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 patient. <BR /><BR />Provides different kinds of reports and
analysis for the scientists, planners, doctor so as to enable them for
better decision making on different occasions. <BR /><BR />Provides
excellent and easy to access means of communication medium between doctors
and its patients. <BR /><BR />To maintain and store diseases information
for past few months. <BR /><BR />Provides as a comparison chart among
different reports at different stages. <BR /><BR />This system is
providing different types of tests reports <BR />*Blood test <BR />*Sugar
test <BR />*Urine test</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 style="height: 27px"><asp:Label runat="server" id="user_name" Text="User Name"
Style="width:100px"></asp:Label></td>
<td style="height: 27px"><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: 62px" >
<marquee behavior="alternate"><IMG style="WIDTH: 350px" alt="image"
src="pic/thumbnail[47].jpg" align=center
/></marquee></td></tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" align="center" style="height:200px; width:1200px; background-
color:#FFFBD6;">
<asp:AdRotator ID="add3" runat="server" DataSourceID="DownAdd" Height="50px"
Width="100px" />
<asp:SqlDataSource ID="DownAdd" runat="server" ConnectionString="<%$
ConnectionStrings:health_infoConnectionString2 %>"
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;
<asp:LinkButton ID="l3" runat="server" Text="BACK"
OnClientClick="back()"></asp:LinkButton>
</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>
</form>
</body>
</html>

SiteMap.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sitemap.aspx.cs"
Inherits="sitemap" %>

<!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"/><a href="Home.aspx">
LogOut</a>
</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>
<tr><td rowspan="3" style="height:750px;width:330px; 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>
<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:750px;top:100px" rowspan="3" align="left" valign="top" >
<img src="pic/Inside_chennaimap.jpg" alt="Site Map" />

<br /> <br /><br /><br />

<font size="4">&nbsp;&nbsp;&nbsp;&nbsp;-<u>Home</u>
<br />
<br /> &nbsp;&nbsp;&nbsp;&nbsp;-<u>About Us</u>
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-<u>Contact Us</u>
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-<u>News</u>
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-<u>HealthCare Services</u>
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-<u>Patient Information</u>
<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;-<u>Site Map</u>
</font>

</td>
<td style="width:220px; height:20px; 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: 320px"><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:300px; background-color:#fffbd6" align="center"
valign="top">
<font size="3">
<br />
<br />
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; width:1256px" >
<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 align="center" style="background-color:#fffbd6" >
<img src="pic/wave.gif" alt="wave"/></td></tr>
<tr>
<td align="center" style="background-color:#fffbd6">@copyright reserved by "Ducat
Academy"
</td></tr>
</table>
</div>
</form>
</body>
</html>

FrameWork-Ui.Cs
using System;
using System.Collections.Generic;
using System.Text;
using Com.Health.Application;
using Com.Health.DataBase;
using System.Collections;
using Com.Health.Security;

namespace Com.Health.Ui
{
public class WebFactory
{
static Hashtable UserInfo = new Hashtable();

static WebFactory _self;


private WebFactory()
{}
public static WebFactory CreateInstance()
{
if (_self == null)
{ _self = new WebFactory(); }
return _self;
}
public void LoadSetting()
{
Init.LoadApplicationSetting();
ConnectionPool.CreateInstance();
}
public static bool login(string uid, string pwd, string sessinid)
{
WebSession web_obj = WebSession.Login(uid, pwd);

if (web_obj == null)
{ return false; }
else
{
UserInfo.Add(sessinid, web_obj);
return true;
}

public static Boolean ValidateUser(string sessionid)


{
return (UserInfo.ContainsKey(sessionid));

public static WebSession getUser(string sessionid)


{
WebSession web_user = (WebSession)UserInfo[sessionid];
return web_user;
}
public static void LogOut(string sessionid)
{
UserInfo.Remove(sessionid);
}
}
}

FrameWork-Application.Cs

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Specialized;

namespace Com.Health.Application
{
public class Init
{
public static void LoadApplicationSetting()
{
NameValueCollection nv =
(NameValueCollection)System.Configuration.ConfigurationSettings.GetConfig("appS
ettings");
Properties.LoadNameValueCollection(nv);
}
}
public static class Properties
{
static NameValueCollection col;
public static void LoadNameValueCollection(NameValueCollection valcol)
{
col = valcol;
}
public static string getDBType()
{
object o = col["DbType"];
return o.ToString();
}
public static int getMaxConnection()
{
int o = Int32.Parse(col["MaxConnection"].ToString());
return o;
}
public static string getUserName()
{ object o = col["UserID"];
return o.ToString();
}
public static string getConnectionString()
{
object o = col["ConnectionString"];
return o.ToString();
}
public static string getPassword()
{
object o = col["Password"];
return o.ToString();
}
}
}
DataBase.Cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data.OleDb;
using System.Data;
using System.Collections;
using Com.Health.Application;

namespace Com.Health.DataBase
{
public class Connection
{
private SqlConnection sql;
private OleDbConnection oracle;
OleDbDataAdapter oledbda;
private SqlCommand scom = new SqlCommand();
private OleDbCommand ocom = new OleDbCommand();
SqlDataAdapter sqlda;

private Connection()
{
if (Properties.getDBType().ToLower().Equals("sqlserver"))
{
sql = new SqlConnection(Properties.getConnectionString());
sqlda = new SqlDataAdapter("", sql);
scom.Connection = sql;
}
else
{
oracle = new OleDbConnection(Properties.getConnectionString());
oledbda = new OleDbDataAdapter("", oracle);
ocom.Connection = oracle;
}
}

internal static Connection CreateConnection()


{
return (new Connection());
}
public DataSet getDataSet(string query, string table)
{
DataSet ds = new DataSet();
if (Properties.getDBType().ToLower().Equals("sqlserver"))
{
sqlda.SelectCommand.CommandText = query;
sqlda.Fill(ds, table);
}
else
{
oledbda.SelectCommand.CommandText = query;
oledbda.Fill(ds, table);
}
return ds;
}
public DataSet getDataSet(string query)
{
DataSet ds = new DataSet();
if (Properties.getDBType().ToLower().Equals("sqlserver"))
{
sqlda.SelectCommand.CommandText = query;
sqlda.Fill(ds);
}
else
{
oledbda.SelectCommand.CommandText = query;
oledbda.Fill(ds);
}
return ds;

}
//#region Special Functionality for SQL Execution

/*
* ExecuteScaler method is a method that execute sqlcommand or
oledbcommand's ExecuteScaler method
* for Connection Class it return single object as a result.
*
* */
public object ExecuteScaler(string query)
{
object obj = null;
if (Properties.getDBType().ToLower().Equals("sqlserver"))
{
scom.CommandText = query;
try
{
sql.Open();
obj = scom.ExecuteScalar();
}
catch
{
}
finally
{
sql.Close();
}
}
else
{
ocom.CommandText = query;

try
{
oracle.Open();
obj = ocom.ExecuteScalar();
}
catch
{
}
finally
{
sql.Close();
}
}
return obj;
}
/*
* ExecuteNonQuery method of Connection Class is used to do
* Update
* Insert
* Delete
* Operation in database
* */
public int ExecuteNonQuery(string query)
{
int i = 0;
if (Properties.getDBType().ToLower().Equals("sqlserver"))
{
scom.CommandText = query;

try
{
sql.Open();
i = scom.ExecuteNonQuery();
}
catch (Exception o)
{
}
finally
{
sql.Close();
}
}
else
{
ocom.CommandText = query;

try
{
oracle.Open();
i = ocom.ExecuteNonQuery();
}
catch
{
}
finally
{
sql.Close();
}
}
return i;
}

}
public class ConnectionPool
{
private static ArrayList Aveliable;
private static ArrayList Busy;
public static ConnectionPool CreateInstance()
{
return new ConnectionPool();
}
private ConnectionPool()
{
Aveliable = new ArrayList();
Busy = new ArrayList();

for (int i = 0; i < Properties.getMaxConnection(); i++)


{

Aveliable.Add(Connection.CreateConnection());
}
}
public static Connection getConnection()
{
Connection con;
con = (Connection)Aveliable[Aveliable.Count - 1];
Aveliable.Remove(con);
Busy.Add(con);
return con;
}
public static void Free(Connection con)
{
Aveliable.Add(con);
Busy.Remove(con);
}
}
}
Security.Cs
using System;
using System.Collections.Generic;
using System.Text;
using Com.Health.DataBase;
using System.Data;

namespace Com.Health.Security
{
public class WebSession
{
string userid;
string password;
string role = null;

public static WebSession Login(string user_id, string password)


{
Connection con = ConnectionPool.getConnection();
string query = "select * from User_Login_Details where userid ='" + user_id
+ "' and password='" + password + "'";
DataSet ds = con.getDataSet(query);
WebSession session = null;
if (ds.Tables[0].Rows.Count > 0)
{
session = new WebSession();
session.password = password;
session.userid = ds.Tables[0].Rows[0][0].ToString();
session.role = ds.Tables[0].Rows[0][2].ToString();

}
ConnectionPool.Free(con);
return session;

public string GetUserId


{

get
{
return (userid);
}
}
public string GetRole
{
get
{
return (role);
}
}
}
}
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

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
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
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
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

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
DEFINITIONS, ACRONYMS AND ABBREVIATIONS

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


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
Testing structure of the procedural design to derive test cases.
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.
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.

 In future we would provide the facility for online payment and implement Secure
Socket Layer (SSL).
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.
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,
documentation, technical articles, the Microsoft Developer Knowledge Base, and
anything else we might need to develop solutions that implement Microsoft
technology.

WEBSITE:

www.apollohospital.com
www.ducatindia.com
www.ministryofhealth.com

Você também pode gostar