0% found this document useful (0 votes)
128 views73 pages

Medicalshop Manegment System: Sreenath.M REG - NO. 15P22J0380

Uploaded by

Akshay das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
128 views73 pages

Medicalshop Manegment System: Sreenath.M REG - NO. 15P22J0380

Uploaded by

Akshay das
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 73

PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

MEDICALSHOP MANEGMENT
SYSTEM

A PROJECT REPORT

Submitted by

SREENATH.M
REG.NO. 15P22J0380

Under the guidance of


Ms. Surya.S

in partial fulfilment for the award of the degree of

BACHELOR OF COMPUTER APPLICATION


IN
DEPARTMENT OF COMPUTER APPLICATIONS
SEEDAC COLLEGE OF ARTS AND SCIENCE

MANNARKKAD – 678582.

BHARATHIAR UNIVERSITY : COIMBATORE 641046


JULY- 2018

1
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

SEEDAC COLLEGE OF ARTS AND SCIENCE

MANNARKKAD – 678582.

Department of Computer Applications

PROJECT WORK

JULY - 2018

This is to certify that the project entitled

MEDICALSHOP MANAGEMENT SYSTEM

is the bonafide record of project work done by

SREENATH.M

Register No: 15P22J0380

of BCA during the year 2015-2018.

Submitted for the Project Viva-Voce examination held on _____________ .

Internal Examiner ExternalExaminer

2
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

BHARATHIAR UNIVERSITY, COIMBATORE

BONAFIDE CERTIFICATE

Certified that this Report titled “MEDICALSHOP MANAGEMENT SYSTEM” is

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

award was conferred on an earlier occasion on this or any other candidate.

Mr. Devikumar KD Ms. Surya S


Principal Assistant Professor - BCA
Seedac College of Arts and Science Seedac College of Arts and
Mannarkad 678582 Science

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

I certify that the declaration made above by the candidate is true

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 express heartfelt thanks to my Head of the Department Ms Surya S, BSc,MCA, Assistant


Professor/BCA, Seedac College of Arts and Science, Mannarkkad for her energetic encouragement.

I render my sincere gratitude to my Project Guide Mrs. Anjana V T,BSc,MCA Assistant


Professor/BCA, for the full hearted help and encouragement throughout this project.

I am extremely grateful to my beloved teacher, Ms Reshma P, BSc,MCA Assistant


Professor/BCA, SCAS and all other staffs of Department of Computer Applications for their
constant motivation and valuable help throughout the 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

CHAPTER NO TITLE PAGE NO

ABSTRACT
1 INTRODUCTION

1.1 Project Overview


1.2 Organization profile

2 SYSTEM SPECIFICATIONS

2.1 Hardware configuration

2.2 Software configuration

2.3 About the software

3 SYSTEM STUDY

3.1 Existing System

3.1.1 Drawback of the Existing System

3.2 Proposed System

3.2.1 Advantages of the Proposed System

4 SYSTEM DESIGN AND DEVELOPMENT

4.1 Introduction

4.2 Input Design

6
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

4.3 Table Design

4.4 Code Design

4.5 Output Design

5 SYSTEM TESTING AND IMPLEMENTATION

5.1 Introduction

5.2 System Development

5.3 System Testing

5.4 System Security

5.2 System Maintenance

6 CONCLUSION AND FUTURE ENHANCEMENT

6.1 Conclusion

6.2 Future Enhancement

7 APPENDIX

7.1 Data Flow Diagram

7.2 System Flow Diagram

7.3 Entity Relationship Diagram

7.4 Sample screenshot and code

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 project entitled as “MEDICAL SHOP MANAGEMENT SYSTEM” is to computerize


the activities of a medicine. This project is being implemented in “Apple Pharmacy” Pollachi. The
project is developed using VB.NET 2008 as the front end and SQL server 2005 as the backend.

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".

1.2 OVERVIEW OF THE PROJECT

This project entitled as “MEDICAL SHOP MANAGEMENT SYSTEM” is to computerize


the activities of a medicine. This project is being implemented in “Apple Pharmacy” Pollachi. The
project is developed using VB.NET 2008 as the front end and SQL server 2005 as the backend.

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

2.1 HARDWARE SPECIFICATION

System : SONY

Processor : Pentium IV

RAM : 512MB

Hard Disk Capacity : 80GB

Keyboard : 104 Keys

Mouse : Zebronic

Monitor : Samsung 17” Color

Printer : HP Laser Jet

2.2 SOFTWARE SPECIFICATION

Operating System : Windows XP

Front end : Visual Basic.Net 2005

Back end : SQL Server 2008

2.3 ABOUT THE SOFTWARE

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

Overview of .NET Framework

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.

 To provide a code execution environment that minimizes software deployment and


versioning conflict
 To provide a 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 problems of
scripted or interpreted environments
 To make the developer experience consist ant across widely varying types of applications,
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

Common Language Runtime (CLR)

 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

The Components Of CLR Are:

 CTS =>Common Type System


 CLS =>Common Language Specification
 CLS =>Common Language Specification
 CIL =>Common Intermediate Language
 JIT =>Just In Time Compiler

15
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

 .NET Framework Class Library


 The .NET framework library is a collection of reused types that tightly
with the common language runtime (CLR). The class library is object-oriented,
providing type from which its own managed code can derive functionality.
Managed codes are intermediate language codes along with metadata contained in
portable executable (PE) files. This not only makes the .NET framework type easy
to use, but also reduces the associated with learning new features of the .NET
framework

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

SPECIAL FEATURES IN VB.NET

 VB.NET is an ideal programming language for developing sophisticated professional


application for Microsoft windows

 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

FEATURES OF SQL SERVER 2005

 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

 Scalability and Availability


The same database engine can be used across platforms ranging from laptop computers
running Microsoft Windows® 98 through large, multiprocessor servers running Microsoft
Windows 2005 Data Center Edition. SQL Server 2005 Enterprise Edition supports features
such as federated servers, indexed views, and large memory support that allow it to scale to
the performance levels required by the largest Web sites

 Enterprise-Level Database Features

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.

3.1.1 DRAWBACKS OF EXISTING SYSTEM

 As it is done lack of time


 Customer time is wasted during calculating and preparing bill
 Lack of security
 Lack of accuracy
 Requires high Maintenance

3.2 PROPOSED SYSTEM

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.

3.2.1 ADVANTAGES OF PROPOSED SYSTEM

 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

SYSTEM DESIGN AND


DEVELOPMENT

20
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

4. SYSTEM DESIGN AND DEVELOPMENT

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.

4.2 INPUT DESIGN

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.

4.3 TABLE DESIGN

Table Name : Login


Primary Key : uname
Description : This table is to store the login details.

Field Name Data Type Width Constants Description

uname Varchar 15 Primary Key User Name

password Varchar 10 Not Null Password

Table 4.3.1 : Login Details

Table Name : Supplier


Primary Key : sup_code
Description : This table is to store the supplier details.

Field Name Data Type Width Constants Description

sup _code Varchar 6 Primary Key Supplier Code

sup _name Varchar 15 Not Null Supplier Name

Sup_ address Varchar MAX Not Null Supplier Address

Sup_company varchar 15 Not Null Supplier Company

Sup_ mobile Varchar 13 Not Null Supplier Mobile Number

Sup_ email Varchar 35 Not Null Supplier Email Address

Table 4.3.2 : Supplier Details

Table Name :Medicine


22
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Primary Key : medicine_id


Description : This table is to store the medicine details.

Field Name Data Type Width Constants Description

medicine_id Varchar 6 Primary Key Item_id

medicine_name Varchar 30 Not Null Item Name

medicine_type Varchar 10 Not Null Item type

medicine_quan Int 2 Not Null Item Quantity

medicine_exp date Not null Medicine expiry date

Table 4.3.3 : Item Details

Table Name : Customer


Primary Key : cus_code
Description : This table is to store the customer details.

Field Name Data Type Width Constants Description

cus_code Varchar 6 Primary Key Customer Code

cus_name Varchar 15 Not Null Customer Name

cus_gen Varchar 6 Not Null Customer Gender

cus_address Varchar MAX Not Null Customer Address

cus_mobile Varchar 13 Not Null Customer Mobile Number

cus_email Varchar 35 Not Null Customer Email Address

Table 4.3.4 : Customer Details

23
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Table Name : Purchase


Primary Key :inv_number
Foreign Key : sup_code, medicine_id
Description : This table is to store the invoice details.
Field Name Data Type Width Constants Description

inv_number Integer auto Primary key invoice Number

Date Date / Time Not Null Purchase Date

sup_code Varchar 6 Reference Key Supplier Code

medicine_id Varchar 6 Reference Key Item ID

quantity Varchar 6 Not Null Quantity

price Float 8,2 Not Null Price

total_amount Float 8,2 Not Null Total Amount

amt_payed Float 5,2 Not Null Payed Already

amt_balance Float 5,2 Not Null Balance Amount

Table 4.3.5 : Purchase Details

24
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Table Name : Employee


Primary Key : emp_code
Description : This table is to store the employee details.
Field Name Data Type Width Constants Description

emp_code Varchar 6 Primary Key Employee Code

emp_name Varchar 15 Not Null Employee Name

emp_doj Date/Time Not Null Employee Date Of Joining

emp_gender Varchar 6 Not Null Employee Gender

emp_address Varchar MAX Not Null Employee Address

emp_mobile Varchar 13 Not Null Employee Mobile Number

emp_email Varchar 35 Not Null Employee Email address

emp_sal float 6,2 Not null Employee salary

Table 4.3.6 : Employee Details

25
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Table Name : Sales


Primary Key : bill_number
Foreign Key : cus_code, item_id, emp_code
Description : This table is to store the bill details
Field Name Data Type Width Constants Description

bill_number varchar auto primary key sales serial number


date date / time not null sales date
cus_code varchar 6 reference key customer code
cus_name varchar 15 not null customer name
item_id varchar 6 reference key item id
item_quantity varchar 6 not null item quantity
item_price float 5,2 not null item price
total_amount float 8,2 not null total amount

emp_code varchar 6 reference key employee code

Table 4.3.7 : Sales Details


Table Name : Stock
Primary Key : stock_id
Description : This table is to store the stock details.

Field Name Data Type Width Constants Description

stock_id Varchar 6 Primary Key Stock id

name Varchar 30 Not Null Name

type Varchar 10 Not Null Type

quan Int 2 Not Null Quantity

Table 4.3.8 : Stock Details

26
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

4.4 CODE DESIGN

A code can be designed as group of character or number of alphanumeric used to identify


the grouped data item in one record. When large volume of data being handled, it is important that
items are identified easily and quickly. A code should be formed to identify an item. It should be
unique, logical and simple. The files are indexed in this system according to the data base table.

TABLE NAME : Supplier

PRIMARY KEY : sup_code

Supplier sup_code

99XX99

Number indicates the supplier code

String indicates the supplier company

Number indicates the current year

Example:

Supplier sup_code

18SP01

Number indicates the supplier code

String indicates the supplier company

Number indicates the current year

27
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

TABLE NAME : Customer

PRIMARY KEY : cus_code

Customer cus_code

99XX99

Number indicates the customer code

String indicates the customer name

Number indicates the current year

Example:

Customer cus_code

18CS01

Number indicates the customer code

String indicates the customer name

Number indicates the current year

TABLE NAME : Employee

PRIMARY KEY : emp_code

Employee emp_code

99XX99

Number indicates the employee code

String indicates the employee designation

Number indicates the year of joining

28
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Example:

Employee emp_code

18MN01

Number indicates the employee code

String indicates the employee designation

Number indicates the year of joining

TABLE NAME : Medicine

PRIMARY KEY : medicine_id

Medicine medicine_id

99XX99

Number indicates the medicine id

String indicates the medicine name

Number indicates the current year

Example:

Medicine medicine_id

18IT01

Number indicates the medicine id

String indicates the medicine name

Number indicates the current year

29
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

TABLE NAME : Stock

PRIMARY KEY : stock_id

DESCRIPTION : This key used for stock identification

Stock stock_id

99XX99

Number indicates the stock

String indicates the purchased stock

Number indicates the current year

Example:

Stock stock_id

18PR01

Number indicates the stock

String indicates the purchased stock

Number indicates the current year

30
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

4.5 OUTPUT DESIGN

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

SYSTEM TESTING AND


IMPLIMENTATION

32
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

5. SYSTEM TESTING AND IMPLEMENTATION

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.

5.2. SYSTEM DEVELOPMENT

System development is the major step in developing a system. Developing a system


involves the process of resolving the problem and improves the quality of decision making. The
system is developed with the aim of challenging task of creating new systems and to plan the major
changes in the organization.

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

5.3 SYSTEM TESTING

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

This project consist of the following testing methodologies

 Validation Testing

 Unit Testing

 Black Box Testing

 White Box Testing

Validation Testing

All the combination of integration testing software as completely assembled as a package


interfacing errors have been uncovered and corrected and a final series of software test begins.
Validation succeeds when the software functions in a manner that can be reasonable and expected
by the used.

If Textbox4.textlength = 11 then

Msgbox(“Mobile number not valid”)

Else

Textbox4.textmatch = a – z or A – Z then

Msgbox(“Characters Not Support”)

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

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

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.

5.4 SYSTEM SECURITY

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.

5.5 SYSTEM MAINTENANCE

An integral part of software is the maintenance one, which requires an accurate


maintenance plan to be prepared during the software development. It should specify how users will
request modifications or report problems. The budget should include resource and cost estimates. A
new decision should be addressed for the developing of every new system feature and its quality
objectives. The tailoring of the post delivery/deployment process, the designation of who will
provide maintenance and an estimate of the life-cycle costs.

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.

There are essentially three main kinds of system testing:

 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

CONCLUSION AND FUTURE


ENHANCEMENT

38
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

6. CONCLUSION AND FUTURE ENHANCEMENT

6.1 CONCLUSION

The newly developed system is found to be working efficiently and effectively. It is


developed with much attention over its, quality and reliability. The computerization of Apple
Pharmacy of is to reduce the workload of the management. This system over comes all problems
that are faced in the existing system. The new system makes the tasks of planning, control and
decision making easier. It helps the management to make their tasks so easily and effectively. This
system is tested and examined with the sample data for its successful processing.

6.2 FUTURE ENHANCEMENT

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

7.1DATA FLOW DIAGRAM

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 Employee


Process

Customer
Sales Details
Details

FIG A. 01: DATA FLOW DIAGRAM

41
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

7.2 SYSTEM FLOW DIAGRAM

Login

False

Validation

True

Supplier Medicine Customer Employee

Process

Purchase Sales Stock

Report

Supplier Purchase Sales Stock


Report Report Report Report

FIG B. 01: SYSTEM FLOW DIAGRAM

42
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

7.3ENTITY RELATIONSHIP DIAGRAM

med_id
supplier Sup_code
Date _mobile
supplier_ total_amt
name date
supplier_email amt_payed
supplier_ pur_code
code amt_balance

Supplier Purchase Purchase


quantity
type
cus_name cus_addr
name
expiry
cus_code cus_ph
med_id
Customer Medicine

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

FIG C. 01: ENTITY RELATIONSHIP DIAGRAM Stock_id

Stock

43
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

7.4 SAMPLE SCREENS

FIG D. 01 : LOGIN FORM

44
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig D. 03 : MDI FORM

45
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig D. 04 : MDI FORM

46
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig D. 05 : MDI FORM

47
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig D. 06 : SUPPLIER DETAILS FORM

48
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

FIG D. 07 : CUSTOMER DETAILS FORM

49
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig D. 08 : EMPLOYEE DETAILS FORM

50
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig D. 09 : MEDICINE DETAILS FORM

51
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig D. 10 : PURCHASE DETAILS FORM

52
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig D. 11 : SALES DETAILS FORM

53
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig D. 12 : STOCK DETAILS FORM

APPENDIX E : SAMPLE REPORTS

54
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig E. 01 : PURCHASE REPORT

55
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig E. 02 : CUSTOMER REPORT

56
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig E. 03 : STOCK REPORT

57
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Fig E. 04 : SALES REPORT

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

con = New SqlConnection(constr)


If TextBox1.Text = "" Then
MsgBox("Please Fill Customer Code", MsgBoxStyle.Information, "Form Input Error")
Else
query = "delete from customer where cust_code='" + TextBox1.Text.ToString + "'"
cmd = New SqlCommand(query, con)
con.Open()
cmd.ExecuteNonQuery()
MessageBox.Show("Deleted successfully")
con.Close()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
newdata()
End If
End Sub
Private Sub cusclose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles cusclose.Click
Me.Close()
MDI.Show()
End Sub
Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
Try
Dim i As Integer
i = DataGridView1.CurrentRow.Index

62
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

TextBox1.Text = DataGridView1.Item(0, i).Value


TextBox2.Text = DataGridView1.Item(1, i).Value
If DataGridView1.Item(2, i).Value = "Male" Then
RadioButton1.Checked = True
Else
RadioButton2.Checked = True
End If
TextBox3.Text = DataGridView1.Item(3, i).Value
TextBox4.Text = DataGridView1.Item(4, i).Value
TextBox5.Text = DataGridView1.Item(5, i).Value
Catch ex As Exception
MsgBox("Clicked in Empty Cloumn")
End Try
End Sub
End Class

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

Dim cmd As New SqlCommand


Dim query As String = ""
Dim gen As String
Dim constr As String = "Data Source=.\sqlexpress;Initial Catalog=jewellery;Integrated
Security=True"
Dim i As Integer
Dim s, g As String
Public Sub num()
con = New SqlConnection(constr)
query = "Select MAX(inv_num+1) from purchase"
cmd = New SqlCommand(query, con)
con.Open()
dr = cmd.ExecuteReader
While dr.Read
TextBox1.Text = dr(0).ToString()
End While
dr.Close()
con.Close()
End Sub
Private Sub newdata()
con = New SqlConnection(constr)
con.Open()
cmd = New SqlCommand("select * from purchase", con)
da = New SqlDataAdapter(cmd)
ds = New DataSet
da.Fill(ds, "purchase")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "purchase"
DataGridView1.Sort(DataGridView1.Columns(0),
System.ComponentModel.ListSortDirection.Descending)
con.Close()
End Sub
Public Sub data()

64
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

con = New SqlConnection(constr)


con.Open()
Dim da As New SqlDataAdapter("select sup_code from supplier", con)
Dim dt As New DataTable
Dim dr As DataRow
da.Fill(dt)
con.Close()
For Each dr In dt.Rows
ComboBox1.Items.Add(dr.Item(0).ToString())
Next
con = New SqlConnection(constr)
con.Open()
Dim da1 As New SqlDataAdapter("select item_id from item", con)
Dim dt1 As New DataTable
Dim dr1 As DataRow
da1.Fill(dt1)
con.Close()
For Each dr1 In dt1.Rows
ComboBox2.Items.Add(dr1.Item(0).ToString())
Next
End Sub
Private Sub purexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Me.Hide()
MDI.Show()
End Sub
Private Sub Purchase_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Me.WindowState = FormWindowState.Maximized
newdata()
data()
num()
End Sub

65
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button1.Click
Try
con = New SqlConnection(constr)
query = "insert into purchase values('" + TextBox1.Text + "','" + DateTimePicker1.Value +
"','" + ComboBox1.Text.ToString + "','" + ComboBox2.Text.ToString + "','" +
TextBox2.Text.ToString + "','" + TextBox3.Text.ToString + "','" + TextBox4.Text.ToString + "','" +
TextBox5.Text.ToString + "','" + TextBox6.Text.ToString + "')"
'Try
cmd = New SqlCommand(query, con)
con.Open() 'connection open is denote for data save to database
cmd.ExecuteNonQuery()
'Catch ex As Exception
'MessageBox.Show(ex)
' End Try
MessageBox.Show("Saved successfully") 'The Messagebox.show("Item is saved or not")
panel / the next privison for patterns is locked....
con.Close() 'connection close is denote for end of connection
newdata()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
ComboBox1.Text = ""
ComboBox2.Text = ""
Catch ex As Exception
MsgBox("Invoice Number Already Exists")
End Try
num()
End Sub

66
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button4.Click
con = New SqlConnection(constr)
If TextBox1.Text = "" Then
MsgBox("Please Fill Invoice Number", MsgBoxStyle.Information, "Form Input Error")
Else
query = "delete from purchase where inv_num='" + TextBox1.Text.ToString + "'"
cmd = New SqlCommand(query, con)
con.Open()
cmd.ExecuteNonQuery()
MessageBox.Show("Deleted successfully")
con.Close()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
ComboBox1.Text = ""
ComboBox2.Text = ""
newdata()
num()
End If
End Sub

Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As


System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
Try
Dim i As Integer
ComboBox1.Text = Nothing
ComboBox2.Text = Nothing
i = DataGridView1.CurrentRow.Index
TextBox1.Text = DataGridView1.Item(0, i).Value

67
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

DateTimePicker1.Value = DataGridView1.Item(1, i).Value


ComboBox1.SelectedText = DataGridView1.Item(2, i).Value
ComboBox2.SelectedText = DataGridView1.Item(3, i).Value
TextBox2.Text = DataGridView1.Item(4, i).Value
TextBox3.Text = DataGridView1.Item(5, i).Value
TextBox4.Text = DataGridView1.Item(6, i).Value
TextBox5.Text = DataGridView1.Item(7, i).Value
TextBox6.Text = DataGridView1.Item(8, i).Value
Catch ex As Exception
MsgBox("No Data Found, You Clicked in Empty Column")
End Try
End Sub

Private Sub TextBox4_TextChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles TextBox4.TextChanged
TextBox4.Text = Val(TextBox2.Text) * Val(TextBox3.Text)
TextBox6.Text = Val(TextBox4.Text) - Val(TextBox5.Text)
End Sub

Private Sub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles TextBox3.TextChanged
TextBox4.Text = Val(TextBox2.Text) * Val(TextBox3.Text)
End Sub

Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles TextBox2.TextChanged
TextBox4.Text = Val(TextBox2.Text) * Val(TextBox3.Text)
End Sub

Private Sub purclose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles purclose.Click
Me.Close()
MDI.Show()

68
BHARATHIAR UNIVERSITY SCAS MANNARKKAD
PROJECT REPORT MEDICALSHOP MANAGMENT SYSTEM

End Sub

Private Sub ComboBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles ComboBox2.SelectedIndexChanged
' con = New SqlConnection(constr)
' query = "Select item_price from item where item_id='" & ComboBox2.Text & "'"
' cmd = New SqlCommand(query, con)
' con.Open()
' dr = cmd.ExecuteReader
' While dr.Read
' TextBox3.Text = dr(0).ToString()
' End While
' dr.Close()
' con.Close()
End Sub

Private Sub Button3_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Button3.Click
Try
con = New SqlConnection(constr)
Dim dt As New DataTable
Dim a As String
a = InputBox("Enter the Sales Number:", "Search")
query = "select * from purchase where inv_num=" + a + ""
cmd = New SqlCommand(query, con)
con.Open()
ds.Clear()
dt.Clear()
ds = New DataSet
dr = cmd.ExecuteReader
dt.Columns.Add("inv_num", GetType(String))
dt.Columns.Add("date", GetType(String))

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

Private Sub TextBox6_TextChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles TextBox6.TextChanged
TextBox6.Text = Val(TextBox4.Text) - Val(TextBox5.Text)
End Sub

Private Sub TextBox5_TextChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles TextBox5.TextChanged
TextBox6.Text = Val(TextBox4.Text) - Val(TextBox5.Text)
End Sub
End Class

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

You might also like