Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
It is a web-based software which shows and helps us to collect most of the information about Medical Services. This site will be done using ASP.NET 5 and SQL SERVER. Doctors can register in website and patients can take their appointments through this site. Hospitals also can register here and patients can take their appointments of doctors in that hospital through this site. It can use by the public to view the list of doctors available in their cities and take appointments of doctors with the help of this site. This site will help you to find the blood donators, heart donators, kidney donators and eye donators. This site also helps to post ads. There will be online help for patients who want to clear doubts through e-mail facility. The site will help you to find home nurses. It also includes a 24hrs Accidental Care Transport Service (ACTS). This site will be done using ASP and SQL SERVER. This site also helps to post ads. It also includes a 24hrs Accidental Care Transport Service (ACTS). It makes possible to post our Advertisements.
PROCESS LOGIC
As all the software program is divided into different modules to know it details of whole processing and they will interact with each other to maintain the data and information module structure is designed with the concept of considering the case of maintaining the logic for modification and maintenance. Since the software program has to interact with database. It is basically based on Microsoft Visual Studio.NET as Front end tool and Microsoft Sql Server as Back end tool for data base architecture each the module is interacting with data base and gives the design out put
SYSTEM SPECIFICATION
HARDWARE SPECIFICATION The selection of hardware is very important in the existence and proper working of any software. When selecting hardware, the size and requirements are also important. The proposed System is developed on: Processor RAM Hard Disk Drive Key Board Monitor Display Adapter Network Adapter Mouse : : : : : : : : INTEL Pentium 4 512MB 40GB Standard 101/102 or Digi Sync Family Display Panel (1024 X 764) Super VGA Ethernet Card Logitech Serial Mouse
SOFTWARE SPECIFICATION Operating System Front- End Back- End : : : Windows XP C#. NET with ASP. NET MS SQL SERVER 2005 EXPRESS
PROJECT MODULES:
HOME MODULE : This module show the home / main page of our project. LOGIN MODULE : This module show the login screen of our project. We can login with the help of Doctor ID / Hospital ID / Patient id. BLOOD MODULE : This module acts as a blood bank management. In this module we can search according to the requirement of a blood group and search for a particular district. BLOOD DONOR REGISTRATION: : In this module we can register a donor who donates the blood. The details of donor are name, address, contact no, district , state etc. AMBULANCE SERVICE SEARCH:: In this module we can search an ambulance service w.r.t the district
which we select. and retrieve the information from a database. Here we can register our ambulance service and provide the facilities for ambulance service. Mobile ICU can also register here. By registering you can provide ambulance services for the requested person. HOSPITAL REGISTRATION: Under this module we can register hospital network management we can register hospital with a unique ID and its login information
DOCTORS REGISTRATION: Under this module we can register a new doctor along with his specialization, login information, online appointment time etc. This module is equally as important as patient. In this module Doctors check the patient in CASE of O.P.D and visit the ward in case of admission of patient and do treatment accordingly. HOSPITAL ONLINE APPOINTMENT Under this module we can take an online advice for other network hospitals. PATIENT REGISTRATION (ONLINE APPOINTMENT) In this module we can register an new patient along with his personal details i.e. name, address, contact etc along with online appointment time
for the corresponding doctor. This module is the most important module of the Medi Manager System. Unless there is patient there is no means of having hospital .In this module we know the details of patient .Patient which come from any part take treatment inform of admitted basis or out patient door basis. ORGAN DONATION MODULE Under this module we can donate an organ such as Kidney , Heart, Eye along with the donor details who donate the organ. ABOUT US MODULE : Under his module we can find the information about the application and the name of the users who develop this application.
.NET FRAMEWORK SDK The .NET framework is an integral windows component that supports building and running the next generation of applications and XML web services. The key component of the .NET frame work are the common language run time and the . NET frame work class library, which includes ADO.NET, ASP.NET and windows forms. The .NET framework provides a and managed execution and environment simplified development deployment
integration with a wide variety of programming languages. This framework is made up of the following parts: The common language runtime(CLR) The base class libraries. Object oriented internet development with ASP.NET Rich client user interface using windows forms RAD for the internet using web forms
To
provide
code
execution
environment
that
guarantees safe execution of code, including code created by an unknown or semi trusted third party. To provide a code execution environment that
eliminates the performance problem of scripted or interpreted environments. To make the developer experience consistent across widely types of application, such as windows based applications and web based applications. To build all communication on industry standards to ensure that code based on the .NET framework can integrate with any other code. The .NET framework has two main components: the common language runtime and the .Net framework class library. The common language runtime is the foundation of the .NET framework. You can think of the runtime as an agent that manages code at execution time, and remoting while also enforcing strict type safely and other forms of code accuracy that ensure security and robustness in fact the concept of code management is a fundamental principle of the runtime. Code that targets the runtime is known as managed code, while code that does not target the runtime is known as un managed code. The class library, the other main component of the .NET frameworks is a comprehensive, object-oriented collection reusable types that you can use to develop applications ranging from traditional command line or graphical user interface (FGUI) applications to application base d on the latest innovations provided by ASP.NET, such as web forms and XML web services.
The .NET framework can be hosted by unmanaged component that load the common language runtime into their processes and initiate the execution of managed code. ASP.NET works directly Internet with the runtime to enable ASP.NET application and XML web services, both of which are discussed later in this topic, runtime (in the form of a MIME type extension). We can use the .NET framework to develop the following types of application and services: Console applications Window GUI application (Windows Forms) ASP.NET applications XML Web services Windows services explorer is an example of unmanaged application that hosts the
ASP.NET
ASP.NET is a set of Microsoft.NET framework technologies used for building web applications and XML Web services. ASP.NET page execute on the server and generate mark up such as HTML, WML or XML that is sent to a desktop or mobile browser. ASP.NET pages use a compiled, event-driven programming model that improves performance and enables the separation of application logic and user interface. Both ASP.NET pages and ASP.NET web
services files contain server-side (as opposed to client side logic) written in Visual basic .NET, C#.NET or any .NET compatible language, Web applications and XML Web Services take advantage of the features of the common language runtime, such as type safety, inheritance, language, interoperability, versioning, and integrated security.
IIS
Microsoft Internet Information S4ervices (IIS; formerly called Server is a set of Internet-based services for servers using Microsoft Windows. It is the worlds second most popular web
server in terms of overall websites. As of September 2007 it served 34.94% of all websites and 36.63% of all active websites according to Net craft. The servers currently include FTP, SMTP, NNTOP, and HTTP/HTTPS.
10
SYSTEM ANALYSIS
System Analysis is the detailed study of the various operations performed by the system and their relationships within and outside the system. Analysis is the process of breaking something into its parts so that the whole may be understood. System analysis is concerned with becoming aware of the problem, identifying the relevant and most decisional variables, analyzing and synthesizing the various factors and determining an optimal or at least a satisfactory solution. During this a problem is identified, alternate system solutions are studied and recommendations are made about committing the resources used to design the system DESCRIPTION OF PRESENT SYSTEM Existing system refers to the system that is being follow till now. Presently all the registrations like patient / doctor/ hospital If a person not in the condition to go hospital he can registrations are done manually and the concept of online is not kept in mind. m a\ make an online appointment in the present system. LIMITATIONS OF PRESENT SYSTEM Difficult for persons. Time consuming.
To avoid all these limitations and make the working more accurately the system needs to be computerized. PROPOSED SYSTEM Web Based Medical Services is aimed at developing a webbased Hospital Administration. In this system we can implement the concept of online and also give and take an advice to other hospitals who based on online environment.
11
FEASIBILITY STUDY
A feasibility analysis usually involves a through assessment of the operational(need), financial and technical aspects of a proposal. Feasibility study is the test of the system proposal made to identify whether the user needs may be satisfied using the current software and hardware technologies, whether the system will be cost effective from a business point of view and whether it can be developed with the given budgetary constraints. A feasibility study should be relatively cheap and done at the earliest possible time. Depending on the study, the decision is made whether to go ahead with a more detailed analysis. When a new project is proposed, it normally goes through feasibility assessment. Feasibility study is carried out to determine whether the proposed system is possible to develop with available resources and what should be the cost consideration. Facts considered in the feasibility analysis were. Technical Feasibility Technical Feasibility deals with the hardware as well as software requirements. Technology is not a constraint to type system development. We have to find out whether the necessary technology, the proposed equipments have the capacity to hold the data, which is used in the project, should be checked to carryout this technical feasibility. The technical feasibility issues usually raised during the feasibility stage of investigation includes these This software is running in windows 2000 Operating System, which can be easily installed. The hardware required is Pentium based server.
12
Economical Feasibility This feasibility study present tangible and intangible benefits from the prefect by comparing the development and operational cost. The technique of cost benefit analysis is often used as a basis for assessing economic feasibility. This system needs some more initial investment than the existing system, but it can be justifiable that it will improve quality of service. Thus feasibility study should center along the following points: Improvement resulting over the existing method in terms of accuracy, timeliness. Cost comparison Estimate on the life expectancy of the hardware Overall objective
Our project is economically feasible. It does not require much cost to be involved in the overall process. The overall objectives are in easing out the requirement processes. Behavioral/ Operational Feasibility This analysis involves how it will work when it is installed and the assessment of political and managerial environment in which it is implemented. People are inherently resistant to change and computers have been known to facilitate change. The new proposed system is very much useful to the useful to the users and there for it will accept broad audience from around the world.
13
PRELIMINARY INVESTIGATION
System development, a process consisting of two major steps of system analysis and design, start when management or sometimes system development personnel feel that a new system or an improvement in the existing system is required. The system development life cycle is classically thought of as the set of activities that analysts, designers and users carry out to develop and implement an information system. The system development life cycle consists of the following activities: Preliminary investigation Determination of system requirements Design of system Development of software System testing Implementation, evaluation, and maintenance
A request to take assistance from information system can be made for many reasons, but in each case someone in the organisation initiates the request is made, the first system activity the preliminary investigation begins. This activity has three parts: 1) Request clarification 2) Feasibility study 3) Request approval Request clarification: Many requests from employees and users in the organisations are not clearly defined, Therefore it becomes necessary that project request must be examined and clarified properly before considering systems investigation.
14
SYSTEM DESIGN
The most creative and challenging face of the system development is System Design. It provides the understanding and procedural details necessary for implementing the system recommended in the feasibility study. Design goes through the logical and physical stages of development. In designing a new system, the system analyst must have a clear understanding of the objectives, which the design is aiming to fulfill. The first step is to determine how the output is to be produced and in what format. Second, input data and master files have to be designed to meet the requirements of the proposed output. The operational phases are handled through program construction and testing.
OUTPUT DESIGN
In the output design, the emphasis is on producing a hard copy of the information requested or displaying the output on the CRT screen in a predetermined format. Two of the most output media today are printers and the screen. Most users now access their reports from a hard copy or screen display. Computers output is the most important and direct source of information to the user, efficient, logical, output design should improve the systems relations with the user and help in decision-making. As the outputs are the most important source of information to the user, better design should improve the systems relation and also should help in decision-making. The output devices capability, print capability, print capability, response time requirements etc should also be considered form design elaborates the way output is presented and layout available for capturing information. Its very helpful to produce the clear, accurate and speedy information for end users.
15
INPUT DESIGN
In the input design, user-oriented inputs are converted into a computer based system format. It also includes determining the record media, method of input, speed of capture and entry on to the screen. Online data entry accepts commands and data through a keyboard. The major approach to input design is the menu and the prompt design. In each alternative, the users options are predefined. The data flow diagram indicates logical data flow, data stores, source and destination. Input data are collected and organized into a group of similar data. Once identified input media are selected for processing. In this software, importance is given to develop Graphical User Interface (GUI), which is an important factor in developing efficient and user-friendly software. For inputting user data, attractive forms are designed. User can also select desired options from the menu, which provides all possible facilities. Also the important input format is designed in such a way that accidental errors are avoided. The user has to input only just the minimum data required, which also helps in avoiding the errors that the users may make. Accurate designing of the input format is very important in developing efficient software. The goal or input design is to make entry as easy, logical and free from errors.
LOGICAL DESIGN
Logical data design is about the logically implied data. Each and every data in the form can be designed in such a manner to understand the meaning. Logical data designing should give a clear understanding and idea about the related data used to construct a form.
16
Data Flow
Process
Storage
17
CONTEXT DIAGRAM
18
LEVEL-1 VISITOR
19
20
Patient
Taking Appointment
Receptionist
By Cash
By Credit
21
Sequence Diagram
P1:Patient R1:Receptionist D1:Doctor N1:Nurse
Takes Appointment
Confirms Appointment
22
Collaboration Diagram
1: Takes Appointment 10: Pay Fees P1:Patient 4: Confirms Appointment 9: Ask For Payment R1:Receptionist
N1:Nurse
23
Idle
Patient Admitted
Event Of Patient
Validate
Operated
Bill Generation
Patient Discharge
24
CLASS DIAGRAM
Surgeon name 1..* id designation operate() 1..* Senior surgeon specialization in non-senior surgeon specialization in
works for
Nurses 1 Hospital name id 1 place administration() maintain info() add patient() add surgeon() works in name id 1..* ward_no assisting() checking paitent health() 1 assigned to 1..* Ward ward_no patient_admitted ... nurse_assigned
conducts 1
Patient Operation admitted in name 1..* operation_id Patient type 1..* undergoes 1..* 1 name patient_id id surgeon_id type_of_treatment cost_of_operation ward_no
admitted to
25
ACTIVITY DIAGRAM
Patient takes appointment receptionist check s for doctor no doctor is not available
no
yes
no
26
COMPONENT DIAGRAM
DEPLOYMENT DIAGRAM
27
Desktop client
<<Primary network>>
Printer
<<Private network>>
<<Private network>>
Database server
28
S O U R C E
C O D E
29
Adddcotor.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class adddoctor : System.Web.UI.Page { DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { dbe = new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); } protected void btnSubmit_Click(object sender, EventArgs e) { String dob=Request.Form.Get("txtDOB"); if (txtDocName.Text == "" || txtAge.Text == "" || txtOnline_from.Text == "" || txtOnline_to.Text == "" || dob == "") { lblempty.Text = "Some required fields missing"; return; } String dname = txtDocName.Text; String age = txtAge.Text; String mstatus; if (rdoSingle.Checked == true) mstatus = "Single";
30
else mstatus = "Maried"; String sex; if (rdoMale.Checked == true) sex = "Male"; else sex = "Female"; String spec = ddlSpec.Text; String qlfn = ddlQlfn.Text; String con_from = txtConsult_from.Text; String con_to = txtConsult_to.Text; String online_from = txtOnline_from.Text; String online_to = txtOnline_to.Text; String regdate = DateTime.Now.ToShortDateString(); String sql = "select ID,hosp_name from hosp_reg where Username='" + Session["userid"].ToString().Trim() + "'"; DataSet ds = dbe.getData(sql); String hospID = ds.Tables[0].Rows[0]["ID"].ToString(); String hospName = ds.Tables[0].Rows[0]["hosp_name"].ToString(); sql = "insert into Hosp_DoctorsList(DoctorName,Age,DOB,Sex,Qualification,Specialization,MS tatus,"+ "Consult_From,Consult_To,Online_From,Online_To,HospitalName,HospitalID ,Regdate) values('" + dname + "',"+ age + ",'" + dob + "','" + sex + "','" + qlfn + "','" + spec + "','" + mstatus + "','" + con_from + "','" + con_to + "','" + online_from + "','" + online_to + "','" + hospName + "'," + hospID + ",'" + regdate + "')"; int x = dbe.putData(sql); if (x > 0) { Response.Redirect("hosphome.aspx?id=0"); }
31
else { lblErmsg.Text = "Submision operation failed"; } } } Ambsearch.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class ambsearch : System.Web.UI.Page { DBExplorer dbe; DataSet ds; protected void Page_Load(object sender, EventArgs e) { dbe = new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); ds = new DataSet(); string sql = "SELECT Provider,Address,Phone,Mobile,City,District from AmbulanceService "; if (Request.QueryString["id"] != "any") { sql += " where District='" + Request.QueryString["id"] + "'"; } ds.Clear();
32
ds = dbe.getData(sql); if (ds.Tables[0].Rows.Count == 0) { lblmsg.Text = "No results found"; return; } GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); } } Bloodreg.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.Data.SqlClient; public partial class bloodreg : System.Web.UI.Page { DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { dbe=new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); if (!IsPostBack) { for (int i = 18; i <= 60; i++)
33
{ ddlAge.Items.Add(i.ToString()); } } } protected void btnRegister_Click(object sender, ImageClickEventArgs e) { if (ddlDistrict.Text == "--Select--") { lblDistMsg.Text = "Select a district"; return; }else{ lblDistMsg.Text = ""; } if (ddlState.Text == "--Select--") { lblStateMsg.Text = "Select a state"; return; } else { lblStateMsg.Text = ""; } if (ddlBloodGroup.Text == "--Select--") { lblBgMSg.Text = "Select a blood group"; return; } else { lblBgMSg.Text = ""; } String dname = txtName.Text; String sex = ddlSex.Text;
34
int age = Int32.Parse(ddlAge.Text); String dobStr= Request.Form.Get("txtDOB").ToString(); String add1 = txtAddress1.Text; String add2 = txtAddress2.Text; String dist = ddlDistrict.Text; String state = ddlState.Text; String phone = txtPhone.Text; String mobile = txtMobile.Text; String bloodgrp = ddlBloodGroup.SelectedValue; String sql = "Insert into BloodDonation (DonorName, Sex,Age,DOB,Address1,Address2,District,State,Phone,Mobile," + "BloodGroup) values('" + dname + "','" + sex + "'," + age + ",'" + dobStr + "','" + add1 + "','" + add2 + "','" + dist + "','" + state + "','" + phone + "','" + mobile + "','" + bloodgrp + "')"; int x=dbe.putData(sql); if (x > 0) { //lblMsg.Text = "You have registered successfully"; Response.Redirect("index.aspx?id=regc"); } } } Bseachresdult.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.Data.SqlClient;
35
public partial class bsearchresult : System.Web.UI.Page { DataSet ds = new DataSet(); DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { dbe=new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); String bg = Request.QueryString["grp"]; String dist = Request.QueryString["dist"]; String sql="select DonorName,Sex,Age,Phone,Mobile,District from BloodDonation where BloodGroup='" + bg + "'"; if (dist != "any") { sql += " and District='" + dist + "'"; } ds.Clear(); ds = dbe.getData(sql); if (ds.Tables[0].Rows.Count == 0) { lblMsg.Text = "No results found"; } else { gvResults.DataSource = ds.Tables[0]; gvResults.DataBind(); } } } Consult.aspx.cs using System;
36
using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class consult : System.Web.UI.Page { DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { dbe = new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); } protected void btnPost_Click(object sender, EventArgs e) { String sql = "Insert into ConsultInfo (Name,Email,Description,CDate ) values('" + txtName.Text + "','" + txtEmail.Text + "','" + txtDesc.Text + "','" + DateTime.Now.ToShortDateString()+ "')"; int x=dbe.putData(sql); if (x > 0) { lblmsg.Text = "Your question posted successfully"; txtDesc.Text = ""; txtEmail.Text = ""; txtName.Text = ""; } else {
37
lblmsg.Text = "Error on posting question"; } } Doc_appointment.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.Data.SqlClient; public partial class appointment : System.Web.UI.Page { DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { dbe=new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); ddlSpec.Attributes.Add("onchange", "getDocNames(this.value)"); //ddlDocList.Attributes.Add("onchange", "getInfo(this.value)"); btnSave.Attributes.Add("onclick","validateForm()"); if (!IsPostBack) { ddlSpec.Items.Add("--Select--"); DataSet ds = dbe.getData("select Distinct specialization from doc_reg"); foreach (DataRow dr in ds.Tables[0].Rows) {
38
ddlSpec.Items.Add(dr["specialization"].ToString()); } } } protected void btnsave_Click(object sender, EventArgs e) { string name = txtname.Text; int age = Int32.Parse(txtage.Text); string dob = Request.Form.Get("txtDOB"); string sex = rdoListSex.SelectedValue; string mstatus = rdoListMStatus.SelectedValue; string addr = txtaddr.Text; string email = txtemail.Text; string city = txtcity.Text; string state = txtstate.Text; string phone = txtphone.Text; string mobile = txtmobile.Text; string docid = Request.Form.Get("ddlDocName"); DateTime dt = DateTime.Now; String appdate = Request.Form.Get("appDate"); String sql = "insert into Doc_AppInfo (ClientName,Age,DOB,Sex,MStatus,Address," + "Email,City,State,Phone,Mobile,DoctorID,AppDate,Regdate) values('" + name + "'," + age + ",'" + dob + "','" + sex + "','" + mstatus + "','" + addr + "','" + email + "','" + city + "','" + state + "','" + phone + "','" + mobile + "','" + docid + "','" + appdate + "','" + dt + "')"; int x = dbe.putData(sql); if (x > 0) { Response.Redirect("index.aspx?id=regc"); } else
39
{ lblMsg.Text = "Appoinment registration failed"; } } } Doc_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.Data.SqlClient; public partial class doc_reg : System.Web.UI.Page { DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { dbe=new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); } protected void btnSubmit_Click(object sender, EventArgs e) { string dname = txtDocName.Text; string dob =Request.Form.Get("txtDOB"); string addr_no = txtNum.Text; string street = txtStreet.Text; string city = txtCity.Text; string state = txtState.Text;
40
string zip = txtZIP.Text; string con_from = txtConsult_from.Text; string con_to = txtConsult_to.Text; string onl_from = txtOnline_from.Text; string onl_to = txtOnline_to.Text; string qual = ddlQlfn.SelectedItem.ToString(); string spec = ddlSpec.SelectedItem.ToString(); string sex = ""; string username = txtUsername.Text; string passwd = txt_password.Text; if (rdoFemale.Checked == true) { sex = "Female"; } else if (rdoMale.Checked == true) { sex = "Male"; } string mstatus = ""; if (rdoMarried.Checked == true) { mstatus = "Married"; } else if (rdoSingle.Checked == true) { mstatus = "single"; } if (txt_password.Text == "" || txtAge.Text == "" || txtCity.Text == "" || txtConsult_from.Text == "" || txtConsult_to.Text == "" || dob == "" || txtDocName.Text == "" || txtNum.Text == "" || txtOnline_from.Text == "" || txtOnline_to.Text == "" || txtPhone.Text == "" || txtState.Text == "" || txtStreet.Text == "" || txtUsername.Text == "" || txtZIP.Text == "")
41
{ lblempty.Text = "Some required fields missing"; return; } else { int age = Int32.Parse(txtAge.Text); String phone = txtPhone.Text; String sql = "insert into doc_reg (Doctor_name,age,Qualification,specialization,sex,DOB,maritalstatus,addr_nu mber," + "Street,city,state,Zip,phone,consult_from,consult_to,online_from,online_to,Us ername,Regdate) values('" + dname + "'," + age + ",'" + qual + "','" + spec + "','" + sex + "','" + dob + "','" + mstatus + "','" + addr_no + "','" + street + "','" + city + "','" + state + "','" + zip + "'," + phone + ",'" + con_from + "','" + con_to + "','" + onl_from + "','" + onl_to + "','" + username + "','" + DateTime.Now.ToString() + "')"; int x = dbe.putData(sql); int y = dbe.putData("insert into login values('" + username + "','" + passwd + "','doctor')"); if (x > 0 && y > 0) { Response.Redirect("index.aspx?id=regc"); } else { lblErmsg.Text= "Registeration Failed"; } } } }
42
Doc_home.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class dochome : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Session["userid"] == null) { Response.Redirect("index.aspx"); } } } Donation.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class donation : System.Web.UI.Page
43
{ DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { dbe = new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); } protected void btnDonate_Click(object sender, EventArgs e) { if (ddlDistrict.Text == "--Select--") { lblmsg.Text = "Please select a district"; return; } if (ddlOrgon.Text == "--Select--") { lblmsg.Text = "Please select an orgon"; return; } String dob=Request.Form.Get("txtDOB"); String sql = "insert into Donation (DonorNAme,Sex,DOB,Contact,City,District,Orgon,Regdate) values('" + txtName.Text + "','" + rdoSexList.SelectedValue + "','" + dob + "','" + txtPhno.Text + "','" + txtCity.Text + "','" + ddlDistrict.Text + "','" + ddlOrgon.Text + "','" + DateTime.Now.ToShortDateString() + "')"; int x=dbe.putData(sql); if (x > 0) { lblmsg.Text = "Thank you for donating your orgon"; txtName.Text = ""; rdoSexList.SelectedIndex = 0; ddlOrgon.SelectedIndex = 0;
44
ddlDistrict.SelectedIndex = 0; txtPhno.Text = ""; txtCity.Text = ""; txtAddress.Text = ""; } else { lblmsg.Text = "Registration failed"; } } } Hosp_appointment.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class hosp_appoinment : System.Web.UI.Page { DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { ddlSpec.Attributes.Add("onchange", "getHospNames(this.value)"); dbe = new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); if (!IsPostBack) { ddlSpec.Items.Add("--Select--");
45
DataSet ds = dbe.getData("select Distinct Specialization from Hosp_DoctorsList"); foreach (DataRow dr in ds.Tables[0].Rows) { ddlSpec.Items.Add(dr["Specialization"].ToString()); } } } protected void btnSave_Click(object sender, EventArgs e) { String pname=txtname.Text; String age=txtage.Text; String dob=Request.Form.Get("txtDOB"); String sex=rdoListSex.SelectedValue ; String mstatus=rdoListMStatus.SelectedValue; String addr=txtaddr.Text; String email=txtemail.Text; String city=txtcity.Text; String state=txtstate.Text; String phone=txtphone.Text; String mobile=txtmobile.Text; String pincode=txtpin.Text; String spec=ddlSpec.SelectedValue; String hospid=Request.Form.Get("ddlHospName"); String docname=Request.Form.Get("ddlDocName"); String appDate=Request.Form.Get("appDate"); DateTime dt = DateTime.Now; if (dob == "" || appDate == "" || hospid == "--Select--" || docname == "-Select--" || spec == "--Select--") { lblMsg.Text = "Some required fields missing"; return; }
46
String sql = "insert into Hosp_Appnfo (ClientName,Age,DOB,Sex,MStatus,Address,Email,City,State," + "Phone,Mobile,Pin,HospitalID,DoctorName,AppDate,Regdate) values('"+ pname + "'," + age + ",'" + dob + "','" + sex + "','"+ mstatus + "','" + addr + "','" + email + "','" + city + "','" + state +"','" + phone + "','" + mobile + "','" + pincode + "'," + hospid + ",'" + docname + "','" + appDate + "','" + dt + "')"; int x = dbe.putData(sql); if (x > 0) { Response.Redirect("index.aspx?id=regc"); } else { lblMsg.Text = "Appoinment registration failed"; } } } Hosp-doclist.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class hosp_doclist : System.Web.UI.Page { DBExplorer dbe; DataSet ds;
47
protected void Page_Load(object sender, EventArgs e) { if (Session["userid"] == null) { Response.Redirect("index.aspx"); } dbe = new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); if (!IsPostBack) { String huserid = Session["userid"].ToString(); ds = dbe.getData("select ID from hosp_reg where Username='" + huserid + "'"); String hid = ds.Tables[0].Rows[0][0].ToString(); String sql = "select DoctorName,Age,DOB,Sex,Qualification,Specialization,MStatus from Hosp_DoctorsList where HospitalID=" + hid; ds.Clear(); ds = dbe.getData(sql); gvDocList.DataSource = ds.Tables[0]; gvDocList.DataBind(); } } } Hosphome.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;
48
using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class hosphome : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (Session["userid"] == null) { Response.Redirect("index.aspx"); } } } Hosp_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.Data.SqlClient; public partial class hospitalreg : System.Web.UI.Page { DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { dbe = new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); }
49
protected void btnSubmit_Click(object sender, EventArgs e) { if (txtPassword.Text == "" || txtCity.Text == "" || txtNum.Text == "" || txtPhone.Text == "" || txtZIP.Text == ""|| txtState.Text == "" || txtStreet.Text == "" || txtUsername.Text == "" ) { lblMsg.Text = "Some required fields missing"; return; } string hname = txtHospName.Text; string num = txtNum.Text; string address = txtAddress.Text; string astreet = txtStreet.Text; string astate = txtState.Text; string acity = txtCity.Text; string azip = txtZIP.Text; string hphone = txtPhone.Text; string pref = txtDispName.Text; string username = txtUsername.Text; string passwd = txtPassword.Text;
String sql = "insert into hosp_reg (hosp_name,number,Address,street,city,state,ZIP,hospital_phone," + "prefered_name,Username,Regdate) values('" + hname + "','" + num + "','" + address + "','" + astreet + "','" + acity + "','" + astate + "','" + azip + "','" + hphone + "','" + pref + "','" + username + "','" + DateTime.Now.ToString()+ "')"; int x = dbe.putData(sql); sql = "insert into login values('" + username + "','" + passwd + "','hospital')"; int y = dbe.putData(sql);
50
if (x > 0 && y > 0) { Response.Redirect("index.aspx?id=regc"); } else { lblErmsg.Text = "Registeration Failed"; } } } Index.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class index : System.Web.UI.Page { DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { dbe = new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); } protected void btnSearch_Click(object sender, ImageClickEventArgs e) {
51
String bg,dist; if (ddlBloodGroup.Text == "--Select--") { lblBSearchmsg.Text = "Select blood Group"; return; } else { lblBSearchmsg.Text = ""; bg=ddlBloodGroup.Text; } if (ddlDistrict.Text == "--Select--") { dist="any"; } else { dist = ddlDistrict.SelectedValue; } Response.Redirect("bsearchresult.aspx?grp=" + bg + "&dist=" + dist); } protected void btnLogin_Click(object sender, ImageClickEventArgs e) { if (rdoDoctor.Checked == true) { String sql = "select * from login where username='" + txtUname.Text + "' and password='" + txtPasswd.Text + "' and type='doctor'"; DataSet ds = dbe.getData(sql); if (ds.Tables[0].Rows.Count > 0) { Session["userid"] = txtUname.Text; Session["usertype"] = "Doctor"; Response.Redirect("dochome.aspx"); }
52
else { lblLoginMsg.Text = "Invalid username/password"; } } else if(rdoHospital.Checked==true) { String sql = "select * from login where username='" + txtUname.Text + "' and password='" + txtPasswd.Text + "' and type='hospital'"; DataSet ds = dbe.getData(sql); if (ds.Tables[0].Rows.Count > 0) { Session["userid"] = txtUname.Text; Session["usertype"] = "Hospital"; Response.Redirect("hosphome.aspx"); } else { lblLoginMsg.Text = "Invalid username/password"; } } } protected void btnAmbSearch_Click(object sender, ImageClickEventArgs e) { if (ddlDist.Text == "--Select--") { Response.Redirect("ambsearch.aspx?id=any"); } else { Response.Redirect("ambsearch.aspx?id=" + ddlDist.SelectedValue); } }
53
} Reg_ambulance.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class reg_ambulance : System.Web.UI.Page { DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { dbe = new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); } protected void btnRegister_Click(object sender, EventArgs e) { if (ddlDistrict.Text == "--Select--") { lblmsg.Text = "Select a valid district name"; return; } String sql = "Insert into AmbulanceService (Provider,Address,Phone,Mobile,City,District,Email) values('" + txtProvider.Text + "','" + txtAddress.Text + "','" + txtPhone.Text + "','" + txtMobile.Text + "','" + txtCity.Text + "','" + ddlDistrict.SelectedValue + "','" + txtEmail.Text + "')";
54
Viewdonates.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class viewdonates : System.Web.UI.Page { DBExplorer dbe; protected void Page_Load(object sender, EventArgs e) { dbe = new DBExplorer(ConfigurationManager.ConnectionStrings["Medi "].ConnectionString); dbe.OpenConnection(); } protected void btnShow_Click(object sender, EventArgs e) { String sql = "Select DonorName,Sex,Contact,City,District,CONVERT(CHAR(11), Regdate, 106) as Regdate from Donation "; if (ddlOrgon.Text != "--Select--") { sql += " where Orgon='" + ddlOrgon.Text + "'"; } DataSet ds = dbe.getData(sql); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); } }
55
O U T P U T S
56
MAIN.ASPX
57
DOCTORS REGISTRATION
58
HOSPITAL REGISTRATION
59
60
61
62
AMBULANCE SERVICE
63
64
TEST PLAN
The primary goal of a test plan is to define testing procedures that will ensure the software is functionally correct from a documentation perspective and will verify application scalability limits. It also proves that reliability and fail over aspects of the system can indeed survive instances of system failure. Test Procedure The procedure as follows: 1) Prepare the test case. 2) Record the expected results and verify whether in tune with actual results. 3) If actual results are not in tune expected results do the necessary rework. 4) Test again and check for the result. 5) If the test results are satisfactory, wind up testing. Stop Criteria Testing can be wrapped up when: 1) Actual test results matches with the expected ones. 2) System performance well in the specified environment. System testing is the stage of implementation, which is aimed at ensuring that the system works accurately and efficiently before live operation commences. Testing is vital to the success of the system. An elaborate testing of data is prepared and the system is tested using this test data. While testing error noted and corrections are made. The users are trained to operate the developed system. Both hardware and software securities are made to run the developed system successfully in future.
65
Testing steps: Unit Testing Integration Testing Validation Testing Output Testing User Acceptance Testing
UNIT TESTING Unit testing focuses verification efforts on the smallest unit of software design, the module. This is also known as Module Testing. The modules are tested separately. This testing is carried out during programming stage itself. In these testing steps each Module is found to be working satisfactorily as regard to the expected output from the module. INTEGRATION TESTING Integration testing is a systematic technique for constructing tests to uncover errors Associated within the interface. In this project, all the modules combined, and then entire Program is tested as a whole. Thus in the integration testing step, all the errors uncovered are corrected for the next testing steps. VALIDATION TESTING Validation testing is where requirements established as a part of software requirement analysis is validated against the software that has been constructed. This test provides the final assurance that the software meets all
66
functional, behavioral and performance requirements .The errors, which are uncovered during integration testing, are corrected during this phase.
OUTPUT TESTING After performing the validation testing, the next step is output testing of the proposed system since no system could be useful if it does not produce the required output in the specific format. The Output generated or displayed by the system under consideration is tested asking the users about the format required by then. Here, the output is considered into two ways: one is on the screen and the other is printed format. The output format on the screen is found to be correct as the format designed according to the user needs .For the hard copy also, the output comes out as specified by the user. Hence output testing doesnt result in any connection in the system.
67
User acceptance of a system is the key factor for the success of any system. The system under consideration is tested for user acceptance by constantly keeping in touch with the prospective system users at time of developing and making for Site Downloader system. The testing of the software began along with coding. Since the design was fully object-oriented, first the interfaces were developed and tested. Then unit testing was done for every module in the software for various inputs, such that each line of code is at least once executed After all modules were coded the integration test were carried out. Some minor errors were found in the output at the earlier stage and each of them was corrected. In the implementation of user interface part no major errors were found. After the software was completely developed, the testing was done.
SYSTEM IMPLEMENTATION
The implementation stage is the next step towards the problem solution. Here the details like which coding language is used is decided and the coding is done in the specified language. The implementation is the practical job of putting a theoretical design in the practice. It may involve the complete implementation of a computer complex or the introduction of one small subsystem.
68
The implementation phase of a project covers the period from the acceptance of the test design to its satisfactory operation support by the appropriate user and operations manual. It is a major operation across the whole organizational structure and requires a great deal of planning. Planning for implementation must begin from the initial conception of the project. It requires a thorough knowledge of the new system, its personal needs, hardware and software requirements, file and procedure conversion activities, etc. Only the analyst is responsible for creating the new system will possess this knowledge. He can plan, schedule and co- ordinate but has no executive powers.
MAINTENANCE Development is a single activity. Maintenance is a continuous activity. Maintenance involves activities like inspections, corrections and enhancement. Once the system is delivered and deployed, it enters the maintenance phase. The system need to be maintained not because of some of its components wear out and need to be replaced, but because there are some residual errors remaining in the system that must be removed as they are discovered. This includes activities related to debugging the software after it goes live, changes required to address evolving software and enhancement to meet changing customer requirements. So maintenance phase involves: Understanding the effects of change. Testing the new parts. Retesting the old parts that were not changed Making changes-to both the code and the documents.
These changes have to be signed by the user before the change can be carried out. Since requirement change request involves cost, user will be cautious while requesting the software changes. The software will require
69
continued support. The system maintenance means the maintenance activities after and during the system development processes. This include activities related to debugging the software after it goes live, changes acquired to meet change in users requirement. Three type of maintenance: Corrective maintenance. Adaptive maintenance. Perfective maintenance.
Maintenance phase identifies if there are any changes required in the current system. If the changes are identified, then an analysis is made to identify if the changes are really required. Cost benefit analysis is a way to find out if the change is really essential.
70
71
BIBLIOGRAPHY Websites
Following websites are referring to create this project reports. http://www.google.com http://www.microsoft.com http://www.asp.net http://www.asp123.com http://www.wikipedia.org
Books
Following books and ebook are used to complete this project reports. Microsoft Sql Server By SYBEX .NET Black Book (Paperback)
72