【正文】
課程信息時(shí)對(duì)數(shù)據(jù)庫(kù)操作失敗,系統(tǒng)將會(huì)提示“錄入數(shù)據(jù)時(shí)失敗” ,并返回 添加課程信息頁(yè)面 。 圖 47 成績(jī)管理頁(yè)面 ( 1)修改成績(jī)數(shù)據(jù)信息: 管理員可通過(guò)點(diǎn)擊如圖 47 所示的相應(yīng)成績(jī)的操作列中的筆型按鈕,即可進(jìn)入成績(jī)信息修改頁(yè)面 ,并將待修改成績(jī)對(duì)應(yīng)的學(xué)號(hào)和課程 ID 同時(shí)傳遞到該頁(yè)面。 刪除成績(jī) 信息調(diào)用的存儲(chǔ)過(guò)程代碼如下: CREATE PROCEDURE sp_DelScore StudentID varchar(20), CourseID varchar(20) AS 從 Score表中刪除字段 StudentID 值為參數(shù) StudentID 的值,且字段 CourseID 的值為參數(shù) CourseID 的值的記錄 DELETE FROM Score WHERE StudentID = StudentID and CourseID=CourseID GO ( 3) 添加成績(jī)數(shù)據(jù)信息: 管理員可通過(guò)點(diǎn)擊 成績(jī) 管理 頁(yè)面 或 管理員頁(yè)面 下方 的“添加成績(jī)”按鈕,即可進(jìn)入添加成績(jī)信息頁(yè)面 。提交后,系統(tǒng)會(huì)對(duì)提交的信息進(jìn)行檢查,若存在沒(méi)有填寫(xiě)完整的項(xiàng),系統(tǒng)會(huì)提示該項(xiàng)信息不能為空,然后返回添加成績(jī)信息頁(yè) 面 ;若添加成績(jī)信息時(shí)對(duì)數(shù)據(jù)庫(kù)操作失敗,系統(tǒng)將會(huì)提示“錄入數(shù)據(jù)時(shí)失敗” ,并返回 添加成績(jī)信息頁(yè)面 。 管理員還可通過(guò)點(diǎn)擊 用戶(hù) 管理 頁(yè)面 或 管理 員頁(yè)面 下方 的“添加用戶(hù)”按鈕,即可進(jìn)入添加用戶(hù)信息頁(yè)面 。統(tǒng)計(jì)包括了有成績(jī)記錄的總?cè)藬?shù)統(tǒng)計(jì)和及格人數(shù)統(tǒng)計(jì),并通過(guò)統(tǒng)計(jì)結(jié)果計(jì)算出該班或該年紀(jì)在這門(mén)課程的及格率。 when 2 then 39。匯總統(tǒng)計(jì)通過(guò)使用交叉表和動(dòng)態(tài) SQL語(yǔ)句完成了對(duì)學(xué)期各科成績(jī)的匯總、計(jì)算總分、各科平均分。 班級(jí)學(xué)期成績(jī)報(bào)表頁(yè)面 報(bào)表部分代碼: If Search = 1 Then ( 你查找的是 :amp。學(xué)期的成績(jī) ) (br) (br) ( TABLE cellSpacing=39。 border=39。) Term = Cint(Trim((Term))) Classn = Cint(Trim((Classn))) 第 22 頁(yè) 共 29 頁(yè) Call (Classn,Term) (TR bgColor=39。amp。amp。center39。TD align=39。/TD (Data amp。,[39。39。 then Score else 0 end)39。, 總成績(jī) =sum(Score) , 平 均 分=Convert(dec(5,1),avg(Score)) into linshi from Score as a group by StudentID 從臨時(shí)表和 Student 表中查詢(xún)數(shù)據(jù),并將結(jié)果集按每個(gè)學(xué)生的平均成績(jī)降序排列 select as 姓名 ,a.* from linshi as a inner join Student as b on = where =39。統(tǒng)計(jì)分析結(jié)果的報(bào)表顯示了各科個(gè)分?jǐn)?shù)段的人數(shù)、各科有成績(jī)記錄的總?cè)藬?shù)、各科優(yōu)秀人數(shù)、及格人數(shù),并計(jì)算出了各科的優(yōu)生率和及格率。HFACE87 Call (CourseID,Grade) (0).Add (RenShu), 6070 ,16777215 Call (CourseID,Grade) (0).Add (RenShu), 060 ,RGB(155,80,228) ‘生成各分?jǐn)?shù)段人數(shù)的柱狀圖的圖形文件 ( ) ,False,JPEGBestQuality,100, Set TChart1 = nothing ‘釋放對(duì)象 各分?jǐn)?shù)段人數(shù)統(tǒng)計(jì)柱狀圖效果如圖 412 所示: 圖 412各分?jǐn)?shù)段人數(shù)統(tǒng)計(jì)柱狀圖 錯(cuò)誤處理模 塊 此錯(cuò)誤處理模塊建立了一個(gè)錯(cuò)誤信息的處理類(lèi),用來(lái)完成錯(cuò)誤信息的存儲(chǔ)和顯示工作。返回值:顯示信息 代碼字符串 Public Sub showMessage(page,title) Dim strReturn strReturn = strReturn = strReturn amp。url= strReturn = strReturn amp。 CStr(title) amp。 TABLE BORDER=0 align=center WIDTH=200 bgcolor=39。 CStr(Message) strReturn = strReturn amp。 /body/html strReturn End Sub End Class 結(jié) 論 本系統(tǒng)是一個(gè)面向 各類(lèi)型學(xué)校 的 考試成績(jī)分析 系統(tǒng) , 采用當(dāng)前 主流的頁(yè)面開(kāi)發(fā)工具 ASP 來(lái)完成整個(gè)系統(tǒng)的設(shè)計(jì),在數(shù)據(jù)庫(kù)的設(shè)計(jì)上 使用 了功能強(qiáng)大的 SQL Server 2021 進(jìn)行構(gòu)建 。教師和管理員用戶(hù)登錄后均可對(duì) 查詢(xún)分析模塊進(jìn)行訪(fǎng)問(wèn),但是只有管理員用戶(hù)才有數(shù)據(jù)管理模塊的訪(fǎng)問(wèn)權(quán)限,能對(duì)系統(tǒng)數(shù)據(jù)進(jìn)行添加、修改、刪除操作。只要學(xué)習(xí)就會(huì)有更多的問(wèn)題,有更多的難點(diǎn),但也會(huì)有更多的收獲。除非另有說(shuō)明,本文的工作是原始性工作。 ( 4)學(xué)??稍试S學(xué)位論文被查閱或借閱。 if I pursue you I will not catch you, and if I catch youthrough your own slowness and clumsinessI will not kill you, and if I kill you I will not eat you. Nicholas had begun to back away, and at the last。 out of breath, the thumping of his own heart the only39。s over, expecting Dr. Island to answer from somewhere。 but his stomach revolted at the thought of the raw flesh, and he did not know how he might build a fire, although Ignacio seemed to have done so the night before. Raw fish, even if he were able to catch a fish, would be as bad, or worse, than raw monkey。 he heard her nose cartilage break with a distinct, rubbery snap. Her eyes, as blue as the sky above Madhya Pradesh, the sparkling blue sky of the egg, looked up at him, but he could no longer look into them, they retreated from his own, and it came to him quite suddenly that Lucifer, in falling, must have fallen up, into the fires and the coldness of space, never again to see the warm blues and browns and greens of Earth: 1 was watching Sa tan fall as lightning from heaven。 he had several times seen coconuts lying in the sand under the trees. He moved quietly, still a little afraid, trying to think of ways to open the coconut w hen he found it. He imagined himself standing before a large and raggedly faceted stone, holding the coconut in both hands. He raised it and smashed it dow n, but when it struc k it was no longer a coconut but Maya39。 fore and knew on which side of hunger he stood。s long, prehuman day. For a time he listened for any sound Ignacio might m ake searching for him。s thumbnailshowing like spectators who lined the railings of his lips. Don39。 除非另有科研合同和其他法律文書(shū)的制約,本論文的科研成果屬于成都信息工程學(xué)院。 ( 2)學(xué)??梢圆捎糜坝?、縮印或其他復(fù)制方式保存學(xué)位論文。在此向他表示我最衷心的感謝! 在論文完成過(guò)程中,本人還得到了其他一些老師和同學(xué)的熱心幫助,本人向他們表示深深的謝意! 最后向在百忙之中評(píng)審本文的各位專(zhuān)家、老師表示衷心的感謝! 作者簡(jiǎn)介: 姓 名:岳國(guó)平 性別: 男 出生年月: 民族: 漢 Email: 第 29 頁(yè) 共 29 頁(yè) 聲 明 本論文的工作是 2021 年 2 月至 2021 年 6 月在成都信息工程學(xué)院 系完成的。如:在一些數(shù)據(jù)輸入時(shí)沒(méi)有及時(shí)的進(jìn)行數(shù)據(jù)格式校驗(yàn),不能保證數(shù)據(jù)輸入的絕對(duì)正確性 ; 沒(méi)有實(shí)現(xiàn)多條記錄的連鎖刪除和添加以及數(shù)據(jù)的導(dǎo)入功能 ; 這些都是需要完善的地方,該系統(tǒng)離實(shí)際使用也還有 一定 的距離 ,需要我進(jìn)行不斷地補(bǔ)充和完善。 錄入相關(guān)數(shù)據(jù)后,可單獨(dú) 查詢(xún)學(xué)生 個(gè)人 成績(jī) ,可對(duì) 學(xué)生考試成績(jī) 分年級(jí)或班級(jí) 進(jìn)行 單科成績(jī)、學(xué)期第 27 頁(yè) 共 29 頁(yè) 各科成績(jī)匯總,實(shí)現(xiàn)了統(tǒng)計(jì)單科及格人數(shù)、優(yōu)秀人數(shù), 分析各科的及格率、優(yōu)秀率、各分?jǐn)?shù)段人數(shù), 并進(jìn)行單科排名; 計(jì)算 學(xué)期各科成績(jī) 總分 、 總分平均分、 總分名次,單科成績(jī)分析 各分?jǐn)?shù)段人數(shù) 的結(jié)果支持柱狀圖顯示。 本頁(yè) 3 秒刷新后 ,自動(dòng)返回 /font strReturn = strReturn amp。 strReturn = strReturn amp。 /headbody strReturn = strReturn amp。 39。 meta HTTPEQUIV=refresh Content=39。功能:顯示信息 39?,F(xiàn)根據(jù)年級(jí)各科成績(jī)分析頁(yè)面對(duì)成績(jī)分析模塊做進(jìn)一步說(shuō)明。 order by DESC39。select StudentID 學(xué)號(hào) 39。39。]=sum(case CourseID when 39。39。amp。 (I).Value amp。/TD) (/TR) If not Then Do While Not Order = Order + 1 Data=TR For I = 0 To ( 1) Data= Data amp。 /TD) Next (TD align=39。) For I = 0 to 1 (TD align=39。 width=39。 cellPadding=39。 班第amp。另外,對(duì)學(xué)生名次的統(tǒng)計(jì)是通過(guò) ASP 程序來(lái)完成的。 end) as Type from Student a,Course b,Score c where =CourseID and =Class and = and = Order by Desc GO 班級(jí)單科成績(jī)報(bào)頁(yè)面效果如圖 49所示: 第 21 頁(yè) 共 29 頁(yè) 圖 49 班級(jí)單科成績(jī)報(bào)表 成績(jī)統(tǒng)計(jì) 成績(jī)統(tǒng)計(jì)模塊包括了班級(jí)學(xué)期成績(jī)報(bào)表 和年級(jí)學(xué)期成績(jī)報(bào)表 兩個(gè)頁(yè)面,完成了對(duì)選定班級(jí)或年級(jí)的某學(xué)期各科成績(jī)的查詢(xún)和對(duì)查詢(xún)結(jié)果的匯總統(tǒng)計(jì)。 班級(jí)單科成績(jī)報(bào)表查詢(xún)時(shí)調(diào)用的存儲(chǔ)過(guò)程代碼如下: CREATE PROCEDURE sp_CourseScoreReport 為查詢(xún)條件的變量聲明參數(shù) Class int, CourseID varchar(20) AS 查詢(xún)符合條件“課程 ID 為輸入課程 ID,班級(jí)號(hào)為輸入班級(jí)”的學(xué)生 ID、學(xué)生姓名、課程名、考試成績(jī)、考試類(lèi)型,并將結(jié)果按考試成績(jī)降序排列 Select , as Studentname, as CourseName, as Course