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

正文內(nèi)容

畢業(yè)設(shè)計(jì)報(bào)告學(xué)生考試系統(tǒng)(服務(wù)器端)-閱讀頁

2025-02-05 16:32本頁面
  

【正文】 題14圖 45 新增判斷題圖 46 新增簡答題15圖 47 題庫查詢圖 47 修改題目觀察者模式主要是開發(fā)兩個(gè)接口 ITreeWatched 和 ItreeObserve,代碼如下:public interface ITreeWatched { public void addTreeObserver(ITreeObserver observer)。 public void notifyTreeObserver(Object object)。}public interface ITreeObserver { public void doObserverAction(Object object)。try {conn = ()。questionDAO = new QuestionDAO(conn)。SetBObjectInterface delSet = new HashSetBObjectInterface()。if(module instanceof JudgeQuestion){for(int i = 0 。i++){JudgeQuestion question = (JudgeQuestion) (i)。 for(Item item:items){ (item)。 (delSet)。(delSet)。i()。SetItem set = ()。}} (questionVector)。}()。17()。}} 試卷管理模塊試卷管理模塊包括試卷設(shè)置、試卷查詢和刪除試卷功能。界面如下:圖 48 試卷基本屬性18圖 49 試卷題目組合圖 410 試卷查詢試卷基本設(shè)置用到了組合模式,具體主代碼如下:public class UIExamPaper extends JPanel implements JGxluSimpleDialogInterface{ private UIExamPaperPro uiExamPaperPro。public UIExamPaper(){jbInit()。uiExamPaperPro = new UIExamPaperPro()。(uiExamPaperPro,)。}public boolean validateData(){if(() == false||() == false){return false。long sum = 0。sum += eachQuetypeSum。return false。}Overridepublic boolean perform(int nResourceID) {switch(nResourceID){case :boolean flag = ()。}showNextDialogThread()。case :return true。}Overridepublic void initDialog() {}20public void showQuestionTabbed(){ExamPaper examPaper = ()。SetInteger questionType = ()。()。().put(questionTypeValue, new ArrayListAbstractQuestion())。for(ExamPaperQuestionType epq:set){(examPaper)。()。}})。}}試卷的查詢功能的主代碼如下:public void doQuery(final ExamPaper arg,final int page){final DialogIconThread dlg = new DialogIconThread(()[0], , 正在查詢,請稍后…… ,查詢數(shù)據(jù) )。 recordCount = (long)()。 ()。 } caculatePageCount()。 ListExamPaper list = (ListExamPaper)()。 //記錄當(dāng)前查詢多少條記錄 currentRowCounts = ()。} catch (SDHException e1) {()。}()。()。().addWindowListener(new WindowAdapter() {public void windowClosing(WindowEvent e) {()。}})。界面如下:圖 411 成績查詢查詢功能主要代碼如下:22public MapString, Object queryGradeBypage(int page, int pageNumber,String studName, String paperName,String magor, String number) throws Exception {Connection conn = null。try{conn = ()。gradeDAO = new GradeDAO(conn)。long sum = (studName,paperName,magor,number)。(, sum)。}catch(Exception e){()。throw new SDHException(())。}return map。private JLabel jlPaper = new JLabel(選擇試卷, )。private JButton queryPaper = new JButton(())。private JTextField tfPassword = new JTextField()。private JButton stop = new JButton(停止考試,())。private JPanel centerPanel = new JPanel()。private JPanel panel = new JPanel()。public UIStartOrStopMainPanel(){jbInit()。(queryPaper)。(this)。(new Dimension(180,25))。(new Dimension(25,25))。(jlPaper)。(false)。(tfPassword)。(stop)。(,)。(,)。(,)。}Overridepublic void actionPerformed(ActionEvent e) {if(().equals()){24UIExamPaperMgt examPaperMgt = new UIExamPaperMgt()。}else if(().equals()){ExamPaper paper = null。return。return。if(flag){(this, 考試系統(tǒng)已開啟,不能重復(fù)開啟 )。}paper = ().queryPaperByName(().trim())。if(flag){(this, 考試開啟成功 )。}}else if(().equals()){try {boolean flag = ().stopExam()。}} catch (SDHException e1) {()。}}25第五章 系統(tǒng)測試數(shù)據(jù)庫連接測試:本系統(tǒng)采用 JDBC 連接數(shù)據(jù)庫,導(dǎo)入 MySQL jar 包后,并檢查數(shù)據(jù)表的建立無誤,通過管理員賬戶登錄測試。代碼功能結(jié)構(gòu)測試:系統(tǒng)開發(fā)過程中,經(jīng)常會需要很多的返回值,如:查詢題目時(shí)返回題目實(shí)體,然后將其放入一個(gè) Map 容器中。功能模塊測試:首先對單個(gè)功能進(jìn)行測試,包括對正常和非正常數(shù)據(jù)的測試。兩張表關(guān)聯(lián)時(shí)并且有數(shù)據(jù)(如課程下關(guān)聯(lián)有題目,則不能對課程進(jìn)行刪除) ,則不能刪除。26第六章 總結(jié)我們小組在習(xí)慧丹老師的精心指導(dǎo)下,完成了系統(tǒng)的設(shè)計(jì)。本系統(tǒng)的優(yōu)點(diǎn)有界面美觀、功能簡潔、容易操作。開發(fā)過程中用到了java 設(shè)計(jì)模塊中的觀察者模式、組合模式和工廠模式。同時(shí)在對后臺的設(shè)計(jì)中用到了容器,如Map、Set、List、Vector 等。服務(wù)器端已實(shí)現(xiàn)添加課程管理、考生信息管理、試題管理、試卷管理、考生成績管理、考務(wù)管理功能。畢業(yè)設(shè)計(jì)給了我們展示的舞臺,鍛煉了我們的動手能力,和獨(dú)立解決問題的能力。此次開發(fā)鍛煉了個(gè)人能力和協(xié)作能力,為將來就業(yè)打下了一定的基礎(chǔ)。開發(fā)過程,我主要完成服務(wù)器端的用戶管理模塊、試題管理模塊、試卷管理模塊、成績管理模塊及考務(wù)管理模塊。.[8] Bruce Eckel. Java ,.指導(dǎo)老師:習(xí)慧丹28附錄 學(xué)生考試系統(tǒng)流
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1