Professional Documents
Culture Documents
Awdhesh Pratap singh vishwavidhyalaya (M.P.) SUBMITED BY Bharti rajak Khushbu Kashyap Pallvi Singh SUBMITTED TO Ms. Priya Singh Parihar
This is to certify that Satya Prakash Mishra,completed his Major Project work for during the academic year 2012 in the partial fulfillments of the award of Bachelor of Commerce & Computer Application VI Semester.
External Examiner
CERTIFICATE
This is to certify that Satya Prakash Mishrais Major Project work for during the academic year -2012 in the partial fulfillments of the award of Bachelor of Commerce & Computer Application VI Semester.
VANIJYA MAHAVIDYALAYA, SATNA (M.P.) ACKNOWLEDGEMENT We wish to acknowledgement with deep gratitude the valuable assistance received by us from our guide Mr.Paras Sen & Mr. Vinay Kumar Shrivastava Who guided and encouraged us throughout the development of this project. We would like to very many thanks Mr.Mo.Riyazuddin khan (Principal) for his valuable suggestion. It is due to encouragement provided by him those projects could its final stage.
We also acknowledge Dr. Ashok Kumar Mishra (Director) other lecturers . Who us in the satisfactory completion of this project. Finally we specially thank our parents and the near dear once who are the another of our lives for their support and understanding
DECLARATION
We hereby affirm that the project report title RAILWAY RESERVATION SYSTEM submitted by us to Vanijya Mahavidhyalaya, Satna (M.P.) affiliated by Awdhesh Pratap singh
vishwavidhyalaya(M.P.), for consideration of BACHELOR OF Commerce & computer Application)VI SEM embodies our work, except the and suggestions received during the work which has been duly acknowledged.
4. Software Base VISUAL BASIC 5. Sponsoring Institute Address 6. Submitted for course & Year B.Com vi sem (computer ) 2012 ; 7. Study Center Code, name, Address. 8. .Forwarding by SHRI RAMA KRISHANA COLLEGE SATNA Roll no 103672 Enrollment no C.10.4508 Marks Awarded Internal Examiners Name & Signature
INTRODUCTION
Today every work is going to be computerized. Manpower is used with computer system to increase the efficiency & reliability of the work. It also provides a lot of saving of time to do that work with friendliness. The S/W HOSPITAL MANAGEMENT SYS. is an effort to computerize the reservation process. This S/W has Following modules: 1.input module:2.Output module: used to input the data for reservations. used to output the data for reservations.
ACKNOWLEDGEMENT
We wish to acknowledge with deep gratitude the valuable assistance received by us from guide priya singh parihar , his continuous guidance and constructive criticism during the course of presentation, study and preparation of this project script has made it a success. We also thank other professors and friends who helped us in the satisfactory completion of this project. Principal Mis.KALPANA SHRIVASTAV has always been a source of inspiration for us..
I take the opportunity of giving my sincere and heartily regards to all the persons who stood by us during the project and the knowledge they imparted us shall Act as a milestone guiding us through out our lives
Project Developers:Saraswati tiwari Manjula mishra Priyanka agnihotri Neha dwivedi Urmila rawat
SOFTWARE CONFIGURATION
BACKEND FRONTEND :MS ACCESS :VISUAL BASIC 6.0
WORKSTATION :WINDOWS XP
TOOLS
:MS-WORD
CONFIGURATIO
:-
Lets take a minute to review some of the features that make Visual basic such a robust and exciting Development platform. Anyone who has been working with visual basic for any length of time is accustomed to these features and probably does not spend much time thinking about them however, people who are new to visual basic should take a minute to consider why visual basic has become such a popular development environment. After all there is more then three million visual basic developers, and its hard to imagine that so many people would elect to use a limited and hard-to-learn programming system. The following key point make visual basic an excellent development tool:-
1. visual basic application is event-driven. means the user is in control of the application. The user generate a stream of event each time he or she clicks with mouse or press a key on the keyboard. 2. visual basic supports the principles of object-oriented-design. This means that you can compartmentalize different aspects of your application ads object and development and test those object independently of the rest of the application. By modifying certain properties invoking the method of these object, you exert a great deal of control over the users interaction with the visual basic programs you have written. 3. Microsoft has designed visual basic to be a complete windows application development system. This means that you are visual basic application will look and behave like other windows programs youre your user might whit.
4. Visual basic is infinitely extensible through the use of active-X control, dynamically linked libraries (dlls),and add-ins. so, we are developed project in visual basic 6.0
.
Submitted by:-
Saraswati tiwari Manjula mishra Priyanka agnihotri Neha dwivedi Urmila rawat
Submitted To
CERTIFICATE
This is to certify that this project entitled HOSPITAL MANAGEMENT submitted in partial fulfillment of the B.COM(computer) to the INDERA GANDHI GIRLS COLLEGE Done by Saraswati tiwari, Manjula mishra, Priyanka agnihotri And Neha dwivedi, Urmila rawat is an authentic work carried Out by him/her at INDERA GANDHI COLLEGE under my Guidance. The matter embodied in this project work has not Been submitted earlier for award of any degree to the best of My knowledge and belief.
SELF CERTIFICATE
This is to certify that the dissertation/project report entitled "HOSPITAL MANAGEMENT is done by me is an authentic work carried out for the partial fulfillment of the requirements for the award of the B.COM(Computer)under the guidance of PRIYA SINGH PARIHAR .The matter embodied in this project work as not been submitted earlier for award of any degree to the best of my knowledge and belief.
Signature of the student .. Name of the Student . Roll No. . Study Centre Name
..
Start
WELCOME FORM
ST AR T
ENTRY SEARC H REPORT PATIEN T ENTREY STAFF ENTRE Y ADMIT ENTRE YY STAFF
MDI FORM
HELP
EXIT
AGREGAT E
PATIENT
ONEPATIEN T
CONCLUSION
Today in the era of high competition and fast speed of work it is needed to provided the information about denting patient availability of blood and maintain the record of student. the work of maintaining the record of students manually is a time consuming job and it may also lead to serious mistakes. Keeping in mind the importance ofpatient records our system "HOSPTIAL MANAGEMENT" the job very fast, efficient and accurate makes
WINDOWS 98 :Windows 98 is an operating system, that provide the high level security, because security in windows 98 is assigned on a pur user rather then a per recourse basis, a user need to remember only single windows 98 user account name and password to log on and use local and network resources. With windows 98 security, all resources and action are protected by discretionary access control, meaning that some user can be permitted access to resource or perform an action, while other user can be prevented from accessing the same resource or action security is very flexible for example: different permission for different. User can be set on different files in a directory. Windows 98 security applies both to user working at the computer where the resource is located and to user accessing the resource over the net work. For windows 98, the basic unit of security and ce 98 realized administration is the domain. A domain name is collection of computer that recognized a common security account database. Four type of computer participate in domain security. Primary domain controllers (pdcs) , backup domain controllers (bdcs) , servers, and workstations. Each domain has one pdc , which maintains the security account database for the domain's domain can heal any number of bdcs.each bdc receive a copy of domain security accounts database and assists the pdc by sharing the load of authenticating. Domain logins. Pdc and computer always run the Windows NT server operating system.
MS-ACCESS: Microsoft access is rdbms package is used create the database, table, reports. Microsoft access Provide an environment to run the query. This is used as background of the vb. This is used to store large volume of data.
CONTENTS OF TABLE
1. INTRODUCATION 2. ACKNOWLEDGMENT 3. SELF CERTIFICATTE 4. CERTIFICATE 5. WINDOWS 98 AND MS-ACCESS 6. WHY VISUAL BASIC 6.0 USED 7. H/W & S/W SPECIFICATION 8. DATA FLOW DIAGRAM 9. OUTPUT FORMAT 10.SOURCE CODE 11.CONCLUSION
SOURCE CODE
Private Sub Text1_KeyPress(KeyAscii As Integer) On Error Resume Next On Error Resume Next If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0 End If End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) On Error Resume Next On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If
End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer) On Error Resume Next On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub Private Sub Text5_KeyPress(KeyAscii As Integer) On Error Resume Next 'On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub Private Sub Text6_KeyPress(KeyAscii As Integer) On Error Resume Next
If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0 End If End Sub Private Sub Text7_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0 End If End Sub
Dim S As String Private Sub Command1_Click() Adodc1.Recordset.AddNew End Sub Private Sub Command2_Click() Adodc1.Recordset.Update End Sub Private Sub Command3_Click() Adodc1.Recordset.Delete End Sub Private Sub Command4_Click() S = InputBox("ENTER STAFF ID") Adodc1.Recordset.Find "Registration_no=" & S End Sub Private Sub Command5_Click() If Adodc1.Recordset.BOF Then Adodc1.Recordset.MoveFirst End If Adodc1.Recordset.MoveFirst End Sub Private Sub Command6_Click() If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst Else Adodc1.Recordset.MovePrevious End If End Sub Private Sub Command7_Click() If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast Else Adodc1.Recordset.MoveNext End If End Sub Private Sub Command8_Click() If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Adodc1.Recordset.MoveLast End Sub Private Sub Text1_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then
Private Sub Text10_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub Private Sub Text11_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0 End If End Sub
Private Sub Text12_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0 End If End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub Private Sub Text3_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0 End If End Sub Private Sub Text5_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub Private Sub Text6_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0
End If End Sub Private Sub Text7_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub Private Sub Text9_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub
Dim I As Integer Private Sub Form_Load() On Error Resume Next I=0 'Adodc1.Recordset.MoveFirst For I = 0 To Adodc1.Recordset.Fields.Count - 1 Combo1.AddItem (Adodc1.Recordset.Fields(I).Name) Combo3.AddItem (Adodc1.Recordset.Fields(I).Name) 'I = I + 1 'Adodc1.Recordset.MoveNext Next I End Sub Private Sub Text1_Change() On Error Resume Next Adodc1.CommandType = adCmdText Adodc1.RecordSource = "SELECT * FROM rogi WHERE " & Trim(Combo1.Text) & " LIKE'" & Trim(Text1.Text) & "%'" 'Adodc1.RecordSource = "select * from rogi where name like'm%'" Adodc1.Refresh End Sub
Private Sub Text2_Change() On Error Resume Next Adodc1.CommandType = adCmdText Adodc1.RecordSource = "SELECT * FROM rogi WHERE " & Trim(Combo1.Text) & " LIKE'" & Trim(Text1.Text) & "%' " & Trim(Combo2.Text) & " " & Trim(Combo3.Text) & " like'" & Trim(Text2.Text) & "%'" 'Adodc1.RecordSource = "select * from rogi where name like'm%'" Adodc1.Refresh End Sub Dim I As Integer Private Sub Form_Load() On Error Resume Next I=0 'Adodc1.Recordset.MoveFirst For I = 0 To Adodc1.Recordset.Fields.Count - 1 Combo1.AddItem (Adodc1.Recordset.Fields(I).Name) Combo3.AddItem (Adodc1.Recordset.Fields(I).Name) 'I = I + 1 'Adodc1.Recordset.MoveNext
Next I End Sub Private Sub Text1_Change() On Error Resume Next Adodc1.CommandType = adCmdText Adodc1.RecordSource = "SELECT * FROM STAFF WHERE " & Combo1.Text & " LIKE'" & Text1.Text & "%'" 'Adodc1.RecordSource = "select * from rogi where name like'm%'" Adodc1.Refresh End Sub Private Sub Text2_Change() On Error Resume Next Adodc1.CommandType = adCmdText Adodc1.RecordSource = "SELECT * FROM STAFF WHERE " & Combo1.Text & " LIKE'" & Text1.Text & "%' " & Combo2.Text & " " & Combo3.Text & " like'" & Text2.Text & "%'" 'Adodc1.RecordSource = "select * from rogi where name like'm%'" Adodc1.Refresh End Sub
Dim I As Integer Private Sub Form_Load() On Error Resume Next I=0 'Adodc1.Recordset.MoveFirst For I = 0 To Adodc1.Recordset.Fields.Count - 1 Combo1.AddItem (Adodc1.Recordset.Fields(I).Name) Combo3.AddItem (Adodc1.Recordset.Fields(I).Name) 'I = I + 1 'Adodc1.Recordset.MoveNext Next I End Sub Private Sub Text1_Change() On Error Resume Next Adodc1.CommandType = adCmdText Adodc1.RecordSource = "SELECT * FROM ADMIT WHERE " & Combo1.Text & " LIKE'" & Text1.Text & "%'" 'Adodc1.RecordSource = "select * from rogi where name like'm%'" Adodc1.Refresh End Sub
Private Sub Text2_Change() On Error Resume Next Adodc1.CommandType = adCmdText Adodc1.RecordSource = "SELECT * FROM ADMIT WHERE " & Combo1.Text & " LIKE'" & Text1.Text & "%' " & Combo2.Text & " " & Combo3.Text & " like'" & Text2.Text & "%'" 'Adodc1.RecordSource = "select * from rogi where name like'm%'" Adodc1.Refresh End Sub
Private Sub Command1_Click() On Error Resume Next DataReport2.Show End Sub Private Sub Command2_Click() On Error Resume Next DataReport5.Show End Sub Private Sub Form_Load() 'Adodc1.Recordset.MoveFirst Adodc1.Recordset.MoveFirst Do Until Adodc1.Recordset.EOF Combo1.AddItem Adodc1.Recordset.Fields(0).Value Adodc1.Recordset.MoveNext Loop Adodc2.Recordset.MoveFirst Do Until Adodc2.Recordset.EOF Combo2.AddItem Adodc2.Recordset.Fields(0).Value Adodc2.Recordset.MoveNext Loop End Sub Private Sub Text1_KeyPress(KeyAscii As Integer) On Error Resume Next
If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0 End If End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0 End If End Sub Private Sub Command2_Click() On Error Resume Next Adodc1.Recordset.Fields(1) = Text1 Adodc1.Recordset.Fields(2) = Text2 Adodc1.Recordset.Update Adodc1.Refresh
MsgBox "user created" Unload Me End Sub Private Sub Form_Load() Text1.Enabled = False Text2.Enabled = False End Sub Private Sub NE_Click() On Error Resume Next Text1.Enabled = True Text2.Enabled = True Adodc1.Recordset.AddNew End Sub
Option Explicit Private Sub Form_KeyPress(KeyAscii As Integer) Unload Me End Sub Private Sub Form_Load() 'lblVersion.Caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision 'lblProductName.Caption = App.Title End Sub Private Sub Frame1_Click() Unload Me login.Show End Sub
Dim S As String Private Sub cmddel_Click() Adodc1.Recordset.Delete End Sub Private Sub cmdedit_Click() 'Adodc1.Recordset.EditMode End Sub Private Sub cmdnew_Click() On Error Resume Next Adodc1.Recordset.AddNew End Sub Private Sub Command2_Click() If Adodc1.Recordset.BOF Then Adodc1.Recordset.MoveFirst End If Adodc1.Recordset.MoveFirst End Sub Private Sub Command3_Click() If Adodc1.Recordset.BOF Then Adodc1.Recordset.MoveFirst Else Adodc1.Recordset.MovePrevious End If
End Sub Private Sub Command4_Click() If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast Else Adodc1.Recordset.MoveNext End If End Sub Private Sub Command5_Click() If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Adodc1.Recordset.MoveLast End Sub Private Sub cmdsave_Click() On Error Resume Next Adodc1.Recordset.Update End Sub Private Sub cmdtour_Click() Form1.Show End Sub Private Sub Command1_Click()
S = InputBox("enter reg nommber") Adodc1.Recordset.Find "Registration_no=" & S End Sub Private Sub Text1_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0 End If End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub Private Sub Text3_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If
End Sub Private Sub Text4_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0 End If End Sub Private Sub Text5_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub Private Sub Text6_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub Private Sub Text7_KeyPress(KeyAscii As Integer)
On Error Resume Next If (KeyAscii < Asc("0") Or KeyAscii > Asc("9")) Then Else KeyAscii = 0 End If End Sub Private Sub Text8_KeyPress(KeyAscii As Integer) On Error Resume Next If (KeyAscii < Asc("a") Or KeyAscii > Asc("z")) And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z")) Then Else KeyAscii = 0 End If End Sub Private Sub Timer1_Timer() On Error Resume Next Label7.Caption = Date Label9.Caption = Time End Sub