Commit d588193b by 吴佳

加载模型时不需要传入模型名称

parent c4d080d1
...@@ -1035,7 +1035,7 @@ public class MdaUtils { ...@@ -1035,7 +1035,7 @@ public class MdaUtils {
return Codetables.getCodetableLabel(key, codetable, locale.getLanguage()); return Codetables.getCodetableLabel(key, codetable, locale.getLanguage());
} }
public static void loadMdlData(IModule module, String moduleName ,IStream stream) { public static void loadMdlData(IModule module ,IStream stream) {
module.clear(); module.clear();
String[] lines = null; String[] lines = null;
try { try {
...@@ -1045,7 +1045,7 @@ public class MdaUtils { ...@@ -1045,7 +1045,7 @@ public class MdaUtils {
} }
boolean isLoading = false; boolean isLoading = false;
if(lines.length > 0){ if(lines.length > 0){
// Class moduleClass = module.getClass(); Class moduleClass = module.getClass();
for (String line : lines ) { for (String line : lines ) {
//去除空格 //去除空格
line.trim(); line.trim();
...@@ -1054,7 +1054,7 @@ public class MdaUtils { ...@@ -1054,7 +1054,7 @@ public class MdaUtils {
continue; continue;
} }
//读取到本模型模型名相同数据的行,开始获取模型数据 //读取到本模型模型名相同数据的行,开始获取模型数据
if(moduleName.toUpperCase().indexOf(line.toUpperCase()) != -1){ if(moduleClass.toUpperCase().indexOf(line.toUpperCase()) != -1){
//开始获取模型数据标识 //开始获取模型数据标识
isLoading = true; isLoading = true;
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment