src/com/ccit/action/DepartmentBedAction.java
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.ccit.action;
import java.util.*;
import com.ccit.model.Department;
import com.ccit.model.DepartmentBed;
import com.ccit.manager.ObjectManager;
import com.opensymphony.xwork2.*;
import com.system.util.PageModel;
@SuppressWarnings({ "unchecked", "serial" })
public class DepartmentBedAction extends ActionSupport {
private DepartmentBed util;
private PageModel<DepartmentBed> pageModel;
private List<Department> listDepartment;
private String errMsg;
private String field;
private String fieldValue;
private ObjectManager objectManager;
public String initUtil() throws Exception{
listDepartment = objectManager.getUtil("from Department");
util = null;
return "saveOrUpdate";
}
public String saveOrUpdateObject() throws Exception{
objectManager.saveOrUpdateObject(util);
util = null;
errMsg = null;
return getAllUtil();
}
public String deleteUtil() throws Exception{
objectManager.deleteObject(util);
util = null;
errMsg = null;
return getAllUtil();
}
public String selectUtil() throws Exception{
listDepartment = objectManager.getUtil("from Department");
util = (DepartmentBed) objectManager.getObject(new DepartmentBed(), 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");
if (null == pageModel) {
pageModel = new PageModel<DepartmentBed>();
}
if (0 == pageModel.getCurrentPageNo()) {
pageModel.setCurrentPageNo(1);
}
StringBuilder _sql = new StringBuilder();
_sql.append(" from DepartmentBed where 1 = 1 ");
//if (!"admin".equals(type)) {
// sql = sql + " and user.id = " + id;
后面还有 67 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
