studentutils.java

来自「J2EE项目开发Excel数据导入导出操作组件源代码(附带说明文档)」· Java 代码 · 共 44 行

JAVA
44
字号
package com.javayjm.excel;

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

public class StudentUtils {
	 
	public static List getStudentFormList(){
		Map codeMap = new HashMap();
		codeMap.put("sex男", "M");
		codeMap.put("sex女", "F");
		ExcelManager test = new ExcelManager(
				"D:\\work\\workspace\\excelfile\\student.xls",
				"importStudentInfo", codeMap);
		
		List modelList = test.getModelList();
		return modelList;
	}
	
	public static List getStudentMapList(){
		Map codeMap = new HashMap();
		codeMap.put("sex男", "M");
		codeMap.put("sex女", "F");
		ExcelManager test = new ExcelManager(
				"D:\\work\\workspace\\excelfile\\student.xls",
				"importStudentInfo_map", codeMap);
		test.getEtm().setSheet(1);
		List modelList = test.getModelList();
		return modelList;
	}
	public static List getScoreMapList(){
		Map codeMap = new HashMap();
		codeMap.put("sex男", "M");
		codeMap.put("sex女", "F");
		ExcelManager test = new ExcelManager(
				"D:\\work\\workspace\\excelfile\\student.xls",
				"importStudentInfo_score", codeMap);
		test.getEtm().setSheet(4);
		List modelList = test.getModelList();
		return modelList;
	}
}

⌨️ 快捷键说明

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