【正文】
pH = 100) { = (popH + 4).toString() + px。 } } if (str == down) { if (popH = 4) { = (popH 4).toString() + px。 = none。winpop39。0px39。 //3秒后調(diào)用tips_pop()這個函數(shù) }/script自動彈出消息提示框截圖如圖55所示。彈出消息提示后,如果點擊查看,則會列出所有庫存低于下限的商品信息,管理員可以導(dǎo)出到Word文檔中,送交采購部門及時補貨。當(dāng)點擊左邊導(dǎo)航中的管理商品信息時,頁面跳轉(zhuǎn)到商品管理頁面,呈現(xiàn)出所有當(dāng)前已建檔商品信息。當(dāng)點擊導(dǎo)航中的添加商品信息時,則會跳轉(zhuǎn)到商品建檔頁面,即添加新商品信息頁面。圖57 商品管理界面截圖添加商品信息頁面截圖如圖58所示。管理員通過左側(cè)導(dǎo)航選擇出庫管理或入庫管理可以查看所有信息記錄,同時可以選擇對某條記錄進行修改或刪除。為了簡明扼要,此處只截取一張圖片加以說明。圖59 入庫統(tǒng)計界面截圖、系統(tǒng)管理和用戶管理在左側(cè)導(dǎo)航中盤存管理項下面有兩個選項,商品盤存信息和商品查詢。該系統(tǒng)的系統(tǒng)管理主要是對收貨單位、供貨單位、經(jīng)手人和商品種類的管理。單位信息包括名稱,地址,聯(lián)系人和聯(lián)系電話。同樣的在經(jīng)手人信息管理中需要對經(jīng)手人的手機號碼進行驗證,如果不符合當(dāng)前國內(nèi)手機號碼格式,則會提示需要重新輸入正確的手機號碼。管理員需要輸入舊密碼和兩次新密碼,系統(tǒng)首先對管理員輸入的舊密碼進行驗證,如果輸入正確則繼續(xù)驗證新密碼,如果兩次輸入的新密碼一致,則將新密碼保存至數(shù)據(jù)庫中,修改成功。圖510 電話號碼驗證界面截圖 6 系統(tǒng)測試軟件測試是動態(tài)查找程序代碼中的各類錯誤和問題的過程。程序測試是為了發(fā)現(xiàn)錯誤而執(zhí)行程序的過程。其實,不執(zhí)行程序也可以發(fā)現(xiàn)程序中的錯誤。顧名思義,靜態(tài)分析就是通過對被測程序的靜態(tài)審查,發(fā)現(xiàn)代碼中潛在的錯誤。動態(tài)測試分為兩類,一類是根據(jù)程序的功能來設(shè)計測試用例,稱為黑盒測試;另一類則根據(jù)被測程序的內(nèi)部結(jié)構(gòu)設(shè)計測試用例,測試者需要事先了解程序的結(jié)構(gòu),因此稱為白盒測試。測試結(jié)果:當(dāng)輸入正確的驗證碼時,系統(tǒng)不會彈出驗證碼錯誤消息,而是接著往下執(zhí)行,進行用戶名密碼驗證。測試通過。針對用戶名驗證,同樣做了兩組測試:分別輸入已經(jīng)存在的用戶名和不存在的用戶名。當(dāng)輸入不存在的用戶名時,系統(tǒng)檢索數(shù)據(jù)庫中的用戶信息,找不到該用戶名,按照預(yù)期彈出消息提示框提示“用戶名不存在”,終止登錄。(3)密碼驗證測試如果用戶名有效性驗證通過,則系統(tǒng)接著會對管理員輸入的密碼進行驗證,即驗證輸入的密碼是否和數(shù)據(jù)庫中與該用戶名對應(yīng)的密碼相一致,如果一致,則成功進入系統(tǒng),如果不一致,則提示密碼錯誤,登錄失敗。測試結(jié)果:當(dāng)輸入與用戶名相匹配的密碼時,成功進入系統(tǒng)。測試通過。當(dāng)庫存量低于庫存最低限度時,系統(tǒng)右下角會自動彈出報警,提示存在庫存不足商品,供管理員查看。首先修改庫存使得商品的庫存都不低于庫存下限,這時候運行程序,頁面加載時并沒有自動報警。點擊之后頁面呈現(xiàn)出所有商品庫存量不足的商品信息。(5)修改密碼測試管理員修改密碼流程:管理員輸入舊密碼、新密碼、重復(fù)新密碼,系統(tǒng)首先對管理員輸入的舊密碼進行判斷,如果舊密碼輸入正確,則允許進行修改,轉(zhuǎn)去判斷兩次輸入的新密碼,如果兩次新密碼一致則密碼成功修改為新密碼,如果舊密碼錯誤,則無權(quán)修改密碼。針對以上情況,采用以下測試方法:首先在舊密碼輸入時輸入錯誤的舊密碼,然后點擊提交按鈕,結(jié)果彈出提示框提示舊密碼輸入不正確。最后,輸入正確的舊密碼,并輸入兩次完全一致的新密碼,再次點擊提交,系統(tǒng)提示密碼修改成功。(6)正則表達式測試系統(tǒng)中兩次用到正則表達式,分別是收貨單位、供貨單位管理中的聯(lián)系電話和經(jīng)手人管理中的手機號碼。手機號碼則對當(dāng)前國內(nèi)移動、聯(lián)通和電信三大通信運營商的手機號碼進行驗證,即分別以115和18開頭的11位手機號碼進行驗證。當(dāng)輸入電話號碼不符合以上格式時,點擊提交信息均有提示信息,提示輸入正確的電話號碼。當(dāng)輸入正確的電話號碼和手機號碼時,點擊提交按鈕,系統(tǒng)沒有錯誤提示,正常提交信息。結(jié)論(1)本文所做的工作和成果 。(2)學(xué)習(xí)了SQL Server 2008的相關(guān)知識,并在系統(tǒng)開發(fā)中成功實現(xiàn)了使用SQL Server 2008進行數(shù)據(jù)存儲。(4)學(xué)習(xí)了html相關(guān)技術(shù),在系統(tǒng)開發(fā)中利用table表格對頁面進行布局。(2)系統(tǒng)的不足和展望 由于本人學(xué)識尚淺,能力有限,因此該系統(tǒng)只實現(xiàn)了超市倉庫管理中的商品管理、入庫管理、出庫管理、自動報警等基本功能需求,系統(tǒng)在很多方面都有待提高完善。當(dāng)前系統(tǒng)可以實現(xiàn)商品管理、出入庫管理、收貨單位供貨單位管理、經(jīng)手人管理和用戶管理,并具備自動報警功能。隨著計算機的發(fā)展,相信人們對軟件功能的需求也越來越高,我們對超市倉庫管理的工作需求不會僅僅停留在簡單的入庫出庫管理方面,會涌現(xiàn)出更全面更智能的需求,相信到那時候超市倉庫管理系統(tǒng)會越來越強大,功能越來越完善,真正解除超市的后顧之憂。 they’re stored on a collection of servers accessed via the Internet. Anyone with permission can not only access the documents, but can also edit and collaborate on those documents in real time. Unlike traditional puting, this cloud puting model isn’t PCcentric, it’s documentcentric. Which PC you use to access a document simplyisn’t important.But that’s a simplification. Let’s look in more detail at what cloud putingis—and, just as important, what it isn’t.What Cloud Computing Isn’tFirst, cloud puting isn’t network puting. With network puting, applications/documents are hosted on a single pany’s server and accessed over the pany’s network. Cloud puting is a lot bigger than that. It enpasses multiple panies, multiple servers, and multiple networks. Plus, unlike network puting, cloud services and storage are accessible from anywhere in the world over an Internet connection。 they can be public or private.For example, Google hosts a cloud that consists of both smallish PCs and larger servers. Google’s cloud is a private one (that is, Google owns it) that is publicly accessible (by Google’s users).This cloud of puters extends beyond a single pany or enterprise. The applications and data served by the cloud are available to broad group of users, crossenterprise and crossplatform. Access is via the Internet. Any authorized user can access these docs and apps from any puter over any Internet connection. And, to the user, the technology and infrastructure behind the cloud is invisible.It isn’t apparent (and, in most cases doesn’t matter) whether cloud services are based on HTTP, HTML, XML, JavaScript, or other specific technologies._ Cloud puting is usercentric. Once you as a user are connected to the cloud, whatever is stored there—documents, messages, images, applications, whatever—bees yours. In addition, not only is the data yours, but you can also share it with others. In effect, any device that accesses your data in the cloud also bees yours._ Cloud puting is taskcentric. Instead of focusing on the application and what it can do, the focus is on what you need done and how the application can do it for you. Traditional applications—word processing, spreadsheets, , and so on—are being less important than the documents they create.PART 2 Understanding Cloud Computing_ Cloud puting is powerful. Connecting hundreds or thousands of puters together in a cloud creates a wealth of puting power impossible with a single desktop PC._ Cloud puting is accessible. Because data is stored in the cloud, users can instantly retrieve more information from multiple repositories. You’re not limited to a single source of data, as you are with a desktop PC._ Cloud puting is intelligent. With all the various data stored on the puters in a cloud, data mining and analysis are necessary to access that information in an intelligent manner._ Cloud puting is programmable. Many of the tasks necessary with cloud puting must be automated. For example, to protect the integrity of the data, information stored on a single puter in the cloud must be replicated on other puters in the cloud. If that one puter goes offline, the cloud’s programming automatically redistributesthat puter’s data to a new puter in the cloud.All these definitions behind us, what constitutes cloud puting in the real world?As you’ll learn throughout this book, a raft of webhosted, Internetaccessible,Groupcollaborative applications are currently available, with many more on the way. Perhaps the best and most popular examples of cloud puting applications today are the Google family of applications—Google Docs amp