网上商城详细设计说明书Word格式文档下载.docx
《网上商城详细设计说明书Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《网上商城详细设计说明书Word格式文档下载.docx(15页珍藏版)》请在冰豆网上搜索。
2.技术概述
2.1目标
我们使用C*以及数据库技术构建,争取将本做成一个界面友好、用户购物方便、管理员管理方便的购物系统。
2.2硬件支持
Cpu:
弄个四核最好比方老一代coreQ8400
2.3软件支持
操作系统:
Windows*p/vista/seven均可,C*开发环境。
3.功能需求
3.1功能块划分
网上购物系统
在线购物
添加留言
显示留言
管理留言
购物车管理
商品管理
分类展示
生成订单
商城留言
4.具体设计
4.1首页设计
新建web窗体default.asp*,其代码为:
<
%PageTitle="
Language="
C*"
MasterPageFile="
~/shop.master"
AutoEventWireup="
true"
CodeFile="
Default.asp*.cs"
Inherits="
_Default"
%>
asp:
ContentID="
Content1"
ContentPlaceHolderID="
head"
runat="
Server"
>
<
styletype="
te*t/css"
.style23
{
width:
116p*;
height:
94p*;
}
.style24
600p*;
132p*;
.style25
104p*;
.style26
598p*;
.style27
106p*;
/style>
/asp:
Content>
Content2"
ContentPlaceHolder1"
tablestyle="
font-size:
9pt"
class="
style24"
tr>
tdvalign="
top"
align="
left"
table>
tdclass="
style25"
style="
11pt;
color:
*FFFFFF;
background-color:
*FF0000;
border-width:
0p*"
热点促销
/td>
tdstyle="
9pt;
0p*;
background-image:
url('
images/line.GIF'
);
178p*;
"
b>
ahref="
news\more.asp*"
更多&
gt;
&
/a>
/b>
/tr>
/table>
RepeaterID="
Repeater1"
server"
ItemTemplate>
news\show.asp*"
id=<
%*Eval("
id"
)%>
target="
_blank"
title"
)%>
AddTime"
"
{0:
d}"
br/>
/ItemTemplate>
Repeater>
imgalt="
src="
images/TEL.gif"
/>
tableclass="
style26"
style27"
最新产品
background-image:
)"
&
nbsp;
DataListID="
DataList1"
DataKeyField="
bh"
DataSourceID="
AccessDataSource1"
RepeatColumns="
3"
RepeatDirection="
Horizontal"
>
show.asp*"
%*Eval("
altimgsrc="
images/<
pic"
style23"
border-style:
none"
span>
LabelID="
titleLabel"
Te*t='
productName"
'
priceLabel"
price"
/span>
DataList>
AccessDataSourceID="
DataFile="
~/App_Data/shop.mdb"
Selectmand="
SELECTtop9[bh],[pic],[price],[productName]FROM[product]orderbybhdesc"
AccessDataSource>
接着,切换到程序文件.cs编辑栏里,写入代码:
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Web;
usingSystem.Web.UI;
usingSystem.Web.UI.WebControls;
{
protectedvoidPage_Load(objectsender,EventArgse)
stringstrSQL="
selecttop7*fromnewsorderbyiddesc"
;
Repeater1.DataSource=DbManager.E*ecuteQuery(strSQL);
Repeater1.DataBind();
}
4.2商品详细信息页面设计
新建show.asp*,配置好各项值以后,载入代码:
show.asp*.cs"
show"
.style3
100%;
.style4
te*t-align:
center;
253p*;
style3"
style4"
ImageID="
Image1"
t*tTitle"
Te*t="
Label"
Label>
tdalign="
t*tContents"
售价:
t*tPrice"
购置数量:
Te*tBo*ID="
num"
Width="
37p*"
1<
Te*tBo*>
ImageButtonID="
ImageButton1"
ImageUrl="
~/images/gouWuChe3.jpg"
Height="
74p*"
ImageAlign="
Middle"
onclick="
ImageButton1_Click"
72p*"
/>
接着建立.cs程序文件,编辑写入以下代码:
usingSystem.Data;
protectedvoidPage_Load(object