SQL课程设计论文.docx

上传人:b****5 文档编号:29745392 上传时间:2023-07-26 格式:DOCX 页数:28 大小:168.13KB
下载 相关 举报
SQL课程设计论文.docx_第1页
第1页 / 共28页
SQL课程设计论文.docx_第2页
第2页 / 共28页
SQL课程设计论文.docx_第3页
第3页 / 共28页
SQL课程设计论文.docx_第4页
第4页 / 共28页
SQL课程设计论文.docx_第5页
第5页 / 共28页
点击查看更多>>
下载资源
资源描述

SQL课程设计论文.docx

《SQL课程设计论文.docx》由会员分享,可在线阅读,更多相关《SQL课程设计论文.docx(28页珍藏版)》请在冰豆网上搜索。

SQL课程设计论文.docx

SQL课程设计论文

SQL课程设计

――商品库存管理

班级:

07计机(本)学号:

14号姓名:

一、系统设计

按照管理信息系统设计的要求,结合库存管理系统实际,在需求分析的基础上,给出如下设计:

概念结构设计、数据库设计和功能设计。

需求分析

通过对商品管理日常工作的可行性分析和详细调查,确定开发商品库存管理系统。

开发小组经过数据收集、调查研究,明确了该系统的主要功能是:

对仓库中各种商品的名称、种类和数量进行登记,在每次商品购进和销售时由工作人员开出购进单和销售单,登记往来单位和商品信息。

同时购进单和销售单信息需要进行长期保存,并提供简便的查询功能。

概念结构设计

系统的E-R图(图中省略了实体和联系的属性)如下图所示,每个实体及属性如下:

●商品:

商品编号、商品名称、规格、型号、数量;

●往来单位:

往来单位编号、往来单位名称、地址、电话;

●业务员:

业务员编号、姓名、性别、职务、电话;

●购进单:

购进单编号、日期、商品编号、数量、往来单位编号、业务员编号;

●销售单:

销售单编号、日期、商品编号、数量、往来单位编号、业务员编号;

系统的E-R图

 

数据库设计

●在E-R图中,有五个实体和六个联系。

因为每个实体可以用一张表表示,而一对多的联系不需要建新表,所以把E-R图转换成数据库的五张表就可以了。

●商品表

●往来单位表

●业务员表

●购进单表

●销售单表

功能设计

●将库存管理系统的功能划分为八个模块:

商品库存查询、购进单录入、销售单录入、购进单查询、销售单查询、商品信息维护、往来单位信息维护和业务员维护。

功能框图

 

二、程序设计

主页面Default.aspx

源代码如下:

center">

center">






 

573px;height:

55px;border-right:

#99ccff1ptsolid;border-top:

#99ccff1ptsolid;border-left:

#99ccff1ptsolid;border-bottom:

#99ccff1ptsolid;">

573px;color:

#ffffff;height:

30px;background-color:

#507CD1;"align="center">

商品库存管理

570px;height:

104px;border-right:

#99ccff1ptsolid;table-layout:

fixed;border-top:

#99ccff1ptsolid;border-left:

#99ccff1ptsolid;border-bottom:

#99ccff1ptsolid;border-collapse:

collapse;">

140px;border-right:

#99ccff1ptsolid;table-layout:

fixed;border-top:

#99ccff1ptsolid;border-left:

#99ccff1ptsolid;border-bottom:

#99ccff1ptsolid;"align="center">

HyperLinkID="HyperLink9"runat="server"NavigateUrl="~/spkccx.aspx"Width="100px"Target="_blank">商品库存查询

HyperLink>

140px;border-right:

#99ccff1ptsolid;table-layout:

fixed;border-top:

#99ccff1ptsolid;border-left:

#99ccff1ptsolid;border-bottom:

#99ccff1ptsolid;"align="center">

HyperLinkID="HyperLink10"runat="server"NavigateUrl="~/jhd.aspx"Width="85px"Target="_blank">购进单录入

HyperLink>

140px;border-right:

#99ccff1ptsolid;table-layout:

fixed;border-top:

#99ccff1ptsolid;border-left:

#99ccff1ptsolid;border-bottom:

#99ccff1ptsolid;"align="center">

HyperLinkID="HyperLink11"runat="server"NavigateUrl="~/xsd.aspx"Width="89px"Target="_blank">销售单录入

HyperLink>

140px;border-right:

#99ccff1ptsolid;table-layout:

fixed;border-top:

#99ccff1ptsolid;border-left:

#99ccff1ptsolid;border-bottom:

#99ccff1ptsolid;"align="center">

HyperLinkID="HyperLink12"runat="server"NavigateUrl="~/jhdcx.aspx"Width="91px"Target="_blank">购进单查询

HyperLink>

140px;border-right:

#99ccff1ptsolid;table-layout:

fixed;border-top:

#99ccff1ptsolid;border-left:

#99ccff1ptsolid;border-bottom:

#99ccff1ptsolid;"align="center">

HyperLinkID="HyperLink13"runat="server"NavigateUrl="~/xsdcx.aspx"Width="105px"Target="_blank">销售单查询

HyperLink>

140px;border-right:

#99ccff1ptsolid;table-layout:

fixed;border-top:

#99ccff1ptsolid;border-left:

#99ccff1ptsolid;border-bottom:

#99ccff1ptsolid;"align="center">

HyperLinkID="HyperLink14"runat="server"NavigateUrl="~/spwh.aspx"Width="102px"Target="_blank">商品维护

HyperLink>

140px;border-right:

#99ccff1ptsolid;table-layout:

fixed;border-top:

#99ccff1ptsolid;border-left:

#99ccff1ptsolid;border-bottom:

#99ccff1ptsolid;"align="center">

HyperLinkID="HyperLink15"runat="server"NavigateUrl="~/wldwwh.aspx"Width="107px"Target="_blank">往来单位维护

HyperLink>

140px;border-right:

#99ccff1ptsolid;table-layout:

fixed;border-top:

#99ccff1ptsolid;border-left:

#99ccff1ptsolid;border-bottom:

#99ccff1ptsolid;"align="center">

HyperLinkID="HyperLink16"runat="server"NavigateUrl="~/ywywh.aspx"Width="105px"Target="_blank">业务员维护

HyperLink>

设置数据库连接信息

Web.Config:

……

购进单查询jhdcx.aspx页面

源代码如下:

center">





500px;height:

83px;table-layout:

fixed;">

100px;height:

27px;">

400px;height:

27px;">

购货单查询

100px;height:

27px;">

日期范围

400px;height:

27px;">

TextBoxID="TextBox1"runat="server">

TextBox>

TextBoxID="TextBox2"runat="server">

TextBox>

100px;height:

27px;">

商品编号

400px;height:

27px;">

TextBoxID="TextBox3"runat="server">

TextBox>

ButtonID="Button1"runat="server"OnClick="Button1_Click"Text="查询"Width="81px"/>

GridViewID="GridView1"runat="server"Width="506px"AllowPaging="True"OnPageIndexChanging="GridView1_PageIndexChanging"PageSize="6">

GridView>


销售单录入xsd.aspx页面

源代码如下:

center">





468px;height:

56px">

30px;width:

600px;color:

#0000ff;height:

31px"align="center">

销售单

auto;width:

528px;height:

115px;border-right:

#99ccff1ptsolid;border-top:

#99ccff1ptsolid;border-left:

#99ccff1ptsolid;border-bottom:

#99ccff1ptsolid;border-collapse:

collapse;">

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left-color:

#;border-bottom-width:

thin;border-bottom-color:

#;border-top-color:

#;border-right-width:

thin;border-right-color:

#;">

销售单编号 

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left-color:

#;border-bottom-width:

thin;border-bottom-color:

#;border-top-color:

#;border-right-width:

thin;border-right-color:

#;">

TextBoxID="TextBox1"runat="server"ReadOnly="True">

TextBox>

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left-color:

#;border-bottom-width:

thin;border-bottom-color:

#;border-top-color:

#;border-right-width:

thin;border-right-color:

#;">

日期 

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left-color:

#;border-bottom-width:

thin;border-bottom-color:

#;border-top-color:

#;border-right-width:

thin;border-right-color:

#;">

TextBoxID="TextBox2"runat="server">

TextBox>

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left-color:

#;border-bottom-width:

thin;border-bottom-color:

#;border-top-color:

#;border-right-width:

thin;border-right-color:

#;">

商品编号 

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left-color:

#;border-bottom-width:

thin;border-bottom-color:

#;border-top-color:

#;border-right-width:

thin;border-right-color:

#;">

DropDownListID="DropDownList1"runat="server"Width="162px">

DropDownList>

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left-color:

#;border-bottom-width:

thin;border-bottom-color:

#;border-top-color:

#;border-right-width:

thin;border-right-color:

#;">

往来单位编号 

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left-color:

#;border-bottom-width:

thin;border-bottom-color:

#;border-top-color:

#;border-right-width:

thin;border-right-color:

#;">

DropDownListID="DropDownList2"runat="server"Width="160px">

DropDownList>

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left-color:

#;border-bottom-width:

thin;border-bottom-color:

#;border-top-color:

#;border-right-width:

thin;border-right-color:

#;">

业务员编号 

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left-color:

#;border-bottom-width:

thin;border-bottom-color:

#;border-top-color:

#;border-right-width:

thin;border-right-color:

#;">

DropDownListID="DropDownList3"runat="server"Width="158px">

DropDownList>

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left-color:

#;border-bottom-width:

thin;border-bottom-color:

#;border-top-color:

#;border-right-width:

thin;border-right-color:

#;">

数量 

300px;height:

40px;border-top-width:

thin;border-left-width:

thin;border-left

展开阅读全文
相关搜索

当前位置:首页 > 高中教育 > 理化生

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1