資源簡介
此項目用于大學生學生畢業(yè)設(shè)計(主要用SSH框架實現(xiàn),主要有學生注冊,查詢,修改,課程查看,添加,學生選課,學生查詢每一門成績,還可以統(tǒng)計每一門的課程信息,有分組查詢,驗證碼等功能。)
代碼片段和文件信息
package?com.ccit.action;
import?java.util.*;
import?com.ccit.model.Professional;
import?com.ccit.model.Clas;
import?com.ccit.manager.objectManager;
import?com.opensymphony.xwork2.*;
@SuppressWarnings({?“unchecked“?“serial“?})
public?class?ClasAction?extends?ActionSupport?{
private?Clas?util;
private?List?list;
private?List?listProfessional;
private?String?message;
private?String?str;
private?objectManager?objectManager;
public?String?initUtil()?throws?Exception{
listProfessional?=?objectManager.getUtil(“from?Professional“);
util?=?null;
return?“saveOrUpdate“;
}
public?String?saveOrUpdateobject()?throws?Exception{
objectManager.saveOrUpdateobject(util);
util?=?null;
return?getAllUtil();
}
public?String?deleteUtil()?throws?Exception{
objectManager.deleteobject(util);
return?getAllUtil();
}
public?String?selectUtil()?throws?Exception{
listProfessional?=?objectManager.getUtil(“from?Professional“);
util?=?(Clas)?objectManager.getobject(new?Clas()?util.getId());
return?“saveOrUpdate“;
}
public?String?getAllUtil()?throws?Exception{
//Map?session?=?ActionContext.getContext().getSession();
//String?type?=?(String)?session.get(“type“);
//int?id?=?(Integer)?session.get(“id“);
String?sql?=?““;
if?(null?!=?message?&&?message.trim().length()?>?0)?{
String?_Str?=?new?String(str.getBytes(“iso-8859-1“)?“utf-8“);
str?=?_Str;
sql?=?“from?Clas?where?“?+?message?+?“?like?‘%“?+?str?+?“%‘“;
}?else?{
sql?=?“from?Clas“;
//if?(!“admin“.equals(type))?{
// sql?=?sql?+?“?where?user.id?=?“?+?id;
//}
}
message?=?null;
list?=?objectManager.getUtil(sql);
return?“find“;
}
public?Clas?getUtil()?{
return?util;
}
public?void?setUtil(Clas?util)?{
this.util?=?util;
}
public?String?getMessage()?{
return?message;
}
public?void?setMessage(String?message)?{
this.message?=?message;
}
public?objectManager?getobjectManager()?{
return?objectManager;
}
public?void?setobjectManager(objectManager?objectManager)?{
this.objectManager?=?objectManager;
}
public?List?getList()?{
return?list;
}
public?void?setList(List?list)?{
this.list?=?list;
}
public?List?getListProfessional()?{
return?listProfessional;
}
public?void?setListProfessional(List?listProfessional)?{
this.listProfessional?=?listProfessional;
}
public?String?getStr()?{
return?str;
}
public?void?setStr(String?str)?{
this.str?=?str;
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????8654??2015-11-30?19:45??sq.sql
?????目錄???????????0??2015-11-30?19:47??StudentSystem\
?????文件????????5326??2018-04-15?21:02??StudentSystem\.classpath
?????目錄???????????0??2015-11-30?19:47??StudentSystem\.myeclipse\
?????文件?????????313??2018-04-15?21:02??StudentSystem\.myme
?????文件????????1756??2018-04-15?21:03??StudentSystem\.project
?????目錄???????????0??2015-11-30?19:47??StudentSystem\.settings\
?????文件?????????500??2018-04-15?21:03??StudentSystem\.settings\.jsdtscope
?????文件????????1040??2015-11-30?19:47??StudentSystem\.settings\com.genuitec.eclipse.j2eedt.core.prefs
?????文件??????????88??2015-11-30?19:47??StudentSystem\.settings\org.eclipse.core.resources.prefs
?????文件?????????364??2018-04-15?21:02??StudentSystem\.settings\org.eclipse.jdt.core.prefs
?????文件?????????137??2015-11-30?19:47??StudentSystem\.settings\org.eclipse.ltk.core.refactoring.prefs
?????文件?????????477??2018-04-15?21:02??StudentSystem\.settings\org.eclipse.wst.common.component
?????文件?????????252??2018-04-15?21:03??StudentSystem\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件??????????49??2018-04-15?21:03??StudentSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2018-04-15?21:03??StudentSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2015-11-30?19:47??StudentSystem\src\
?????文件????????2691??2015-11-30?19:47??StudentSystem\src\applicationContext.xm
?????目錄???????????0??2015-11-30?19:47??StudentSystem\src\com\
?????目錄???????????0??2015-11-30?19:47??StudentSystem\src\com\ccit\
?????目錄???????????0??2015-11-30?19:47??StudentSystem\src\com\ccit\action\
?????文件????????2493??2015-11-30?19:47??StudentSystem\src\com\ccit\action\ClasAction.java
?????文件????????1769??2015-11-30?19:47??StudentSystem\src\com\ccit\action\CourseAction.java
?????文件????????1817??2015-11-30?19:47??StudentSystem\src\com\ccit\action\DepartmentAction.java
?????文件????????3208??2015-11-30?19:47??StudentSystem\src\com\ccit\action\LoginAction.java
?????文件????????2559??2015-11-30?19:47??StudentSystem\src\com\ccit\action\ProfessionalAction.java
?????文件????????2729??2015-11-30?19:47??StudentSystem\src\com\ccit\action\ScoreAction.java
?????文件????????2723??2015-11-30?19:47??StudentSystem\src\com\ccit\action\StudentAction.java
?????文件????????1781??2015-11-30?19:47??StudentSystem\src\com\ccit\action\TeacherAction.java
?????文件????????3084??2015-11-30?19:47??StudentSystem\src\com\ccit\action\TeachingAction.java
?????文件????????1984??2015-11-30?19:47??StudentSystem\src\com\ccit\action\UserAction.java
............此處省略365個文件信息
- 上一篇:AR人臉數(shù)據(jù)集
- 下一篇:深入淺出通信原理1-556陳愛民
評論
共有 條評論