欢迎来到天天文库
浏览记录
ID:44437364
大小:750.67 KB
页数:14页
时间:2019-10-22
《网上书店-系统剖析设计文档》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、网上书店系统analysis&design目录:usecaseSC3UseCaseViewlistAccountListOrderListStockListUserListAssociation$ElOLogicalViewi由Q登录:由•□订单及送货管理]由口订购閣书1由口进书、库存管理1由・□客户信息管理
2、由口账目管理]鱼口注册I••“©
3、审Q]囱Q]由・Q]$Q田••口ComponentView:…[3]DeploymentView••窗ModelProperties1.登录包1.1classdiagramCheckAndReadFrormUserL
4、istLoginFormUserList(fromLogicalViei©UserID^>UserPassword•CheckAndReadFrormUserListQ•//callCheckAndReadFrormUserListO②name◎userID②password^address②tel^>note②numVoidLoginQ{CheckAndReadFrormUserList(UserID.UserPassword)用voidCheckAndReadFrormUsertist(charUserID.charUserPassword){/空询数
5、据库UserList对比ifUserD=admin&UserPassword=passwordthen跳转到住瑾页面ifUserD=userlD&UserPassword=passwordthen跳转到首员并致欢迎询else提示错误并返回登陆界面LoginForm为boundaryclassCheckAndReadFrormUserList为controlclassUserList为entityclass在登录界面中点击登录调用CheckAndReadFrormUserList()函数,该函数作用:库中搜索登录用八名和密码若存在则能登陆,否则登陆失败。1.
6、2sequencediagram在数据1.3collaborationdiagram1:用户名密码2注册包2」classdiagramUserRegristFormO>UserName^>User1D②UserPassword^>UserAddress另UserTel^>UserNote②UserNumCheckAndSavelntoUserList•//callCheckUserList()W/callSavelntoUserListf)voidRegrist(Xif(CheckUserList(UserName))thenSavelntoUserLis
7、t(UserName.UserPassword.UserAddress.UserTel.UserNote.UserNum)提示注册成功并返回登陆界面else提示注册失败,用户名重复}•CheckUserList。^SavelntoUserListOIIintCheckUserList(char){ifUserNamev>namereturn1elsereturn0}voidSaveIntoUserListJchar.charchar.int.charXname=UserNameuserlD=userlDUserPasswor=passwordaddress
8、=UserAddresstel=UserTelnote=UserNotenum=UserNum}Usertist(fromLogicalViev^l②name②userID②password^address务tel^>note②numUserRegrist为boundaryclassCheckAndSavelntoUserList为controlclassUserList为entityclass在注册界面中点击注册调用ChcckUscrList()函数,该函数作用:在数据库中捜索登录用户名若不存在则继续,否则提示该用户名以存在。继续则调用SavelntoU
9、serList(),该函数作用:将用户信息存入数据库中2.2sequencediagram2.3collaborationdiagram3订购图书包3.1classdiagramBookListOrderList(fromLogicalCheckAndSawIntoOrderList^>BookName^>BooklD^>BookPrice^>OrderTotal•//callSavelntoOrderListO•//callshowMybookO•//calldelMybookOvoidOrder(XSavelntoOrderList(BookID.Or
10、derTotal)提示提交成功!showMybook(UserlD
此文档下载收益归作者所有