Ejemplo n.º 1
0
        public Dictionary <int, Clazz> GetExcelToClazzMap(Dictionary <int, string> functionMap, string classForName)
        {
            functionMap.Add(-1, "objectid");
            Dictionary <string, Clazz> methodMap = ReExcelUtils.MethodToLowerFunction(classForName);

            return(this.MapToMapKeyToValue(functionMap, methodMap));
        }
Ejemplo n.º 2
0
        public Dictionary <int, Clazz> GetExcelTitleToClazzMap(ISheet sheet, string mapFile, int titleIndex, string classForName)
        {
            Dictionary <string, int> titleList = this.getTitleList(sheet.GetRow(titleIndex));
            Dictionary <int, Clazz>  result;

            if (titleList == null)
            {
                result = null;
            }
            else
            {
                Dictionary <string, string> map         = ExcelRead.ReadExcelToDic(mapFile, 0);
                Dictionary <int, string>    functionMap = this.MapToMapKeyToValue(titleList, map);
                Dictionary <string, Clazz>  methodMap   = ReExcelUtils.MethodToLowerFunction(classForName);
                Dictionary <int, Clazz>     dictionary  = this.MapToMapKeyToValue(functionMap, methodMap);
                result = dictionary;
            }
            return(result);
        }
Ejemplo n.º 3
0
 private Dictionary <string, Clazz> MethodToFunction(object obj)
 {
     return(ReExcelUtils.MethodToLowerFunction(obj.GetType().FullName));
 }