📄 ajaxrecorddetailaction.java
字号:
package cn.com.sdcncsi.lunch.balance.action;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import cn.com.sdcncsi.lunch.balance.service.CheckDetailService;
//import cn.com.sdcncsi.lunch.balance.service.CheckOutService;
import com.opensymphony.xwork2.ActionSupport;
public class AjaxRecordDetailAction extends ActionSupport {
private CheckDetailService checkDetailService = null;
private static Log logger = LogFactory.getLog(AjaxRecordDetailAction.class.getName());
/* (non-Javadoc)
* @see com.opensymphony.xwork2.ActionSupport#execute()
*/
@Override
public String execute() {
// TODO Auto-generated method stub
try{
setJsonModel(checkDetailService.getAccountBookWithDetails(new Integer(getId())));
logger.debug("json:"+getJsonModel());
}catch(Exception e){
e.printStackTrace();
}
return SUCCESS;
}
public void setCheckDetailService(CheckDetailService checkDetailService){
this.checkDetailService = checkDetailService;
}
private String id ;
private Object jsonModel;
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
/**
* @return the jsonModel
*/
public Object getJsonModel() {
return jsonModel;
}
/**
* @param jsonModel the jsonModel to set
*/
public void setJsonModel(Object jsonModel) {
this.jsonModel = jsonModel;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -