⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 withdrawstatisticaction.java

📁 sso呵呵
💻 JAVA
字号:
package com.mdcl.mocha.jlcmcc.contract.action;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.mdcl.mocha.bpm.sdk.ServiceManager;
import com.mdcl.mocha.bpm.sdk.license.ExpiryException;
import com.mdcl.mocha.bpm.sdk.license.LicenseException;
import com.mdcl.mocha.bpm.sdk.license.NotFoundModuleException;
import com.mdcl.mocha.bpm.webcommons.action.BPMBaseAction;
import com.mdcl.mocha.jlcmcc.contract.IWithdrawStatistic;

/**
 *
 * <strong>Title : WithdrawStatisticAction<br></strong>
 * <strong>Description : 回退记录的统计 </strong><br>
 * <strong>Create on : 2007-9-27<br></strong>
 * <p>
 * <strong>Copyright (C) Mocha Software Co.,Ltd.<br></strong>
 * <p>
 * @author wangchl wangchl@mochasoft.com.cn<br>
 * @version <strong>吉林移动BPM一期</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人		修改日期		修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */

public class WithdrawStatisticAction extends BPMBaseAction {



	/**
	 *
	 * 方法描述 准备页面的初始化页面
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 */
	public ActionForward initpage(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
//		System.out.println(">>>> WithdrawStatisticAction.initpage()");
		List statResult = null;
		try {
			IWithdrawStatistic service = getService();
			statResult = service.statistic();
//			if(statResult!=null)
//				System.out.println(statResult.size());
		} catch (Exception e) {
			e.printStackTrace();
		}

//    	System.out.println("<<<< WithdrawStatisticAction.initpage()");
    	request.setAttribute("DATAS", statResult);
    	request.setAttribute("DataSize", new Integer(statResult == null ? 0 :statResult.size()));
    	return mapping.findForward("VIEW");
	}

	/**
	 *
	 * 方法描述 得到对应的服务实例
	 * @return
	 * @throws NotFoundModuleException
	 * @throws ExpiryException
	 * @throws LicenseException
	 */
	private IWithdrawStatistic getService() throws NotFoundModuleException, ExpiryException, LicenseException{
		return (IWithdrawStatistic) ServiceManager.getInstance().getService(IWithdrawStatistic.class);
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -