Hospital Management System

October 2, 2017 | Author: ajish808 | Category: Microsoft Access, Databases, Language Integrated Query, Operating System, Windows 7
Share Embed Donate


Short Description

Hospital Management System...

Description

Project Report submitted to University of Missouri Science and Technology, Rolla, USA (At Mazoon College, Muscat, Oman) In partial fulfilment of the requirements for the award of the degree of Bachelor of Management Information System. Submitted by Reham Juma AlGhafri ID Number: 2008331006 Under the guidance of Ms.A.Anto Therasa Mary

Mazoon University College (Affiliated to Missouri University of Science and Technology, Rolla, USA) Sultanate of Oman (Spring Semester, 2013)

1

CERTIFICATE

This is to certify that the project entitled Hospital Management System is a confide work of the following student, carried out under my supervision, as part fulfilments of the academic requirements of B.S. Degree in Computer Science &Management Information System.

Name: Reham Juma Khalfan AlGhafri Student ID: 2008331006 Signature:

Supervisor: Ms A.Anto Therasa Mary Faculty of/ IT Department Signature: Date of Submitted: 8/05/2013

Examine: Signature:

2

To our my family who encourage and support us all the time.

To all our my friends and peers.

To all faculty who teach us all previous years.

And last to everyone who provide his/her helping hand to us.

3

ACKNOWLEDGEMENT

I would like to thank those who have helped me in completing this project. I extend my special thanks to Dr. Abdullah Alani, Head of the Department ,CS & IT, for his guidance, support, advice and help. I would also like to thank Ms.A.Anto Therasa Mary, Project Supervisor and Mr.Jameel, Faculty of IT Department and all my friends for all their continuous efforts and support.

4

Abstract

A HOSPITAL MANAEGMENT SYSTEM will help the user to know information about the hospital. This project will help the user to know the management of the patients and also will provide information about doctors and the employees in the hospital. This project will show details about laboratory and bills of the pharmacy. Microsoft Access has been used for creating the database. Forms created using c#.

5

Table of Content Page Number Certificate …………………………………………………..

3

Acknowledgment……………………………………………

4

Abstract…………………………………...………………….

5

List of Figures Chapter 1: Introduction ………………………………………… 7 1.1 Problem definition….…………………………..…...…7 1.2 Objectives..…………………………………………….7

Chapter 2: Hardware and Software Configuration 2.1 Hardware configuration……. ……………………..…9 2.2 Software configuration……………………..…………9 Chapter 3: Database Designs 3.1 Data base Tables………….……….……………….…21 Chapter 4 : Form Designs……………………………………....…29 Chapter 5: Coding…………………………..…………………….03 Chapter 6: implementation……………………………………..…50 Chapter 7 : Conclusion ……………………………………..…….77 References………………………………………….…73

6

Chapter 1 Introduction

7

Chapter1 INTRODUCTION

1.1 Problem definition: There is a huge growth of data in hospital every day. The manual writing of this information can cause lots of errors also will waste time, money and efforts. Also the store and get back of this information will take long time. This project will free errors this information also will make the store and get back of this information very fast and easily. This project will save time, money and efforts.

1.2 Objective: The manual system can cause lots of problems, and this project will use new information system that will replace the old one. The object of this new system is to store the huge data in such an organized way and it will make the get back and access of this data very fast and easy. My system will provide correct data to the user. This system will save time, money and efforts.

8

Chapter 2 Hardware and software

9

Chapter 2 Hardware and software

2.1 Hardware Configuration: Manufactures: Toshiba Minimum Processor: Intel(R) Core (TM) i7-2630M CPU @ 2.00GHz Minimum RAM: 8 GB Operating System: Windows 7 Ultimate System Type: 64-bit Operating System

2.2 Software Configuration: 1. Operating system: Windows 7. 2. Microsoft Access 2003: Microsoft Access is powerful software designed for PC. It allows you to create and manage databases. A database is an organized body of related information that is arranged for ease and speed of search and retrieval. Micro software Access is equipped with a few options that help you to enter, organize, and edit data in an easy and intuitive way.

3. Visual Basic 2008: Visual Basic .NET (VB.NET or VB .NET) is a version of Microsoft's visual basic that was designed, as part of the company's .Net product group, to make web services applications easier to develop. According to Microsoft, VB .NET was reengineered, rather than released as VB 6.0 with added features, to facilitate making fundamental changes to the language.

10

4. Internet Explorer 8.0: The internet explorer is the software provides a flexible and reliable browsing experience with enhanced web privacy features for all users.

11

Chapter 3 Database Design

12

3.1 Table Information 3.1.1 Patient Table: It contains information about the patients.

Figure 3.1.11 Patient Table

3.1.2 Staff Table: It contains information about staff of the hospital.

Figure3.1.2 Staff Table

13

3.1.3 Department Table: It contains information about the departments in the hospital

Figure3.1.3 Department Table

3.1.4 Laboratory Table: It contains information about the laboratory in the hospital.

Figure 3.1.4 Laboratory Table

14

3.1.5 Doctors Table : It contains information about the doctors .

Figure 3.1.5 Doctors Table

3.1.6 Make Appointment Table: It contains information about the appointment .

Figure 3.1.6 Make Appointment Table

15

3.1.7 Medical Charge Table: It contains information about the bills.

Figure 3.1.7 Medical Charge Table

3.1.8 Room Management Table: It contains information about the rooms in the hospital.

Figure 3.1.8 Room Management Table

16

3.1.9 Syrup Table: It contains information about the syrup medicine.

Figure 3.1.9 Syrup Table

3.1.10 Tablets Table: It contains information about tablets medicine.

Figure 3.1.10 Tablets Table

17

3.1.11 Patient Medical Record Table: It contains information about the patient medical record in the hospital.

Figure 3.1.11 Patient Medical Record Table

18

Chapter 4 Form Designs

19

Chapter 4 Form Designs 4.1.1 Form 1 Welcome screen contains a picture for Ibri hospital and button.

Figure 4.1.1 Form 1

20

4.1.2 Form 2 This form show the password and username for the user and it contains two buttons one for enter to the system and one for exit from the system.

Figure 4.1.2.Form 2

4.1.3 Form 3 This is the first form we you enter the system it contains button for details, search , video and report.

Figure 4.1.3 Form 3

21

4.1.7 Form 4 This form shows the details and button for patient details , department details, blood details, patient medical record, doctor details, laboratory details, make appointment, bills, stuff details, medicine , room

Figure 4.1.7 Form 4 4.1.5 Form 5 This form will shown when we click in the button patient details it contains information about all the patient in the hospital.

Figure 4.1.5 Form 5 22

4.1.6 Form 6 This form will shown when we click in the button department details it contains information of the different department in the hospital.

Figure 4.1.6 Form 6 4.1.8 Forma 8 This form will shown when we click in the button doctor details it contains information of all the doctors in the hospital .

Figure 4.1.8 Forma 8

23

4.1.9 Form 9 This form will shown when we click in the button labortory details it contains information about the labortory in the hospital.

Figure 4.1.9 Form 9

4.1.12 Form01 This form will shown when we click in the button make appointment .

Figure 4.1.12 Form01 24

4.1.13 Form 10 This form will shown when we click in the button bill it contains information about the bills .

Figure4.1.13 Form 10

4.1.14 Form 12 This form will shown when we click in the button stuff details it contains about the staff in the hospital .

Figure 4.1.14 Form 12

25

4.1.15 Form 13 This form will shown when we click in the button medicin details it contains two buttons syrup and tablets.

Figure 4.1.15 Form 13

4.1.16 Form 14 This is the form of syrup medicines.

Figure4.1.16 Form 14 26

4.1.17 Form 15 This is the form of tablets medicines.

Figure 4.1.17 Form 15 4.1.18 Form 16 This form will shown when we click in the button room manage it contains information about the room in the hospital and the bed in each room.

Figure 4.1.18 Form 16 27

4.1. Form 17 This form contain video of the hospital.

Figure 4.1. Form 17

4.1. Form 08 When we click the button search this form will show it contains button for search for different information.

Figure 4.1. Form 08

28

4.1.20 Form 19

This form will shown when we click on the button report .

Figure 4.1.20 Form 19

29

Chapter 5 Coding

30

Coding: This is the codes that we used: Form1: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void pictureBox2_Click(object sender, EventArgs e) { 31

this.Hide(); Form2 F2 = new Form2(); F2.ShowDialog(); } private void pictureBox3_Click(object sender, EventArgs e) { } private void pictureBox2_Click_1(object sender, EventArgs e) { this.Hide(); Form2 F2 = new Form2(); F2.ShowDialog(); }

private void pictureBox1_Click(object sender, EventArgs e) { } } }

Form 2: using System; using System.Collections.Generic; 32

using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form2 : Form { public Form2() { InitializeComponent(); }

private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "iiii") { if (textBox2.Text == "6960225") { this.Hide(); 33

Form3 F3 = new Form3(); F3.ShowDialog();

} } } private void button2_Click(object sender, EventArgs e) { this.Close(); } private void Form2_Load(object sender, EventArgs e) {

} } } Form 3: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; 34

using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form3 : Form { public Form3() { InitializeComponent(); }

private void button4_Click(object sender, EventArgs e) { this.Hide(); Form22 F22 = new Form22(); F22.ShowDialog(); }

private void pictureBox1_Click(object sender, EventArgs e) {

} 35

private void pictureBox3_Click(object sender, EventArgs e) {

} private void button1_Click(object sender, EventArgs e) {

Form4 F4 = new Form4(); F4.ShowDialog(); }

private void button2_Click(object sender, EventArgs e) { this.Hide(); Form7 F7 = new Form7(); F7.ShowDialog(); }

private void button3_Click(object sender, EventArgs e) { this.Hide(); Form23 F23 = new Form23(); 36

F23.ShowDialog(); }

private void button5_Click(object sender, EventArgs e) { this.Hide(); Form24 F24 = new Form24(); F24.ShowDialog(); }

private void pictureBox5_Click(object sender, EventArgs e) { this.Hide(); Form1 F1 = new Form1(); F1.ShowDialog(); }

private void Form3_Load(object sender, EventArgs e) {

} } } 37

Form 4: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form4 : Form { public Form4() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { this.Hide(); Form5 F5 = new Form5(); 38

F5.ShowDialog(); } private void button2_Click(object sender, EventArgs e) { this.Hide(); Form6 F6 = new Form6(); F6.ShowDialog(); } private void button6_Click(object sender, EventArgs e) { this.Close(); }

private void patient_tableBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.patient_tableBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet); }

private void Form4_Load(object sender, EventArgs e) {

39

// TODO: This line of code loads data into the 'db1DataSet.patient_table' table. You can move, or remove it, as needed. this.patient_tableTableAdapter.Fill(this.db1DataSet.patient_table);

} private void button11_Click(object sender, EventArgs e) { this.Hide(); Form5 F5 = new Form5(); F5.ShowDialog(); } private void button15_Click(object sender, EventArgs e) {

}

private void button16_Click(object sender, EventArgs e) { this.Close(); }

private void button12_Click(object sender, EventArgs e) {

40

this.Hide(); Form6 F6 = new Form6(); F6.ShowDialog(); }

private void button15_Click_1(object sender, EventArgs e) { printDialog1.ShowDialog();

}

private void patient_tableBindingNavigator_RefreshItems(object sender, EventArgs e) { } } } Form 5: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; 41

using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form5 : Form { public Form5() { InitializeComponent(); }

private void patient_tableBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.patient_tableBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet);

} private void Form5_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.patient_table' table. You can move, or remove it, as needed.

42

this.patient_tableTableAdapter.Fill(this.db1DataSet.patient_table);

} Form 6: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form6 : Form { public Form6() { InitializeComponent(); }

private void button2_Click(object sender, EventArgs e) 43

{

}

private void button6_Click(object sender, EventArgs e) {

}

private void listBox2_SelectedIndexChanged(object sender, EventArgs e) {

}

private void button11_Click(object sender, EventArgs e) { this.Close(); }

private void button9_Click(object sender, EventArgs e) {

} 44

private void button10_Click(object sender, EventArgs e) { printDialog1.ShowDialog(); }

private void Form6_Load(object sender, EventArgs e) {

}

private void pictureBox1_Click(object sender, EventArgs e) { this.Hide(); Form4 F4 = new Form4(); F4.ShowDialog();

} Form 7: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; 45

using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form7 : Form { public Form7() { InitializeComponent(); }

private void pictureBox1_Click(object sender, EventArgs e) { this.Hide(); Form3 F3 = new Form3(); F3.ShowDialog(); }

private void button1_Click(object sender, EventArgs e) { 46

this.Hide(); Form8 F8 = new Form8(); F8.ShowDialog();

}

private void button2_Click(object sender, EventArgs e) {

this.Hide(); Form9 F9 = new Form9(); F9.ShowDialog(); }

private void button3_Click(object sender, EventArgs e) { this.Hide(); Form10 F10 = new Form10(); F10.ShowDialog(); }

private void button4_Click(object sender, EventArgs e) { 47

this.Hide(); Form11 F11 = new Form11(); F11.ShowDialog(); }

private void button5_Click(object sender, EventArgs e) { this.Hide(); Form12 F12 = new Form12(); F12.ShowDialog(); }

private void button6_Click(object sender, EventArgs e) { this.Hide(); Form13 F13 = new Form13(); F13.ShowDialog(); }

private void button7_Click(object sender, EventArgs e) { this.Hide(); Form14 F14 = new Form14(); 48

F14.ShowDialog(); }

private void button8_Click(object sender, EventArgs e) { this.Hide(); Form15 F15 = new Form15(); F15.ShowDialog(); }

private void button10_Click(object sender, EventArgs e) { this.Hide(); Form16 F16 = new Form16(); F16.ShowDialog(); }

private void button9_Click(object sender, EventArgs e) { this.Hide(); Form17 F17 = new Form17(); F17.ShowDialog(); } 49

private void button11_Click(object sender, EventArgs e) { this.Hide(); Form20 F20 = new Form20(); F20.ShowDialog(); }

private void button12_Click(object sender, EventArgs e) { this.Hide(); Form24 F24 = new Form24(); F24.ShowDialog(); }

private void Form7_Load(object sender, EventArgs e) { } } } Form 8: using System; using System.Collections.Generic; 50

using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form8 : Form { public Form8() { InitializeComponent(); }

private void pictureBox1_Click(object sender, EventArgs e) {

this.Hide(); Form7 F7 = new Form7(); F7.ShowDialog(); } 51

private void patient_tableBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.patient_tableBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet); } private void Form8_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.patient_table' table. You can move, or remove it, as needed. this.patient_tableTableAdapter.Fill(this.db1DataSet.patient_table);

} } Form 9:

private void Form9_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.DEPATMENT_TABLE' table. You can move, or remove it, as needed.

this.dEPATMENT_TABLETableAdapter.Fill(this.db1DataSet.DEPATMENT_TABLE);

52

// TODO: This line of code loads data into the 'db1DataSet.DEPATMENT_TABLE' table. You can move, or remove it, as needed.

this.dEPATMENT_TABLETableAdapter.Fill(this.db1DataSet.DEPATMENT_TABLE); // TODO: This line of code loads data into the 'db1DataSet.DEPATMENT_TABLE' table. You can move, or remove it, as needed.

this.dEPATMENT_TABLETableAdapter.Fill(this.db1DataSet.DEPATMENT_TABLE); }

private void dEPATMENT_TABLEBindingNavigatorSaveItem_Click_1(object sender, EventArgs e) { this.Validate(); this.dEPATMENT_TABLEBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet);

} } } Form 10 : using System; using System.Collections.Generic; using System.ComponentModel;

53

using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form10 : Form { public Form10() { InitializeComponent(); }

private void bLOOD_TABLEBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.bLOOD_TABLEBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet);

}

54

private void Form10_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.BLOOD_TABLE' table. You can move, or remove it, as needed. this.bLOOD_TABLETableAdapter.Fill(this.db1DataSet.BLOOD_TABLE);

} Form 11: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form11 : Form { public Form11()

55

{ InitializeComponent(); }

private void pATIENT_MEDICAL_RECOREDBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.pATIENT_MEDICAL_RECOREDBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet);

} private void pATIENT_MEDICAL_RECOREDBindingNavigatorSaveItem_Click_1(object sender, EventArgs e) { this.Validate(); this.pATIENT_MEDICAL_RECOREDBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet);

}

private void Form11_Load(object sender, EventArgs e)

56

{ // TODO: This line of code loads data into the 'db1DataSet.PATIENT_MEDICAL_RECORED' table. You can move, or remove it, as needed.

this.pATIENT_MEDICAL_RECOREDTableAdapter.Fill(this.db1DataSet.PATIENT_MEDI CAL_RECORED);

} Form 12: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form12 : Form { public Form12()

57

{ InitializeComponent(); }

private void dOCTOR_TABLEBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.dOCTOR_TABLEBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet);

}

private void Form12_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.DOCTOR_TABLE' table. You can move, or remove it, as needed. this.dOCTOR_TABLETableAdapter.Fill(this.db1DataSet.DOCTOR_TABLE);

} Form 13: using System; using System.Collections.Generic;

58

using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form13 : Form { public Form13() { InitializeComponent(); }

private void lABORATORY_TABLEBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.lABORATORY_TABLEBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet);

59

}

private void Form13_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.LABORATORY_TABLE' table. You can move, or remove it, as needed.

this.lABORATORY_TABLETableAdapter.Fill(this.db1DataSet.LABORATORY_TABLE);

} Form 14: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form14 : Form

60

{ public Form14() { InitializeComponent(); }

private void pictureBox1_Click(object sender, EventArgs e) { this.Hide(); Form7 F7 = new Form7(); F7.ShowDialog(); }

private void mAKE_APPOINTMENTBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.mAKE_APPOINTMENTBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet);

}

private void Form14_Load(object sender, EventArgs e)

61

{ // TODO: This line of code loads data into the 'db1DataSet.MAKE_APPOINTMENT' table. You can move, or remove it, as needed.

this.mAKE_APPOINTMENTTableAdapter.Fill(this.db1DataSet.MAKE_APPOINTMENT);

} } Form 15: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form15 : Form { public Form15()

62

{ InitializeComponent(); } private void mEDICAL_CHARGE_BILLBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.mEDICAL_CHARGE_BILLBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet); } private void Form15_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.MEDICAL_CHARGE_BILL' table. You can move, or remove it, as needed.

this.mEDICAL_CHARGE_BILLTableAdapter.Fill(this.db1DataSet.MEDICAL_CHARGE_ BILL); } Form 16: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing;

63

using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form16 : Form { public Form16() { InitializeComponent(); } private void sTAFF_TABLEBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.sTAFF_TABLEBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet); }

private void Form16_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.STAFF_TABLE' table. You can move, or remove it, as needed.

64

this.sTAFF_TABLETableAdapter.Fill(this.db1DataSet.STAFF_TABLE);

}

private void sEXTextBox_TextChanged(object sender, EventArgs e) {

}

private void pictureBox1_Click(object sender, EventArgs e) { this.Hide(); Form7 F7 = new Form7(); F7.ShowDialog(); } } } Form 17: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; 65

using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form17 : Form { public Form17() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { this.Hide(); Form18 F18 = new Form18(); F18.ShowDialog(); } private void button2_Click(object sender, EventArgs e) { this.Hide(); Form19 F19 = new Form19(); F19.ShowDialog(); } 66

private void pictureBox1_Click(object sender, EventArgs e) { this.Hide(); Form7 F7 = new Form7(); F7.ShowDialog(); } private void Form17_Load(object sender, EventArgs e) { } } }

Form 18: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 67

{ public partial class Form18 : Form { public Form18() { InitializeComponent(); } private void sTYRUP_TABLESBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.sTYRUP_TABLESBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet); } private void Form18_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.STYRUP_TABLES' table. You can move, or remove it, as needed. this.sTYRUP_TABLESTableAdapter.Fill(this.db1DataSet.STYRUP_TABLES); } private void pictureBox1_Click(object sender, EventArgs e) { this.Hide();

68

Form17 F17 = new Form17(); F17.ShowDialog(); } } } Form 19: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form19 : Form { public Form19() { InitializeComponent(); }

69

private void sTYRUP_TABLESBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.sTYRUP_TABLESBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.db1DataSet); } private void Form19_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.STYRUP_TABLES' table. You can move, or remove it, as needed. this.sTYRUP_TABLESTableAdapter.Fill(this.db1DataSet.STYRUP_TABLES);

} private void pictureBox1_Click(object sender, EventArgs e) { this.Hide(); Form17 F17 = new Form17(); F17.ShowDialog(); } } }

70

Form 20: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form20 : Form { public Form20() { InitializeComponent(); } private void rOOM_MANAGEMENT_TABLEBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.rOOM_MANAGEMENT_TABLEBindingSource.EndEdit();

71

this.tableAdapterManager.UpdateAll(this.db1DataSet); } private void Form20_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.ROOM_MANAGEMENT_TABLE' table. You can move, or remove it, as needed.

this.rOOM_MANAGEMENT_TABLETableAdapter.Fill(this.db1DataSet.ROOM_MANAG EMENT_TABLE);

}

private void pictureBox2_Click(object sender, EventArgs e) { this.Hide(); Form7 F7 = new Form7(); F7.ShowDialog(); } } } Form 22: using System; using System.Collections.Generic;

72

using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form22 : Form { public Form22() { InitializeComponent(); }

private void pictureBox1_Click(object sender, EventArgs e) { this.Hide(); Form3 F3 = new Form3(); F3.ShowDialog(); }

73

private void axWindowsMediaPlayer1_Enter(object sender, EventArgs e) { } } } Form 23: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form23 : Form { public Form23() { InitializeComponent(); } 74

private void button1_Click(object sender, EventArgs e) { webBrowser1.Navigate("http://www.Google.com"); }

private void pictureBox1_Click(object sender, EventArgs e) { this.Hide(); Form3 F3 = new Form3(); F3.ShowDialog(); }

private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { Form 24: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq;

75

using System.Text; using System.Windows.Forms;

namespace WindowsFormsApplication2 { public partial class Form24 : Form { public Form24() { InitializeComponent(); }

private void Form24_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'db1DataSet.PATIENT_MEDICAL_RECORED' table. You can move, or remove it, as needed.

this.PATIENT_MEDICAL_RECOREDTableAdapter.Fill(this.db1DataSet.PATIENT_MEDI CAL_RECORED); this.reportViewer1.RefreshReport(); } private void pictureBox1_Click(object sender, EventArgs e) {

76

this.Hide(); Form3 F3 = new Form3(); F3.ShowDialog(); } private void reportViewer1_Load(object sender, EventArgs e)

77

Chapter 6 Implementation

78

Implementation

When I designed the forms I need to connect the database to the project this is the steps to add the database to the project: 1- Data 2- Add new data source. 3- Data source type I choice database. 4- Then click next. 5- Then click new connection then browser and I choice the database I have created. 6- Then next 7- Finally I choice finish.

79

Chapter 7 Conclusion

I have completed my project " HOSPITAL MANAGEMENT SYSTEM" and it is ready for use. I have design forms , creating database and coding the forms. After the entire project I have chosen it was interesting and gained much knowledge about hospital and health care. I have faces some problems during this project but with the hardworking I have solve this problems. I hope that my project will be useful for all hospitals.

80

References Book: 1- Software Engineering. Roger S. Pressman Publisher: McGraw-Hill Science/Engineering/Math;7 edition (January 20, 2009) Language: English 2- Visual Basic Programming. Amity Kalian,Product Details Publisher: Sam’s; 1 edition (December 31, 200) Language: English 3- Database. Gavin Powell, December 2005 Website: 1-

www.wikipedia.org

2-

www.moh.gov.om/

3-

www.ask.com

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF