医药销售系统》java课程设计报告Word格式文档下载.docx

上传人:b****1 文档编号:6117696 上传时间:2023-05-06 格式:DOCX 页数:35 大小:124.86KB
下载 相关 举报
医药销售系统》java课程设计报告Word格式文档下载.docx_第1页
第1页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第2页
第2页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第3页
第3页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第4页
第4页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第5页
第5页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第6页
第6页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第7页
第7页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第8页
第8页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第9页
第9页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第10页
第10页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第11页
第11页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第12页
第12页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第13页
第13页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第14页
第14页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第15页
第15页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第16页
第16页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第17页
第17页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第18页
第18页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第19页
第19页 / 共35页
医药销售系统》java课程设计报告Word格式文档下载.docx_第20页
第20页 / 共35页
亲,该文档总共35页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

医药销售系统》java课程设计报告Word格式文档下载.docx

《医药销售系统》java课程设计报告Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《医药销售系统》java课程设计报告Word格式文档下载.docx(35页珍藏版)》请在冰点文库上搜索。

医药销售系统》java课程设计报告Word格式文档下载.docx

填写药品编号和售出数量,并生成订单信息。

出售药品订单信息将被存入到数据库药品订单信息表(WholesaleInfo)中。

1.2性能需求(软件适应性和移植性等)

①在Windows平台测试无误。

②使用SQLServer2008数据库。

③可用于一般的药品信息管理。

1.3数据需求(数据之间的依赖和约束关系)

本药品信息管理系统共有三张表,一张为独立的用户信息表(Users),用于管理用户信息。

其余两张为药品信息表(MedicineInfo)和订单信息表(WholesaleInfo)。

二、系统运行环境

本课题是在SQLServer2008、netbeans6.9.1环境下运行的。

三、系统总体设计

3.1登录界面

注册信息

用户登录

登录界面

3.2系统功能

药品管理系统药品管理功能

添加药品信息

删除药品信息

修改药品信息

查询药品信息

统计药品信息

出售药品功能

四、数据库设计

4.1概念结构设计

用户表

用户名<

主键>

用户密码

药品信息表

药品编号<

药品名称

药品通称

药品规格

药品类别

药品进价

药品批发价

药品库存量

药品订单表

订单编号<

外键>

批发药品数量

外键约束

4.2逻辑结构设计

Users

Username<

M>

Userpassword

MedicineInfo

medNumber<

medName

medShortName

medNors

medCate

medInPrice

medWholesale

medCount

WholesaleInfo

wsNumber<

medNumber<

F>

wsMedCount

<

ForeignKey>

4.3物理结构设计

4.3.1用户信息表Uses

SQL:

/*==============================================================*/

/*Table:

Users*/

createtableUsers(

usernamevarchar(10)notnull,

userpasswordvarchar(20)null,

constraintPK_USERSprimarykey(username)

go

InsertintoUsersvalues(‘aa’,’bb’);

ifexists(select1

fromsysobjects

whereid=object_id('

Users'

andtype='

U'

droptableUsers

4.3.2药品信息表MedicineInfo

MedicineInfo*/

createtableMedicineInfo(

medNumbervarchar(8)notnull,

medNamevarchar(40)notnull,

medShortNamevarchar(10)null,

medNorsvarchar(4)null,

medCatevarchar(20)null,

medInPricefloatnotnull,

medWholesalePricefloatnotnull,

medCountintnotnull,

constraintPK_MEDICINEINFOprimarykey(medNumber)

insertintoMedicineInfovalues('

95270001'

'

葵花牌感冒灵颗粒'

葵感'

16*2'

感冒药'

24.7,25.8,1000);

95270002'

双黄连口服液'

双黄连液'

12*1'

29.2,30.1,1000);

95270003'

阿莫西林'

莫西'

1*1'

消炎药'

30,32.1,1000);

95270004'

吗丁啉'

胃肠道药'

18.2,20,498);

95270005'

对乙酰氨基酚'

扑热息痛'

24.7,25.8,698);

95270006'

川贝枇杷膏'

枇杷膏'

止咳药'

21,22.8,900);

fromsys.sysreferencesrjoinsys.sysobjectsoon(o.id=r.constidando.type='

F'

wherer.fkeyid=object_id('

WholesaleInfo'

)ando.name='

FK_WHOLESAL_REFERENCE_MEDICINE'

altertableWholesaleInfo

dropconstraintFK_WHOLESAL_REFERENCE_MEDICINE

MedicineInfo'

droptableMedicineInfo

4.3.3订单信息表WholesaleInfo

WholeInfo*/

createtableWholesaleInfo(

wsNumbervarchar(8)notnull,

medNumbervarchar(8)null,

wsMedCountintnotnull,

constraintPK_WHOLESALEINFOprimarykey(wsNumber)

droptableWholesaleInfo

addconstraintFK_WHOLESAL_REFERENCE_MEDICINEforeignkey(medNumber)

referencesMedicineInfo(medNumber)

五、程序模块设计

5.1运行界面及其效果图

1.功能选择界面

点击“增加”按钮,跳转到增加药品信息界面;

点击“删除”按钮,跳转到删除药品信息界面;

点击“修改”按钮,跳转到修改药品信息界面;

点击“查询”按钮,跳转到查询药品信息界面;

点击“统计”按钮,跳转到统计药品信息界面;

点击“出售”按钮,跳转到出售药品信息界面。

2.删除药品信息界面

按药品编号删除药拼信息:

按药品名称删除药品信息:

3.查询药品信息界面

按药品编号查询药品信息:

按药品进价范围查询药品信息:

4.出售药品信息界面

出售成功并生成订单写入到数据库药品订单信息表(WholesaleInfo)中:

5.2程序代码

ManageMain.java

importjava.awt.event.ActionEvent;

importjava.awt.event.ActionListener;

importjavax.swing.*;

publicclassManageMainextendsJFrame{

privatestaticfinallongserialVersionUID=1L;

JLabeltitle=newJLabel("

----请选择您的操作----"

);

JLabelinsMedicineInfo=newJLabel("

增加药品信息:

"

JButtonbtInsInfo=newJButton("

增加"

JLabeldelMedicineInfo=newJLabel("

删除药品信息:

JButtonbtDelInfo=newJButton("

删除"

JLabelupdMedicineInfo=newJLabel("

修改药品信息:

JButtonbtUpdInfo=newJButton("

修改"

JLabelqueMedicineInfo=newJLabel("

查询药品信息:

JButtonbtQueInfo=newJButton("

查询"

JLabelstaMedicineInfo=newJLabel("

统计药品信息:

JButtonbtStaInfo=newJButton("

统计"

JLabelsalMedicineInfo=newJLabel("

出售药品管理:

JButtonbtSalInfo=newJButton("

出售"

publicManageMain(){

super("

药店管理系统--功能"

this.title.setSize(200,30);

this.title.setLocation(200,10);

this.insMedicineInfo.setSize(100,30);

this.insMedicineInfo.setLocation(80,50);

this.btInsInfo.setSize(60,30);

this.btInsInfo.setLocation(190,50);

this.delMedicineInfo.setSize(100,30);

this.delMedicineInfo.setLocation(260,50);

this.btDelInfo.setSize(60,30);

this.btDelInfo.setLocation(360,50);

this.updMedicineInfo.setSize(100,30);

this.updMedicineInfo.setLocation(80,90);

this.btUpdInfo.setSize(60,30);

this.btUpdInfo.setLocation(190,90);

this.queMedicineInfo.setSize(100,90);

this.queMedicineInfo.setLocation(260,60);

this.btQueInfo.setSize(60,30);

this.btQueInfo.setLocation(360,90);

this.staMedicineInfo.setSize(100,30);

this.staMedicineInfo.setLocation(80,130);

this.btStaInfo.setSize(60,30);

this.btStaInfo.setLocation(190,130);

this.salMedicineInfo.setSize(100,30);

this.salMedicineInfo.setLocation(260,130);

this.btSalInfo.setSize(60,30);

this.btSalInfo.setLocation(360,130);

this.setLayout(null);

this.getContentPane().add(title);

this.getContentPane().add(insMedicineInfo);

this.getContentPane().add(btInsInfo);

this.getContentPane().add(delMedicineInfo);

this.getContentPane().add(btDelInfo);

this.getContentPane().add(updMedicineInfo);

this.getContentPane().add(btUpdInfo);

this.getContentPane().add(queMedicineInfo);

this.getContentPane().add(btQueInfo);

this.getContentPane().add(staMedicineInfo);

this.getContentPane().add(btStaInfo);

this.getContentPane().add(salMedicineInfo);

this.getContentPane().add(btSalInfo);

//------添加药品信息注册事件------//

btInsInfo.addActionListener(newActionListener(){

@Override

publicvoidactionPerformed(ActionEvente){

//TODOAuto-generatedmethodstub

InsMedicineInfoinsmedicineinfo=newInsMedicineInfo();

insmedicineinfo.show();

}

});

//------删除药品信息注册事件------//

this.btDelInfo.addActionListener(newActionListener(){

DelMedicineInfodelmedicineinfo=newDelMedicineInfo();

delmedicineinfo.show();

//------修改药品信息注册事件------//

this.btUpdInfo.addActionListener(newActionListener(){

UpdMedicineInfoupdmedicineinfo=newUpdMedicineInfo();

updmedicineinfo.show();

//------查询药品信息注册事件------//

this.btQueInfo.addActionListener(newActionListener(){

QueMedicineInfoquemedicineinfo=newQueMedicineInfo();

quemedicineinfo.show();

//------统计药品信息注册事件------//

this.btStaInfo.addActionListener(newActionListener(){

StaMedicineInfostamedicineinfo=newStaMedicineInfo();

stamedicineinfo.show();

//------出售药品信息注册事件------//

this.btSalInfo.addActionListener(newActionListener(){

SalMedicineInfosalmedicineinfo=newSalMedicineInfo();

salmedicineinfo.show();

this.setSize(550,230);

this.setResizable(false);

this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

this.setVisible(true);

}

publicstaticvoidmain(Stringargs[]){

newManageMain();

}

DelMedicineInfo.java

importjava.sql.Connection;

importjava.sql.DriverManager;

importjava.sql.Statement;

publicclassDelMedicineInfoextendsJFrame{

JLabellabTitle=newJLabel("

----请选择删除药品信息的方法----"

JLabellabMedNumber=newJLabel("

请输入药品编号:

JTextFieldtxtMedNumber=newJTextField();

JButtonbtnMedNumber=newJButton("

确定"

JLabellabMedName=newJLabel("

请输入药品名称:

JTextFieldtxtMedName=newJTextField();

JButtonbtnMedName=newJButton("

JButtonbtnQuit=newJButton("

取消"

publicDelMedicineInfo(){

药店管

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 小学教育 > 数学

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2