【正文】
and in general for his elderswho are freemen, and whom he serves as a freeman. Now it isdifficult to determine accur ately the things w hich are worthy orunworthy of a freeman, but let those who have obtained the prize ofvirtue give judgment about them in accordance with their feelings ofright and wrong. He who in any way shares in the illibe rality ofretail trades may be indicted for dishon。 and in the third place, they must devise some way wherebythe followers of these occupations themselves will not readily fallinto habits of unbridled shamelessness and meanness. After this preface let our law run as follows, and may fortunefavour us:No landowner among the Mages, w hose city the God isrestoring and resettlingno one, that is, of the 5040 families,shall bee a retail trader either voluntarily or involuntarily。 one of whom corruptsthe soul of man with luxury, while the other drives him by pain intoutter shamelessne ss. What remedy can a city of sense find against thisdisease? In the first place, they must have as few retail traders aspossible。 and if all such occupations were managed onincorrupt principles, they would be honoured as we honour a motheror a nurse. But now that a man goes to desert places and builds b ouseswhich can only be reached be long journeys, for the sa ke of retailtrade, and receives strangers who are in need at the welerestingplace, and gives them peace and calm when they are tossed bythe storm, or cool shade in the heat。 wherefore all that relates to retail trade, andmerchandise, and the keeping of taverns, is denounced and numberedamong dishonourable things. For if what I trust may never be andwill not be, we were to pel, if I may venture to say a ridiculousthing, the best men everywhere to keep taverns for a time, or carry onretail trade, or do anything of that sort。 for is not he a benefactor who reduces the inequalitiesand inmensurabilities of goods to equality and mon measure?And this is what the power of money acplishes, and the merchant maybe said to be appointed for this purpose. The hireling and thetavernkeeper, and many other occupations, some of them more andothers less seemly alike have this object。 and the herald shall proclaim in the agora theoffence for which he is going to be beaten. The warden of the agoraand the guardians of the law shall obtain information from experiencedpersons about the rogueries and adulterations of the sellers, andshall write up what the seller ought and ought not to do in each case。 除非另有科研合同和其他法律文書的制約,本論文的科研成果屬于成都信息工程學(xué)院。 ( 4)學(xué)校可允許學(xué)位論文被查閱或借閱。 ( 2)學(xué)校可以采用影印、縮印或其他復(fù)制方式保存學(xué)位論文。除非另有說明,本文的工作是原始性工作。在此向他表示我最衷心的感謝! 在論文完成過程中,本人還得到了其他老師和一些同學(xué)的熱心幫助,本人向他們表示深深的謝意! 最后向在百忙之中評審本文的各位專家、老師表示衷心的感謝! 作者簡介 姓 名:魏鍵 性別: 男 出生年月: 1984 年 3 月 13 日 民族: 漢 Email: 聲 明 本論文的工作是 2021年 2月至 2021年 6月 在成都信息工程學(xué)院網(wǎng)絡(luò)工程系完成的。 [7] 方睿 ,刁仁宏 ,吳四九 .網(wǎng)絡(luò)數(shù)據(jù)庫原理及應(yīng)用 [M].成都 :四川大學(xué)出版社, 2021。 [5] 鄭宇軍 .C 程序設(shè)計教程 [M].北京 : 清華大學(xué)出版社 , 2021。 [3] 單銀 根 ,黎連業(yè) .C語言及程序設(shè)計 [M].北京:北京希望電子出版社, 2021。 參考文獻 [1] Karli Watson,Christian 入門經(jīng)典 (第 3版 )[M].齊立波譯 .北京: 清華大學(xué)出版社 , 2021。特別是在實際動手編寫代碼方面很欠缺,一些本來很簡單的問題卻要去花費大量的時間來解決。學(xué)習(xí)如何利用網(wǎng)絡(luò)尋找解決問題的方法,這種方法在今后的工作和學(xué)習(xí)生活中能讓事情變得事半功倍。以前在課堂上學(xué)習(xí)的理論知識派上了用場,在程序的實際設(shè)計和實現(xiàn)過程中,逐步地將一些理論知識應(yīng)用到開發(fā)中來,比如函數(shù)的調(diào)用、類與對象、方法的重載和引用等,并簡單接觸到了數(shù)據(jù)庫的設(shè)計與操作。 結(jié) 論 本次畢業(yè)設(shè)計完成了預(yù)定任務(wù),包括用戶登錄、用戶注冊、日歷、日志記錄、日志提醒、節(jié)假日設(shè)置等功能。 數(shù)據(jù)庫的安全性 在數(shù)據(jù)庫的安全方面,主要依賴于 SQL Server 2021 自身的安全性。 Unicode 是一種字符編碼方法,由國際組織設(shè)計,可以容納全世界所有語言文字的編碼方案。 字符必須編碼后才能被計算機處理。 日志信息的安全性 用戶的日志信息在數(shù)據(jù)庫中采用 Unicode 編碼進行儲存。采用 MD5算法轉(zhuǎn)換后的數(shù)據(jù)是偽隨機的,而且該算法是一個不可逆的字符串變換算法,沒有辦法對已加密的數(shù)據(jù)進行解密。 所以,該系統(tǒng)將用戶的密碼進行 MD5 加密后再存入數(shù)據(jù)庫中。 系統(tǒng)的安全性測試 密碼的安全性 該系統(tǒng)為多用戶系統(tǒng),所有用戶的 登錄 密碼都保存在數(shù)據(jù)庫中, 以供用戶 登錄 時的密碼比較。后將該模塊加入 Unicode 解碼代碼,將日志信息進行解碼后就能正常輸出了。 最初設(shè)計時因為沒有考慮到將用戶日志信息進行 Unicode 編碼后儲存,所以在日志 提醒模塊中采用了根據(jù)日志文本信息作為條件來刪除數(shù)據(jù)庫資料。測試結(jié)果為日志提醒模塊只會提示當(dāng)前 登錄 用戶的日志信息,而不會提示其他用戶的。當(dāng)系統(tǒng)時間到達該日志的提醒時間時,系統(tǒng)能正確發(fā)出提示信息,如圖 55 所示,時 間也非常準確。經(jīng)測試,系統(tǒng)實際的處理順序完全符合設(shè)計,如圖 54 和圖 54。 圖 55 刪除日志錯誤信息 圖 54 節(jié)假日格式不正確 在日志記錄系統(tǒng)和節(jié)假日管理系統(tǒng)中,隨機輸入一些信息來驗證該模塊的判斷邏輯是否符合設(shè)計要求。所以,在顯示 DataGridView 信息的代碼中加入了 AllowUserToAddRows = false,就不會在DataGridView 加上系統(tǒng)自動生成的空行了。經(jīng)檢查,原來是設(shè)計當(dāng)用戶點擊 DataGridView 某行時,會將該行的信息顯示到下邊 的其他控件中,如 Label、 Combox 等。 在對此模塊進行設(shè)計時,一開始在顯示用戶信息的 DataGridView 中,系統(tǒng)會自動添加一行空行。 對于此模塊中的 “ 修改 ” 和 “ 刪除 ” 按鈕也進行了一定的權(quán)限設(shè)置。 圖 53 用戶名不得重復(fù)注冊 圖 54 非管理員不得刪除用戶資料 在用戶注冊模塊中,對注冊時的資料輸入 進行條件判斷,并提示出錯誤信息,圖 53 所示。 圖 52 未 登錄 用戶不能訪問日志模塊 該系統(tǒng)采用多用戶模式,并對各用戶的訪問權(quán)限進行了設(shè)置,未 登錄 用戶只能訪問 登錄 模塊、注冊模塊以及日歷主模塊。 一開始設(shè)計時忘記了密碼在數(shù)據(jù)庫中 是采用 MD5 加密后儲存的,當(dāng)測試驗證 登錄 密碼時沒有采用 MD5 加密就直接進行比較,導(dǎo)致一直 登錄 不上去。當(dāng)輸入的用戶密碼與數(shù)據(jù)庫內(nèi)該用戶的密碼不一致時,提示用戶的錯誤信息,如圖 51。 以下為部分測試截圖以及簡要說明: 圖 51 密碼錯誤提示信息 在 登錄 模塊中,隨機輸入幾組用戶名和密碼進行測試。 測試結(jié)果 由于條件所限,本測試僅對該系統(tǒng)進行功能測試。CPU: AMD 2500+ ,內(nèi)存: DDR2 512M, SQL SERVER 2021,WIN2021/XP,2021 下均測試通過 .建議用戶 CPU PIII,內(nèi)存 256M 及以上,數(shù)據(jù)庫版本 SQL SERVER 2021, WIN2021PRO/XP, 2021, WIN2021 SERVER 及 以上軟硬件平臺使用。 } } else { (節(jié)假日的輸入格式不正確!請重新輸入! )。 //重新顯示數(shù)據(jù)庫內(nèi)的節(jié)假日信息 GetJinfo()。,+month+,+day+)。 if (().Length = 2) { //設(shè)置數(shù)據(jù)庫添加記錄 sql 語句 string sql = insert into JInfo values(39。 // 點擊 “ 添加 ” 按鈕的事件處理 private void btnAdd_Click(object sender, EventArgs e) { //將 box 內(nèi)選擇的日期分別儲存在 month 和 day 整型變量中 int month = (())。當(dāng)點擊 “ 刪除 ” 按鈕時,系統(tǒng)按照用戶選擇的節(jié)假日信息的編號 JID 來從數(shù)據(jù)庫中刪除該條節(jié)假日信息。并根據(jù)用戶需要進行節(jié)假日信息的添加和刪除。 ()。)。 and UserNumber=(select UserNumber from UserLogin where UserName=39。 //當(dāng)點擊 “ 刪除日志 ” 按鈕后的事件處理代碼 private void btnDeleteMsg_Click(object sender, EventArgs e) { //設(shè)置數(shù)據(jù)庫操作語句 sql string sql = delete from MsgInfo Where MsgID=39。當(dāng)用戶點擊 “ 刪除 ” 按鈕時,系 統(tǒng)從 MsgInfo 表中刪除該條日志信息。 } else { (您的操作有錯誤! )。 if (刪除成功 ) { (日志刪除成功!! )。 if (當(dāng)前日志 ID 為空 ) { (請先選擇您要刪 除的日志! )。 } 返回 decode。 try { 將 code 信息解碼并轉(zhuǎn)換為字符串型并存放在 decode 中 。 // Unicode 解碼,用于將數(shù)據(jù)庫內(nèi)的日志信息正常顯示在 Datagridview 中,與