0% found this document useful (0 votes)
14 views28 pages

CS Project

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 28

SHRI RAM SENIOR SECONDARY SCHOOL

OMANDUR

COMPUTER SCIENCE

PROJECT

MEDICAL SHOP MANAGMENT

SUBMITTED BY: V. DIYA

CLASS: XII-A

ROLL NO: 12304


CERTIFICATE

This is to certify that Diya V of class XII A has completed


her project entitled " MEDICAL SHOP MANAGMENT" in
computer science for the academic year 2024-25 for the
partial fulfillment of her academic course

PRINCIPAL TEACHER INCHARGE

EXTERNAL EXAMINER
ACKNOWLEDGEMENT

I have taken efforts in this project. However, it would not have been possible without the
kind support and help of many individuals.

I wish to express my deep gratidue and sincere thanks to my principal Mr. Surendran and
school for providing me with facilities required to do my project.

I am highly indebted to my computer teacher, Ms. Nikitha Princy, who guided me to the
successful completion of this project . I take this opportunity to express my deep sense of
gratitude for her invaluable guidance, constant encouragement, constructive comments,
sympathetic attitude, and immense motivation, which has sustained my efforts at all stages
of this project.
Table of Contents

Topics Page No.

1. Introduction 1

2. Objective of the project 2

3. Scope of the project 3

4. Software and Hardware requirements 4

5. Features of the project 5

6. Source code 6-18

7. Output 19-22

8 . Conclusion 23

9 . Bibliography 24
INTRODUCTION

The "Medical Shop Management System" has been developed to override the
problems prevailing in the practicing manual system. This software is supported to eliminate
and, in some cases, reduce the hardships faced by this existing system. Moreover, this
system is designed for the particular need of the company to carry out operations in a smooth
and effective manner. The application is reduced as much as possible to avoid errors while
entering the data. It also provides error message while entering invalid data. No formal
knowledge is needed for the user to use this system. Thus, by this all it proves it is user-
friendly Medical Shop Management System.

As described above, can lead to error free, secure, reliable, and fast management
system. It can assist the user to concentrate on their other activities rather to concentrate on
the record keeping. Thus, it will help organization in better utilization of resources. Every
organization, whether big or small, has challenges to overcome like managing the
information of medicines, medical shop, company, sales, and inventory. Every Medical Shop
Management System has different needs. Therefore, we design exclusive employee
management systems that are adapted to your managerial requirements. This is designed to
assist in strategic planning, and will help you ensure that your organization is equipped with
the right level of information and details for your future goals. Also, for those busy
executive who are always on the go, our systems come with remote access features, which
will allow you to manage your workforce anytime, at all times. These systems will
ultimately allow you to better manage resources.

-1-
OBJECTIVE OF THE PROJECT

The main objective of the Project on Medical Shop Management System is to


manage the details of Medical Shop, Medicines. Stocks, Company, Inventory, it manages all
the information about Medical Shop, Sells, Inventory, Medical Shop. The project is totally
built at administrative end and thus only the administrator is guaranteed the access. The
purpose of the project is to build an application program to reduce the manual work for
managing the Medical Shop, Medicines, Sells, Stocks. It tracks all the details about the
Stocks, Company, Inventory. Functionalities provided by Medical Shop Management
System are as follows .

Provides the searching facilities based on various factors. Such as Medical Shop,
Stocks, Company, Inventory. Medical Shop Management System also manage the Sells
details online for Company details, Inventory details, Medical Shop.

It tracks all the information of Medicines, Sells, Company etc. Manage the
information of Medicines Shows the information and description of the Medical Shop,
Stocks To increase efficiency of managing the Medical Shop, Medicines It deals with
monitoring the information and transactions of Company. Manage the information of
Medical Shop Editing, adding, and updating of Records is improved which results in proper
resource management of Medical Shop data .

• Manage the information of Company

• Integration of all the records of the Inventory.

-2-
SCOPE OF THE PROJECT

It may help collecting perfect management in details. In a very short time, the
collection will be obvious, simple, and sensible. It will help a person to know the
management of passed year perfectly and vividly. It also helps in current all works relative
to Medical Shop Management System. It will be also reduced the cost of collecting the
management & collection procedure will go on smoothly. Our project aims at Business
process automation, i.e., we have tried to computerize various processes of Medical Shop
Management System.

■ In computer system, it is not necessary to create the manifest but we can directly
print it, which saves our time.

■ In computer system the person has to fill the various forms & number of copies
of the forms can be easily generated at a time.

■ To assist the staff in capturing the effort spent on their respective working areas.
■ To utilize the resources in an efficient manner by increasing their productivity
through automation.

■ The system generates types of information that can be used for various purposes.
■ It satisfies the user requirement.
■ Be easy to understand by the user and operator.
■ Be easy to operate.
■ Have a good user interface.
■ Be expandable.
■ Delivered on schedule within the budget.

-3-
SOFTWARE REQUIREMENTS

Name of the component Specifications


Operation system Windows 98, Windows XP, Windows 7,
Linux
IDE IDLE Python
Database MySQL server
Browser Mozilla Firefox, Opera, Chrome etc.
Front End Python 3.6 or above
Back End MySQL server 5.0 or above

HARDWARE REQUIREMENTS

Name of the component Specifications


Processor Pentium III 630MHz
RAM 128 MB
Hard disk 20 GB
Monitor 15” color monitor
Keyboard 122 Keys

-4-
FEATURES OF THE PROJECT

•Product and Component based

• Creating & Changing Issues at ease

• Query Issue List to any depth

• Reporting & Charting in more comprehensive way

• User Accounts to control the access and maintain security

• Simple Status, resolutions, and Multi-level Priorities & Severities.

• Targets & Milestones for guiding the programmers

• Attachments & Additional Comments for more information

• Robust database back-end

• Various level of reports available with a lot of filter criteria's

• It contains better storage capacity

• Accuracy in work

• Easy & fast retrieval of information

• Well-designed report.

• It reduce the risk of stolen or fake prescription.

• Medical shop management system include a secure centralized database for patient info
and transaction records.

• Identify and Reduce Expired items

• Identify and Flag up High-Risk Medicine

-5-
SOURCE CODE

def menu2():

print("-----------------------MEDICINE SECTION--------------------------------”)
import mysql.connector as mycon

mycon = mycon.connect(host='localhost', user='root', passwd='root', database='me dic')

cur = mycon.cursor()

print("" \t\t\t 1-insert medicine details

2-delete a medicine

3-update a medicine

4-search a medicine"")

x = int(input("enter choice:"))

if x == 1:

i_d = input("enter id:")

name = input("enter name:")

batchnumber = input("enter batchnumber:")

manu_date = input("enter manufacture date:")

import_date = input("enter import date:")

expire_date = input("enter expiry date:")

manufacture = input("enter manufacuter:")

typ_e= input("enter the type (ml, strip, vial or tube):")

med_unit = input("enter no. of medicine unit in stock:")

med_cost = input("enter amount of one nunit of the medicine:")


-6-
st= "insert into product
values(""i_d+"",""+name+"",""+batchnumber+"",""+manu_date+"",""+import
_date+"",""expire_date+"",""+manufacture+"",""+typ_e+"",""+med_unit+""

cur.execute(st)

mycon.commit()

elif x == 2:

from datetime import date

dat= date.today()

import mysql.connector as mycon

mycon = mycon.connect(host='localhost', user='root', passwd='root', database='me

dic')

cur mycon.cursor()

cur.execute("select expire_date from product")

res = cur.fetchall()

de = 0

sd=str(dat)

for x in res:

print("the expiry dates are:",x[0])

if str(x[0]) == sd:

delt = "delete from product where expire_date = """+sd+"""""

cur.execute(delt)

mycon.commit()

print(res)

else:

pass -7-
elif x == 3:

import mysql.connector as mycon

mycon = mycon.connect(host='localhost', user='root',passwd='root', database='me

dic')

cur= mycon.cursor()

b = input("enter field to input:")

c = input("enter id of record to update:")

d = input("enter new record:")

upd = "update product set "+b+" = ""+d+"' where id = """+c+"""

cur.execute(upd)

mycon.commit()

elif x == 4:

import mysql.connector as mycon

mycon = mycon.connect(host='localhost', user='root', passwd='root', database='me

dic')

cur mycon.cursor()

s = input("name of medicine to search:")

cur.execute("select from product where name = """+s+""")

res = cur.fetchall()

for i in res:

print(i)

else:

print("invalid choice:")
-8-
def menu3():

print(" ----------------SALES ENTRY SECTION--------------------------")

import mysql.connector as mycon

mycon=mycon.connect(host='localhost', user='root', passwd='root', database='me dic')

cur mycon.cursor()

print("\t\t\t 1-insert sales detail

2-delete sales detail

3-update sales detail

4-search sales detail"")

x = int(input("enter coice:"))

if x == 1:

i_d = input("enter id:")

order_date = input("enter date:")

user_id = input("enter user id:")

paymentmode = input("enter payment mode(cash, cheque):")

amt_paid = input("enter amount paid:")

unit_sold = input("enter no. of units sold:")

med_name = input("enter medicine name:")

sa = "insert into sales

values('""+i_d+"','""+order_date+","+user_id+"','"+paymentmode+"",""+am

t_paid+"','""+unit_sold+"','"'"+med_name+"")"

cur.execute(sa)

mycon.commit()
-9-
elif x == 2:

a = input("enter field name:")

b = input("enter record to delete:")

det ="delete from sales where "+a+" = """+b+"""""

cur.execute(det)

mycon.commit()

elif x == 3:

import mysql.connector as mycon

mycon=mycon.connect(host='localhost', user='root', passwd='root',database='me dic')

cur mycon.cursor()

b = input("enter field to input:")

c = input("enter id of record to update:")

d = input("enter new record:")

upd = "update sales set "+b+" = """+d+"' where id = """+c+"""

cur.execute(upd)

mycon.commit()

elif x == 4:

import mysql.connector as mycon

mycon=mycon.connect(host='localhost', user='root', passwd='root',database='me dic')

cur = mycon.cursor()

s = input("enter no of units sold to search:")

cur.execute("select * from sales where unit_sold = """+s+""")

rescur.fetchall()
-10-
for i in res:

print(i)

else:

print("Invalid choice:")

def menu4 ():

print(" ----------------PURCHASE SECTION--------------------------" )

import mysql.connector as mycon

mycon=mycon.connect(host='localhost',user='root' passwd='root', database='me dic')

cur mycon.cursor()

print("\t\t\t 1-insert purchase detail

2-delete purchase detail

3-update purchase detail

4-search purchase detail")

x= int(input("enter coice:"))

if x=1:

I_d = input("enter customer id:")

name input("enter name:")

address input("enter address:")

contact_details = input("enter phone number:")

typ_e input("enter mode of payment(regular or occasional):")

med_name = input("enter med name:")

-11-
se = "insert into customer values ('"+i_d+"""""+name","address"",""contact
_details+ """"+typ_e """"*med_name+"")"

cur.execute(se)

mycon.commit()

elif x ==2:

a= input("enter field name:")

b = input("enter record to delete:")

det= "delete from customer where "+a*""+""

cur.execute(det)

mycon.commit().

elif x 3:

Import mysql.connector as mycon

mycon=mycon.connect(host='localhost',user='root',passwd='root',database='me dic')

cur mycon.cursor()

b= input("enter field to input:")

c input("enter id of record to update:

dinput("enter new record:")

upd = "update customer set "+b+"=""+d+"" where id = ""+c+

cur.execute(upd)

mycon.commit()

elif x = 4:

import mysql.connector as mycon mycon

mycon.connect(hosts'localhost', user='root'.passwd='root', database 'me dic')


-12-
cur = mycon.cursor()

s=Input("enter name of customer to search:")

cur.execute("select from customer where name = "+s+")

res = cur.fetchall()

for i in res:

print(i)

else:

print("invalid choice:")

def menu5():

print("-------------------REPORT/BILL SECTION------------------------")

import mysql.connector as mycon

mycon= mycon.connect(host 'localhost'.user 'root'.passwd='root', database='me dic')

cur = mycon.cursor()

from datetime import date

dat date today()

print("\t\t\t 1-med report

2-sales report

3-purchase report

4-bill

5-new bill")

x= int(input("enter coice 1-4:"))

if x==1:

-13-
print(**100)

print("\t\t Medicine List')

print('="70)

print("{0: ^15}{1:^20} {2:^20} {3: ^15}".format("id",'Medicine- Name",


"Batch number', Type of Medicine'))

s1=("select from product")

cur.execute(s1)

for
(id,name, batchnumber, manufacturedate, import_date,expire_date,manuf acturer, type,
medicine_unit,medicine_cost) in cur:

print("{0:15)(1:20){2:^20)(3:^15}".format(ld,name, batchnumber, type))

elif x==2:

s1=("select from sales")

cur.execute(s1)

for
(id,order_date,pay_date,user_id,paymentmode, amt_paid,unit_sold med name) in cur:

print("{0:15)(1:^20)(2:^20)(3:15)".format(id,med_name,paymentmode,
unit_sold))

elif x==3 :

s1=("select from customer")

cur.execute(s1)

for (id,name, address, contact detail.type,med_name) in cur:

print("{0:^15)(1:20)(2:^20)(3:^15)(4:20)".format(id.med_name,type,name,
contact_details))

elif x=4:
-14-
b = int(input("enter no. of medicines bought:"))

for i in range(0,b):

import mysql.connector as myсоп

mycon=mycon.connect(host=localhost',user='root'.passwd='root', database="me
dic')

cur mycon.cursor()

print("enter values for the bill:")

i_d= input("enter id:")

pay_mode = input("enter payment mode(cash or net):")

med_name = input("enter med name:")

quantity= input("enter quantity of med bought:")

price = input("enter the price:")

sf = "insert into bill values("""+i_d+"""+pay_mode+","+med_name+",


"quantity"",""+price+ ")

cur.execute(sf)

mycon.commit()

print('*'*100)

print("\t\t{}'.format("TTS MEDICAL SHOP"))

print("\t\t{}'.format("Khagual, Danapur"))

print("\t\t{}'.format("Contact No.- 9912345679"))

print("\t\t{}'.format(dat))

print("="*70)

print("{0:^15} {1: ^20} {2:^20} {3:^15} {4:^20}".format("bill_id", "Medicine-


Name', 'payment_mode', 'price', 'quantity'))

print("-"*100) -15-
s1=("select from bill")

cur.execute(s1).

Total _Cost= 0

for (id pay_mode,med_name.quantity price) in cur:

print("{0:^15}{1:^20}{2:^20} {3:^15}{4:20}".format(id,med_name,pay_mode,
price,quantity))

Total_Cost+= price* quantity

print('*'*100)

print("Total Cos'.format(Total_Cost))

print('-'*100)

print("\t\t\t Thank you for shopping with us')

print('-'*100)

print("\n")

print('*'100)

elif x=5

cur.execute("truncate table bill")

mycon.commit()

print("bill cleared")

def menu6():

print (-------------REFUND----------------------)

import mysql.connector as mycon

mycon=mycon.connect(host='localhost',user='root', passwd='root', database='me dic')


-16-
cur = mycon.cursor()

x=input('enter name of med:")

y=int(input("enter no. of med returned:'))

a = "select medicine_cost from product where name = ""+x+"

cur.execute(a)

b=cur.fetchall()

for i in b:

print("The amount to be payed back=",i[0]*y)

x= True

while x== True:

print()

print("--------------- TTS MEDICAL STORE------------------")

print("select {1} Medicine section")

print("select {2}-sales section")

print("select {3} -purchase section")

print("select {4}report/bill section")

print("select {5}-refund")

print("select {6}-exit")

print("."*70)

option= int(input("\nenter from choices (1-5) ="))

if option == 1:

menu2()

elif option ==2: -17-


menu3()

elif option == 3:

menu4()

elif option == 4:

menu5()

elif option 5:

menu6()

elif option == 6:

print("-50, "Thank you","-"50) x = False

else:

print("invalid choice, choose between 1 and 5")

-18-
OUTPUT

-19-
Update :

Search :

-20-
Delete :

Report :

-21-
Bill :

Exit :

-22-
CONCLUSION
Our project is only a humble venture to satisfy the needs to manage their project
work. Several user-friendly coding has also adopted. This package shall prove to be a
powerful package in satisfying all the requirements of the school. The objective of software
planning is to provide a frame work that enables the manger to make reasonable estimates
made within a limited time frame at the beginning of the software project and should be
updated regularly as the project progresses.

At the end it is concluded that we have made effort on following points


• A description of the background and context of the project and its relation to work
already done in the area.

• Made statement of the aims and objectives of the project.

• The description of Purpose, Scope, and applicability.

• We describe the requirement Specifications of the system and the actions that can be
done on these things

• We included features and operations in detail, including screen layouts.

• We designed user interface and security issues related to system.

• Finally, the system is implemented and tested according to test cases.

-23-
BIBLIOGRAPHY

• W3school.com

• Zentut.com

• Computer science with python by Preeti Arora

• Slideshare.com

• Scribd.com

• Programiz.com

• Mysql.com

• Itsourcecode.com

-24-

You might also like