【正文】
課程信息時對數(shù)據(jù)庫操作失敗,系統(tǒng)將會提示“錄入數(shù)據(jù)時失敗” ,并返回 添加課程信息頁面 。 圖 47 成績管理頁面 ( 1)修改成績數(shù)據(jù)信息: 管理員可通過點擊如圖 47 所示的相應(yīng)成績的操作列中的筆型按鈕,即可進(jìn)入成績信息修改頁面 ,并將待修改成績對應(yīng)的學(xué)號和課程 ID 同時傳遞到該頁面。 刪除成績 信息調(diào)用的存儲過程代碼如下: 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) 添加成績數(shù)據(jù)信息: 管理員可通過點擊 成績 管理 頁面 或 管理員頁面 下方 的“添加成績”按鈕,即可進(jìn)入添加成績信息頁面 。提交后,系統(tǒng)會對提交的信息進(jìn)行檢查,若存在沒有填寫完整的項,系統(tǒng)會提示該項信息不能為空,然后返回添加成績信息頁 面 ;若添加成績信息時對數(shù)據(jù)庫操作失敗,系統(tǒng)將會提示“錄入數(shù)據(jù)時失敗” ,并返回 添加成績信息頁面 。 管理員還可通過點擊 用戶 管理 頁面 或 管理 員頁面 下方 的“添加用戶”按鈕,即可進(jìn)入添加用戶信息頁面 。統(tǒng)計包括了有成績記錄的總?cè)藬?shù)統(tǒng)計和及格人數(shù)統(tǒng)計,并通過統(tǒng)計結(jié)果計算出該班或該年紀(jì)在這門課程的及格率。 when 2 then 39。匯總統(tǒng)計通過使用交叉表和動態(tài) SQL語句完成了對學(xué)期各科成績的匯總、計算總分、各科平均分。 班級學(xué)期成績報表頁面 報表部分代碼: If Search = 1 Then ( 你查找的是 :amp。學(xué)期的成績 ) (br) (br) ( TABLE cellSpacing=39。 border=39。) Term = Cint(Trim((Term))) Classn = Cint(Trim((Classn))) 第 22 頁 共 29 頁 Call (Classn,Term) (TR bgColor=39。amp。amp。center39。TD align=39。/TD (Data amp。,[39。39。 then Score else 0 end)39。, 總成績 =sum(Score) , 平 均 分=Convert(dec(5,1),avg(Score)) into linshi from Score as a group by StudentID 從臨時表和 Student 表中查詢數(shù)據(jù),并將結(jié)果集按每個學(xué)生的平均成績降序排列 select as 姓名 ,a.* from linshi as a inner join Student as b on = where =39。統(tǒng)計分析結(jié)果的報表顯示了各科個分?jǐn)?shù)段的人數(shù)、各科有成績記錄的總?cè)藬?shù)、各科優(yōu)秀人數(shù)、及格人數(shù),并計算出了各科的優(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 ‘釋放對象 各分?jǐn)?shù)段人數(shù)統(tǒng)計柱狀圖效果如圖 412 所示: 圖 412各分?jǐn)?shù)段人數(shù)統(tǒng)計柱狀圖 錯誤處理模 塊 此錯誤處理模塊建立了一個錯誤信息的處理類,用來完成錯誤信息的存儲和顯示工作。返回值:顯示信息 代碼字符串 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)是一個面向 各類型學(xué)校 的 考試成績分析 系統(tǒng) , 采用當(dāng)前 主流的頁面開發(fā)工具 ASP 來完成整個系統(tǒng)的設(shè)計,在數(shù)據(jù)庫的設(shè)計上 使用 了功能強(qiáng)大的 SQL Server 2021 進(jìn)行構(gòu)建 。教師和管理員用戶登錄后均可對 查詢分析模塊進(jìn)行訪問,但是只有管理員用戶才有數(shù)據(jù)管理模塊的訪問權(quán)限,能對系統(tǒng)數(shù)據(jù)進(jìn)行添加、修改、刪除操作。只要學(xué)習(xí)就會有更多的問題,有更多的難點,但也會有更多的收獲。除非另有說明,本文的工作是原始性工作。 ( 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。 除非另有科研合同和其他法律文書的制約,本論文的科研成果屬于成都信息工程學(xué)院。 ( 2)學(xué)??梢圆捎糜坝?、縮印或其他復(fù)制方式保存學(xué)位論文。在此向他表示我最衷心的感謝! 在論文完成過程中,本人還得到了其他一些老師和同學(xué)的熱心幫助,本人向他們表示深深的謝意! 最后向在百忙之中評審本文的各位專家、老師表示衷心的感謝! 作者簡介: 姓 名:岳國平 性別: 男 出生年月: 民族: 漢 Email: 第 29 頁 共 29 頁 聲 明 本論文的工作是 2021 年 2 月至 2021 年 6 月在成都信息工程學(xué)院 系完成的。如:在一些數(shù)據(jù)輸入時沒有及時的進(jìn)行數(shù)據(jù)格式校驗,不能保證數(shù)據(jù)輸入的絕對正確性 ; 沒有實現(xiàn)多條記錄的連鎖刪除和添加以及數(shù)據(jù)的導(dǎo)入功能 ; 這些都是需要完善的地方,該系統(tǒng)離實際使用也還有 一定 的距離 ,需要我進(jìn)行不斷地補(bǔ)充和完善。 錄入相關(guān)數(shù)據(jù)后,可單獨 查詢學(xué)生 個人 成績 ,可對 學(xué)生考試成績 分年級或班級 進(jìn)行 單科成績、學(xué)期第 27 頁 共 29 頁 各科成績匯總,實現(xiàn)了統(tǒng)計單科及格人數(shù)、優(yōu)秀人數(shù), 分析各科的及格率、優(yōu)秀率、各分?jǐn)?shù)段人數(shù), 并進(jìn)行單科排名; 計算 學(xué)期各科成績 總分 、 總分平均分、 總分名次,單科成績分析 各分?jǐn)?shù)段人數(shù) 的結(jié)果支持柱狀圖顯示。 本頁 3 秒刷新后 ,自動返回 /font strReturn = strReturn amp。 strReturn = strReturn amp。 /headbody strReturn = strReturn amp。 39。 meta HTTPEQUIV=refresh Content=39。功能:顯示信息 39。現(xiàn)根據(jù)年級各科成績分析頁面對成績分析模塊做進(jìn)一步說明。 order by DESC39。select StudentID 學(xué)號 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。另外,對學(xué)生名次的統(tǒng)計是通過 ASP 程序來完成的。 end) as Type from Student a,Course b,Score c where =CourseID and =Class and = and = Order by Desc GO 班級單科成績報頁面效果如圖 49所示: 第 21 頁 共 29 頁 圖 49 班級單科成績報表 成績統(tǒng)計 成績統(tǒng)計模塊包括了班級學(xué)期成績報表 和年級學(xué)期成績報表 兩個頁面,完成了對選定班級或年級的某學(xué)期各科成績的查詢和對查詢結(jié)果的匯總統(tǒng)計。 班級單科成績報表查詢時調(diào)用的存儲過程代碼如下: CREATE PROCEDURE sp_CourseScoreReport 為查詢條件的變量聲明參數(shù) Class int, CourseID varchar(20) AS 查詢符合條件“課程 ID 為輸入課程 ID,班級號為輸入班級”的學(xué)生 ID、學(xué)生姓名、課程名、考試成績、考試類型,并將結(jié)果按考試成績降序排列 Select , as Studentname, as CourseName, as Course