网站详细设计文档Word文档下载推荐.docx
《网站详细设计文档Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《网站详细设计文档Word文档下载推荐.docx(27页珍藏版)》请在冰豆网上搜索。
2.1系统性能(Performance)
2.2运行环境(Environment)
2.3大体概念(Concepts)
2.4程序模块结构(ModuleStructure)
2.5后台脚本处置进程(BatchProcess)
2.6人工处置进程(ManualProcess)
2.7系统容错设计(ApplicationExceptions)
3.
用户界面设计(UserInterfaceDesign)
4.
逻辑层设计(LogicLayerDesign)
4.1系统类结构及关系
4.1.1总述:
里咱们抽象出5个实体对象,别离是Category,Product,User,Review和Store,.作为整个BusinessFaç
ade里面的要紧功能块,UserInterfaceLayer通过挪用实体对象的功能函数完成操作。
BusinessFaç
ade层通过BusinessRule层的数据检查,通过DataAccess层以CommonLayer概念的数据结构实现对数据库的访问。
ade
5个实体对象对应的Class名称别离是CategorySystem,ProductSystem,AccountSystem,ReviewSystem,StoreSystem.下面是各个Class实现的要紧接口列表。
4.1.2CategorySystem.
Function:
CreateCategory
Para:
[int]parentID,ParaParaReturn:
Void
Description:
返回目录的子目录,如果是叶子节点,返回空。
FunctionGetParents
[int]categoryID,
[CategoryData]categoryParaPara[int]itemCount,ParaReturn:
[Bool]Description:
更改目录的信息。
SetLinkCategory
[int]srcCategoryID,
[int]destCategoryID
Return:
设定LinkCategory,ifLinkid>
0meansthiscategorywaslinkedtoLinkid.
Function:
GetRecommendProductsByID
[ProductData]productPara
FunctionCreateProduct
[ProductData]product
[bool]Decription:
CreateProduct.
FunctionGetAllProductsInCategory
[ProductData]productParaPara
FunctionGetProductsByConditions
[Conditions]conditions,ParaParaParaDescription:
修改product数据。
4.1.3AccountSystem.
AddBlockList
[int]accountID,
[int]blockerID
intDescription:
为accountID用户Block新的blockID。
FunctionAddTrustList
[int]trusterID
intParaDescription:
用户添加新的WishCategory.
AddWishProduct
[int]accountID,
[int]productID
intDescription:
用户添加收藏的产品。
Function:
CreateAccount
Para:
[string]logonname,
[string]password
boolDescription:
创建新用户
GetAccountByID
[int]accountID,
[AccountData]account
AccountLogon
Para:
[string]logon,
[string]passwd
boolPara
GetTrusteesList
[ListData]listParaParaParaReturn:
从list内外删除选项。
UpdateAccount
[AccountData]account
修改帐号的参数信息。
ChangePassword
[string]oldPassword,
[string]newPassword
Return:
forsucceed;
Falseforfailed.
修改密码。
4.1.4ReviewSystem.
CreateReview
[ReviewData]review
boolDescription:
创建新的Review.
GetReivewRatings
Para
[int]reviewID
ReviewDataParaParafunctionCreateStore
[StoreData]store
[bool]Description:
创建store.
FunctionGetStoreByID
[int]storeID
[StoreData]ParaPara
UpdateStore
updateStoreInfo.
BusinessRules
4.2各要紧算法实现流程
4.2.1Overview.
4.2.2CategoryRelated.
CategoryList
非叶子Category伪代码算法:
Ifnotloginstatus
Begin
IfCached(Page)
showCachePage.Exit;
End;
ListRefineFilter()
TextNavigation
,fromTBL_Propertyp,TBL_Property_Groupgwhere=categoryIDand=categoryIDandcase:
when>
0then=’;
Result=execute(Sql);
Return(Result);
ShowPropertyArr=PropertyArr–SelectedPropertyArr;
StepB:
ShowconditionsfromStepA;
ForeachShowPropertyArrdo
ShowConditionTitle
ListArr=GetConditionListItems(categoryID,ShowPropertyArr[propertyID])
ShowConditionsOfListArr;
Sql=‘select*fromproductwhere‘
ForeachSelectConditionsArr
Begin
Sql=sql+‘and’+SelectConditionsArr[]
ProductDataproduct=Execute(Sql);
ListProducts();
ListProductReviews.
2.3.1ShowReviewsList
RateProduct.
SearchProduct
TBD
4.2.3ReviewRelated.
ReadReview
WriteReview
RateReview
4.2.4UserRelated.
Registration
MemberPage(self);
MemberPage(other)
RoleandRank
4.2.5StoreRelated
5.
数据库设计(DatabaseDesign)
5.1Databasesummary
Numberoftables:
23
Numberofviews:
0
Numberofcolumns:
231
Numberofindexes:
Numberofforeignkeys:
Tables
Columns
Indexes
Notes
TMP_TRUST
4
1
TBL_TOPIC
10
TBL_STORE_LOGON
TBL_STORE
25
TBL_REVIEW_BODY
2
TBL_REVIEW
19
TBL_RATING
8
TBL_PROPERTY_VALUE
6
TBL_PROPERTY_LIST
5
TBL_PROPERTY_GROUP
TBL_PROPERTY_CHANGE
TBL_PROPERTY
TBL_PRODUCT_CHANGE
TBL_PRODUCT
21
TBL_LIST
7
TBL_CONDITION