java超市管理系统课程设计报告

更新时间:2023-04-16 04:43:01 阅读量: 实用文档 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

湖南文理学院课程设计题目:超市管理系统

系别计算机科学与技术

班级计科12102

学生姓名罗巍杨欢杨沁铠唐振

学号

指导教师谭文学

课程设计进行地点:第三实验楼A617

任务下达时间: 2014 年 5 月 21 日

起止日期: 2014 年 5 月 21 日起——至 2014 年 6月 21 日止

摘要

随着小型超市规模的发展不断扩大,商品数量急剧增加,有关商品的各种信息量也成倍增长,传统的人工记忆方式也慢慢的无法适应形势的变化。随着信息技术的发展,计算机已被广泛的用于社会的各个领域,成为推动社会发展的技术动力。而在计算机应用中,软件的作用十分突出,软件已经发展成为信息技术的核心,主导着信息产品的开发和信息技术市场的进一步的开拓。软件产业已成为社会信息化进程中的一个战略性产业。在软件技术的应用中软件的开发技术尤其是应用型软件产品的开发技术成了重中之重。不断开发适应用户需求、市场需要的新型软件产品。随着社会的发展,软件也在不断的更新换代。

由于有些超市里对商品的进货、售出及商品的基本信息等的一些繁琐处理都是通过手工进行记载并进行处理的,对商品信息的处理工作量特别大,不仅浪费大量的人力物力,而且还很容易出错,更重要的是为了方便顾客,超市需要时时刻刻对商品对各种信息进行统计分析。一直以来人们使用传统人工的方式管理超市的各项工作, 这种管理方式存在着许多缺点, 如: 效率低、保密性差, 另外时间一长, 将产生大量的冗余文件和数据, 这给查找、统计、更新和维护工作都带来了很大的困难。然而大型的超市管理系统功能过于强大而造成操作繁琐降低了小超市的工作效率。如果有这样一套完整的小型超市管理系统软件,只需点击几下鼠标就可完成所需操作,那样就会大大的提高超市员工的工作效率和管理水平,并能进一步提高超市的工作效率并使超市实施规范化管理。鉴于小型超市管理

中存在的诸多问题, 我们在此次课程设计中以小型超市管理系统为研究

课题,对此系统进行了全面的设计。

超市管理系统由顾客、采购员、销售员、经理的管理界面四部分组成。

超市管理系统应该能够为用户提供充足的信息和快捷的查询手段。

一个完整系统的设计,当然就离不开后台环境的支持,在此次设计中,我

们主要以sqlsever数据库作为基础,实行此系统的开发。

目录

一、系统需求分析................................................ - 1 -

系统名称: .................................................. - 1 -系统介绍: .................................................. - 1 -开发背景 .................................................... - 1 -.系统面向的用户群体 ......................................... - 1 -开发环境 .................................................... - 1 -二、系统总体设计................................................ - 2 -

系统功能结构图 .............................................. - 2 -三、系统详细设计................................................ - 2 -

数据库实体E-R图设计 ........................................ - 2 -数据库表的设计 .............................................. - 4 -物理设计文档 ................................................ - 6 -详细设计 ................................................... - 10 -

四、系统总结................................................... - 20 -

五、系统设计心得体会........................................... - 21 -

六、参考文献................................................... - 21 -

一、系统需求分析

系统名称:

小型超市管理系统

系统介绍:

界面设计简洁、友好、美观大方

操作简单、快捷方便

数据存储安全、可靠

信息分类清晰、准确

强大的查询功能、保证数据查询的灵活性

提供销售排行,为管理员提供真实的数据信息

提供灵活、方便的权限设置功能,使整个系统的管理分工明确

对用户的输入的数据,系统进行严格的数据检验,尽可能排人为错误开发背景

随着现代科学技术的迅猛发展,计算机技术已经渗透到各个领域,成为各行业必不可少的工具,特别是Internet技术的推广和信息高速公路的建立,使IT产业在市场竞争中越发显示出其独特的优势,步入信息化时代,有巨大的数据信息等待加工处理和传输,这使得对数据库的进一步开发和利用显得尤为迫切。

作为国内市场的一些中小型超市,它们在信息化过程中的步伐要落后于大中型超市,而对于这些企业的资源管理,信息的存储和处理也显得迫切需要,要适应市场竞争,就需要有高效的处理方式和管理方法,因此加快超市的信息化进程是必不可少的。

我国的超市在20世纪90年代初期形成,现在已经成为我国零售业的一种重要形态,为国民经济的发展发挥了重要的作用。随着经济的快速发展,超市的经营管理也变得愈加复杂,早期的售货员站柜台的形式早已不能满足现有销售业的发展,这样就迫切地需要引入新的管理技术。

.系统面向的用户群体

主要是中小型超市使用者,该消费群体具有以下特征:1超市日常管

理人工化居多,工作效率较低;2超市日常交易额较小,货物流通较小,不愿花高价购进大型超市管理系统。因此,该消费群体对产品的功能性需求并不高,只需满足前台销售系统、后台货物管理即可。

开发环境

Eclipse+mysql

二、系统总体设计

系统功能结构图

小超市管理系统是一个专门针对小型的商店和超市的智能化、自动化的管理系统。其功能总框图如图2-1所示。

登录功能介绍

登录功能是进入系统必须经过的验证过程,其主要功能是验证使用者的身份,确认使用者的权限,从而在使用软件过程中能安全地控制系统数

据,即不同的工作人员有不同的权限,每个使用人员不得跨越其权限操作软件,可以避免不必要的数据丢失事件发生。

登录的界面如图2-2所示

登陆成功!!!

登陆界面源代码

package uml_supermarket;

import .*;

import .*;

import

import .*;

/**

*

Title:

*

Description:

*

Copyright: Copyright (c) 2003

*

Company:

* @author unascribed

* @version

*/

public class Logincs extends JDialog implements ActionListener{ dd(panel1);

(jPanel1, ;

(jLabel3, new XYConstraints(-1, 0, 395, 30));

(jLabel5, new XYConstraints(274, 30, 121, 32));

(jLabel4, new XYConstraints(127, 32, 143, 30));

(jPasswordField1, new XYConstraints(143, 196, 132, 24));

(jTextField1, new XYConstraints(143, 136, 132, 24));

(jLabel2, new XYConstraints(23, 195, 60, 25));

(jLabel1, new XYConstraints(23, 134, 60, 25));

(jLabel6, new XYConstraints(-2, 65, 396, 191));

(jButton1, new XYConstraints(90, 274, 68, 28));

(jButton2, new XYConstraints(193, 275, 69, 28));

}

public void actionPerformed(ActionEvent e){

;

String userName="sa"; oString() ;ewInstance();

} catch (InstantiationException e1) {

;

import .*;

import .*;

/**

*

Title:

*

Description:

*

Copyright: Copyright (c) 2003

*

Company:

* @author unascribed

* @version

*/

public class Registration extends JDialog implements ActionListener {

String userName="sa"; dd(panel1);

(jPanel1, ;

(jTextField1, new XYConstraints(80, 31, 76, 25));

(jTextField2, new XYConstraints(79, 76, 78, 23));

(jTextField3, new XYConstraints(79, 119, 77, 25));

(jTextField4, new XYConstraints(78, 159, 77, 26));

(jLabel4, new XYConstraints(26, 158, 42, 28));

(jLabel3, new XYConstraints(28, 118, 39, 28));

(jLabel2, new XYConstraints(28, 76, 48, 26));

(jLabel1, new XYConstraints(31, 35, 41, 27));

(jLabel7, new XYConstraints(185, 30, 49, 25));

(jTextField5, new XYConstraints(258, 35, 120, -1));

(jLabel5, new XYConstraints(185, 78, 78, 23));

(jLabel6, new XYConstraints(185, 116, 73, 23));

(jTextField7, new XYConstraints(258, 119, 121, 23)); (jTextField6, new XYConstraints(258, 79, 119, 24));

(jButton1, new XYConstraints(197, 194, 80, 26));

(jButton2, new XYConstraints(296, 194, 82, 26));

}

public void actionPerformed(ActionEvent ee){

}

void jButton1_actionPerformed(ActionEvent e) {

String userGender = ()) ;

int userAge = ())) ;

String username= ()) ;

String userAuthority = ()) ;

String userAddress = ()) ;

String userPassword = ()) ;

String testPassword = ()) ;

if(testPassword)){

try{

(driverName);

dbConn=(dbURL,userName,userPwd);

Statement stmt = , ;

String sql = "INSERT INTO T_user values(,,,,,,)"; PreparedStatement ps=(sql);

try{

;

import .*;

;

/**

*

Title:

*

Description:

*

Copyright: Copyright (c) 2003

*

Company:

* @author unascribed

* @version

*/

public class Registration extends JDialog implements ActionListener {

String userName="sa"; dd(panel1);

(jPanel1, ;

(jTextField1, new XYConstraints(80, 31, 76, 25));

(jTextField2, new XYConstraints(79, 76, 78, 23));

(jTextField3, new XYConstraints(79, 119, 77, 25));

(jTextField4, new XYConstraints(78, 159, 77, 26));

(jLabel4, new XYConstraints(26, 158, 42, 28));

(jLabel3, new XYConstraints(28, 118, 39, 28));

(jLabel2, new XYConstraints(28, 76, 48, 26));

(jLabel1, new XYConstraints(31, 35, 41, 27));

(jLabel7, new XYConstraints(185, 30, 49, 25));

(jTextField5, new XYConstraints(258, 35, 120, -1)); (jLabel5, new XYConstraints(185, 78, 78, 23));

(jLabel6, new XYConstraints(185, 116, 73, 23));

(jTextField7, new XYConstraints(258, 119, 121, 23)); (jTextField6, new XYConstraints(258, 79, 119, 24));

(jButton1, new XYConstraints(197, 194, 80, 26));

(jButton2, new XYConstraints(296, 194, 82, 26));

}

public void actionPerformed(ActionEvent ee){

}

void jButton1_actionPerformed(ActionEvent e) {

String userGender = ()) ;

int userAge = ())) ;

String username= ()) ;

String userAuthority = ()) ;

String userAddress = ()) ;

String userPassword = ()) ;

String testPassword = ()) ;

if(testPassword)){

try{

(driverName);

dbConn=(dbURL,userName,userPwd);

Statement stmt = , ;

String sql = "INSERT INTO T_user values(,,,,,,)"; PreparedStatement ps=(sql);

try{

;

import .*;

import

import .*;

/**

*

Title:

*

Description:

*

Copyright: Copyright (c) 2003

*

Company:

* @author unascribed

* @version

*/

public class CustomerWindow extends JDialog {

dd(panel1);

(tableScrollPane1, new XYConstraints(219, 140, -1, -1)); (Table1, new XYConstraints(2, 0, 542, 222)); (jButton2, new XYConstraints(0, 267, 131, 23));

(jLabel1, new XYConstraints(136, 268, 39, 21));

(jTextField2, new XYConstraints(178, 268, 65, 21));

(jLabel2, new XYConstraints(249, 268, 52, 21));

(jTextField1, new XYConstraints(297, 268, 66, 23));

(jTextField3, new XYConstraints(431, 309, 65, 21));

(jLabel3, new XYConstraints(375, 309, -1, 23));

(jLabel4, new XYConstraints(137, 309, 39, 21));

(jLabel5, new XYConstraints(249, 309, 50, 22));

(jTextField5, new XYConstraints(299, 309, 69, 20));

(jButton3, new XYConstraints(-1, 307, 133, 22));

(jLabel6, new XYConstraints(136, 339, 46, 21));

(jTextField6, new XYConstraints(180, 339, 66, -1)); (jLabel7, new XYConstraints(249, 339, 50, 21));

(jTextField7, new XYConstraints(298, 339, 71, 21));

(jLabel8, new XYConstraints(378, 339, 50, 20));

(jButton4, new XYConstraints(413, 384, 130, 22));

(jPasswordField1, new XYConstraints(432, 338, 66, 19));

(jTextField4, new XYConstraints(178, 310, 71, 21));

(jButton1, new XYConstraints(-2, 233, 133, 22));

}

oodsPrice FROM [UML_CS].[dbo].[goodsInfo] WHERE GoodsName = '"+GoodsName+"'", null, true, );

(queryDataSet2);

();*/

try{

(driverName);

dbConn=(dbURL,userName,userPwd);

连接成功!"); oodsID,[goodsInfo].GoodsName,[goodsInfo].GoodsNumber,[goodsInfo ].GoodsProduct,[go" +

"odsInfo].GoodsPrice FROM [UML_CS].[dbo].[goodsInfo] WHERE GoodsID = '"+GoodsID+"'", null, true, );

(queryDataSet3);

();*/

try{

(driverName);

dbConn=(dbURL,userName,userPwd);

连接成功!"); dbo].[user] WHERE userName = '"+customerName+"'") ;*/

stmt = ();

ResultSet rs = ("SELECT userPassword FROM [user] WHERE userName = '"+customerName+"'") ;

ResultSet inf=("INSERT INTO [vendition_TABLE](GoodsName,GoodsSize,GoodsCustomNumber,Venditi onDate,CustomerName)

VALUES('"+goodsName+"','"+goodsSize+"','"+goodsCustomNumber+"', '"+venditionDate+"','"+customerName+"')") ;

while()){

userPassword = ("userPassword") ;

}

dbo].[vendition_TABLE](GoodsName,GoodsSize,GoodsCustomNumber,Ve nditionDate,CustomerName)

VALUES('"+goodsName+"','"+goodsSize+"','"+goodsCustomNumber+"', '"+venditionDate+"','"+customerName+"')") ;

);

(queryDataSet4);

();*/

try{

(driverName);

dbConn=(dbURL,userName,userPwd);

连接成功!"); ;

import .*;

i

import

/**

*

Title:

*

Description:

*

Copyright: Copyright (c) 2003

*

Company:

* @author unascribed

* @version

*/

public class BuyerWindow extends JDialog { host:1433;DatabaseName=yonghui";

String userName="sa"; dd(panel1, ; }

public void cancel(){

dispose() ;

}

浏览全部商品订货单

本文来源:https://www.bwwdw.com/article/7ysq.html

Top