|
|
|
@ -4,6 +4,7 @@ import com.fr.form.ui.CustomWriteAbleRepeatEditor;
|
|
|
|
|
import com.fr.form.ui.DataControl; |
|
|
|
|
import com.fr.form.ui.WidgetValue; |
|
|
|
|
import com.fr.general.Inter; |
|
|
|
|
import com.fr.general.ModuleContext; |
|
|
|
|
import com.fr.general.xml.GeneralXMLTools; |
|
|
|
|
import com.fr.json.JSONArray; |
|
|
|
|
import com.fr.json.JSONException; |
|
|
|
@ -121,7 +122,7 @@ public class ZTree extends CustomWriteAbleRepeatEditor implements DataControl {
|
|
|
|
|
return new JSONArray(); |
|
|
|
|
} |
|
|
|
|
PluginLicense pluginLicense = PluginLicenseManager.getInstance().getPluginLicenseByID(ZTreeConstants.PLUGIN_ID); |
|
|
|
|
if (pluginLicense != null && pluginLicense.isAvailable()) { |
|
|
|
|
if ((pluginLicense != null && pluginLicense.isAvailable()) || isDesign()) { |
|
|
|
|
String pv = WebUtils.getHTTPRequestParameter(req, "pv"); |
|
|
|
|
int level = WebUtils.getHTTPRequestIntParameter(req, "level", ZTreeNode.ROOT_LEVEL); |
|
|
|
|
String text = WebUtils.getHTTPRequestParameter(req, "text"); |
|
|
|
@ -140,6 +141,12 @@ public class ZTree extends CustomWriteAbleRepeatEditor implements DataControl {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private boolean isDesign() { |
|
|
|
|
return ModuleContext.isModuleStarted("com.fr.design.module.DesignerModule"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void readXML(XMLableReader reader) { |
|
|
|
|
super.readXML(reader); |
|
|
|
|