Commit c6e528d3 by gechengyang

modify

parent 5e1df948
......@@ -70,7 +70,7 @@ public class NoUiPresentation extends AbstractNullPresentation {
// public final List<IAttribute<?>> requiredList = new
// ArrayList<IAttribute<?>>();
private String message = null; // 弹出的message
private String message_code = null;
private String message_code = ErrorCodes.SUCCESS;
public IPanel popupPanel = null;
public String transactionName = null;
public boolean clearFlag = false;
......@@ -212,8 +212,8 @@ public class NoUiPresentation extends AbstractNullPresentation {
if (paramString == null) {
paramString = getI18nValue("eibs", "error.title");
}
if ((!StringUtils.isEmpty(paramString)) && paramString.equals(ErrorCodes.BUSINESS_ERROR)) {
this.message_code = ErrorCodes.BUSINESS_ERROR;
if ((!StringUtils.isEmpty(paramString)) && paramString.matches("E[0-9]{4}")) {
this.message_code = paramString;
}
/*
* if (MessageType.ERROR.equals(paramMessageType)) {
......
......@@ -171,7 +171,7 @@ public class NoUiPresentationUtil {
public static String retCode(NoUiContext context) {
NoUiPresentation gui = (NoUiPresentation) context.getGui();
return StringUtil.isEmpty(gui.getMessageCode()) ? ErrorCodes.SUCCESS : gui.getMessageCode();
return gui.getMessageCode();
}
public static Map<String, Object> handleEventReturnData(EventType eventType, NoUiContext context, NoUiRequest request, Alias alias) {
......
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