-
大小: 33.53MB文件類型: .zip金幣: 1下載: 0 次發布日期: 2023-07-11
- 語言: Java
- 標簽: MySQL、SSH2??
資源簡介
自己剛學Java時寫的代碼,有一整套的文檔和源碼,有完整的考試流程、自動組卷和手動組卷功能、完整的閱卷流程以及視頻播放等功能,多多指教!下載以后先在MYSQL數據庫中創建數據庫exam,然后把項目導入到MYECLIPSE8.5中,運行com.syf.mapping包下面的mapping類,將數據庫表建好。接著往selectinfo表中添加A\B\C\D四個選項,往usertype表中也添加上數據。如果要登錄,先往userinfo或者studentinfo表中添加一些數據,根據添加的數據**Num和**password進行登錄
代碼片段和文件信息
package?com.syf.action;
import?java.io.File;
import?java.io.FileInputStream;
import?java.io.FileNotFoundException;
import?java.io.FileOutputStream;
import?java.io.IOException;
import?java.io.InputStream;
import?java.io.UnsupportedEncodingException;
import?java.text.SimpleDateFormat;
import?java.util.ArrayList;
import?java.util.Date;
import?java.util.List;
import?java.util.Set;
import?org.apache.struts2.ServletActionContext;
import?com.opensymphony.xwork2.ActionContext;
import?com.opensymphony.xwork2.ActionSupport;
import?com.syf.entity.Classinfo;
import?com.syf.entity.Classtype;
import?com.syf.entity.Studentinfo;
import?com.syf.entity.Userinfo;
import?com.syf.service.ClassManagerService;
import?com.syf.utils.Pager;
import?com.syf.utils.PagerHelper;
/**
?*?功能:班組管理控制展現層實現類
?*?作者:?宋艷飛
?*?時間:2014-3-10
?*/
@SuppressWarnings(“unchecked“)
public?class?ClassManagerAction?extends?ActionSupport{
/**
?*?
?*/
private?static?final?long?serialVersionUID?=?1L;
private?ClassManagerService?classManagerService; //班組管理服務層接口
private?List?list=new?ArrayList();
private?Classtype?classType; //班組類型信息
private?Classinfo?classInfo; //班組信息
private?Studentinfo?studentInfo; //員工信息
private?Userinfo?userInfo; //用戶信息
/*
?*?設置照片
?*/
private?File?photo;
private?String?photoFileName;
private?InputStream?imageStream;
/**===============================================班組新增模塊==================================================**/
/**
?*?功能:刪除班組
?*?作者:宋艷飛
?*?時間:2014-3-10
?*?@return?string
?*/
public?String?deleteClassInfo(){
classInfo.setDelflag(“false“);
classManagerService.updateClassInfo(classInfo);
return?getClassInfoWithPage();
}
/**
?*?功能:班組結業
?*?作者:宋艷飛
?*?時間:2014-3-10
?*?@return?String
?*/
public?String?classGraduateInfo(){
String?classId=ServletActionContext.getRequest().getParameter(“classId“);
Classinfo?classInfo=(Classinfo)?classManagerService.getOneClassInfo(classId);
Set?set=classInfo.getStudentinfos();
List?stulist=new?ArrayList(set);
for(int?i=0;i Studentinfo?Studentinfo=(Studentinfo)?stulist.get(i);
Studentinfo.setStuStatue(“已結業“);
classManagerService.updateStudentInfo(Studentinfo);
}
classInfo.setClassStatue(“已結業“);
classManagerService.updateClassInfo(classInfo);
return?getClassInfoWithPage();
}
/**
?*?功能:更新班組信息
?*?作者:宋艷飛
?*?時間:2014-3-10
?*?@return?String
?*/
public?String?updateClassInfo(){
classManagerService.updateClassInfo(classInfo);
return?getClassInfoWithPage();
}
/**
?*?功能:得到一個班組的詳細信息
?*?作者:宋艷飛
?*?時間:2014-3-10
?*?@return?班組詳細信息頁面
?*/
public?String?toUpdateClassInfo(){
classInfo=(Classinfo)classManagerService.getOneClassInfo(ServletActionContext.getRequest().getParameter(“classId“));
L
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-04-17?14:29??宋艷飛1007100227煤礦遠程培訓與在線考試系統\
?????目錄???????????0??2014-02-26?08:50??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\
?????文件????????6009??2014-06-18?12:56??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\.classpath
?????文件?????????547??2013-12-20?23:28??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\.myhibernatedata
?????文件?????????312??2014-02-26?08:50??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\.myme
?????文件?????????240??2013-12-20?23:29??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\.mystrutsdata
?????文件????????1912??2013-12-20?23:38??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\.project
?????文件?????????462??2013-12-20?23:28??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\.springBeans
?????目錄???????????0??2014-02-26?08:50??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\.settings\
?????文件?????????500??2013-12-20?23:26??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\.settings\.jsdtscope
?????文件?????????297??2014-05-11?16:01??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\.settings\org.eclipse.core.resources.prefs
?????文件??????????49??2013-12-20?23:26??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2013-12-20?23:26??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2014-04-23?14:33??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\
?????文件???????11906??2014-05-14?13:42??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\applicationContext.xm
?????文件????????1991??2014-01-29?19:30??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\eportal.tld
?????文件????????1993??2014-03-08?13:29??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\hibernate.cfg.xm
?????文件?????????729??2014-01-07?18:52??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\init.properties
?????文件?????????298??2014-01-29?19:13??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\log4j.properties
?????文件????????2019??2014-04-23?14:34??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\msgConfimDialogTag.tld
?????文件??????????31??2014-02-13?19:33??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\struts.properties
?????文件???????14685??2014-06-20?14:27??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\struts.xm
?????目錄???????????0??2014-02-26?08:50??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\com\
?????目錄???????????0??2014-02-26?08:50??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\com\syf\
?????目錄???????????0??2014-05-23?12:14??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\com\syf\action\
?????文件???????16729??2014-06-20?23:05??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\com\syf\action\ClassManagerAction.java
?????文件???????14618??2014-06-20?20:06??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\com\syf\action\GradeManagerAction.java
?????文件????????3188??2014-04-29?13:59??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\com\syf\action\IndexAction.java
?????文件????????7461??2014-06-05?22:52??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\com\syf\action\LoginAction.java
?????文件???????13663??2014-05-26?12:42??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\com\syf\action\PlanManagerAction.java
?????文件???????22254??2014-06-20?12:47??宋艷飛1007100227煤礦遠程培訓與在線考試系統\exam-platform\src\com\syf\action\SchemeManagerAction.java
............此處省略840個文件信息
- 上一篇:dahua_camera.rar
- 下一篇:Android顯示動態圖
評論
共有 條評論