仓库管理系统代码
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
系统主界面(frmMain.cs)
using System;
using System.Collections.Generic;
using ponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
namespace warehouse
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
}
private void frmMain_Load(object sender, EventArgs e)
{
tsslUser.Text = "操作用户权限:" + frmLogin.M_str_right.ToString().Trim();
tsslDate.Text = DateTime.Today.ToLongDateString();
tsslTime.Text = "登录系统时间:" + DateTime.Now.ToShortTimeString(); if (frmLogin.M_str_right.ToString().Trim() == "普通用户")
{
入库管理ToolStripMenuItem.Enabled = false;
出库管理ToolStripMenuItem.Enabled = false;
借货还货ToolStripMenuItem.Enabled = false;
供货商设置ToolStripMenuItem.Enabled = false;
货物档案设置ToolStripMenuItem.Enabled = false;
仓库设置ToolStripMenuItem.Enabled = false;
权限设置ToolStripMenuItem.Enabled = false;
用户管理ToolStripMenuItem.Enabled = false;
btnIS.Enabled = false;
btnOS.Enabled = false;
btnBR.Enabled = false;
btnPI.Enabled = false;
btnGI.Enabled = false;
btnSI.Enabled = false;
btnRI.Enabled = false;
btnUM.Enabled = false;
}
}
private void btnIS_Click(object sender, EventArgs e)//入库管理
{
GoodsManage.frmISManage GMfism = new warehouse.GoodsManage.frmISManage();
//GMfism.Show();
GMfism.ShowDialog();//这两个函数就看谁获得焦点,前者父窗口也可获得焦点,后者只有新创建的窗体
}
private void btnOS_Click(object sender, EventArgs e)//出库管理
{
GoodsManage.frmOSManage GMfosm = new warehouse.GoodsManage.frmOSManage();
GMfosm.ShowDialog();
}
private void btnBR_Click(object sender, EventArgs e)//借货还货管理
{
GoodsManage.frmBGManage GMfbgm = new warehouse.GoodsManage.frmBGManage();
GMfbgm.ShowDialog();
}
private void btnPI_Click(object sender, EventArgs e)//供应商设置
{
BasicInfo.frmPrInfo BIfpi = new warehouse.BasicInfo.frmPrInfo();
BIfpi.ShowDialog();
}
private void btnGI_Click(object sender, EventArgs e)//货物档案设置
{
BasicInfo.frmGoodsInfo BIfgi = new warehouse.BasicInfo.frmGoodsInfo(); BIfgi.ShowDialog();
}
private void btnSI_Click(object sender, EventArgs e)//仓库设置
{
BasicInfo.frmStoreInfo BIfsi = new warehouse.BasicInfo.frmStoreInfo(); BIfsi.ShowDialog();
}
private void btnISL_Click(object sender, EventArgs e)//入库查询
{
LookandSum.frmISLook LSfisl = new warehouse.LookandSum.frmISLook(); LSfisl.ShowDialog();
}
private void btnSL_Click(object sender, EventArgs e)//库存查询
{
LookandSum.frmGILook LSfgil = new warehouse.LookandSum.frmGILook(); LSfgil.ShowDialog();
}