Medicalshop Manegment System: Sreenath.M REG - NO. 15P22J0380
Medicalshop Manegment System: Sreenath.M REG - NO. 15P22J0380
MEDICALSHOP MANEGMENT
SYSTEM
A PROJECT REPORT
Submitted by
SREENATH.M
REG.NO. 15P22J0380
MANNARKKAD – 678582.
1
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
MANNARKKAD – 678582.
PROJECT WORK
JULY - 2018
SREENATH.M
2
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
BONAFIDE CERTIFICATE
the bonafide work of SREENATH.M (15P22J0380) who carried out the work under my
supervision. Certified further that to the best of my knowledge the work reported herein
does not form part of any other thesis or dissertation on the basis of which a degree or
3
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
DECLARATION
I affirm that the project work titled “MEDICALSHOP MANAGEMENT SYSTEM” being
submitted in partial fulfillment for the award of Bachelor of Computer Applications is the original
work carried out by me. It has not formed the part of any other project work submitted for award of
any degree or diploma, either in this or any other University.
SREENATH.M
15P22J0380
Ms. SURYA.S
Assistant Professor /BCA
4
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
ACKNOWLEDGEMENT
I would like to express my gratitude to Mr. K D Devikumar, MA,M Ed, Principal, Seedac College
of Arts and Science, Mannarkkad for giving me an opportunity and facility to complete this project.
I am thankful to the management and Process Coordinator of Onix technology, Malappuram and
all the staffs who gave me necessary details and extended all facilities to complete the Project.
I am also thankful to my family members, friends and all other well-wishers who have helped me in
completing the Project.
SREENATH.M
5
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
CONTENT
ABSTRACT
1 INTRODUCTION
2 SYSTEM SPECIFICATIONS
3 SYSTEM STUDY
4.1 Introduction
6
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
5.1 Introduction
6.1 Conclusion
7 APPENDIX
8 BIBLIOGRAPHY
7
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
ABSTRACT
8
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
ABSTRACT
This system maintains the details about medicals, sales and purchase of the medicine. It also
provides a facility to store and retrieve details about customers and suppliers effectively and
quickly.
This project stores the supplier details, purchase details, employee details, item details, sales
details, customer details and salary details. Each forms are included, insert, update, delete and exit
activities are made.
9
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
INTRODUCTION
10
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
1. INTRODUCTION
1.1 ORGANIZATION PROFILE
Apple Pharmacies are an award winning chain of privately run community pharmacies
based in and around Glasgow, Edinburgh, Dundee & Falkirk.
Our retailing experience, customer-focused service and brand values make us the preferred
partner for it medicine needs. The ethos of the company is to stay loyal to their customer base,
making available all the latest in pharmaceutical advances.
We are here to serve our customers and bring healthcare to them. We employ highly
trained and motivated staff who realize that modern day pharmacy extends beyond just a supply
and dispense function to a more healthcare-based service, making pharmacists and their staff full
members of the healthcare team".
This system maintains the details about medicals, sales and purchase of the medicine. It also
provides a facility to store and retrieve details about customers and suppliers effectively and
quickly.
This project stores the supplier details, purchase details, employee details, item details, sales
details, customer details and salary details. Each forms are included, insert, update, delete and exit
activities are made.
11
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
MODULE DESCRIPTION
INWARD MODULE
The inward module shows about the details of Supplier information, purchase information,
medicine information etc., This module includes the details of the purchase id, supplier code, item id,
ordered date, delivered date, item quantity, item price and total price.
SALES MODULE
The sales module contains details about sales such as the medical shop can be maintaining the
medicine to sales for customers. This module includes the details of the sales number, customer code,
item id, quantity, item price and total amount
12
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
SYSTEM SPECIFICATIONS
13
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
2. SYSTEM SPECIFICATIONS
System : SONY
Processor : Pentium IV
RAM : 512MB
Mouse : Zebronic
The system is developed using Visual Basic. NET, which is a very popular Microsoft
Product developed by Microsoft Corporation. This is one of the improved languages from basic
language. Visual basic.NET, includes a variety of open active controls for user interfaces to design
application form
VB.NET is the multiple document inter face format (MDI).The user interface is the part of
the program that responds to the key press and mouse clicks. The action is referred to as events of
the form and controls in the form. VB.NET provides vast properties and methods for each control,
which helps to utilize all those, functions for record manipulations
Menu driven is one of the most effective controls in the VB.NET. In this menu driven the
menu names in a program appear in the menu bar when the user selects a menu, that menu open.
Each menu usually contains items arranged in a vertical list. These items are often grouped into
functional groups with menu separators.
14
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
The .NET framework is a new computing platform that simplifies application development
in the highly distributed environment of the internet. To provide a consistent object–oriented
programming environment whether object code is stored and executed locally, but internet-
distributed, or executed remotely.
The common language runtime is the foundation of the .NET framework .we can think of
the runtime as an agent that manages code at execution time, providing core services such as
memory management and thread management while also enforcing strict type safety and other
forms of code accuracy that ensure security and robustness
Internet Explorer is an example of an unmanaged application that runtime (in the form of a
mime type extension).Using internet explorer to host the runtime enables it to embed managed
components or windows from controls in the HTML document
15
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
In addition, third–party components can integrate seamlessly with classes in the .NET
framework .for example, the .NET framework collection classes implement a set of interfaces that it
can use to develop it own collection classes. Collection classes will blend seamlessly with the
classes in the .NET framework. One can use the .NET framework to develop the following types of
application and services.
Console application
Scripted and hosted application
Windows GUI application (windows forms)
VB.NET application
XML web services
It makes use of the graphical user interface for creating powerful applications, which enables
the user to interact easily within an application
VB.NET provides many aspects such as easier comprehension, user friendliness and faster
application development, which help the developer to design the application more effectively
VB.NET provides the facilities such as log in dialog form, browser form, query form, option
dialog form and wizard from which enable the developer design the application more effectively
16
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
Internet Integration
The SQL Server 2005 database engine includes integrated XML support. It also has the
scalability, availability, and security features required to operate as the data storage
component of the largest Web sites. The SQL Server 2005 programming model is integrated
with the Windows DNA architecture for developing Web applications
The SQL Server 2005 relational database engine supports the features required to support
demanding data processing environments. The database engine protects data integrity while
minimizing the overhead of managing thousands of users concurrently modifying the
database. SQL Server 2005 includes a set of administrative and development tools that
improve upon the process of installing, deploying, managing, and using SQL Server across
several sites.
17
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
SYSTEM STUDY
18
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
3. SYSTEM STUDY
3.1 EXISTING SYSTEM
In this phase the existing system has been studied and the problem is identified. Further
solutions are analyzed and the best solution has been selected after the analysis. The existing system
is manual system. The details about the Purchase, Sales and Stock, details are entered in the
separate registers.
Proposed system is a computerized system developed using front end tool and forms. All the
record manipulations and processing details are performed in the system and displayed in the screen
immediately. That helps the user to make data entry easily and very accurately.
Enables the user to get the required output at any given time
Any details regarding the business can be viewed immediately
Provides the user friendly reports that help the management to increase the sales
It reduces manual work burden
Better maintainability
Easily adopt with all users
Best reporting system than the manual one
Restrict unauthorized users from accessibility
19
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
20
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
4.1 INTRODUCTION
Study phase activities are reviewed and the proposed system is discussed about which
functions are to be performed by the software, hardware and human ware. Finally, the generalized
system explained to the management for approval.
When a data is to be entered, the input data is validated. If the data is invalid, then the error
message will be displayed on the screen. For example the hosteller variety code has a size as text of
ten if we type extra characters it displays an error message.
Input design is the process of converting the external user oriented description into a
machine read form. The objectives of the input designs are,
Supplier
This table includes the details of the supplier code, supplier name, supplier address, phone
number and email id.
Employee
It contains the details of the employee name, employee code, date of joining, address, mobile
number and email id.
Customer
The customer table includes the details of the customer code, customer name, gender, address,
contact number and email id.
Medicine
It contains the details of the medicine id, medicine quantity, price, stock level and reordered level.
Purchase
It includes the details of the purchase id, supplier code, item id, ordered date, delivered date, item
quantity, item price and total price.
21
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
Sales
This sales table includes the details of the sales number, customer code, item id, quantity, item
price and total amount.
Stock
It contains the details of the stock code, item name, item quantity.
23
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
24
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
25
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
26
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
Supplier sup_code
99XX99
Example:
Supplier sup_code
18SP01
27
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
Customer cus_code
99XX99
Example:
Customer cus_code
18CS01
Employee emp_code
99XX99
28
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
Example:
Employee emp_code
18MN01
Medicine medicine_id
99XX99
Example:
Medicine medicine_id
18IT01
29
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
Stock stock_id
99XX99
Example:
Stock stock_id
18PR01
30
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
The basic objective of any information system is to produce the desired out put in a
specified manner for the end user. As for as the end user is concerned most of them do not interact
with the system for data input or operate it, but will receive the information that it gives. For output
design the following the considerations are taken in to account. The output design should be in an
unambiguous way such that complexity should be avoided and completeness should be
incorporated.
The output is designed in terms of data content and approximate lay out. The information
required by the management is also taken in to consideration. The outputs are the most important
and direct source of information to the user. A well-designed output greatly increases the system’s
relationship with the user and help in decision-making.
The report contain the overall details of the all the process reports to be generated in
daily, monthly and process wise for the following,
CUSTOMER REPORT
The customer report contains the personal details of the customer stored in the system.
SUPPLIER REPORT
The supplier report contains the details of the suppliers stored in the system.
PURCHASE REPORT
The purchase report contains the details of the product purchase from the supplier stored in
the system.
STOCK REPORT
The stock report contains the details of the stock details such as stock id, item name, item
quantity.
31
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
32
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
5.1. INTRODUCTION
The system which is newly designed is tested with the sample data, final outputs are
verified with the actual manual reports of the existing system. If their reports are satisfied then
the system is put to process.
System testing makes a logical assumption that if all the parts of the system are correct,
the goal will be successfully achieved. The user is responsible for the supply of the input data and
for participating in the evaluation of the system test results.
It involves the process of evaluating the existing system and procedural analysis of alternative
candidate system with the cost effectiveness. Analysis, It is the process of evaluating the present
system and it encounters the data collection process too. Design, It involves the process of general
design specification and detailed design too. Program construction includes the system development
methodology and various constraint regarding the system development and tested with the
discovering undetectable errors. Implementation, It is the process of providing the training to the
user and the user manual.
33
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
After each program passes its own test, it is linkage to the other programs is scrutinized
with a program integration test. This ensures that the program work together as intended. Before
the implementation phase the designed system should be tested with raw data to ensure that all
modules of the system work correctly and satisfactorily. If some bug is found they can be removed
before the implementation phase. The testing has the four kind of testing that is as follows.
Testing Methodologies
Validation Testing
Unit Testing
Validation Testing
If Textbox4.textlength = 11 then
Else
Textbox4.textmatch = a – z or A – Z then
End if
34
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
Unit Testing
Unit testing focuses on the verification of smallest unit of software design of the module. To
check whether each module in the software works properly so that it gives desired outputs to the
given inputs. All validations and conditions are tested in the module level in unit test. Control paths
are tested to ensure the information properly flows into and out of the program unit under test.
Boundary condition are tested to ensure that the modules operates at boundary establishes to restrict
processing. All independent paths through control structure are exercised to ensure that all
statements in a module have been executed at least once. And finally all errors handling paths are
tested. In our system, Unit testing has been successfully handled. The test data was given to each
module in all respects and have got desired output.
Black Box Testing methods focus on the functional requirements of the software. This
testing enables the software engineer to derive sets of input conditions that will fully exercise all
functional requirements for a program. These testing attempts to find errors in the following
categories: incorrect or missing functions, interface errors, errors in data structure or external
database access, performance errors and initialization errors and termination errors. In our system,
Black Box testing has been successfully handled. The test input data was given has got desired
output.
35
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
White box testing, sometimes called glass-box testing is a test case design method that uses
the control structure of the procedural design to derive test cases. Using white box testing methods,
the software engineer can derive test cases.
Guarantee that all independent paths within a module have exercised at least once.
Exercise all logical decisions on their true and false sides.
Execute all loops at their boundaries and within their operational bounds.
Exercise internal data structures to ensure their validity.
System security refers to the technical innovations and procedure applied to the hardware
and operating system to protect against celebrates or accidental damages from a defined thread.
According to the level of security provided only valid users can sign on in to the system and
available, the allowed resources. In addition, adequate security features are embedded in to the
system in order to the restrict the usage of modules by the user, are given security.
36
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
SYSTEM TESTING
System testing is a kind of testing conducted to ensure that the software works correctly in the
user work environment. Also, it is concerned with finding errors that result from unanticipated
interactions between sub-system and system components test is conducted over a period of
weeks or months.
Alpha Test: Alpha test refers to the system test carried out by the test team with in the
development organization under the supervision of the developer.
Beta Test: Beta test is the system testing performed by a selected group of friendly
customers. It is conducted at the customer’s site.
Acceptance Test: Acceptance test is the system testing performed by the customer to
determine whether to accept or to reject the delivery of the system.
37
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
38
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
6.1 CONCLUSION
Future change in the environment or processing can be easily adopted by making slight
alteration in coding. At present this system is produced several reports. This can be increased to
generate more number of reports by incorporating few more programs. Recommendations and
suggestions have been given to the organization for further enrichment of this system. The
proposed system has got very good scope so as it can be made to all branches and inter connected.
It can also be developed in later stage as online.
39
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
APPENDIX
40
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
Level 0:
Login Request
Login USER
Admin
Authentication
Login Fail Response
Level 1:
Purchase Details
Supplier
Medicine
details
Details
Purchase
Medicine
Supplier Process
Stock
Stock Details
Employee
Details
Customer
Sales Details
Details
41
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
Login
False
Validation
True
Process
Report
42
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
med_id
supplier Sup_code
Date _mobile
supplier_ total_amt
name date
supplier_email amt_payed
supplier_ pur_code
code amt_balance
cus_name Sales
cus_email med_id
Cus_code
med_name
Date
med_price
bill_number
Sales tot_amt
Selling
Process
emp_addr emp_gender
emp_phone
emp_name
emp_code emp_email
Employee Stock
type
quantity
name
Stock
43
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
44
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
45
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
46
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
47
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
48
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
49
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
50
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
51
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
52
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
53
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
54
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
55
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
56
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
57
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
58
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
SAMPLE CODINGS
Imports System.Text.RegularExpressions
Imports System.Data.Sql
Imports System.Data.SqlClient
Imports System.Data.DataRow
Public Class Customer
Dim con As New SqlConnection
Dim dr As SqlDataReader
Dim ds As New DataSet
Dim dt As New DataTable
Dim da As New SqlDataAdapter
Dim cmd As New SqlCommand
Dim query As String = ""
Dim gen As String
Dim constr As String = "Data Source=.\SQLEXPRESS;Initial Catalog=medical;Integrated
Security=True"
Dim i As Integer
Dim s, g As String
Private Sub newdata()
con = New SqlConnection(constr)
con.Open()
cmd = New SqlCommand("select * from customer", con)
da = New SqlDataAdapter(cmd)
ds = New DataSet
da.Fill(ds, "customer")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "customer"
con.Close()
End Sub
Private Sub Customer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.WindowState = FormWindowState.Maximized
newdata()
59
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Try
If RadioButton1.Checked = True Then
gen = "Male"
Else
gen = "Female"
End If
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox4.Text =
"" Or TextBox5.Text = "" Then
MsgBox("Fill All Details")
ElseIf TextBox4.TextLength = 11 Then
MsgBox("Mobile Number Not Valid")
Else
con = New SqlConnection(constr)
query = "insert into customer values('" + TextBox1.Text.ToString.ToUpper + "','" +
(TextBox2.Text.ToString).ToUpper() + "','" + gen + "','" + TextBox3.Text.ToString + "','" +
TextBox4.Text.ToString + "','" + TextBox5.Text.ToString + "')"
cmd = New SqlCommand(query, con)
con.Open()
cmd.ExecuteNonQuery()
MessageBox.Show("Saved Successfully")
con.Close()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox5.Text = ""
TextBox4.Text = ""
TextBox3.Text = ""
newdata()
End If
Catch ex As Exception
MsgBox("Customer Code Already Exists")
60
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
End Try
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button5.Click
If RadioButton1.Checked = True Then
gen = "Male"
Else
gen = "Female"
End If
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or TextBox4.Text = ""
Or TextBox5.Text = "" Then
MsgBox("Fill All Details")
ElseIf TextBox4.TextLength = 11 Then
MsgBox("Mobile Number Not Valid")
Else
con = New SqlConnection(constr)
query = "update customer set cus_name='" + (TextBox2.Text.ToString).ToUpper() +
"',cus_gen='" + gen + "',cus_address='" + TextBox3.Text.ToString + "',cus_mob='" +
TextBox4.Text.ToString + "',cus_email='" + TextBox5.Text.ToString + "' where cus_code='" +
TextBox1.Text.ToString + "'"
cmd = New SqlCommand(query, con)
con.Open()
cmd.ExecuteNonQuery()
MessageBox.Show("Updated Successfully")
con.Close()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox5.Text = ""
TextBox4.Text = ""
TextBox3.Text = ""
newdata()
61
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
End If
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button4.Click
62
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
Imports System.Text.RegularExpressions
Imports System.Data.Sql
Imports System.Data.SqlClient
Imports System.Data.DataRow
Public Class Purchase
Dim con As New SqlConnection
Dim dr As SqlDataReader
Dim ds As New DataSet
Dim dt As New DataTable
Dim da As New SqlDataAdapter
63
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
64
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
65
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
66
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
67
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
68
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
End Sub
69
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
dt.Columns.Add("sup_code", GetType(String))
dt.Columns.Add("item_id", GetType(String))
dt.Columns.Add("item_quan", GetType(String))
dt.Columns.Add("item_price", GetType(String))
dt.Columns.Add("tot_amt", GetType(String))
dt.Columns.Add("amt_pay", GetType(String))
dt.Columns.Add("bal_amt", GetType(String))
Dim obj(8) As Object
While (dr.Read)
dr.GetValues(obj)
dt.Rows.Add(obj)
End While
ds.Tables.Add(dt)
Dim r As Integer = 0
If ds.Tables(0).Rows.Count > 0 Then
For Each dt In ds.Tables
For Each obj(8) In dt.Rows
TextBox1.Text = ds.Tables(0).Rows(r)(0).ToString
DateTimePicker1.Value = ds.Tables(0).Rows(r)(1).ToString
ComboBox1.Text = ds.Tables(0).Rows(r)(2).ToString
ComboBox2.Text = ds.Tables(0).Rows(r)(3).ToString
TextBox2.Text = ds.Tables(0).Rows(r)(4).ToString
TextBox3.Text = ds.Tables(0).Rows(r)(5).ToString
TextBox4.Text = ds.Tables(0).Rows(r)(6).ToString
TextBox5.Text = ds.Tables(0).Rows(r)(7).ToString
TextBox6.Text = ds.Tables(0).Rows(r)(8).ToString
r += 1
Next
Next
con.Close()
Else
MsgBox("Record Not Found")
End If
70
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
Catch ex As Exception
MsgBox("Record Not Found")
End Try
End Sub
71
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
BIBILIOGRAPHY
72
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM
BIBLIOGRAPHY
REFERENCES
1. Jeffrey R. Shapiro, (2002) “Visual Basic .NET: The Complete Reference”, McGraw-Hill/Osborne, Second
Edition, ISBN: 0072133813
2. Bill Evjen, Billy Hollis, Rockford Lhotka, Tim Mcart, (17 June 2004) “Professional VB.Net 2003”, 2nd
Edition , Wiley India Pvt Ltd, ISBN: 8126505303
3. Shirish Chavan, (2004) “Visual Basic .NET”, Pearson Education; First edition ISBN: 8131713911
4. Gunderloy, Jorden, Tschanz, (2009) “Mastering Microsoft SQL Server 2005”, Wiley India Pvt Ltd, Third
Edition, ISBN: 8126507829
5. Paul Turley, Dan Wood, (2008) “Beginning T-SQL with Microsoft SQL Server 2005 and 2008”, Second
Edition ISBN: 047044049X
6. Ghezzi Carlo, Jazayeri Mehdi, Mandrioli Dino (2004) “Fundamentals of Software Engineering”, First
Edition, ISBN: 8120322428
ONLINE REFERENCES
1. http://stackoverflow.com/questions/20201537/connecting-to-a-sql-server-database-using-vb-net
2. http://www.codeproject.com/questions/319984/how-to-connect-to-sql-server-using-code-in-vb-net
3. http://vb.net-informations.com/dataadapter/dataadapter-insertcommand-sqlserver.htm
4. http://support.microsoft.com/en-us/kb/308055
73
BHARATHIAR UNIVERSITY SCAS MANNARKKAD