ajaxrecorddetailaction.java

来自「因为许多人出去吃饭都一个人付帐」· Java 代码 · 共 67 行

JAVA
67
字号
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 + =
减小字号Ctrl + -
显示快捷键?