|
|
@@ -357,13 +357,21 @@ public class ModelFormHelper { |
|
|
|
* @param opts |
|
|
|
*/ |
|
|
|
public static void buildOptsEx(ModelForm bean, SwMap opts) { |
|
|
|
String eventPath = getEventPath(bean); |
|
|
|
if (StringUtils.isNotEmpty(eventPath)) { |
|
|
|
opts.put(KEY_EVENT_PATH, eventPath); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static String getEventPath(ModelForm bean) { |
|
|
|
String moduleName = ModelProjectCache.getInstance().getModule(bean.getPrjId()); |
|
|
|
if (StringUtils.isNotEmpty(moduleName)) { |
|
|
|
String ep = moduleName; |
|
|
|
String cn = ModelCatalogCache.getInstance().getFullName(bean.getMcId()); |
|
|
|
if (StringUtils.isNotEmpty(cn)) ep = ep + "." + cn; |
|
|
|
opts.put(KEY_EVENT_PATH, ep + "." + bean.getName()); |
|
|
|
return ep + "." + bean.getName(); |
|
|
|
} |
|
|
|
return ""; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|