資源簡介
2014最近做好的學期項目hr 帶數據 JSP頁面 完全能運行 帶有完整的libs jar包
J2EE
SSH
Ajax
easyUI
帶有上傳功能
自動菜單生成
登錄驗證
員工管理
薪資管理
培訓管理
招聘管理
等等
代碼片段和文件信息
package?com.xunda.hr.actions;
import?net.sf.json.JSONobject;
import?net.sf.json.JsonConfig;
import?org.apache.struts2.convention.annotation.Action;
import?org.apache.struts2.convention.annotation.InterceptorRef;
import?org.apache.struts2.convention.annotation.Namespace;
import?org.apache.struts2.convention.annotation.ParentPackage;
import?org.apache.struts2.convention.annotation.Result;
import?org.apache.struts2.convention.annotation.Results;
import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.stereotype.Controller;
import?com.opensymphony.xwork2.ActionContext;
import?com.opensymphony.xwork2.ActionSupport;
import?com.opensymphony.xwork2.ModelDriven;
import?com.xunda.hr.model.Dept;
import?com.xunda.hr.page.Pagination;
import?com.xunda.hr.services.IDeptService;
import?com.xunda.hr.utils.JsonAlert;
@ParentPackage(“needadminPkg“)
@Namespace(“/admin/dept“)
@Results(value?=?{?
@Result(name=“index“location=“/WEB-INF/pages/admin/dept/index.jsp“)
@Result(name=“ok“location=“/WEB-INF/pages/admin/json.jsp“)
@Result(name=“input“location=“/WEB-INF/pages/admin/input.jsp“)
})
@InterceptorRef(value?=?“admStack“)
@Controller
public?class?DeptAction?extends?ActionSupport?implements?ModelDriven?{
private?Dept?dept?=?new?Dept();
@Autowired
private?IDeptService?deptService;
private?Integer?page;
????private?Integer?rows;
????private?String?ids;
????
@Action(“index“)???
public?String?index()
???????{
???? ???return?“index“;
???????}
@Action(“save“)
????public?String?save()
????{
deptService.save(dept);
JsonAlert.alert(ActionContext.getContext()?0?“ok“);
???? return?“ok“;
????}
@Action(“list“)
public?String?list()
{
System.out.println(“page=“+page);
System.out.println(“rows=“+rows);
Pagination?pager?=?deptService.findPage(pagerowsdept);
JSONobject?json?=?new?JSONobject();
json.accumulate(“success“?0);
json.accumulate(“total“?pager.getTotalCount());
json.accumulate(“rows“pager.getList());
String?info?=?json.toString();
ActionContext.getContext().put(“json“?info);
return?“ok“;
}
@Action(“edit“)
public?String?edit()
{
Dept?d?=?deptService.findById(dept.getDeptid());
JsonConfig?config?=?new?JsonConfig();
config.setExcludes(new?String[]{““});
JSONobject?json?=?JSONobject.fromobject(dconfig);
String?info?=?json.toString();
ActionContext.getContext().put(“json“?info);
return?“ok“;
}
@Action(“delete“)
public?String?delete()
{
deptService.delete(dept.getDeptid());
JSONobject?json?=?new?JSONobject();
json.accumulate(“success“?0);
String?info?=?json.toString();
ActionContext.getContext().put(“json“?info);
return?“ok“;
}
@Action(“batchDel“)
public?String?batchDel()
{
System.out.println(ids);
String[]?idArray?=?ids.split(““);
for(int?i?=0?;i {
Integer?deptid?=?Integer.parseInt(idArray[i]);
deptService.delete
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????6685??2014-11-03?21:04??db_hr.sql
?????目錄???????????0??2014-11-13?20:22??hr\
?????文件?????????623??2014-11-03?21:37??hr\.classpath
?????目錄???????????0??2014-11-13?20:22??hr\.myeclipse\
?????文件?????????571??2014-11-03?21:22??hr\.myhibernatedata
?????文件?????????277??2014-11-13?20:23??hr\.myme
?????文件?????????240??2014-09-15?14:18??hr\.mystrutsdata
?????文件????????2030??2014-11-03?21:20??hr\.project
?????目錄???????????0??2014-11-13?20:22??hr\.settings\
?????文件?????????500??2014-09-15?14:12??hr\.settings\.jsdtscope
?????文件?????????395??2014-09-15?14:12??hr\.settings\org.eclipse.jdt.core.prefs
?????文件?????????442??2014-09-16?09:11??hr\.settings\org.eclipse.wst.common.component
?????文件?????????252??2014-09-15?14:12??hr\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件??????????49??2014-09-15?14:12??hr\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2014-09-15?14:12??hr\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件??????220554??2014-11-18?21:29??hr\file.log
?????目錄???????????0??2014-11-13?20:22??hr\src\
?????文件????????3450??2014-11-03?21:25??hr\src\beans.xm
?????目錄???????????0??2014-11-19?23:39??hr\src\com\
?????目錄???????????0??2014-11-13?20:22??hr\src\com\xunda\
?????目錄???????????0??2014-11-13?20:22??hr\src\com\xunda\hr\
?????目錄???????????0??2014-11-15?01:51??hr\src\com\xunda\hr\actions\
?????文件????????3508??2014-11-15?21:59??hr\src\com\xunda\hr\actions\DeptAction.java
?????文件????????5432??2014-11-18?16:34??hr\src\com\xunda\hr\actions\EmployeeAction.java
?????文件????????3583??2014-11-15?21:57??hr\src\com\xunda\hr\actions\JobAction.java
?????文件????????5666??2014-11-18?22:24??hr\src\com\xunda\hr\actions\MainAction.java
?????文件????????3593??2014-11-15?22:00??hr\src\com\xunda\hr\actions\PostAction.java
?????文件????????3704??2014-11-19?21:52??hr\src\com\xunda\hr\actions\PowerAction.java
?????文件????????3650??2014-11-15?22:01??hr\src\com\xunda\hr\actions\SalaryAction.java
?????文件?????????443??2014-11-03?21:49??hr\src\com\xunda\hr\actions\TestAction-test-validation.xm
?????文件????????1008??2014-11-03?21:49??hr\src\com\xunda\hr\actions\TestAction.java
............此處省略610個文件信息
- 上一篇:Android-簡易彈鋼琴
- 下一篇:JavaWeb畢設
評論
共有 條評論