freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于javaee的在線考試系統(tǒng)畢業(yè)設(shè)計(jì)論文-資料下載頁

2025-08-18 15:32本頁面

【導(dǎo)讀】分布廣,不易集中的遠(yuǎn)程教育。我主要開發(fā)系統(tǒng)的后臺管理系統(tǒng)—JAVA在線考試管。理子系統(tǒng),它包括試題管理、考生管理、試卷管理、試卷自動審批等功能。流程圖等對在線系統(tǒng)的設(shè)計(jì)過程進(jìn)行詳細(xì)的說明。全文共分為開發(fā)方案、需求分析、系統(tǒng)設(shè)計(jì)、關(guān)鍵技術(shù)解決,結(jié)論五部分。開發(fā)方案中主要介紹開發(fā)在線考試系統(tǒng)得目。框架與數(shù)據(jù)庫的連接及數(shù)據(jù)的備份與還原。

  

【正文】 tQuestion generatorPaper(int num) { Session session = ()。// 通過sessionfactory 來的到一個 session 對象 。 int temp = 0。// int rd = 0。//題目的序列號 int count = 0。//總成績 ListQuestion qs = new ArrayListQuestion()。//問題的列表 。 Question q = new Question()。//創(chuàng)建題庫的實(shí)例對象 安徽工業(yè)大學(xué) 畢業(yè)設(shè)計(jì)(論文)說明書 共 40 頁 第 22 頁 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 裝 ┊ ┊ ┊ ┊ ┊ 訂 ┊ ┊ ┊ ┊ ┊ 線 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ String hql = select max(id) from table_question。// 從tabble_question 中得到最大的 id號用來判斷范圍 。 rd = ((hql).uniqueResult() .toString())。//得到唯一的題目號通過 hql。 String hql1 = select count(*) from table_question。//計(jì)算從題庫表中的得到的題目數(shù) 。 count = ((hql1).uniqueResult() .toString())。//得到題目的總數(shù) 。 if (count num)//判斷題目數(shù)是否小于試卷中的題目數(shù) num = count。 for (int i = 1。 i = num。 i++) { temp = Rdm(rd)。//隨機(jī)的 q = selectQuestion(temp)。 if (q != null) (q)。 else i。 } return qs。 } //通過題庫的中的 id來選擇題目 。 public Question selectQuestion(int id) { // Qestion Session session = ()。 return (Question) (, id)。 } //通過試卷表中的 erid 得到試卷列表 。 public ListExamPaper selectStudentExamPaper(int erid) { Session session = ()。 return (ListExamPaper) ( from ExamPaper where erid = ?).setInteger(0, erid)。 } //通過學(xué)號和學(xué)期來查詢考試的成績 public Examreport selectStudentScore(int sno, String term) { Session session = ()。 return (Examreport) ( from Examreport where stid = ? and term=?).setInteger(0, sno) .setString(1, ()).uniqueResult()。 } //提交學(xué)生的成績 將其保存到數(shù)據(jù)庫中 安徽工業(yè)大學(xué) 畢業(yè)設(shè)計(jì)(論文)說明書 共 40 頁 第 23 頁 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 裝 ┊ ┊ ┊ ┊ ┊ 訂 ┊ ┊ ┊ ┊ ┊ 線 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ public Integer submit(Student s, ListExamPaper eps) { Session session = ()。 Examreport er = new Examreport()。 try { for (ExamPaper ep : eps) {//迭代將試卷列表存到數(shù)據(jù)庫中 。 (ep)。 (ep)。 } (er)。//將考生考的成績放到數(shù)據(jù)庫中 。 (er)。 (^^^^^)。//測試是否成功 。 } catch (Exception e) { ()。 return null。 } return ()。 } public int Rdm(int n) { //取隨機(jī)數(shù) int temp = 0。 Random random。 random = new Random()。 temp = ((n))。 return temp + 1。 } public int autograde(int erid) {//自動的評分功能 。 Session session = ()。 //使用內(nèi)連接來從數(shù)據(jù)庫中取得相應(yīng)的題目和答案 。來檢查對了幾題 。 String hql = select count(*) from ExamPaper as ep INNER JOIN table_question as q on = and = and = ?。 int count = ((hql).setInteger(0, erid).uniqueResult().toString())。 return count。//返回對的題目總數(shù) 。 } //得到考生考試的成績 。 public Examreport getExamreport(int id) { Session session = ()。 return (Examreport) (, id)。//此方法是通過反射機(jī)制來得到成績 。 安徽工業(yè)大學(xué) 畢業(yè)設(shè)計(jì)(論文)說明書 共 40 頁 第 24 頁 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 裝 ┊ ┊ ┊ ┊ ┊ 訂 ┊ ┊ ┊ ┊ ┊ 線 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ } } ○2 考生的成績查詢實(shí)現(xiàn) 。 //查詢分?jǐn)?shù)的 action public ActionForward seekScore(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { int score = 0。 HttpSession hs = (false)。 //得到一個會話空間 , String term = (select)。 //從頁面中得到 select參數(shù) Student s = (Student) (st)。//從會話中得到一個學(xué)生的實(shí)體 。 try { score = ((), term).getScore()。 //調(diào)用一些后臺的方法來取得學(xué)生考試的成績 。 } catch (Exception e) { (scoreinfo, 無成績 )。//異常的處理 。 } (scoreinfo, score)。 //將取得的成績放到請求的頁面中 。 return (list)。 //實(shí)現(xiàn)頁面的跳轉(zhuǎn) 。 管理里員后臺登錄 操作的主要界面和代碼 。 ○1題庫管理模塊的試題維護(hù): ○A試題維護(hù)主界面:選擇題庫管理中試題維護(hù)是試題維護(hù)的主 界面,展示了試題維護(hù)的主要信息;可進(jìn)行試題的添加、刪除(單條刪除)、批量查詢等操作; 安徽工業(yè)大學(xué) 畢業(yè)設(shè)計(jì)(論文)說明書 共 40 頁 第 25 頁 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 裝 ┊ ┊ ┊ ┊ ┊ 訂 ┊ ┊ ┊ ┊ ┊ 線 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ○B(yǎng)試題的錄入:可進(jìn)行多種試題的錄入,每一種試題被錄入到每一個試題庫中,如填空方式會填到填空表中、多選方式會填到多選題庫中;點(diǎn)擊主界面中錄入,可彈出試題錄入界面,輸入試題的信息后,點(diǎn)擊提交即可,界面如下 ○c試題的列表 ,試題列表的生成也是通過 action 中相應(yīng)的方法來調(diào)用后臺的業(yè)務(wù)來 實(shí)現(xiàn)的 ,并可以對試題進(jìn)行修改 ,刪除 ,界面如下 : 安徽工業(yè)大學(xué) 畢業(yè)設(shè)計(jì)(論文)說明書 共 40 頁 第 26 頁 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 裝 ┊ ┊ ┊ ┊ ┊ 訂 ┊ ┊ ┊ ┊ ┊ 線 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ public ActionForward qlist(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { ListQuestion qs = ()。//創(chuàng)建一個 list 列表用來存放題目 。 (qs, qs)。 return (list)。 } public ActionForward delQuestion(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { int id = ((qid))。//強(qiáng)制轉(zhuǎn) 化 ,使用到了包裝類 ,因?yàn)閺捻撁嫔系玫降?qid 是一個字符串的格式 。 Question q = (id)。 boolean b。 if (q != null) { b = (q)。 } return (del)。 } ○2 考生信息模塊的維護(hù): 安徽工業(yè)大學(xué) 畢業(yè)設(shè)計(jì)(論文)說明書 共 40 頁 第 27 頁 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 裝 ┊ ┊ ┊ ┊ ┊ 訂 ┊ ┊ ┊ ┊ ┊ 線 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ○ A 考生的添加界面 ,和源碼 。 ○B(yǎng) 對考 生信息的維護(hù) 顯示所有考生 ,和刪除考生的界面 ,源碼 。
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1