From 80a4ddda98fb6d095aaea59d1ca255a27db21584 Mon Sep 17 00:00:00 2001 From: zhulh Date: Thu, 31 Dec 2020 19:28:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=83=A8=E5=88=86=E7=81=B5?= =?UTF-8?q?=E6=B4=BB=E6=B5=8B=E7=AE=97=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebContent/Frame/page/js/as_debug.js | 43 +- .../ComponentConfig/ComponentLibraryList.jsp | 341 +-- .../ProductConfig/ProductComponentDef.jsp | 68 +- .../etc/app/component/component-config.xml | 2118 ++++++++--------- .../component/component-parameter-config.xml | 398 ++-- .../app/component/componenttype-config.xml | 123 +- .../app/util/ReloadCacheConfigAction.java | 31 +- 7 files changed, 1619 insertions(+), 1503 deletions(-) diff --git a/WebContent/Frame/page/js/as_debug.js b/WebContent/Frame/page/js/as_debug.js index af5a4d984..abe81a6d4 100644 --- a/WebContent/Frame/page/js/as_debug.js +++ b/WebContent/Frame/page/js/as_debug.js @@ -111,8 +111,8 @@ var AsDebug = { reloadAppCalculation:function(){ if (typeof(serviceId) == "undefined" || serviceId.length == 0) serviceId = "JBO"; var sReturn = RunJavaMethod("com.amarsoft.app.util.ReloadCalculationToolAction","cleanCalculationToolData",""); - if(sReturn=="SUCCESS") alert("CLEAN Calculation Tool SUCCESS"); - else alert("CLEAN Calculation Tool FAIL"); + if(sReturn=="SUCCESS") alert("CLEAN Calculation Tool SUCCESS"); + else alert("CLEAN Calculation Tool FAIL"); }, reloadCacheAll:function(){ var sReturn = RunJavaMethod("com.amarsoft.app.util.ReloadCacheConfigAction","reloadCacheAll",""); @@ -121,8 +121,25 @@ var AsDebug = { }, reloadCache:function(CacheType){ var sReturn = RunJavaMethod("com.amarsoft.app.util.ReloadCacheConfigAction","reloadCache","ConfigName="+CacheType); - if(sReturn=="SUCCESS") alert(getMessageText("AWES0019")); // 刷新参数缓存成功! - else alert(getMessageText("AWES0020")); // 刷新参数缓存失败! + if(sReturn=="SUCCESS") alert( "重载模板缓存成功"); // 刷新参数缓存成功! + else alert( "重载模板缓存失败" ); // 刷新参数缓存失败! + }, + /** + * 重置自定义类型的缓存 + * @param CacheType 缓存数组( 'ObjectWindow缓存', '代码表' ) + * @another zhulh + */ + reloadCacheCustom: function( CacheType ) { + var msgNo = 'AWES0033'; + var errorMsgNo = 'AWES0034'; + switch ( CacheType ) { + case '产品参数,核算交易定义': + msgNo = '重载产品缓存成功'; + errorMsgNo = '重载产品缓存失败'; + } + var sReturn = RunJavaMethod( "com.amarsoft.app.util.ReloadCacheConfigAction", "reloadCacheCustom","ConfigName=" + CacheType.replace( /,/ig, '@_@' ) ); + if ( sReturn === "SUCCESS" ) alert( msgNo ); // 刷新参数缓存成功! + else alert( errorMsgNo ); // 刷新参数缓存失败! }, reloadFixSkins:function(){ var sReturn = AsControl.RunJsp("/AppConfig/ControlCenter/ReloadSkin.jsp","ReloadType=FixSkins"); @@ -169,13 +186,13 @@ var AsDebug = { alert("No DWInfo"); } }, - displayURL:function displayURL() { + displayURL:function displayURL() { prompt("URLName",this.getURL()); }, - displayPageName:function() { + displayPageName:function() { prompt("PageName",this.getPage()); }, - displayURLnPara:function() { + displayURLnPara:function() { prompt("URL",document.URL); }, showOnlineUserList:function(){ @@ -195,7 +212,7 @@ var AsDebug = { }; /** - * + * * @param event * @returns {Boolean} true 触发了某些事件 false 没触发事件 */ @@ -213,7 +230,13 @@ function keydownAction(event){ }else if(event.altKey && event.keyCode == 52){ //alt+4 AsDebug.reloadAREService(); return true; - }else if(event.altKey && event.keyCode == 67){ //alt+c + }else if(event.altKey && event.keyCode == 53){ //alt+5 清空模板缓存 + AsDebug.reloadCache('ObjectWindow缓存'); + return true; + } else if ( event.altKey && event.keyCode === 56 ) { //alt+8 清空产品缓存 by zhulh + AsDebug.reloadCacheCustom('产品参数,核算交易定义' ); + return true; + } else if(event.altKey && event.keyCode == 67){ //alt+c AsDebug.reloadAppCalculation(); return true; }else if(event.keyCode == "27"){ //esc @@ -228,4 +251,4 @@ function keydownAction(event){ return target.val() && target.is(":input:enabled") && !target.is(":button,:selected,:checked,[readonly]"); } } -$(document).keydown(keydownAction); \ No newline at end of file +$(document).keydown(keydownAction); diff --git a/WebContent/ProductManage/ComponentConfig/ComponentLibraryList.jsp b/WebContent/ProductManage/ComponentConfig/ComponentLibraryList.jsp index 4fbd3b9c3..3a89da41c 100644 --- a/WebContent/ProductManage/ComponentConfig/ComponentLibraryList.jsp +++ b/WebContent/ProductManage/ComponentConfig/ComponentLibraryList.jsp @@ -1,156 +1,203 @@ -<%@ page contentType="text/html; charset=GBK"%> -<%@page import="com.amarsoft.app.base.util.ObjectWindowHelper"%> +<%@ page contentType="text/html; charset=GBK" %> +<%@page import="com.amarsoft.app.base.util.ObjectWindowHelper" %> <%@page import="com.amarsoft.app.base.util.XMLHelper" %> -<%@page import="com.amarsoft.app.base.businessobject.*"%> -<%@include file="/Frame/resources/include/include_begin_list.jspf"%> +<%@page import="com.amarsoft.app.base.businessobject.*" %> +<%@include file="/Frame/resources/include/include_begin_list.jspf" %> <% - String xmlFile = CurPage.getParameter("XMLFile"); - String xmlTags = CurPage.getParameter("XMLTags"); - String keys = CurPage.getParameter("Keys"); - String componentRightType = CurPage.getParameter("ComponentRightType"); - - ASObjectWindow dwTemp = ObjectWindowHelper.createObjectWindow_List("PRD_ComponentList", BusinessObject.createBusinessObject(), CurPage, request); - ASDataObject doTemp=dwTemp.getDataObject(); - doTemp.setBusinessProcess("com.amarsoft.app.als.businessobject.web.XMLBusinessObjectProcessor"); - dwTemp.Style="1"; //设置为Grid风格 - dwTemp.ReadOnly="0"; - dwTemp.setPageSize(20); - dwTemp.genHTMLObjectWindow(""); - - String sButtons[][] = { - {(StringX.isEmpty(componentRightType) ? "true" : "false" ),"All","Button","新增","新增","newComponent()","","","","",""}, - {"true","","Button","编辑","编辑","editComponent()","","","","",""}, - {(xmlTags.indexOf("ChildrenComponent") > 0 ? "false" : "true"),"","Button","保存","保存","as_save(0)","","","","",""}, - {(xmlTags.indexOf("ChildrenComponent") > 0 ? "false" : "true"),"","Button","复制","复制","copyComponent()","","","","",""}, - {(StringX.isEmpty(componentRightType) ? "true" : "false" ),"All","Button","删除","删除","deleteComponent()","","","","",""}, - {(xmlTags.indexOf("ChildrenComponent") > 0 ? "false" : "true"),"","Button","组件同步","组件同步","synchronize()","","","","",""}, - }; + String xmlFile = CurPage.getParameter("XMLFile"); + String xmlTags = CurPage.getParameter("XMLTags"); + String keys = CurPage.getParameter("Keys"); + String componentRightType = CurPage.getParameter("ComponentRightType"); + + ASObjectWindow dwTemp = ObjectWindowHelper.createObjectWindow_List("PRD_ComponentList", BusinessObject.createBusinessObject(), CurPage, request); + ASDataObject doTemp = dwTemp.getDataObject(); + doTemp.setBusinessProcess("com.amarsoft.app.als.businessobject.web.XMLBusinessObjectProcessor"); + dwTemp.Style = "1"; //设置为Grid风格 + dwTemp.ReadOnly = "0"; + dwTemp.setPageSize(20); + dwTemp.genHTMLObjectWindow(""); + + String sButtons[][] = { + {(StringX.isEmpty(componentRightType) ? "true" : "false"), "All", "Button", "新增", "新增", "newComponent()", "", "", "", "", ""}, + {"true", "", "Button", "编辑", "编辑", "editComponent()", "", "", "", "", ""}, + {(xmlTags.indexOf("ChildrenComponent") > 0 ? "false" : "true"), "", "Button", "保存", "保存", "as_save(0)", "", "", "", "", ""}, + {(xmlTags.indexOf("ChildrenComponent") > 0 ? "false" : "true"), "", "Button", "复制", "复制", "copyComponent()", "", "", "", "", ""}, + {(StringX.isEmpty(componentRightType) ? "true" : "false"), "All", "Button", "删除", "删除", "deleteComponent()", "", "", "", "", ""}, + {(xmlTags.indexOf("ChildrenComponent") > 0 ? "false" : "true"), "", "Button", "组件同步", "组件同步", "synchronize()", "", "", "", "", ""}, + }; %> -