B2C网站详细设计书

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1I.Introductiona.SystemreferenceWeassumedbothMaria'sComputerco.andpotentialcustomers.1.Foracustomerwhowantstobuycomputer..Screensetto640*480and256color(Ifnot,causestexttobeobscuredbysidemarginbyourmodel.).28.8kor56kmodems(Thiscansparegraphicsandmakecolorreduction.).Netscape2.0overorMSExplore3.0over(ThiscansupportsJavascript.)2.Second,forMariacomputerco.VBbasicorMsAccess.MSwindow95orNT.Personalwebserverb.Overalldescription.Managingthewebserver.Controllingthedatabaseinteractively.Realtimeexecutionc.SoftwareprojectconstraintsII.InformationDescriptiona.Informationcontentrepresentation1.customer::::customer_id,customer_name,etc..product::::product_id,product_name,brand,etc..payment::::order_number,paymentpattern,shipping&handling,etc.b.Informationflowrepresentation1.Dataflow2eventstart=customer=selection_product=selection_pay,delivery==final_decision=end1SeeApp.12seeApp.22III.FunctionalDescriptiona.FunctionalpartitioningThison-lineshoppingsystemispartitionedintothreefunctions:processinguserID,selectingcomputer-relatedproducts,andchoosingpayment&shippingpatterns.b.Functionaldescription31.Restrictions/limitationSincetimeisverylimited,thefirstproductdoesnotincludedareport,whichcanbehandedinthesupervisor,sothatthison-linestorecanbeoperatedmoresystematically.Thosecustomerscannotreceiveourshoppingnewsmonthly.Nowtheon-lineorderislimitedintheNorthAmericasincethemailingfeeswouldbeveryhighifwesellproductstoothercountries.Wewillimproveitinthefuture.Thison-linestorecanonlybeusefulforUSDandCanadianDollars.Sincetheorderofmainframeisverylimited,nowwedonotkeepkindsofproductsinourproductinventory.2.ProcessingnarrativeIn“processinguserID”function,sincethissystemisonlyavailableforsomeonewhoisinNorthAmerica,thisfunctioncannotprocesstheaddresswhichisoutofUSAandCanada.In“selectingcomputerproducts”function,mainframewillnotavailableandnoteverybrandincluded.3.DesignconstraintsThecustomercanonlycanceltheorderbefore“selectingpayment&shippingpattern”function.Oncethecustomersinputthecreditcardnumbersorotherpaymentspattern,theycannotdroptheorder.Wewillprovideverificationbeforetheyinputthepaymentspatternsothattheywillknowtheordercannotbedropped.Butifthecustomerisnotsatisfiedwiththeproducts,wehavethefull-refundpolicy.Anycustomerwhowantstoorderproducts,heorshemusthaveuserID.3SeeApp.334.Supportingdiagramsc.ControlDescription41.Controlspecification.Whentheproductsorderedbyacustomerisout-of-stock,display“Itisout-of-stocknow”.Whenthecustomerinputsothercountry’saddress,display“ItisonlyavailablewithinNorthAmerica”..Whenthecustomercanceltheorderordonotwanttoenterthiswebpagefurther,goback.2.DesignconstraintsCustomerwillnotbeallowedtodroptheorderafterheorshehadselectedpaymentandmailingpatterns.IV.BehavioralDescriptionThereare3levelsofStateDiagram.a.StateDiagramLevel15Wehave4statessuchasReadingUserInput,SelectComputerComponent,CheckUserIDandChoosingPaymentPattern.Eachstatehasanexternaleventthatcausesthesystemtochangestate.FromReadingUserInputState,therearetwooptionsthatcustomercanselect.First,whencustomerselectsshoppingbuttononscreen,theshoppingpage(SelectComputerComponentspage)willbeactivated.FromSelectComputerComponentsstage,ifcustomerselectsitemthathewantstobuyorexittheprogram,thestage“ChoosingPaymentPattern”willbeactivated.Afterheselectspaymentpattern,thesoftwarewillinvokeinputscreenagainforwaitingcustomerinput.Thesecondoptionistocreatecustomerprofileindatabase.Aftercreatingcustomerprofile,customercanselectcomputerthathewantstobuyorexitprogram.4SeeApp.45SeeApp.5InformationCustomerProductsOn-lineShoppingsystemSelectedProduct4b.StateDiagramLevel261.ForSelectingComputerProductsWehave3states:ReadingUserInput,SelectingComputerProducts&BrandsandCalculatingExpense.Eachstatehasanexternaleventthatcausesthesystemtochangestate.FromReadingUserInput,whencustomerwantstobuyaproduct,thesoftwarewillinvoketheshoppingpage.Afterthecustomerselectsproduct&brandthathewantstobuy,thesoftwarewillinvokecalculationexpenseoftheproduct.2.ForProcessingCustomerID&DisplayInvoiceWehave4states:ReadingUserInput,CheckCustomerID,CreatingCustomerIDandDisplayingCustomerInformation&ItemSelected.Eachstatehasanexternaleventthatcausesthesystemtochangestate.FromReadingUserInput,whencustomerwantstobuysomething,hehastoputcustomerID.Ifheisnotamember,thesoftwarewillinvokeCreatingCustomerIDpage.Ifheisamemberandhewantstodisplayproductthathechoseinthepast,thesoftwarewillinvokeDisplayingCustomerInformation&ItemSelectedPage.3.ForSelectingPayment&ShippingPatternWehave3states:ReadingUserInput,SelectPayment&ShippingPatternandcalculatingtotalexpense.Eachstatehasanexternaleventthatcausesthesystemtochangestate.FormReadingUserInput,whencustomerselectedproductsandbrandsalready,hehastoselectpaymentandmailpatterntopayhisproducts.Afterthat,thesoftwarewillinvokeTotalAmountPagethatcustomercanunderstandhowmuchhehastopayfortheproduct.c.StateDiagramLevel371.ForDisplayCustomerIDWehave4statessuchasReadingUserInput,DisplayInformation,UpdateInformation,andCustomerchecksorder.Eachstatehasanexternaleventthatcausesthesy

1 / 20
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功