连线校验问题修改
This commit is contained in:
parent
76134d5b14
commit
368e079d95
@ -9544,8 +9544,28 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
|||||||
if (shapeName.equals("linker")) {
|
if (shapeName.equals("linker")) {
|
||||||
JSONObject from = o.getJSONObject("from");
|
JSONObject from = o.getJSONObject("from");
|
||||||
JSONObject to = o.getJSONObject("to");
|
JSONObject to = o.getJSONObject("to");
|
||||||
|
if(from==null||to==null){
|
||||||
|
sb.append("<span>连线校验<span><br/>");
|
||||||
|
sb6.append("出入线未与其他形状进行关联,请查看模型");
|
||||||
|
sb6.append("校验未通过,请检查模型是否都已连线!");
|
||||||
|
sb.append(sb6);
|
||||||
|
ro.put("result","error");
|
||||||
|
ro.put("sb",sb);
|
||||||
|
return ro.toString();
|
||||||
|
}
|
||||||
|
SDK.getLogAPI().consoleInfo("form>>>>>>>>>>>"+from);
|
||||||
|
SDK.getLogAPI().consoleInfo("to>>>>>>>>>>>"+to);
|
||||||
String from_id = from.getString("id");
|
String from_id = from.getString("id");
|
||||||
String to_id = to.getString("id");
|
String to_id = to.getString("id");
|
||||||
|
if(UtilString.isEmpty(from_id)||UtilString.isEmpty(to_id)){
|
||||||
|
sb.append("<span>连线校验<span><br/>");
|
||||||
|
sb6.append("出入线未与其他形状进行关联,请查看模型");
|
||||||
|
sb6.append("校验未通过,请检查模型是否都已连线!");
|
||||||
|
sb.append(sb6);
|
||||||
|
ro.put("result","error");
|
||||||
|
ro.put("sb",sb);
|
||||||
|
return ro.toString();
|
||||||
|
}
|
||||||
if (UtilString.isNotEmpty(from_id)) {
|
if (UtilString.isNotEmpty(from_id)) {
|
||||||
list_linker.remove(from_id);
|
list_linker.remove(from_id);
|
||||||
}else {
|
}else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user