Escolar Documentos
Profissional Documentos
Cultura Documentos
Report
On
HealthCare System
For
…………………………………………………..
( for partial fulfillment of the requirement for the award of the Degree of )
CERTIFICATE
This is certify that ………….. has carried out the work embodies in this project in
academic session 2008-2008 in fulfillment of the requirement for MCA Final Year
with this work, and wish her all success in future life.
MR…………………
(PROJECT MANAGER)
ACKNOWLEDGEMENT
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.
Thanking you!
Deepika Singh
Enrollment No. …………….
CONTENT
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.
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
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 different kinds of reports and analysis for the scientists, planners, doctor
so as to enable them for better decision making on different occasions.
Blood test
Urine test
Other tests
THEORETICAL BACKGROUND
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)
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.
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.
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.
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:
• 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
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.
FUNCTIONAL REQUIREMENTS
The time and user effort necessary to initiate and execute different
commands is minimal.
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
DESIGN CONSTRAINTS
SOFTWARE CONSTRAINTS
HARDWARE CONSTRAINTS
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 …
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.
BEHAVIORAL
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-
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
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.
Requirements
Design Code Test Document
specification
*CONCEPTION
-CONCEPTION INITIATION
-COMMUNICATION WITH EXPERTS TO
UNDERSTAND REQUIREMENTS
*REQUIREMENT ANALYSIS
-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
#DEPLOYMENT
-EXECUTABLE CREATION
-SET UP CREATION
-DEPLOYMENT TO STORAGE MEDIA
#DOCUMENTATION
PERT makes use of tasks. Like milestone charts, it shows achievements. These
achievements however are not task achievements. They are terminal achievements, called
EVENTS.
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.
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:
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
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.
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.
Fact-finding: facts about the algorithm are collected from the books and
Internet.
DFDs and flowchart are used to model the algorithm and logic design.
DESIGN METHODS
Layering has been done to refine the architecture. Initially, two layers are
introduced, system layer and application layer.
Event driven programming language ASP.Net had been used for coding the
modules and programs.
The basic philosophy followed at this stage:” code one line followed by
rigorous testing”.
Incremental compilation had been used to compile and test on which work
was in progress.
Structured testing tools had been used for testing the programs.
Hardware Specification
It is recommended that the minimum configuration for clients is as appended
below:-
Suggested Configuration of Windows clients:-
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
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.
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.
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.
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
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
What is .NET?
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
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.
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
Intangible Benefits
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:
EXTERNAL ENTITY:
DATA FLOW:
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
LEVEL–1 DFD :
STRUCTURE CHART
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
Generate Output
STOP
START
Enter Voter ID
NO If
Voter ID
Error Message Is
Correct
YES
Display Coresponding
Test Details
STOP
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.
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.
T E S T C A S E -1
TEST NO. :1
INPUT : PASSWORD
OBJECTIVE : CHECKING PASSWORD SECURITY
T E S T C A S E -2
TEST NO. :2
T E S T C A S E -3
TEST NO. :3
Login.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Home.aspx.cs"
Inherits="Default4" %>
</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" />
<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> <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;">
<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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US" OnClick="l2_Click"
></asp:LinkButton> |
<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;
</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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US" OnClick="l2_Click"
></asp:LinkButton> |
<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" %>
<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;
}
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");
}
}
Admin_Page.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_Page.aspx.cs"
Inherits="Admin_Page" %>
<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"/>
</td>
</tr>
</table>
<table>
<tr>
<td rowspan="3" style="width:220px; height:600px; background:#FFFBD6;" >
</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 &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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US" OnClick="l2_Click"
></asp:LinkButton> |
<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;
}
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();
}
DialogResult res;
protected void save_Click(object sender, EventArgs e)
{
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" %>
</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"/>
</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>
</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;
}
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);
Com.Health.DataBase.ConnectionPool.Free(con);
Com.Health.DataBase.ConnectionPool.Free(con1);
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 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" %>
<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"/>
</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>
<br />
<hr style="z-index: 122; left: 1px; position: absolute; top: 195px" id="HR1"
onclick="return HR1_onclick()" />
<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>
<asp:TextBox ID="description" runat="server" Style="z-index: 109; left: 189px;
position: absolute;
top: 343px" Width="191px" TextMode="MultiLine"></asp:TextBox>
<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>
<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>
<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: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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US" OnClick="l2_Click"
></asp:LinkButton> |
<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;
DialogResult res;
protected void save_Click(object sender, EventArgs e)
{
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)
{
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 = "";
}
}
Hos_Reg.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Hos_reg.aspx.cs"
Inherits="Hos_reg" %>
</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"/>
</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>
</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 &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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US" OnClick="l2_Click"
></asp:LinkButton> |
<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;
string str,str1;
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;
}
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;
}
}
}
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" %>
</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"/>
</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">
<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>
</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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US" OnClick="l2_Click"
></asp:LinkButton> |
<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;
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"/>
</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">
</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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US" OnClick="l2_Click"
></asp:LinkButton> |
<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;
}
}
}
Staff_Page.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Staff_Page.aspx.cs"
Inherits="Staff_Page" %>
</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"/>
</td>
</tr>
</table>
<table>
<tr>
<td rowspan="3" style="width:220px; height:600px; background:#FFFBD6;" >
</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 &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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US" OnClick="l2_Click"
></asp:LinkButton> |
<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;
}
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();
}
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 = "";
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" %>
<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"/>
</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>
</div>
</form>
</body>
</html>
Contact.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Contact.aspx.cs"
Inherits="Contact" %>
<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"/>
</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 />
</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 &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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US" OnClick="l2_Click"
></asp:LinkButton> |
<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;
Health.Aspx.Cs(Source)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Health.aspx.cs"
Inherits="Health" %>
</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;">
<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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US" OnClick="l2_Click"
></asp:LinkButton> |
<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;
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">
</script>
</head>
<body>
<form id="form1" runat="server">
</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;">
<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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US" OnClick="l2_Click"
></asp:LinkButton> |
<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" %>
<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"/>
</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" />
<font size="4"> -<u>Home</u>
<br />
<br /> -<u>About Us</u>
<br />
<br />
-<u>Contact Us</u>
<br />
<br />
-<u>News</u>
<br />
<br />
-<u>HealthCare Services</u>
<br />
<br />
-<u>Patient Information</u>
<br />
<br />
-<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 &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> |
<asp:LinkButton ID="l2" runat="server" Text="CONTACT US"
OnClick="l2_Click"></asp:LinkButton> |
<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();
if (web_obj == null)
{ return false; }
else
{
UserInfo.Add(sessinid, web_obj);
return true;
}
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;
}
}
}
//#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();
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;
}
ConnectionPool.Free(con);
return session;
get
{
return (userid);
}
}
public string GetRole
{
get
{
return (role);
}
}
}
}
DATABASE DESIGN
Database: health_info
Table1-User_Login_Details
Table2-Person_Details
Table3-Person_Gen_Blood_Details
Table5-Urine_Person_Details
Table6-Blood_Std_Values
Table7-Blood_Person_Test_Details
Table8-Others_Test_Details
Table5-Hospital_Details
Table9-Add_Details
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
LIBRARY:
MSDN
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