📄 common_005_view_dwr.java
字号:
/**
* 2008/03/14
*
* @author 何 貝
*/
package com.hb.base.view.common;
import java.util.List;
import java.util.Map;
import net.sf.json.JSONObject;
import com.hb.base.services.organization.IOrganizationService;
import com.hb.base.view.convert.ConvertUtil;
import com.hb.base.view.domain.AbstractDwrViewBean;
public class Common_005_View_Dwr extends AbstractDwrViewBean {
private static final long serialVersionUID = 1482872249894878959L;
private IOrganizationService organizationService;
@Override
public void create() {
}
@Override
public void destroy() {
}
@Override
public void init() {
}
/**
* 取得员工信息列表
*
* @param requestMap RequestMap
* @return JSON格式的列表信息
*/
public String getEmployeeListInfo_Action(Map<String, String> requestMap) {
int start = Integer.parseInt(requestMap.get("start"));
int limit = Integer.parseInt(requestMap.get("limit"));
String filterCondition = requestMap.get("filterCondition");
String filterValue = requestMap.get("filterValue");
List<Object> empList = organizationService.getEmployeeListInfo_Service(start, limit, filterCondition,
filterValue);
// 所有数据数量
int totalDataCount = organizationService
.getEmployeeInfoListSize_Service(filterCondition, filterValue);
JSONObject employeeListInfo = ConvertUtil.javaListToJSONObject(totalDataCount, empList);
return employeeListInfo.toString();
}
// --------------------------------------------------------------------------
public IOrganizationService getOrganizationService() {
return organizationService;
}
public void setOrganizationService(IOrganizationService organizationService) {
this.organizationService = organizationService;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -