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

📄 fj1000rptimpl.java

📁 电信的网厅的整站代码
💻 JAVA
字号:
package com.doone.fj1w.fjmgr.rpt;


import java.util.Map;

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

import com.doone.data.DataTable;
import com.doone.util.FileLogger;

public class FJ1000rptImpl extends ReportImpl {
	
	
	/**用于获取报表
	 * 
	 */
	protected DataTable getRptList(Map _map) {
		DataTable dt = null;
		String sRptType = (String) _map.get("RPTTYPE");
		System.out.println("sRptType==>"+sRptType);
		if(sRptType == null || sRptType.equals("1") || sRptType.equals("2")) {
			EverywhereOrderRptImpl oEverywhereOrderRptImpl = new EverywhereOrderRptImpl();
			dt = oEverywhereOrderRptImpl.getRptList(_map);
		}
		return dt;
	}
	
	/**用于导出Excel页面获取报表
	 * 
	 */
	public DataTable getAllList(Map _map) {
		DataTable dt = null;
		String sRptType = (String) _map.get("RPTTYPE");
		if(sRptType == null || sRptType.equals("1") || sRptType.equals("2")) {
			EverywhereOrderRptImpl oEverywhereOrderRptImpl = new EverywhereOrderRptImpl();
			dt = oEverywhereOrderRptImpl.getAllList(_map);
		}
		return dt;
	}
	
	/**用于分页
	 * 
	 */
	protected int getRptListCount(Map _map) {
		int count = 0;
		String sRptType = (String) _map.get("RPTTYPE");
		if(sRptType == null || sRptType.equals("1") || sRptType.equals("2")) {
			EverywhereOrderRptImpl oEverywhereOrderRptImpl = new EverywhereOrderRptImpl();
			count = oEverywhereOrderRptImpl.getRptListCount(_map);
		}
		return count;
	}
	
	public String genHtml(Map _map) {
		String sHtml = "";
		String sRptType = (String) _map.get("RPTTYPE");
		if(sRptType == null || sRptType.equals("1") || sRptType.equals("2")) {
			EverywhereOrderRptImpl oEverywhereOrderRptImpl = new EverywhereOrderRptImpl();
			sHtml = oEverywhereOrderRptImpl.genHtml(_map);
		}
		return sHtml;
	}
	
	public static String getHistoryRptType(HttpServletRequest request,HttpServletResponse response, Map _map) {
		String rptType = "";
		try {
			rptType = AccesslogImpl.getHistoryByName(request,response,_map,"rptType");
			if (rptType == null) rptType = "";
		}catch(Exception e) {
			FileLogger.getLogger().info(e.getMessage(),e);
		}
		return rptType;
	}
	
}

⌨️ 快捷键说明

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