GUI根据单据id打开对应单据web页面代码
String billId = getSelectedKeyValue(); if (!(StringUtils.isEmpty(billId))) { boolean webSupportOnly = MessageUtil.isWebSupportOnly(billId); if (webSupportOnly) { String serverURL = System.getProperty("UPDATE_SERVER_ADDR"); if (StringUtils.isEmpty(serverURL)) serverURL = "http://localhost:6888"; else { serverURL = "http://" + serverURL; } IWebViewMessageFacade webViewFacade = WebViewMessageFacadeFactory.getRemoteInstance(); String toUrl = webViewFacade.getUrlByBillID(billId); if (!(StringUtils.isEmpty(toUrl))) { if (toUrl.indexOf("?") > 0) toUrl = toUrl + "&billId=" + URLEncoder.encode(billId, "utf-8"); else { toUrl = toUrl + "?billId=" + URLEncoder.encode(billId, "utf-8"); } if (toUrl.indexOf("pureWFBillUrl") < 0) { toUrl = "/easweb/" + toUrl; } toUrl = URLEncoder.encode(toUrl, "utf-8"); String url = serverURL + "/portal/" + SSOHandleFacadeFactory.getRemoteInstance().getGUItoPortalUrl(toUrl, true, SysContext.getSysContext().getLocale().toString(), SysContext.getSysContext().getDCNumber()); url = replaceAllStr(url, "&", "^&"); NewWinMainUI.gotoSite(url); } else { MsgBox.showInfo(this, EASResource.getString("com.kingdee.eas.base.message.client.MessageCenter", "can.not.surrport.open")); return; } } } private static String replaceAllStr(String strSource, String strFrom, String strTo) { if (strFrom == null || strFrom.equals("")) return strSource; String strDest = ""; int intFromLen = strFrom.length(); int intPos = 0; while ((intPos = strSource.indexOf(strFrom)) != -1) { strDest = (new StringBuilder()).append(strDest).append(strSource.substring(0, intPos)).toString(); strDest = (new StringBuilder()).append(strDest).append(strTo).toString(); strSource = strSource.substring(intPos + intFromLen); } strDest = (new StringBuilder()).append(strDest).append(strSource).toString(); return strDest; }
GUI根据单据id打开对应单据web页面代码
String billId = getSelectedKeyValue();if (!(StringUtils.isEmpty(billId))) { boolean webSupportOnly = MessageUtil.isWebSupportOn...
点击下载文档
本文2024-09-16 22:02:25发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-45546.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
- 鼎捷EAI整合規範文件V3.1.07 (集團).pdf
- 鼎捷OpenAPI應用場景說明_基礎資料.pdf
- 鼎捷OpenAPI應用場景說明_財務管理.pdf
- 鼎捷T100 API設計器使用手冊T100 APIDesigner(V1.0).docx
- 鼎新e-GoB2雲端ERP B2 線上課程E6-2應付票據整批郵寄 領取.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程A4使用者建立權限設定.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程C3會計開帳與會計傳票.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程E6-1應付票據.pdf
- 鼎新e-GoB2雲端ERP B2 線上課程A5-1進銷存參數設定(初階篇).pdf
- 鼎新e-GoB2雲端ERP B2 線上課程D2帳款開帳與票據開帳.pdf
热门文章