管理信息系统ERP系统库存子系统设计课设代码.docx
- 文档编号:519718
- 上传时间:2022-10-10
- 格式:DOCX
- 页数:18
- 大小:18.13KB
管理信息系统ERP系统库存子系统设计课设代码.docx
《管理信息系统ERP系统库存子系统设计课设代码.docx》由会员分享,可在线阅读,更多相关《管理信息系统ERP系统库存子系统设计课设代码.docx(18页珍藏版)》请在冰豆网上搜索。
管理信息系统ERP系统库存子系统设计课设代码
主界面程序
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSJZU;
namespaceSJZU.SWEIMS.GUI.SWEIMS
{
publicpartialclassFrm_Main:
Form
{
publicFrm_Main()
{
InitializeComponent();
}
privatevoidFrm_Main_Load(objectsender,EventArgse)
{
toolStripStatusLabel6.Text=DateTime.Now.ToString();
}
privatevoid查询分析ToolStripMenuItem3_Click(objectsender,EventArgse)
{
Frm_Warehouse_Queryfrm_Warehouse_Query=newFrm_Warehouse_Query();
frm_Warehouse_Query.ShowDialog();
}
privatevoid添加仓库信息ToolStripMenuItem_Click(objectsender,EventArgse)
{
Frm_Warehouse_Addfrm_Warehouse_Add=newFrm_Warehouse_Add();
frm_Warehouse_Add.ShowDialog();
}
privatevoid修改仓库信息ToolStripMenuItem_Click(objectsender,EventArgse)
{
Frm_Warehouse_Updatefrm_Warehouse_Update=newFrm_Warehouse_Update();
frm_Warehouse_Update.ShowDialog();
}
privatevoid删除仓库信息ToolStripMenuItem_Click(objectsender,EventArgse)
{
Frm_Warehouse_Deletefrm_Warehouse_Delete=newFrm_Warehouse_Delete();
frm_Warehouse_Delete.ShowDialog();
}
}
}
仓库信息添加界面
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSJZU.SWEIMS.BusinessModel;
usingSJZU.SWEIMS.BusinessLogic;
namespaceSJZU.SWEIMS.GUI.SWEIMS
{
publicpartialclassFrm_Warehouse_Add:
Form
{
publicFrm_Warehouse_Add()
{
InitializeComponent();
}
privatevoidFrm_Warehouse_Add_Load(objectsender,EventArgse)
{
}
//添加按钮事件
privatevoidbtnAdd_Click(objectsender,EventArgse)
{
if(string.IsNullOrEmpty(txtWarehouseCode.Text.Trim()))
{
MessageBox.Show("请将数据完整输入!
","提示",MessageBoxButtons.OK);
}
else
{
WarehouseManagewarehouseManage=newWarehouseManage();
WarehouseTablewarehouseTable=newWarehouseTable();
warehouseTable.WarehouseCode=(string)txtWarehouseCode.Text;
warehouseTable.WarehouseName=(string)txtWarehouseName.Text;
warehouseTable.Property=(string)txtProperty.Text;
warehouseTable.Department=(string)txtDepartment.Text;
warehouseTable.Address=(string)txtAddress.Text;
warehouseTable.Tel=(string)txtTel.Text;
warehouseTable.Director=(string)txtDirector.Text;
warehouseTable.CreateBy=(string)txtCreateBy.Text;
warehouseTable.CreateTime=int.Parse(dtpCreateTime.Value.ToString("yyyyMMdd"));
warehouseTable.Summary=(string)txtSummary.Text;
inti=warehouseManage.AddWarehouseTable(warehouseTable);
if(i>0)
{
MessageBox.Show("已插入"+i+"条记录!
","提示",MessageBoxButtons.OK);
}
else
{
MessageBox.Show("插入失败!
","提示",MessageBoxButtons.OK);
}
}
}
//取消按钮事件
privatevoidbtnCanel_Click(objectsender,EventArgse)
{
txtWarehouseCode.Text=null;
txtWarehouseName.Text=null;
txtProperty.Text=null;
txtDepartment.Text=null;
txtAddress.Text=null;
txtTel.Text=null;
txtDirector.Text=null;
txtCreateBy.Text=null;
txtSummary.Text=null;
}
//退出按钮事件
privatevoidbtnExit_Click(objectsender,EventArgse)
{
this.Close();
}
}
}
仓库信息删除界面
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSJZU.SWEIMS.BusinessLogic;
namespaceSJZU.SWEIMS.GUI.SWEIMS
{
publicpartialclassFrm_Warehouse_Delete:
Form
{
publicFrm_Warehouse_Delete()
{
InitializeComponent();
}
//点开删除界面时,向下拉菜单中加载可选的仓库编号
privatevoidFrm_Warehouse_Delete_Load(objectsender,EventArgse)
{
AddWarehouseCode();
}
privatevoidAddWarehouseCode()
{
cboWarehouseCode.DataSource=newWarehouseManage().GetWarehouseCode();
cboWarehouseCode.DisplayMember="WAREHOUSECODE";
}
//查询选择的仓库信息
privatevoidbtnQuery_Click(objectsender,EventArgse)
{
if(string.IsNullOrEmpty(cboWarehouseCode.Text))
{
MessageBox.Show("请选择出库单编号!
");
}
else
{
dgvWarehouseDetails.DataSource=newWarehouseManage().GetWarehouseTable(cboWarehouseCode.Text);
}
}
//删除选中的仓库
privatevoidbtnDelete_Click(objectsender,EventArgse)
{
if(string.IsNullOrEmpty(cboWarehouseCode.Text))
{
MessageBox.Show("请选择出库单编号!
");
}
else
{
inti=newWarehouseManage().DeleteWarehouse(cboWarehouseCode.Text);
MessageBox.Show("已经删除"+i+"条记录!
");
dgvWarehouseDetails.DataSource=null;
AddWarehouseCode();
}
}
//点击退出,关闭窗口
privatevoidbtnExit_Click(objectsender,EventArgse)
{
this.Close();
}
}
}
仓库信息更新界面
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSJZU.SWEIMS.BusinessModel;
usingSJZU.SWEIMS.BusinessLogic;
usingSystem.Data.SqlClient;
usingSJZU.SWEIMS.DBUtility;
namespaceSJZ
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 管理信息系统 ERP 系统 库存 子系统 设计 代码