进销存管理系统的设计报告.doc_第1页
进销存管理系统的设计报告.doc_第2页
进销存管理系统的设计报告.doc_第3页
进销存管理系统的设计报告.doc_第4页
进销存管理系统的设计报告.doc_第5页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

进销存管理系统项目设计报告设计书项目名称:进销存管理系统 班 级:2009级信息管理与信息系统1班设计人员: 查君选 指导老师: 张继燕 二一二年十二月十九日 进销存管理系统的设计报告一、应用背景: 现在的企业规模不断的在扩大,仓存进出货物繁多,工作量大,原有的手工操作耗时费力,又不能保证数据的正确性,用计算机信息化管理实现数据的录入,查询,打印等将是一个迫切的需求。信息化管理将会减少企业的人力物力,能够极大地提高货品库存的管理效率,也是企业库存管理科学化、正规化,与世界接轨的重要条件。因此,开发一个进销存管理系统是很有必要的,其具有特有的技术意义和管理意义。二、需求分析:进销存管理系统主要包括进货管理、销售管理、基础数据管理,系统维护和辅助工具等几个方面的功能,以实现用户方便的输入、查询、修改信息的需求。 通过本管理系统软件,能帮助工作人员利用计算机,快速方便的对企业商品的数据进行管理、输入、输出、查找的所需操作,使销售信息具体化、直观化、合理化从而帮助企业提高工作效率。三、功能分析:进销存管理系统主要提供如下的功能:1.进货管理:主要负责商品的进货数据录入,进货退货数据录入,进货分析,进货统计,与供应商往来对账。2.销售管理:主要负责销售数据录入,销售退货数据录入,销售统计,销售分析,销售排行榜,与代理商往来对账。3.库存管理:主要负责库存状况,库存商品数量上限报警,库存商品数量下限报警,商品进销存变动表,库存盘点。4.基础数据管理:主要负责库存商品,往来对账,内部职员。5.系统维护:主要负责本单位信息,操作员设置,操作权限设置,数据备份,数据库恢复,数据清理。6.辅助工具:主要的功能是登录Internet,启动Word,启动Excel和计算器。四、进销存管理系统功能结构图分析: 进销存管理系统业务流程图分析: 五、系统数据库设计: 进销存管理系统采用的是SQL Server2008数据库,主要用来存储商品的库存,进货,销售等信息。包括十四张数据表,即往来对账明细表,职员信息表,权限表,销售退货主表,销售退货明细表,进货退货明细表,进货退货主表,销售明细表,销售主表,库存商品基本信息表,本单位信息设置表,往来单位表,进货主表和进货明细表。六、公共类设计:主要包括数据库操作类设计和基础功能模块类设计。其中,数据库操作类主要用来访问SQL数据库,基础功能模块类主要用来处理业务逻辑功能,即实现功能窗体与数据库操作的业务功能。用户登录界面的设计重点在于利用用户名和密码进行登录,根据输入的用户名和密码在数据库中查找相符的记录,判断是不是所设定的用户和密码,如果是等登录成功;如果不是则弹出提示信息。主窗体设计的原理是当用户登录窗体验证成功后,用户将进入主窗体,主窗体提供了系统菜单栏,通过它调用系统中的所有相关的子模块,快速掌握本系统中所实现的各个功能。 内部职员管理的设计主要是设计一个员工注册的界面,里面包括员工的所有信息,通过内部职员的管理可以对员工的信息进行修改,查询,注册,注销等。进货管理模块主要包括对进货单及进货退货单的管理,它们实现的原理是相同的,进货单管理窗体主要用来批量添加进货信息,进货退货单管理窗体主要用来批量添加进货退货信息。七、核心代码:1. 数据库操作类设计的核心代码: class DataOP Employee employee=new Employee (); SqlConnection con = new SqlConnection(); private void Open() con = new SqlConnection(Data Source=TANKINGS-PCSQLEXPRESS;Initial Catalog=db_EMS;Integrated Security=True); con.Open(); 2、 登陆界面核心代码pivate void button2_Click(object sender, EventArgs e) DataOP da = new DataOP(); if (this.text_username.Text = 张三) if (this.text_password.Text = 123) Form2 m1 = new Form2(); else MessageBox.Show(密码错误!请重新输入!); else MessageBox.Show(用户名不存在!); private void button1_Click(object sender, EventArgs e) if (this.textBox_empcode.Text = ) MessageBox.Show(用户编号不能为空!); else if (this.textBox_username.Text = ) MessageBox.Show(用户名不能为空!); else if (this.textBox_password.Text = ) MessageBox.Show(密码不能为空); else if (this.textBox_sex.Text = ) MessageBox.Show(性别不能为空); else if (this.textBox_dept.Text = ) MessageBox.Show(部门不能为空); else if (this.textBox_tel.Text = ) MessageBox.Show(联系方式不能为空); else DataOP da = new DataOP(); da.savedb(this.textBox_empcode.Text, this.textBox_username.Text,this.textBox_password.Text, this.textBox_sex.Text,this.textBox_dept.Text, this.textBox_tel.Text, this.textBox_memo.Text);3、员工用户管理核心代码1. 员工注册:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication1 public partial class ZC : Form public ZC() InitializeComponent(); private void register_Click(object sender, EventArgs e) if (this.textBox_employeecode.Text = ) MessageBox.Show (员工编号不能为空!); else if (this .textBox_fullname.Text =) MessageBox.Show(员工姓名不能为空!); else if (this.textBox_password.Text = ) MessageBox.Show(密码不能为空!); else if (boBox_sex.Text = ) MessageBox.Show(性别不能为空!); else if (this.dept.Text = ) MessageBox.Show(部门不能为空!); else if (this.textBox_tel.Text = ) MessageBox.Show(电话号码不能为空!); else DataOP dop = new DataOP(); dop.savedb(this.textBox_employeecode.Text, this.textBox_fullname.Text, this.textBox_password.Text, boBox_sex.Text, this.dept.Text, this.textBox_tel.Text, this.textBox_memo.Text); private void cancle_Click(object sender, EventArgs e) this.Close(); 2. 员工信息修改:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication1 public partial class xg : Form public xg() InitializeComponent(); private void textBox_employeecode_TextChanged(object sender, EventArgs e) private void toolStripLabel2_Click(object sender, EventArgs e) DataOP dop = new DataOP(); Employee employee = dop.reademp(this.emp_code.Text); this.textBox_employeecode.Text = employee.Employeecode; this.textBox_fullname.Text = employee.Fullname; this.textBox_password.Text = employee.Password; boBox_sex.Text = employee.Sex; this.dept.Text = employee.Dept; this.textBox_tel.Text = employee.Tel; this.textBox_memo.Text = employee.Memo; private void xg_Load(object sender, EventArgs e) private void cancle_Click(object sender, EventArgs e) this.Close(); private void toolStripLabel3_Click(object sender, EventArgs e) this.Close(); private void register_Click(object sender, EventArgs e) DataOP op = new DataOP(); op.modifyemp(this.textBox_fullname.Text,this .textBox_password.Text,this .comboBox_sex .Text,this .dept .Text,this.textBox_tel.Text,this.textBox_memo.Text,this.textBox_employeecode.Text); 3. 删除员工信息:.点击“删除”按钮的核心代码: private void button5_Click(object sender, EventArgs e)if(this.textBox_emcode.Text!=null&this.textBox_emcode.Text!) da.deleteEmployeeByCode(this.textBox_emcode.Text); . 数据库操作类核心代码: public void deleteEmployeeByCode(string employeeCode) cmd.CommandText=delete from tb_employee where employeecode=employeeCode;cmd.Parameters.Add(new SqlParameter(employeeCode, employeeCode); MessageBox.Show(删除成功!); 进货管理核心代码:保存: private void button1_Click(object sender, EventArgs e) foreach (rewarehouse_detailed LineRec in date.rewarehouses) LineRec.Billdate = datenow; LineRec.Billcode = this.textBox_bill.Text; daop.save_wores_details(LineRec); 插入:public void insert()if (dataGridView1.ReadOnly) return;int index = this.dataGridView1.CurrentCell.RowIndex; datasourceLine.Insert(index, new warehouse_detailed(); for (int i = 0; i this.dataGridView1.Rows.Count; i+) dataGridView1.Rowsi.HeaderCell.Value = i.ToString(); 移动:public void remove() if (dataGridView1.ReadOnly) return; if (this.dataGridView1.RowCount = 1) return; else int index = this.dataGridView1.CurrentCell.RowIndex; datasourceLine.RemoveAt(index); for (int i = 0; i this.dataGridView1.Rows.Count; i+) dataGridView1.Rowsi.HeaderCell.Value = i.ToString(); 计算价格: private void dataGridView1_CellEnter_1(object sender, DataGridViewCellEventArgs e) if(this.dataGridView1.Columnse.ColumnIndex.Name=tsumDataGridViewTextBoxColumn)this.dataGridView1.Rowse.RowIndex.Cells5.Value= Convert.ToSingle(this.dataGridView1.Rowse.RowIndex.Cells

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论