ImageVerifierCode 换一换
格式:DOCX , 页数:35 ,大小:124.86KB ,
资源ID:6117696      下载积分:1 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-6117696.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(医药销售系统》java课程设计报告Word格式文档下载.docx)为本站会员(b****1)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

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

1、填写药品编号和售出数量,并生成订单信息。出售药品订单信息将被存入到数据库药品订单信息表(WholesaleInfo)中。 1.2性能需求(软件适应性和移植性等) 在Windows平台测试无误。使用SQL Server 2008 数据库。可用于一般的药品信息管理。 1.3数据需求(数据之间的依赖和约束关系) 本药品信息管理系统共有三张表,一张为独立的用户信息表(Users),用于管理用户信息。其余两张为药品信息表(MedicineInfo)和订单信息表(WholesaleInfo)。二、系统运行环境 本课题是在SQL Server 2008、netbeans6.9.1环境下运行的。三、系统总体设

2、计 3.1登录界面注册信息用户登录登录界面 3.2系统功能药品管理系统药品管理功能添加药品信息删除药品信息修改药品信息查询药品信息统计药品信息出售药品功能四、数据库设计4.1概念结构设计用户表用户名用户密码药品信息表药品编号药品名称药品通称药品规格药品类别药品进价药品批发价药品库存量药品订单表订单编号批发药品数量外键约束4.2逻辑结构设计UsersUsernameUserpasswordMedicineInfomedNumber medNamemedShortNamemedNorsmedCatemedInPricemedWholesalemedCountWholesaleInfo wsNumb

3、er medNumber wsMedCount4.3物理结构设计4.3.1用户信息表UsesSQL:/*=*/* Table: Users */create table Users ( username varchar(10) not null, userpassword varchar(20) null, constraint PK_USERS primary key (username)goInsert into Users values(aa,bb);if exists (select 1 from sysobjects where id = object_id(Users and ty

4、pe = U drop table Users4.3.2药品信息表MedicineInfo MedicineInfo */create table MedicineInfo ( medNumber varchar(8) not null, medName varchar(40) not null, medShortName varchar(10) null, medNors varchar(4) null, medCate varchar(20) null, medInPrice float not null, medWholesalePrice float not null, medCoun

5、t int not null, constraint PK_MEDICINEINFO primary key (medNumber)insert into MedicineInfo values(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川贝枇杷膏枇杷膏止咳药,2

6、1,22.8,900); from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = F where r.fkeyid = object_id(WholesaleInfo) and o.name = FK_WHOLESAL_REFERENCE_MEDICINEalter table WholesaleInfo drop constraint FK_WHOLESAL_REFERENCE_MEDICINEMedicineInfo drop table MedicineInfo4.3.3订单信息表W

7、holesaleInfo WholeInfo */create table WholesaleInfo ( wsNumber varchar(8) not null, medNumber varchar(8) null, wsMedCount int not null, constraint PK_WHOLESALEINFO primary key (wsNumber) drop table WholesaleInfo add constraint FK_WHOLESAL_REFERENCE_MEDICINE foreign key (medNumber) references Medicin

8、eInfo (medNumber)五、程序模块设计 5.1运行界面及其效果图 1.功能选择界面 点击“增加”按钮,跳转到增加药品信息界面; 点击“删除”按钮,跳转到删除药品信息界面; 点击“修改”按钮,跳转到修改药品信息界面; 点击“查询”按钮,跳转到查询药品信息界面; 点击“统计”按钮,跳转到统计药品信息界面; 点击“出售”按钮,跳转到出售药品信息界面。 2.删除药品信息界面 按药品编号删除药拼信息: 按药品名称删除药品信息: 3.查询药品信息界面 按药品编号查询药品信息: 按药品进价范围查询药品信息: 4.出售药品信息界面 出售成功并生成订单写入到数据库药品订单信息表(WholesaleI

9、nfo)中:5.2 程序代码 ManageMain.javaimport java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.*;public class ManageMain extends JFrame private static final long serialVersionUID = 1L; JLabel title=new JLabel(-请选择您的操作 -); JLabel insMedicineInfo=new JLabel(增加药品信息: JButton btI

10、nsInfo=new JButton(增加 JLabel delMedicineInfo=new JLabel(删除药品信息: JButton btDelInfo=new JButton(删除 JLabel updMedicineInfo=new JLabel(修改药品信息: JButton btUpdInfo=new JButton(修改 JLabel queMedicineInfo=new JLabel(查询药品信息: JButton btQueInfo=new JButton(查询 JLabel staMedicineInfo=new JLabel(统计药品信息: JButton btS

11、taInfo=new JButton(统计 JLabel salMedicineInfo=new JLabel(出售药品管理: JButton btSalInfo=new JButton(出售 public ManageMain() 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,3

12、0); 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); thi

13、s.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.btSt

14、aInfo.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().a

15、dd(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(staMedicineIn

16、fo); this.getContentPane().add(btStaInfo); this.getContentPane().add(salMedicineInfo); this.getContentPane().add(btSalInfo); /-添加药品信息注册事件-/ btInsInfo.addActionListener(new ActionListener() Override public void actionPerformed(ActionEvent e) / TODO Auto-generated method stub InsMedicineInfo insmedici

17、neinfo=new InsMedicineInfo(); insmedicineinfo.show(); ); /-删除药品信息注册事件-/ this.btDelInfo.addActionListener(new ActionListener() DelMedicineInfo delmedicineinfo=new DelMedicineInfo(); delmedicineinfo.show(); /-修改药品信息注册事件-/ this.btUpdInfo.addActionListener(new ActionListener() UpdMedicineInfo updmedicin

18、einfo=new UpdMedicineInfo(); updmedicineinfo.show(); /-查询药品信息注册事件-/ this.btQueInfo.addActionListener(new ActionListener() QueMedicineInfo quemedicineinfo=new QueMedicineInfo(); quemedicineinfo.show(); /-统计药品信息注册事件-/ this.btStaInfo.addActionListener(new ActionListener() StaMedicineInfo stamedicineinf

19、o=new StaMedicineInfo(); stamedicineinfo.show(); /-出售药品信息注册事件-/ this.btSalInfo.addActionListener(new ActionListener() SalMedicineInfo salmedicineinfo=new SalMedicineInfo(); salmedicineinfo.show(); this.setSize(550,230); this.setResizable(false); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); t

20、his.setVisible(true); public static void main(String args) new ManageMain(); DelMedicineInfo.javaimport java.sql.Connection;import java.sql.DriverManager;import java.sql.Statement;public class DelMedicineInfo extends JFrame JLabel labTitle=new JLabel(-请选择删除药品信息的方法- JLabel labMedNumber=new JLabel(请输入药品编号: JTextField txtMedNumber=new JTextField(); JButton btnMedNumber=new JButton(确定 JLabel labMedName=new JLabel(请输入药品名称: JTextField txtMedName=new JTextField(); JButton btnMedName=new JButton( JButton btnQuit=new JButton(取消 public DelMedicineInfo()药店管

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

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