Commit c1d5a5e3 by gechengyang

modify

parent c6e528d3
...@@ -170,6 +170,8 @@ public class NoUiPresentation extends AbstractNullPresentation { ...@@ -170,6 +170,8 @@ public class NoUiPresentation extends AbstractNullPresentation {
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
public final void error(IAttribute paramIAttribute, String paramString, Object... paramVarArgs) throws ContainerException { public final void error(IAttribute paramIAttribute, String paramString, Object... paramVarArgs) throws ContainerException {
handleProxyField(paramIAttribute);
// mapPut(messageMap, paramIAttribute, null, paramString, paramVarArgs); // mapPut(messageMap, paramIAttribute, null, paramString, paramVarArgs);
for (int i = 0; i < paramVarArgs.length; i++) { for (int i = 0; i < paramVarArgs.length; i++) {
if ((paramVarArgs[i] instanceof String)) { if ((paramVarArgs[i] instanceof String)) {
...@@ -319,8 +321,18 @@ public class NoUiPresentation extends AbstractNullPresentation { ...@@ -319,8 +321,18 @@ public class NoUiPresentation extends AbstractNullPresentation {
return localBoolean == null ? false : localBoolean.booleanValue(); return localBoolean == null ? false : localBoolean.booleanValue();
} }
private void handleProxyField(IAttribute paramIAttribute) {
if (paramIAttribute instanceof ProxyDatafield) {
while (paramIAttribute instanceof ProxyDatafield) {
paramIAttribute = ((ProxyDatafield) paramIAttribute).getHost();
}
}
}
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
public final void setValues(IAttributeValue paramIAttributeValue, List<CodetableItem> paramList) throws ContainerException { public final void setValues(IAttributeValue paramIAttributeValue, List<CodetableItem> paramList) throws ContainerException {
handleProxyField(paramIAttributeValue);
codetable.put(((IBaseObject) paramIAttributeValue).getUrl(), paramList); codetable.put(((IBaseObject) paramIAttributeValue).getUrl(), paramList);
paramIAttributeValue.setAttribute("CODEVALUES", paramList); paramIAttributeValue.setAttribute("CODEVALUES", paramList);
/* /*
...@@ -436,12 +448,7 @@ public class NoUiPresentation extends AbstractNullPresentation { ...@@ -436,12 +448,7 @@ public class NoUiPresentation extends AbstractNullPresentation {
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
private final void setModified(IAttribute paramIAttribute, boolean paramBoolean) { private final void setModified(IAttribute paramIAttribute, boolean paramBoolean) {
if (paramIAttribute instanceof ProxyDatafield) { handleProxyField(paramIAttribute);
while (paramIAttribute instanceof ProxyDatafield) {
paramIAttribute = ((ProxyDatafield) paramIAttribute).getHost();
}
}
modifyMap.put(((IBaseObject) paramIAttribute).getUrl(), paramIAttribute); modifyMap.put(((IBaseObject) paramIAttribute).getUrl(), paramIAttribute);
} }
......
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