仓库管理系统代码
- 格式:doc
- 大小:50.91 KB
- 文档页数:31
系统主界面(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();
}