收藏 分销(赏)

管理信息系统课程设计说明书示例.doc

上传人:精*** 文档编号:2221200 上传时间:2024-05-23 格式:DOC 页数:20 大小:238.54KB
下载 相关 举报
管理信息系统课程设计说明书示例.doc_第1页
第1页 / 共20页
管理信息系统课程设计说明书示例.doc_第2页
第2页 / 共20页
管理信息系统课程设计说明书示例.doc_第3页
第3页 / 共20页
管理信息系统课程设计说明书示例.doc_第4页
第4页 / 共20页
管理信息系统课程设计说明书示例.doc_第5页
第5页 / 共20页
点击查看更多>>
资源描述

1、苏州科技学院管理信息系统课程设计说明书设计题目药店管理系统院系电子与信息工程学院专业计算机科学与技术学生姓名徐明惠学号040421212起迄日期2008年06月31日2008年07月08日设计地点天平学院计算中心指导教师班建民职称副教授职称1。设计目的巩固数据库的基本概念,结合实际的操作和设计,使学生掌握数据库系统的基本概念、原理和技术,将理论与实际相结合,应用现有的数据建模工具和数据库管理系统软件,规范、科学地完成一个小型数据库的设计与实现.巩固C程序设计基础知识:主要包括语言基础、窗体界面设计、文本文件操作、数据库访问、数据绑定等。注意要养成良好的编码习惯:包括缩进、遵循命名规范等.结合软

2、件工程知识了解一个实用系统的面向对象设计方法:功能描述系统设计模块设计-类设计(本例中仅窗体类)。培养学生调查研究、查阅技术文献、资料、手册以及编写技术文献的能力,把理论与实践相结合,提高其实际动手能力和创新能力。学会从用户的角度考虑界面构成,合理划分模块功能,使系统结构清晰、易于设计和维护。2.系统描述药店管理管理系统要求实现对药品的进、销、存(包括药品的入库、库存查询及出库)进行计算机管理。该系统主要包括以下内容:操作员身份验证进货要求更新库存表(添加新行),打印入库单(本设计仅包括入库表单,不打印),入库单表只许新增,不许修改和删除。库存要求查询功能,要求灵活地按照各字段模糊查询销售要求

3、更新库存表(减少数量,数量为0时删除库存记录),打印出库单(本设计仅包括出库表单,不打印),出库单表只许新增,不许修改和删除。简单财务功能:(本设计不包含)3。系统分析与设计3.1系统总体设计其总体结构设计如下图:身份验证修改密码入库库存出 库DBMS文件主模块图3。1 系统总体结构3.2模块分析与设计身份验证模块用户名密码无误方可进入主模块。系统主模块调用各子模块。入库子模块提供以下五种功能:浏览入库单据信息;添加入库单据,可以由操作员录入药品信息,提供撤消编辑功能;保存新记录到数据库入库单表,并更新库存表;自动计算该药品的总金额;不许编辑已经保存到数据库的入库单信息。库存子模块提供灵活的库

4、存查询功能,并显示查找结果;提供从库存界面直接出库的方便操作.出库子模块提供灵活的出库查询功能,并显示查找结果(进行模糊查询)身份修改子模块可以根据需要修改用户名和密码3.3数据结构药品信息的相关数据表结构入库单数据表结构列名数据类型长度允许空序号(主键)int(标识列,自动增量1,种子1)4否入库单编号Char20是来货单位Nchar50是药品名称Nchar50是类别Nchar10是规格Nchar10是单位Nchar10是数量Int4是单价decimal9是总计decimal9是付款方式Nchar10是经办人Nchar10是入库日期Nchar10是产地Nchar50是生产日期Nchar10是

5、有效期Nchar10是库存数据表结构列名数据类型长度允许空序号(主键)int(标识列,自动增量1,种子1)4否来货单位Nchar50是药品名称Nchar50是类别Nchar10是规格Nchar10是单位Nchar10是产地Nchar50是入库日期Nchar10是生产日期Nchar10是数量Int4是单价decimal9是总计decimal9是有效期Nchar10是出库单数据表结构列名数据类型长度允许空序号(主键)出库单编号Char20否购买单位Nchar50是药品名称Nchar50是类别Nchar10是规格Nchar10是单位Nchar10是数量Int4是单价decimal9是总计decima

6、l9是付款方式Nchar10是经办人Nchar10是出库日期Nchar10是产地Nchar50是生产日期Nchar10是有效期Nchar10是窗体类数据结构包括六个窗体:身份验证窗体,系统主模块窗体,入库窗体,库存窗体,出库窗体,身份修改窗体。3。4算法分析总计=单价数量 this.textBoxzongji.Text = (Convert.ToDecimal(this.textBoxdanjia。Text) Convert.ToDecimal(this.textBoxshuliang.Text).ToString();4。各功能模块主要界面4。1身份验证模块身份验证设计界面图如下:图4.1身

7、份验证设计界面4。2主模块主模块设计界面图如下:图4。2主模块设计界面4。3入库子模块入库子模块设计界面如下图:图4。3入库子模块界面4.4库存子模块库存子模块设计界面图如下:图4。4库存子模块设计界面4。5出库子模块出库子模块设计界面图如下:图4。5出库子模块界面4.6身份修改子模块库存子模块设计界面图如下:图4.6身份修改模块界面5。程序主要代码5.1登录的代码namespace kechengsheji public partial class Form1 : Form private SqlConnection conn; private SqlCommand com; public

8、int i = 0; private SqlDataReader reader public Form1() InitializeComponent(); conn = new SqlConnection(”server=(local);database=coursedesign;integrated security=true); com = new SqlCommand(”,conn ); com.CommandText = (select from mima ” ); private void 登录button_Click(object sender, EventArgs e) stri

9、ng name; string pwd; conn.Open(); reader = com.ExecuteReader(); if (reader.Read()) name = reader0.ToString(); pwd = reader1。ToString(); if (textBoxMima.Text。Trim() = pwd.Trim() & textBoxname.Text.Trim() = name.Trim() formzhuchangti myform2 = new formzhuchangti(); myform2.Show(); else MessageBox。Show

10、(”密码或用户名错误!”); textBoxname.Text = ”; textBoxMima.Text = ”; i+; this。Show(); if (i = 3) MessageBox。Show(this, 你的输入错误大于次!关闭, ”提示”, MessageBoxButtons.OK, MessageBoxIcon.Information); this。Close(); reader.Close(); conn.Close(); private void 取消button_Click(object sender, EventArgs e) this.Close(); 5。2药品进

11、销存系统的设计的代码 namespace kechengsheji public partial class formzhuchangti : Form private SqlConnection conn; private SqlCommand com; private SqlDataReader reader; public formzhuchangti() InitializeComponent(); conn = new SqlConnection(”server=(local);database=coursedesign;integrated security=true”); com

12、 = new SqlCommand(, conn); com.CommandText = (select * from mima ); private void button2_Click(object sender, EventArgs e) Form5 myform5=new Form5() ; myform5 .Show (); private void 入库ToolStripMenuItem_Click(object sender, EventArgs e) Formruku myform3 = new Formruku(); myform3.MdiParent = this; myf

13、orm3.Show(); private void 库存ToolStripMenuItem_Click(object sender, EventArgs e) Formkucun myform4 = new Formkucun(); myform4。MdiParent = this; myform4.Show(); private void 出库ToolStripMenuItem_Click(object sender, EventArgs e) Form5 myform5 = new Form5(); myform5.MdiParent = this; myform5.Show(); pri

14、vate void form2_Load(object sender, EventArgs e) conn.Open(); reader = com。ExecuteReader(); if (reader.Read()) this.toolStripStatusLabel2.Text = DateTime.Now.ToString(); this。toolStripStatusLabel1.Text = 操作员: + reader0。ToString(); reader。Close(); conn。Close(); private void 修改用户信息ToolStripMenuItem_Cl

15、ick(object sender, EventArgs e) Formxiugai myform6 = new Formxiugai(); myform6.MdiParent = this; myform6。Show(); 5.3入库单代码的设置namespace kechengsheji public partial class Formruku : Form private SqlConnection conn; private SqlCommand com; public Formruku() InitializeComponent(); private void label3_Cli

16、ck(object sender, EventArgs e) private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) private void bindingNavigator1_RefreshItems(object sender, EventArgs e) private void Form3_Load(object sender, EventArgs e) / TODO: 这行代码将数据加载到表“courseDesignDataSet。input”中。您可以根据需要移动或移除它。 this.input

17、TableAdapter.Fill(this.courseDesignDataSet。input); textBoxbiaohao.DataBindings.Add(new Binding(”text, inputBindingSource, ”入库单编号”)); textBoxlaihuodanwei.DataBindings。Add(new Binding(”text, inputBindingSource, ”来货单位”)); textBoxyaopinmingcheng。DataBindings。Add(new Binding(”text”, inputBindingSource, 药

18、品名称”); textBoxguige。DataBindings。Add(new Binding(”text”, inputBindingSource, ”规格); textBoxchandi。DataBindings.Add(new Binding(”text”, inputBindingSource, 产地)); textBoxshengchanriqi。DataBindings.Add(new Binding(text”, inputBindingSource, 生产日期”)); textBoxdanjia.DataBindings。Add(new Binding(text”, inpu

19、tBindingSource, 单价); textBoxzongji。DataBindings。Add(new Binding(text”, inputBindingSource, 总计)); comboBoxfukuanfangshi.DataBindings。Add(new Binding(text, inputBindingSource, ”付款方式)); textBoxruluriqi。DataBindings.Add(new Binding(”text”, inputBindingSource, 入库日期”)); textBoxyouxiaoqi.DataBindings.Add(n

20、ew Binding(text”, inputBindingSource, ”有效期”)); textBoxdanwei.DataBindings.Add(new Binding(”text”, inputBindingSource, 单位); textBoxshuliang。DataBindings.Add(new Binding(text”, inputBindingSource, ”数量); textBoxjingbanren.DataBindings。Add(new Binding(text, inputBindingSource, ”经办人)); comboBoxleibie.Dat

21、aBindings。Add(new Binding(”text, inputBindingSource, ”类别”)); this.toolStripStatusLabel2。Text = 第 + bindingNavigatorPositionItem.Text + 页”; this。toolStripStatusLabel4。Text = 共 + bindingNavigatorCountItem。Text + ”页入库单”; private void button1_Click(object sender, EventArgs e) this.textBoxzongji。Text = (

22、Convert。ToDecimal(this.textBoxdanjia。Text) * Convert。ToDecimal(this。textBoxshuliang.Text)).ToString(); private void bindingNavigatorMoveNextItem1_Click(object sender, EventArgs e) private void toolStripStatusLabel1_Click(object sender, EventArgs e) private void toolStripStatusLabel2_Click(object sen

23、der, EventArgs e) private void toolStripButton1_Click(object sender, EventArgs e) private void bindingNavigatorAddNewItem1_Click(object sender, EventArgs e) textBoxbiaohao.Text = I” + DateTime。Now.ToString (); textBoxruluriqi.Text = DateTime。Now.ToString(); private void toolStripButton4_Click(object

24、 sender, EventArgs e) this。inputBindingSource.EndEdit(); this。inputTableAdapter。Update(this。courseDesignDataSet.input); conn = new SqlConnection(”server=(local);database=coursedesign;integrated security=true”); com = new SqlCommand(”, conn); com .CommandText =insert into store values(”+textBoxbiaoha

25、o .Text +,”+textBoxlaihuodanwei 。Text+,”+textBoxyaopinmingcheng .Text+,+textBoxguige .Text+”,”+textBoxchandi 。Text+”,”+textBoxshengchanriqi .Text+”,”+textBoxdanjia .Text +”,”+textBoxzongji .Text+,”+textBoxyouxiaoqi 。Text+,”+textBoxruluriqi .Text+”,”+textBoxdanwei .Text+,”+textBoxshuliang 。Text+,+tex

26、tBoxjingbanren 。Text+”,+comboBoxleibie .Text+”,+comboBoxfukuanfangshi 。Text+)”; private void bindingNavigatorDeleteItem1_Click(object sender, EventArgs e) textBoxbiaohao。Text = ”I + DateTime.Now.ToString(); textBoxlaihuodanwei。Text = ”; textBoxyaopinmingcheng。Text = ”; textBoxguige。Text = ”; textBox

27、chandi。Text = ; textBoxshengchanriqi。Text = ; textBoxdanjia。Text = ”; textBoxzongji。Text = ; textBoxruluriqi.Text = DateTime.Now。ToString(); textBoxyouxiaoqi。Text = ”; textBoxdanwei。Text = ”; textBoxshuliang.Text = ; textBoxjingbanren.Text = ”; comboBoxleibie.Text = ”; comboBoxfukuanfangshi。Text = ”

28、; private void toolStripButton3_Click(object sender, EventArgs e) textBoxbiaohao.Text = I” + DateTime。Now。ToString(); textBoxlaihuodanwei。Text = ”; textBoxyaopinmingcheng。Text = ; textBoxguige.Text = ”; textBoxchandi。Text = ; textBoxshengchanriqi。Text = ”; textBoxdanjia.Text = ; textBoxzongji。Text =

29、 ; textBoxruluriqi。Text = DateTime。Now。ToString(); textBoxyouxiaoqi。Text = ”; textBoxdanwei.Text = ”; textBoxshuliang。Text = ; textBoxjingbanren。Text = ”; comboBoxleibie。Text = ”; comboBoxfukuanfangshi.Text = ”; 5。4库存查询的相关代码namespace kechengsheji public partial class Formkucun : Form SqlConnection c

30、onn; SqlCommand com; SqlDataAdapter ad; BindingSource sour; DataTable ta; public Formkucun() InitializeComponent(); private void storeBindingNavigatorSaveItem_Click(object sender, EventArgs e) this。Validate(); this。storeBindingSource.EndEdit(); this.storeTableAdapter.Update(this.courseDesignDataSet。

31、store); private void Form4_Load(object sender, EventArgs e) / TODO: 这行代码将数据加载到表“courseDesignDataSet。store”中.您可以根据需要移动或移除它。 this。storeTableAdapter.Fill(this。courseDesignDataSet。store); private void storeBindingNavigator_RefreshItems(object sender, EventArgs e) private void toolStripButton1_Click(obje

32、ct sender, EventArgs e) conn = new SqlConnection(”server=(local);database=coursedesign;integrated security=true); com = new SqlCommand(select from store where + chaxun.SelectedItem 。ToString () + like %” + zhi。Text + ”, conn); ad = new SqlDataAdapter(com); sour = new BindingSource(); ta = new DataTa

33、ble(); sour。DataSource = ta; ad。Fill(ta); storeDataGridView。DataSource = sour; private void toolStripComboBox1_Click(object sender, EventArgs e) private void fillByToolStripButton_Click(object sender, EventArgs e) try this.storeTableAdapter.FillBy(this。courseDesignDataSet。store); catch (System.Excep

34、tion ex) System.Windows。Forms。MessageBox.Show(ex。Message); 5.5出库相关代码namespace kechengsheji public partial class Form5 : Form public Form5() InitializeComponent(); private void outputBindingNavigatorSaveItem_Click(object sender, EventArgs e) this.Validate(); this.outputBindingSource.EndEdit(); this.outputTableAdapter.Update(this.courseDesignDataSet.output); private void Form5_Load(object sender, EventArgs e) / TODO: 这行代码将数据加载到表“courseDesignDataSet。output”中。您可以根据需要移动或移除它。 this.outputTableAdapter。Fill(this.courseDesignDataS

展开阅读全文
相似文档                                   自信AI助手自信AI助手
猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 应用文书 > 技术指导

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服