1. 首页
  2. 编程语言
  3. C#
  4. 库房管理系统

库房管理系统

上传者: 2019-01-02 14:41:45上传 RAR文件 2.84MB 热度 42次
本系统是基于C#和sql2005写的库房管理系统。主要包括:物品出入库管理模块、物品信息查询模块、物品信息修改模块、供应商信息管理模块、员工管理模块和库房信息模块。 可连接数据库运行,部分功能因个人能力没有很好完善。但作为毕业设计差不多了,也可少许修改完善更好。可运行,可参考! 下面是该系统主窗体的代码。 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; using System.Data.SqlClient; using DAL; namespace 库房管理系统 { public partial class FormMain : Form { public FormMain() { InitializeComponent(); } private void 注销系统ToolStripMenuItem_Click(object sender, EventArgs e) { if (MessageBox.Show("确定注销?选择“确定”您将注销系统转到登录界面,选择“取消”您将返回上一步。", "提示", MessageBoxButtons.OKCancel) == DialogResult.OK) { FormLogin log = new FormLogin(); log.Show(); this.Close(); } } private void 退出系统ToolStripMenuItem_Click(object sender, EventArgs e) { if (MessageBox.Show("确定退出?选择“确定”您将退出该系统,选择“取消”您将返回上一步。", "提示", MessageBoxButtons.OKCancel) == DialogResult.OK) { this.Close(); } } private void 增加用户AToolStripMenuItem_Click(object sender, EventArgs e) { FormUserAdd Ad = new FormUserAdd(); Ad.MdiParent = this; Ad.Show(); } private void 删除用户DToolStripMenuItem_Click(object sender, EventArgs e) { FormUserDel ud = new FormUserDel(); ud.MdiParent = this; ud.Show(); } private void 修改用户密码MToolStripMenuItem_Click(object sender, EventArgs e) { Formsecretmod SM = new Formsecretmod(); SM.MdiParent = this; SM.Show(); } private void 物品入库ToolStripMenuItem_Click(object sender, EventArgs e) { FormProIn pi = new FormProIn(); pi.MdiParent = this; pi.Show(); } private void 物品出库ToolStripMenuItem_Click(object sender, EventArgs e) { FormProOut po = new FormProOut(); po.MdiParent = this; po.Show(); } private void 物品信息查询ToolStripMenuItem_Click(object sender, EventArgs e) { FormProQury pq = new FormProQury(); pq.MdiParent = this; pq.Show(); } private void 物品信息修改ToolStripMenuItem_Click(object sender, EventArgs e) { FormProMod pm = new FormProMod(); pm.MdiParent = this; pm.Show(); } private void 增加供应商信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormOfferAdd add = new FormOfferAdd(); add.MdiParent = this; add.Show(); } private void 删除供应商信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormOfferDel del = new FormOfferDel(); del.MdiParent = this; del.Show(); } private void 查询供应商信息ToolStripMenuItem_Click_1(object sender, EventArgs e) { FormOfferQury qry = new FormOfferQury(); qry.MdiParent = this; qry.Show(); } private void 修改供应商信息ToolStripMenuItem_Click_1(object sender, EventArgs e) { FormOfferMod OM = new FormOfferMod(); OM.MdiParent = this; OM.Show(); } private void 增加员工信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormWorkerAdd wadd = new FormWorkerAdd(); wadd.MdiParent = this; wadd.Show(); } private void 删除员工信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormWorkerDel wdel = new FormWorkerDel(); wdel.MdiParent = this; wdel.Show(); } private void 查询员工信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormWorkerQury wqry = new FormWorkerQury(); wqry.MdiParent = this; wqry.Show(); } private void 修改员工信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormWorkerMod wmod = new FormWorkerMod(); wmod.MdiParent = this; wmod.Show(); } private void 库房信息查询ToolStripMenuItem_Click(object sender, EventArgs e) { Formkufanginf kf = new Formkufanginf(); kf.MdiParent = this; kf.Show(); } private void FormMain_Load(object sender, EventArgs e) { } } } private void 注销系统ToolStripMenuItem_Click(object sender, EventArgs e) { if (MessageBox.Show("确定注销?选择“确定”您将注销系统转到登录界面,选择“取消”您将返回上一步。", "提示", MessageBoxButtons.OKCancel) == DialogResult.OK) { FormLogin log = new FormLogin(); log.Show(); this.Close(); } } private void 退出系统ToolStripMenuItem_Click(object sender, EventArgs e) { if (MessageBox.Show("确定退出?选择“确定”您将退出该系统,选择“取消”您将返回上一步。", "提示", MessageBoxButtons.OKCancel) == DialogResult.OK) { this.Close(); } } private void 增加用户AToolStripMenuItem_Click(object sender, EventArgs e) { FormUserAdd Ad = new FormUserAdd(); Ad.MdiParent = this; Ad.Show(); } private void 删除用户DToolStripMenuItem_Click(object sender, EventArgs e) { FormUserDel ud = new FormUserDel(); ud.MdiParent = this; ud.Show(); } private void 修改用户密码MToolStripMenuItem_Click(object sender, EventArgs e) { Formsecretmod SM = new Formsecretmod(); SM.MdiParent = this; SM.Show(); } private void 物品入库ToolStripMenuItem_Click(object sender, EventArgs e) { FormProIn pi = new FormProIn(); pi.MdiParent = this; pi.Show(); } private void 物品出库ToolStripMenuItem_Click(object sender, EventArgs e) { FormProOut po = new FormProOut(); po.MdiParent = this; po.Show(); } private void 物品信息查询ToolStripMenuItem_Click(object sender, EventArgs e) { FormProQury pq = new FormProQury(); pq.MdiParent = this; pq.Show(); } private void 物品信息修改ToolStripMenuItem_Click(object sender, EventArgs e) { FormProMod pm = new FormProMod(); pm.MdiParent = this; pm.Show(); } private void 增加供应商信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormOfferAdd add = new FormOfferAdd(); add.MdiParent = this; add.Show(); } private void 删除供应商信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormOfferDel del = new FormOfferDel(); del.MdiParent = this; del.Show(); } private void 查询供应商信息ToolStripMenuItem_Click_1(object sender, EventArgs e) { FormOfferQury qry = new FormOfferQury(); qry.MdiParent = this; qry.Show(); } private void 修改供应商信息ToolStripMenuItem_Click_1(object sender, EventArgs e) { FormOfferMod OM = new FormOfferMod(); OM.MdiParent = this; OM.Show(); } private void 增加员工信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormWorkerAdd wadd = new FormWorkerAdd(); wadd.MdiParent = this; wadd.Show(); } private void 删除员工信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormWorkerDel wdel = new FormWorkerDel(); wdel.MdiParent = this; wdel.Show(); } private void 查询员工信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormWorkerQury wqry = new FormWorkerQury(); wqry.MdiParent = this; wqry.Show(); } private void 修改员工信息ToolStripMenuItem_Click(object sender, EventArgs e) { FormWorkerMod wmod = new FormWorkerMod(); wmod.MdiParent = this; wmod.Show(); } private void 库房信息查询ToolStripMenuItem_Click(object sender, EventArgs e) { Formkufanginf kf = new Formkufanginf(); kf.MdiParent = this; kf.Show(); } private void FormMain_Load(object sender, EventArgs e) { } } }
用户评论
码姐姐匿名网友 2019-01-02 14:41:46

非常感谢楼主的分享 解决了我的燃眉之急啊