#  觉得本文对你有用的话点个关注吧

目录

  • 概述......................................................
  • 需求分析..................................................
  • 念结构设计................................................
  • 逻辑结设计................................................
  • 软件功设计................................................
  • 代码设计和心得............................................
  • 概叙

1.0 项目背景;

仓库在现实生活中用途十分广泛,各种商城、超市要利用仓库存放物资,药房、医院等要利用仓库存放药品,企业、工厂等要利用仓库存放原材料、生产成品,因此仓库的管理成了一项十分重要的工作。

人工管理仓库既费时又费力,而且容易造成混乱,严重时会影响商城、企业的正常运作,造成恶劣的后果。随着信息技术的发展,办公自动化的普及,如何快速,高效,便捷的管理仓库受到了高度的关注;因此为了解决这个问题我们提供这个系统以满足仓库管理需求,本系统是基于超市仓库的管理系统。

1.1 编写目的:

编写实用的仓库管理系统为仓库管理系统提供一个基础,方便企业的商品管理。

1.3 软件定义

企业仓库管理系统(Equipment Managerment System); 是实现企业对货物的出、入库进行高效的管理。通过应用系统应能对商品基本信息进行管理。新的商 品信息的入库、出库等操作也是其中的一部分。 同时按照一定的条件查询、 统计符合条件的商品信息。

第2章 需求分析

2.1 系统流程图

2.1.1 系统流程图符号

2.1.2本系统使用的总的系统流程图;

2.1.3 数据项;

第三章   概念结构设计

3.1  E-R图

  • 逻辑结构设计

逻辑结构设计的任务就是把概念结构设计阶段设计好的基本E-R图转换为选用DBMS产品所支持的数据模型相符合的逻辑结构。把基本E-R图转换成关系模型。

第五章  软件功能设计

5.1系统功能结构

可得如下系统功能结构图;

  • 代码设计和心得

6.1核心代码

  1. 用户信息——表    Users

create table Users (

Userno char( 10) primary key,

Userame char(20) not mull,

UserPassword char( 20) not mull,

Usercon char(2) not null check(Usercon in(C是:否)

)

  1. 商品信息——表 Goods

create table Goods(

(

Gno char(4) primary key,

Gname char(20) not null,

Pno char(4) not null,

Gdate datetime,

foreign key (Pno ) references Provider(Pno)

)

  1. 仓库表——Storages

create table Storage

(

Sno char (4) primary key,

Sname char (20) ,

Sdress char (20)

)

  1. 库存表-----Storage

create table Storage

(

Gno char (4) primary key,

Sno char (4) not null,

Gnum int not null check(Gnum=0),

foreign key (Sno ) references Storages(Sno),

foreign key (Gno) references Goods(Gno)

)

  1. 入库信息-----表

Instoragecreate table Instorage(

Gno char (4) not null

Indate datetime primary key

Userno char (10) not null,

Addnum int not null,

Sno char (4) not null,

foreign key (Gno) references Goods(Gno),

foreign key (Sno ) references Storages(Sno),

foreign key(Userno) references Users(Userno)

)

  1. 出库信息-----表Outstorage

create table Outstorage (

Gno char (4) not mull ,

Indate datetime primary key

Usemo char (10) not null,

Denum int not null,

Sno char (4) not null,

foreign key (Gno) references Goods(Gno),

foreign key (Sno ) references Storages(Sno)

foreign key(Userno) references Users(Userno)

)

  1. 供应商Porvider

create table Provider(

Pno char (4) primary key,

Pname char (20) ,

Phone char (20)

数据库链接与处理类;

public class DBhelper

{

public static string connSting ="Data Source= (1ocal) ;Database- WMS_ Project;User ID = 49; Pwd=123"

SqlConnection connection new SqlConnection (connSting) ;

public bool Userselectstring usersname, string password, string

IS)

{

string sqlJ String. Format(" select count(*) from Users where Username-' (0) and UserPassword=' (1)' and Usercon =' (2);" usersname,password,IS);

Try

{

connection. 0pen();

SqlCommand command Hew SqlCommand (sql, connection) ;

int num in() command. ExecuteScalar0 ;

if (num ) 0)

{

return true;

}

Else

{

return false ;

}

}

Catch( Exception ex)

{

MessageBox. Show (ex. Message,”操作数据库出错”,MessageBoxButtons. OK MessageBoxIcon. Exclamation) ;

return false;

}

finally

{

connection, Close();

}

public bool SelectUserstring usersname, string password, string user)

{

string sql 8tring. Format("select Username from Users where Username-' (0)' and UserPassword-' (1)' and Usercon .=" (2);" usersname, password) ;

try

{

connection. 0pen();

Sq1Command command Hew Sq1Command (sql, connection)

SqlDataReader reader command. ExecuteReader0;

while (reader. Read( ));

{

user=reader. GetString(0);

}

return true ;

catch (Exception ex)

{

MessageBox. Show(ex. Message,"操 作数据库出错”MessageBoxButtons. oK,MessageBoxIcon. Exclamation) ;

return false;

}

Finally

{

connection. Close();

}

}

public bool AddUser(string usno, string user sname, string password, string IS)

{

String   sq1   = String. Format (" INSERT

Users (Userno, Username, UserPassword, Usercon)" + "VALUES(' (0)','(1)',' (2)',' (3)')",usno,

Try

{

connection. 0pen0();

SqlCommand command new SqlCommand (sql,

int num F int) command. ExecuteNonQuery( ;

if (num > 0)

MessageBox. Show('添加用户成功”,” 添加成功”,MessageBoxButtons. OK,MessageBoxIcon. Information) ;

return true;

}

else

{

MessageBox. Show("添加用户失败”,”添 加失败”,MessageBoxButtons. OK, MessageBoxIcon. Information) :

return false;

}

}

catch (Exception ex)

{

MessageBox. Show (ex. Message,

}

MessageBoxIcon. Excl amation) ;return false;"操作数据库出错",MessageBoxButtons. OK,

Return false;

}

Finally

{

Connect.Close();

}

}

public bool DeleteUser(string usno)

{

String sql 8tring. Format("Delete From users Where Userno=' (0)' űsno);

try

{

connection. 0pen();

SqlCommand command new SqlCommand (sql, connection) ;

int num = int) command. ExecuteNonQuery :

if (num > 0)

{

MessageBox. Show("HB HFiDhj", " H P 1l, Jh ", MessageBoxButtons. 0K,MessageBoxIcon. Information) ;

return true;

}

Else

{

MessageBox. Show("HlHRHPkWx", "HFRE k ", MessageBoxButtons. 0K,MessageBoxIcon. Information);

return false;

}

}

catch'( Exception ex)

MesageBox. Show(ex. Message,” 操作数据库出错”,MessageBoxButtons. OK,MessageBoxIcon. Exclamation) :

return false;

}

finally

{

connection. Close() ;

}

public bool ChangePWD(String Usno, string i Usname, string Uspassword,newpassword)

{

string sql - String. Format("UPDATE users set UserPassword- (0 where Userno-' ()'", newpassword, Usno);

string sqla String.Format("select count(*) from Users where Userno-' (0)' and Username' (1)' and UserPassword-" (2)': Usno, Usname, Uspassword):

try

{

connection.0pen0;

SqlComand command new SqlCommand (sqla, connection) ;

int num =in0) command. ExecuteScalar0 ;

if (num > 0)

{

Sq1Command commands new SqlCotmand (sql, connection) ;

Try

{

MessageBox. Show("修改密码成功 " “修改密码成功”MessageBoxButtons. оK, MessageBoxIcon. Information);

return true;

}

catch

{

MessageBox. Show("修改密码失败“,”修改密码失败“MessageBoxButtons. 0K, MessageBoxIcon. Information) ;

return false ;

}

}

else

{

MessageBox. Show(T密码验证失败”,”请确认密码用户名编号是否正确”,MessageBoxBut tons.0K, MessageBoxIcon. Information) ;

return false;

}

}

Catch  (Exception  ex)

{

MessageBox. Show(ex. Message,"操 作数据库出错”,MessageBoxButtons. OK,MessageBoxIcon. Exclamation) ;

return false;

}

Finally

{

connection。Close();

}

}

}

设计心得:

我从这次实验实践中,我学到了从最基本的地方入手,了解行情从实际出发解决实际问题。我也对实验设计有了更加清楚认识。我下去积极和同学交流,发现了自己很多的问题所在,希望在日后的训练中不断加强自己的短板,

数据库仓库管理系统课程设计相关推荐

  1. java仓库管理设计报告_仓库管理系统(课程设计JSPJAVA大学设计).doc

    仓库管理系统(课程设计JSPJAVA大学设计) 摘 要 随着经济的不断繁荣以及加入WTO后市场环境的变化,对企业的生产经营提出了更高的要求,企业必须综合利用各种先进制造技术,在网络与信息技术的支持下, ...

  2. 仓库管理系统/课程设计/ASP.NET/

    [ASP.NET课程设计作品] 仓库管理系统 源码:https://download.csdn.net/download/bugle_call/12305688 大二 / ASP.NET / 课程设计 ...

  3. 1.0 java_Mybatis_oracle基于WEB的仓库管理系统的设计与实现(源码+数据库sql+论文+视频齐全)----库管理系统---源码在底部

    基于Web的仓库管理系统的设计与实现 摘 要 仓库物品的管理是与我们的日常生活息息相关的一个重大问题.随着我国经济飞速的发展,改革开放的不断深入,企业要想在激烈的市场竞争中立于不败之地,要想继续的发展 ...

  4. 数据库管理系统设计Java源代码_《数据库应用》课程设计人事管理系统(java源代码)...

    <数据库应用>课程设计人事管理系统(java源代码) <数据库应用>课程设计人事管理系统(java源代码) <数据库应用>课程设计--人事管理系统(java源代码) ...

  5. 数据库与信息管理课程设计——技术栈【Go+VUE+PGSQL+Redis】的托管培训中心信息管理系统

    一.项目架构介绍 项目技术栈:Go+VUE3+PGSQL+Redis 开发工具:IDEA2021.1 后端开发语言:GoLand 前端架构:VUE3.0(集成Element-UI) 后端架构:gin. ...

  6. 基于Web的仓库管理系统的设计与实现(论文+PPT+源码)

    摘 要 仓库物品的管理是与我们的日常生活息息相关的一个重大问题.随着我国经济飞速的发展,改革开放的不断深入,企业要想在激烈的市场竞争中立于不败之地,要想继续的发展与生存,没有现代化的管理方式与方法是万 ...

  7. 《数据库原理》课程设计-mysql

    <数据库原理>课程设计 原文件链接 所需sql文件 摘 要 数据库技术是现代信息科学与技术的重要组成部分,是计算机数据处理与信息管理系统的核心.数据库技术研究和解决了计算机信息处理过程中大 ...

  8. 大一java图书馆管理系统课程设计

    大一java图书馆管理系统课程设计 代码仅供参考!!!仅供参考!!! 效果图如下 管理员用户名:123  密码123 密码错误的话进入项目resources文件夹有个LMS数据库,使用数据库客户端打开 ...

  9. java成绩管理系统论文总结,JAVA论文成绩管理系统课程设计

    JAVA论文成绩管理系统课程设计 课课 程程 设设 计计 论论 文文 基于基于 JAVAJAVA 的学生成绩管理系统的设计与实现的学生成绩管理系统的设计与实现 学生姓名学生姓名 学学 号号 年级专业年 ...

  10. html课堂考勤系统源码,考勤管理系统课程设计源码

    考勤管理系统课程设计源码 源码描述: 主体分两个大块 员工信息 个人信息查询,员工信息修改,修改密码,添加用户,删除用户 企业管理 考勤登记,基本工资设置,员工考勤,自动生成变动工资表,自动生成福利费 ...

最新文章

  1. ABAP git客户端
  2. [video super resolution] ESPCN论文笔记
  3. 线段树总结(一)【数据结构】
  4. 为什么不同新旧UPS电池不能混用?浮充电压是什么?
  5. 容器源码解析之LinkedHashMap(九)
  6. fillrect不填充被覆盖的区域 mfc_quot;条带覆盖quot;猜想的中二证明:quot;球面条线覆盖或点覆盖quot;积分π...
  7. initial、inherit、unset、revert和all
  8. 团队作业第六次-团队Github实战训练
  9. CMU15213 Intro to Computer Systems学习笔记(14) Exceptional Control Flow: Signals and Nonlocal Jumps
  10. 应用java编写 按键小脚本_一个使用JAVA编写的类似按键精灵的程序,支持脚本文件编写(含源代码) | 学步园...
  11. 杰出人士的七种共性之5-独木求林
  12. JS用图片制作的走动的时间表
  13. 时序数据库TSDB逐日统计的Jave算法实现过程
  14. MySQL 5.6 (Win7 64位)下载、安装与配置图文教程
  15. java双层list扁平化,浅谈java8 stream flatMap流的扁平化操作
  16. linux秘钥对生成器,linux – GPG密钥生成器*不*使用熵
  17. 没迈过PRA的门槛 企业谈何“人工智能”
  18. 华硕天选1隐藏盘恢复系统
  19. HTTP 错误 404.17 - Not Found 请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理
  20. Mysql字段类型转换

热门文章

  1. VueCli 中安装 axios
  2. Java Web之EL表达式和JSTL
  3. Malthus模型预测人口增长
  4. Python实战RBF神经网络
  5. php 快递100接口
  6. 一、信号处理 ——3.维纳滤波(含matlab代码)
  7. TextInput组件练习 - QQLogin界面
  8. Microsoft Windows XP Embedded 技术常见问题
  9. 2022-2028年中国电子政务行业投资策略探讨及市场规模预测报告
  10. html 字体图标大小,CSS ICONFONT 基线和大小问题