java基于xml配置的通用excel单表数据导入组件(三、负责数据转换处理的类)

package xxxxxxx.manage.importexcel;

import java.util.Map;
import java.util.logging.Logger; import xxxxxxx.cache.UserSession;
import xxxxxxx.manage.accounttype.DAO_AccountType;
import xxxxxxx.manage.dict.DAO_Dict;
import xxxxxxx.supp.BN_Row;
import xxxxxxx.util.DateUtil;
import xxxxxxx.util.StringUtil; public class Transfer { private static Logger logger = Logger.getLogger(Transfer.class.getName()); public Transfer(){} public String filterDate(String date){
return DateUtil.filterDate(date);
} public String getAccoutTypeIdByName(String op_name){
return DAO_AccountType.getIdByName(op_name);
} public String getUUID(){
return StringUtil.getUUID();
} public String getUserId(){
return UserSession.getOpId();
} public String getUserName(){
return UserSession.getOpName();
} public String getNowInput(){
return BN_Row.getNowInput();
} public String getDictIdByName(String op_name, String nodeId){
Map map = DAO_Dict.getNameIdMap(nodeId);
if (map.containsKey(op_name)){
return map.get(op_name).toString();
}
return null;
} public String getDictValueByName(String op_name, String nodeId){
Map map = DAO_Dict.getNameValueMap(new String[]{nodeId});
if (map.containsKey(op_name)){
return map.get(op_name).toString();
}
return null;
} public String getConst(String value){
return value;
} public int getConst(int value){
return value;
} public float getConst(float value){
return value;
} }
上一篇:Web Application Vulnerablities


下一篇:Js 中的事件委托/事件代理