diff --git a/com.actionsoft.apps.coe.pal.batch/lib/com.actionsoft.apps.coe.pal.batch.jar b/com.actionsoft.apps.coe.pal.batch/lib/com.actionsoft.apps.coe.pal.batch.jar index da91cd3f..80263cbb 100644 Binary files a/com.actionsoft.apps.coe.pal.batch/lib/com.actionsoft.apps.coe.pal.batch.jar and b/com.actionsoft.apps.coe.pal.batch/lib/com.actionsoft.apps.coe.pal.batch.jar differ diff --git a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/Plugins.java b/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/Plugins.java index 313399af..6cbed8e8 100644 --- a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/Plugins.java +++ b/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/Plugins.java @@ -3,7 +3,6 @@ package com.actionsoft.apps.coe.pal.batch; import java.util.ArrayList; import java.util.List; -import com.actionsoft.apps.coe.pal.batch.cache.BatchCache; import com.actionsoft.apps.coe.pal.batch.dc.FileProcessor; import com.actionsoft.apps.listener.PluginListener; import com.actionsoft.apps.resource.AppContext; @@ -25,8 +24,6 @@ public class Plugins implements PluginListener { // 注册DC list.add(new DCPluginProfile("tmp", FileProcessor.class.getName(), "生成下载的Excel模版等临时文件", false)); list.add(new DCPluginProfile("logs", FileProcessor.class.getName(), "批量创建/替换的log日志", false, false)); - // 注册cache - list.add(new CachePluginProfile(BatchCache.class)); return list; } diff --git a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/BatchWeb.java b/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/BatchWeb.java index f3e40a76..6edefa5b 100644 --- a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/BatchWeb.java +++ b/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/BatchWeb.java @@ -1,6 +1,5 @@ package com.actionsoft.apps.coe.pal.batch.web; -import com.actionsoft.apps.coe.pal.batch.cache.BatchCache; import com.actionsoft.apps.coe.pal.batch.constant.BatchConst; import com.actionsoft.apps.coe.pal.batch.util.LogUtil; import com.actionsoft.apps.coe.pal.batch.web.create.process.CreateProcessExcel; @@ -23,6 +22,7 @@ import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryQueryAPIManager; import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; import com.actionsoft.apps.coe.pal.pal.repository.designer.CoeDesignerShapeAPIManager; import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.coe.pal.yili.log.batch.cache.BatchCache; import com.actionsoft.apps.resource.plugin.profile.DCPluginProfile; import com.actionsoft.bpms.commons.htmlframework.HtmlPageTemplate; import com.actionsoft.bpms.commons.mvc.view.ActionWeb; @@ -225,10 +225,7 @@ public class BatchWeb extends ActionWeb { } String define = PALRepositoryQueryAPIManager.getInstance().getProcessDefinition(uc, model.getId()); JSONObject array = JSONObject.parseObject(define); - if (array.containsKey("elements") && array.getJSONObject("elements").size() == 0) { - return false; - } - return true; + return !array.containsKey("elements") || array.getJSONObject("elements").size() != 0; } diff --git a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/create/process/ImportProcessExcel.java b/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/create/process/ImportProcessExcel.java index 7b2e8e35..02ab2e4b 100644 --- a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/create/process/ImportProcessExcel.java +++ b/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/create/process/ImportProcessExcel.java @@ -1,6 +1,5 @@ package com.actionsoft.apps.coe.pal.batch.web.create.process; -import com.actionsoft.apps.coe.pal.batch.cache.BatchCache; import com.actionsoft.apps.coe.pal.batch.constant.BatchConst; import com.actionsoft.apps.coe.pal.batch.util.LogUtil; import com.actionsoft.apps.coe.pal.constant.CoEConstant; @@ -12,6 +11,7 @@ import com.actionsoft.apps.coe.pal.pal.repository.designer.relation.model.Design import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryPropertyModel; import com.actionsoft.apps.coe.pal.pal.repository.util.CoeProcessLevelUtil; +import com.actionsoft.apps.coe.pal.yili.log.batch.cache.BatchCache; import com.actionsoft.bpms.commons.security.logging.model.Level; import com.actionsoft.bpms.org.model.DepartmentModel; import com.actionsoft.bpms.org.model.RoleModel; diff --git a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/create/shape/ImportShapeExcel.java b/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/create/shape/ImportShapeExcel.java index d475b0cc..8a148e51 100644 --- a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/create/shape/ImportShapeExcel.java +++ b/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/create/shape/ImportShapeExcel.java @@ -1,6 +1,5 @@ package com.actionsoft.apps.coe.pal.batch.web.create.shape; -import com.actionsoft.apps.coe.pal.batch.cache.BatchCache; import com.actionsoft.apps.coe.pal.batch.constant.BatchConst; import com.actionsoft.apps.coe.pal.batch.util.LogUtil; import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; @@ -12,6 +11,7 @@ import com.actionsoft.apps.coe.pal.pal.repository.designer.relation.model.Design import com.actionsoft.apps.coe.pal.pal.repository.designer.util.CoeDesignerUtil; import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; import com.actionsoft.apps.coe.pal.pal.repository.util.CoeProcessLevelUtil; +import com.actionsoft.apps.coe.pal.yili.log.batch.cache.BatchCache; import com.actionsoft.apps.resource.plugin.profile.DCPluginProfile; import com.actionsoft.bpms.commons.mvc.view.ResponseObject; import com.actionsoft.bpms.commons.security.logging.model.Level; @@ -636,7 +636,7 @@ public class ImportShapeExcel { count++; if (count % (shapeRowCount+1) == 0) { count = 1; - initY += 130; + initY += 90; // 换行 initX = 0; initX = pageEdge + initX; @@ -649,7 +649,7 @@ public class ImportShapeExcel { } shape.put("dataAttributes", dataAttributes); } - int totalWidth = 240;// 每个节点总宽度,空白+节点+空白 + int totalWidth = 160;// 每个节点总宽度,空白+节点+空白 int totalHeight = 200;// 每个节点总高度,空白+节点+空白 int x = 0; int y = 0; diff --git a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/replace/ReplaceProcessSave.java b/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/replace/ReplaceProcessSave.java index 2934e582..7f7c9a7d 100644 --- a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/replace/ReplaceProcessSave.java +++ b/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/web/replace/ReplaceProcessSave.java @@ -1,6 +1,5 @@ package com.actionsoft.apps.coe.pal.batch.web.replace; -import com.actionsoft.apps.coe.pal.batch.cache.BatchCache; import com.actionsoft.apps.coe.pal.batch.constant.BatchConst; import com.actionsoft.apps.coe.pal.batch.util.LogUtil; import com.actionsoft.apps.coe.pal.constant.CoEConstant; @@ -22,6 +21,7 @@ import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryPropertyModel; import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryShapeAttributeModel; import com.actionsoft.apps.coe.pal.pal.repository.util.CoeProcessLevelUtil; +import com.actionsoft.apps.coe.pal.yili.log.batch.cache.BatchCache; import com.actionsoft.bpms.commons.security.logging.model.Level; import com.actionsoft.bpms.server.UserContext; import com.actionsoft.bpms.util.DBSql; diff --git a/com.actionsoft.apps.coe.pal.datamigration/lib/com.actionsoft.apps.coe.pal.datamigration.jar b/com.actionsoft.apps.coe.pal.datamigration/lib/com.actionsoft.apps.coe.pal.datamigration.jar index c8c21699..1df38a57 100644 Binary files a/com.actionsoft.apps.coe.pal.datamigration/lib/com.actionsoft.apps.coe.pal.datamigration.jar and b/com.actionsoft.apps.coe.pal.datamigration/lib/com.actionsoft.apps.coe.pal.datamigration.jar differ diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/aris/web/ArisXmlImportRun.java b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/aris/web/ArisXmlImportRun.java index cffa7f1b..da3652aa 100644 --- a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/aris/web/ArisXmlImportRun.java +++ b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/aris/web/ArisXmlImportRun.java @@ -6,8 +6,6 @@ import com.actionsoft.apps.coe.pal.datamigration.aris.mapping.ModelMappingAPIMan import com.actionsoft.apps.coe.pal.datamigration.aris.model.*; import com.actionsoft.apps.coe.pal.datamigration.aris.util.ArisXmlUtil; import com.actionsoft.apps.coe.pal.datamigration.constant.Constant; -import com.actionsoft.apps.coe.pal.datamigration.log.cache.LogRealTimeCountCache; -import com.actionsoft.apps.coe.pal.datamigration.log.model.LogRealTimeCountModel; import com.actionsoft.apps.coe.pal.datamigration.util.LogUtil; import com.actionsoft.apps.coe.pal.datamigration.util.ProcessUtil; import com.actionsoft.apps.coe.pal.datamigration.util.ShapeUtil; @@ -29,6 +27,8 @@ import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryPropertyModel; import com.actionsoft.apps.coe.pal.pal.repository.model.impl.PALRepositoryModelImpl; import com.actionsoft.apps.coe.pal.pal.repository.util.CoeProcessLevelUtil; +import com.actionsoft.apps.coe.pal.yili.log.datamigration.log.Cache.LogRealTimeCountCache; +import com.actionsoft.apps.coe.pal.yili.log.datamigration.log.Model.LogRealTimeCountModel; import com.actionsoft.bpms.server.UserContext; import com.actionsoft.bpms.util.UUIDGener; import com.actionsoft.bpms.util.UtilDate; diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/aris/web/ArisXmlImportWeb.java b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/aris/web/ArisXmlImportWeb.java index b5a1ca5a..94171e12 100644 --- a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/aris/web/ArisXmlImportWeb.java +++ b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/aris/web/ArisXmlImportWeb.java @@ -6,9 +6,7 @@ import com.actionsoft.apps.coe.pal.datamigration.aris.model.*; import com.actionsoft.apps.coe.pal.datamigration.aris.util.ArisXmlUtil; import com.actionsoft.apps.coe.pal.datamigration.aris.util.XMLUtil; import com.actionsoft.apps.coe.pal.datamigration.constant.Constant; -import com.actionsoft.apps.coe.pal.datamigration.log.cache.LogRealTimeCountCache; import com.actionsoft.apps.coe.pal.datamigration.log.model.LogModel; -import com.actionsoft.apps.coe.pal.datamigration.log.model.LogRealTimeCountModel; import com.actionsoft.apps.coe.pal.datamigration.util.LogUtil; import com.actionsoft.apps.coe.pal.datamigration.util.ProcessUtil; import com.actionsoft.apps.coe.pal.datamigration.util.ShapeUtil; @@ -18,6 +16,8 @@ import com.actionsoft.apps.coe.pal.pal.repository.PALRepositoryQueryAPIManager; import com.actionsoft.apps.coe.pal.pal.repository.cache.PALRepositoryCache; import com.actionsoft.apps.coe.pal.pal.repository.designer.CoeDesignerShapeAPIManager; import com.actionsoft.apps.coe.pal.pal.repository.model.PALRepositoryModel; +import com.actionsoft.apps.coe.pal.yili.log.datamigration.log.Cache.LogRealTimeCountCache; +import com.actionsoft.apps.coe.pal.yili.log.datamigration.log.Model.LogRealTimeCountModel; import com.actionsoft.apps.resource.plugin.profile.DCPluginProfile; import com.actionsoft.bpms.commons.mvc.view.ActionWeb; import com.actionsoft.bpms.commons.mvc.view.ResponseObject; diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/log/cache/LogRealTimeCountCache.java b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/log/cache/LogRealTimeCountCache.java deleted file mode 100644 index b3ae7306..00000000 --- a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/log/cache/LogRealTimeCountCache.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.actionsoft.apps.coe.pal.datamigration.log.cache; - -import com.actionsoft.apps.coe.pal.datamigration.log.model.LogRealTimeCountModel; -import com.actionsoft.apps.resource.plugin.profile.CachePluginProfile; -import com.actionsoft.bpms.commons.cache.Cache; -import com.actionsoft.bpms.commons.cache.CacheManager; - -/** - * 存储导入数据 - * @author sunlh - * - */ -public class LogRealTimeCountCache extends Cache{ - - public LogRealTimeCountCache(CachePluginProfile configuration) { - super(configuration); - } - - @Override - protected void load() { - } - - public static LogRealTimeCountCache getCache() { - return CacheManager.getCache(LogRealTimeCountCache.class); - } - -} diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/plugin/Plugins.java b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/plugin/Plugins.java index 61ee1fd4..9a1c9547 100755 --- a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/plugin/Plugins.java +++ b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/plugin/Plugins.java @@ -1,7 +1,6 @@ package com.actionsoft.apps.coe.pal.datamigration.plugin; import com.actionsoft.apps.coe.pal.datamigration.aris.constant.ArisConstant; -import com.actionsoft.apps.coe.pal.datamigration.log.cache.LogRealTimeCountCache; import com.actionsoft.apps.coe.pal.datamigration.web.DataMigrationWeb; import com.actionsoft.apps.coe.pal.pal.repository.upfile.CoeFileProcessor; import com.actionsoft.apps.listener.PluginListener; @@ -23,9 +22,6 @@ public class Plugins implements PluginListener { public List register(AppContext context) { List list = new ArrayList(); - // 注册缓存 - list.add(new CachePluginProfile(LogRealTimeCountCache.class)); - list.add(new DCPluginProfile("migration", CoeFileProcessor.class.getName(), "存放数据迁移文件", false, false)); list.add(new DCPluginProfile(ArisConstant.REPOSITORY_NAME, CoeFileProcessor.class.getName(), "存在arisXML数据迁移日志", false, false)); diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/WordLogUtil.java b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/WordLogUtil.java index d79e8d21..ca5e2989 100644 --- a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/WordLogUtil.java +++ b/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/util/WordLogUtil.java @@ -2,7 +2,6 @@ package com.actionsoft.apps.coe.pal.datamigration.util; import com.actionsoft.apps.coe.pal.datamigration.aris.constant.ArisConstant; import com.actionsoft.apps.coe.pal.datamigration.constant.Constant; -import com.actionsoft.apps.coe.pal.datamigration.log.cache.LogRealTimeCountCache; import com.actionsoft.apps.coe.pal.datamigration.log.dao.LogDao; import com.actionsoft.apps.coe.pal.datamigration.log.model.LogModel; import com.actionsoft.apps.resource.plugin.profile.DCPluginProfile; diff --git a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar index 99f8ef39..42009fd1 100644 Binary files a/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar and b/com.actionsoft.apps.coe.pal/lib/com.actionsoft.apps.coe.pal.jar differ diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/plugin/Plugins.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/plugin/Plugins.java index f9e37732..2c2d1b9a 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/plugin/Plugins.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/plugin/Plugins.java @@ -19,6 +19,8 @@ import com.actionsoft.apps.coe.pal.pal.home.aslp.RegisterExtendsApp; import com.actionsoft.apps.coe.pal.pal.method.aslp.RegisterMethodApp; import com.actionsoft.apps.coe.pal.pal.repository.addons.RepositoryDiagramExistMark; import com.actionsoft.apps.coe.pal.pal.repository.designer.relation.manager.DesignerShapeCopyCache; +import com.actionsoft.apps.coe.pal.yili.log.batch.cache.BatchCache; +import com.actionsoft.apps.coe.pal.yili.log.datamigration.log.Cache.LogRealTimeCountCache; import com.actionsoft.apps.listener.PluginListener; import com.actionsoft.apps.resource.AppContext; import com.actionsoft.apps.resource.plugin.profile.*; @@ -75,6 +77,8 @@ public class Plugins implements PluginListener { list.add(new CachePluginProfile(CoeDesignerImageCache.class)); list.add(new CachePluginProfile(DesignerShapeCopyCache.class)); list.add(new ACPluginProfile(new COETeamPortletAccm())); + list.add(new CachePluginProfile(LogRealTimeCountCache.class)); + list.add(new CachePluginProfile(BatchCache.class)); list.add(new AtFormulaPluginProfile("PAL应用", "@getDWCondition(*fieldName,*fieldValue)", GetDWConditionExpression.class.getName(), "获取DW中的自定义查询条件", "返回DW中自定义的查询条件")); diff --git a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/cache/BatchCache.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/yili/log/batch/cache/BatchCache.java similarity index 58% rename from com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/cache/BatchCache.java rename to com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/yili/log/batch/cache/BatchCache.java index bd0f4571..54d62b2e 100644 --- a/com.actionsoft.apps.coe.pal.batch/src/com/actionsoft/apps/coe/pal/batch/cache/BatchCache.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/yili/log/batch/cache/BatchCache.java @@ -1,8 +1,11 @@ -package com.actionsoft.apps.coe.pal.batch.cache; +package com.actionsoft.apps.coe.pal.yili.log.batch.cache; +import com.actionsoft.apps.coe.pal.constant.CoEConstant; import com.actionsoft.apps.resource.plugin.profile.CachePluginProfile; import com.actionsoft.bpms.commons.cache.Cache; import com.actionsoft.bpms.commons.cache.CacheManager; +import com.actionsoft.bpms.util.ConsolePrinter; +import com.actionsoft.sdk.local.SDK; /** * 存储导入数据 @@ -17,6 +20,7 @@ public class BatchCache extends Cache{ @Override protected void load() { + ConsolePrinter.info("[" + SDK.getAppAPI().getAppContext(CoEConstant.APP_ID).getNameI18N() + "]Cache加载CoE批处理日志记录对象 [" + 0 + "个]"); } public static BatchCache getCache() { diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/yili/log/datamigration/log/Cache/LogRealTimeCountCache.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/yili/log/datamigration/log/Cache/LogRealTimeCountCache.java new file mode 100644 index 00000000..f0745924 --- /dev/null +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/yili/log/datamigration/log/Cache/LogRealTimeCountCache.java @@ -0,0 +1,31 @@ +package com.actionsoft.apps.coe.pal.yili.log.datamigration.log.Cache; + +import com.actionsoft.apps.coe.pal.constant.CoEConstant; +import com.actionsoft.apps.coe.pal.yili.log.datamigration.log.Model.LogRealTimeCountModel; +import com.actionsoft.apps.resource.plugin.profile.CachePluginProfile; +import com.actionsoft.bpms.commons.cache.Cache; +import com.actionsoft.bpms.commons.cache.CacheManager; +import com.actionsoft.bpms.util.ConsolePrinter; +import com.actionsoft.sdk.local.SDK; + +/** + * 存储导入数据 + * @author sunlh + * + */ +public class LogRealTimeCountCache extends Cache { + + public LogRealTimeCountCache(CachePluginProfile configuration) { + super(configuration); + } + + @Override + protected void load() { + ConsolePrinter.info("[" + SDK.getAppAPI().getAppContext(CoEConstant.APP_ID).getNameI18N() + "]Cache加载CoE数据迁移日志记录对象 [" + 0 + "个]"); + } + + public static LogRealTimeCountCache getCache() { + return CacheManager.getCache(LogRealTimeCountCache.class); + } + +} \ No newline at end of file diff --git a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/log/model/LogRealTimeCountModel.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/yili/log/datamigration/log/Model/LogRealTimeCountModel.java similarity index 96% rename from com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/log/model/LogRealTimeCountModel.java rename to com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/yili/log/datamigration/log/Model/LogRealTimeCountModel.java index d5bab425..8fcaf07e 100644 --- a/com.actionsoft.apps.coe.pal.datamigration/src/com/actionsoft/apps/coe/pal/datamigration/log/model/LogRealTimeCountModel.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/yili/log/datamigration/log/Model/LogRealTimeCountModel.java @@ -1,8 +1,7 @@ -package com.actionsoft.apps.coe.pal.datamigration.log.model; +package com.actionsoft.apps.coe.pal.yili.log.datamigration.log.Model; import com.actionsoft.bpms.commons.mvc.model.ModelBean; - public class LogRealTimeCountModel extends ModelBean { private int totalCount;// 总共条数 diff --git a/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html b/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html index c75c4f4c..5bed1d1a 100755 --- a/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html +++ b/com.actionsoft.apps.coe.pal/template/page/pal.pl.repository.designer.view.portal.html @@ -641,27 +641,28 @@ $('#content_zoom').append(Math.round(Designer.config.scale * 100) + "%") var winSize = { w: $(window).width() - 332, - h: $(window).height() - $('#toolbarName').height() - $('#tools').height() - 41 - 40 - 70 // 41为文件名行高 40为文件属性行高 70为下方评论行高 + h: $(window).height() - $('#tools').height() - 41 - 40 - 70 // 41为文件名行高 40为最下方功能区域 70为下方评论行高 } var designerSize = { w: $("#canvas_container").width(), h: $("#canvas_container").height() } if (designerSize.w <= designerSize.h && designerSize.h > winSize.h) { - resizeCanvas('height') - } else if(designerSize.w > designerSize.h && designerSize.w > winSize.w) { resizeCanvas('width') + } else if(designerSize.w > designerSize.h && designerSize.w > winSize.w) { + resizeCanvas('height') } function resizeCanvas(type) { if (type == 'height') { - if($("#canvas_container").height() <= winSize.h) { + console.log(Designer.config.scale) + if($("#canvas_container").height() <= winSize.h || Designer.config.scale <= 0.25) { return } else { canvasresizeMin() resizeCanvas('height') } } else { - if($("#canvas_container").width() <= winSize.w) { + if($("#canvas_container").width() <= winSize.w || Designer.config.scale <= 0.25) { return } else { canvasresizeMin() diff --git a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js index 58a29759..d784cf29 100755 --- a/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js +++ b/com.actionsoft.apps.coe.pal/web/com.actionsoft.apps.coe.pal/lib/designer/extend/js/designer.extend.link.view.portal.js @@ -1445,6 +1445,7 @@ function isObjectRelationshipModel(linker, isAlert) { // 文件属性的处理 function initProcessDesc() { + console.log(processDesc) var length = Object.keys(processDesc).length; var t = ''; for(var i = 1; i <= length; i++) { @@ -1457,13 +1458,18 @@ function initProcessDesc() { t += '' + value + ''; t += ''; } else if(obj.type == 'table') { - let tableValue = JSON.parse(value.replace(/"/g,'\"')) - let tableFlag = '请输入' - if (tableValue.table.length > 1) { - tableFlag = '请查看' + if(value == '') { + t += '' + value + ''; + t += ''; + } else { + let tableValue = JSON.parse(value.replace(/"/g,'\"')) + let tableFlag = '请输入' + if (tableValue.table.length > 1) { + tableFlag = '请查看' + } + t += '' + tableFlag + ''; + t += ''; } - t += '' + tableFlag + ''; - t += ''; } else { value = value.replace(/\n/g,'
')