【正文】
) Desn Varchar(200) 部門名稱 Body text 部門備注 (Teacher) 教師表 Teacher 用來存儲(chǔ)教師的信息。 表 9 學(xué)生信息表 字段名 數(shù)據(jù)類型 字段說明 鍵引用 備注 StudentID Int 學(xué)生 ID PK 主鍵 (自動(dòng)增一 ) ClassID Int 班級(jí) ID FK 引用 Class 表的 ClassID 字段 Name Varcher(200) 學(xué)生姓名 Age Int 年齡 Sex Int 性別 Address int 聯(lián)系地址 Phone Varcher(200) 聯(lián)系電話 Birthday Datetime 出生日期 EntranceDate Datetime 入學(xué)時(shí)間 Nationality Varcher(200) 民族 Political Varcher(200) 政治面貌 NativePlace Varcher(200) 籍貫 IdentityCard Varcher(200) 身份證號(hào)碼 Marital int 婚姻狀況 Hukou Varcher(200) 戶口 State int 學(xué)生狀態(tài) Desn text 備注 (Score) 成績(jī)表 Score 用來存儲(chǔ)班級(jí)的信息。數(shù)據(jù)庫(kù)查詢簡(jiǎn)單容易。 系統(tǒng)總的設(shè)計(jì)風(fēng)格是簡(jiǎn)單、簡(jiǎn)捷、便于所以用戶操作。該事件驗(yàn)證用戶輸入的用戶名稱和密碼是否正確,只有當(dāng)都正確時(shí)才能登錄系統(tǒng)中,否則頁(yè)面將通過 Message 控件顯示相關(guān)錯(cuò)誤信息。用戶登錄成功后,程序使用 Session變量保存用戶的 ID 信 息。 SqlDataReader recu = ((), (()))。amp。 } 取消登錄功能由 CancelBtn 按 鈕 控 實(shí) 現(xiàn) , 單 擊 此 按 鈕 , 觸 發(fā)CancelBtn_Click(object sender,EventArgs e)事件,該事件清空用戶名稱和密碼輸入內(nèi)容。該添加功能由事件AddBtn_Click(object e)實(shí)現(xiàn),它調(diào)用 Student 類的 AddStudent()方法實(shí)現(xiàn)添加功能。 (script(39。ErrorMessage= + (\n, ))。添加教師信息:頁(yè)面初始化實(shí)現(xiàn)下拉列表的形式顯示部分信息的功能,該功能由函數(shù) Page_Load(objectsender,EventArgse) 實(shí) 現(xiàn) 。 圖 9 用戶注冊(cè)模塊 以下為添加用戶成功和失 敗時(shí)處理部分代碼如下: protected void AddBtn_Click(object sender, EventArgs e) { if ( == true) { user = new User()。)/script)。在系統(tǒng)中主要包括添加課程信息、添加課程信息、刪除課程信息,如圖10。 + + 39。 } } } protected void ReturnBtn_Click(object sender,EventArgs e) { (~/DesktopModules/Course/)。在系統(tǒng)中主要包括添加學(xué)生信息、修改學(xué)生信息、刪除學(xué)生信息,如圖13。)/script)。 (script(39。ErrorMessage= + (\n, ))。 圖 14 用戶登錄信息錯(cuò)誤提示 戶信息錯(cuò)誤時(shí),提示信息 在測(cè)試添加用戶時(shí),當(dāng)輸入用戶名為空,用戶密碼兩次不一致,電子郵件不能為空或者電子郵件輸入格式不正確時(shí),將有提示信息說明錯(cuò)誤。以上三個(gè)控件控制了用戶添加信息操作和指示錯(cuò)誤的信息產(chǎn)生原 因,如圖 15。所以模塊的功能正常運(yùn)行。 實(shí)現(xiàn)了基本的用戶和用戶權(quán)限管理,可以對(duì)學(xué)生信息進(jìn)行錄入、修改、刪 除等的管理;可以對(duì)教師信息進(jìn)行修改、添加和刪除。本系統(tǒng)只是一個(gè)專用的學(xué)生學(xué)籍在線管理平臺(tái)的一部分。我學(xué)到了很多在平時(shí)上課沒有學(xué)到的知識(shí),豐富了我的專業(yè)知識(shí)能力。在學(xué)習(xí)新知識(shí)的同時(shí),又完善和加深了以前上課學(xué)到的基礎(chǔ)知識(shí),發(fā)現(xiàn)其實(shí)里面有很多 能融會(huì)貫通的地方。 并在此過程中切身體會(huì)到一個(gè)項(xiàng)目的設(shè)計(jì)開發(fā)人員 , 在系統(tǒng)立項(xiàng)前期所應(yīng)該做到哪些前瞻性的信息收集和基礎(chǔ)設(shè)計(jì)工作 , 才能夠始終把握系統(tǒng)進(jìn)展的方向 , 和總體設(shè)計(jì)上的主動(dòng)性。 [4] 郭晶 ,孫偉娟 .ASP 網(wǎng)站開發(fā)四酷全書 [M].北京 : 電子工業(yè)出版社 ,2020 年。 [8] Adam Freeman,Allen Jones..NET 安全編程 [M].北京:清華大學(xué)出版社 ,2020 年。除非另有說明,本文的工作是原始性工作。 ( 4)學(xué)??稍试S學(xué)位論文被查閱或借閱。 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 adul terations of the sellers, andshall write up what the seller ought and ought not to do in each case。 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 be st men everywhere to keep taverns for a time, or carry onretail trade, or do anything of that sort。 one of whom corruptsthe soul of man with luxury, while the other drives him by pain intoutter shamelessness. What remedy can a city of sense find against thisdisease? In the first place, they must have as few retail traders aspossible。 and in general for his elderswho are freemen, and whom he serves as a freeman. Now it isdifficult to determine accurately 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 illiberality ofretail trades may be indicted for dishonouring his race by any one wholikes, before those who have been judged to be the first in virtue。 andevery time that he is convicted let the lengt h of his imprisonmentbe doubled. This shall be the second law:He who engages in retailtrade must be either a metic or a stranger. And a third law shallbe:In order that the retail trader who dwells in our city may be asgood or as little bad as possible, the guardians of the law shallremember that they are not only guardians of those who may be easilywatched and prevented from being lawless or bad, because they arewellborn and bred。 some of them areleaders in battle。 this shall be seen to by the wardens of theagora, and by the wardens of the city, and by the wardens of thecountry. And so retail trade will benefit every one, and do theleast possible injury to those in the state who practise it. When a man makes an agreement which he does not fulfil, unless theagreement be of a nature which the law or a vote of the assemblydoes not allow, or which he has made under the influence of someunjust pulsion, or which he is prevented from fulfilling againsthis will by some unexpected chance, the other party may go to law w ithhim in the courts of the tribes, for not having pleted hisagreement, if the parties are not able previously to e to termsbefore arbiters or before their neighbours. The class of craftsmen whohave furnished human life with the arts is dedicated to Hephaestus andAthene。s house by anunworthy occupation, let him be imprisoned for a year and abstain fromthat sort of thing。 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。 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 bousesw hich 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 tos