Browse Source

Merge pull request #15580 in DESIGN/design from release/11.0 to bugfix/11.0

* commit '7116aedf7ca9f25c1adbf8231e5364eb85d4aa27':
  REPORT-142226 设计器支持越南语和印尼语更新升级
  REPORT-142093 【数据集替换】下拉树中,如果数据集存在依赖层级,字段没有替换
bugfix/11.0
superman 4 weeks ago
parent
commit
2cf282d2d2
  1. 3
      designer-base/src/main/java/com/fr/design/locale/impl/SupportLocaleImpl.java
  2. 4
      designer-realize/src/main/java/com/fr/design/actions/replace/utils/ReplaceUtils.java

3
designer-base/src/main/java/com/fr/design/locale/impl/SupportLocaleImpl.java

@ -1,5 +1,6 @@
package com.fr.design.locale.impl; package com.fr.design.locale.impl;
import com.fr.general.locale.LocaleConstants;
import com.fr.general.locale.SupportLocale; import com.fr.general.locale.SupportLocale;
import java.util.HashSet; import java.util.HashSet;
@ -169,6 +170,8 @@ public enum SupportLocaleImpl implements SupportLocale {
set.add(Locale.KOREA); set.add(Locale.KOREA);
set.add(Locale.CHINA); set.add(Locale.CHINA);
set.add(Locale.TAIWAN); set.add(Locale.TAIWAN);
set.add(LocaleConstants.IN_ID);
set.add(LocaleConstants.VI);
return set; return set;
} }
} }

4
designer-realize/src/main/java/com/fr/design/actions/replace/utils/ReplaceUtils.java

@ -39,6 +39,7 @@ import com.fr.form.ui.TreeEditor;
import com.fr.form.ui.Widget; import com.fr.form.ui.Widget;
import com.fr.form.ui.concept.data.ValueInitializer; import com.fr.form.ui.concept.data.ValueInitializer;
import com.fr.form.ui.tree.LayerConfig; import com.fr.form.ui.tree.LayerConfig;
import com.fr.form.ui.tree.LayerDependence;
import com.fr.general.ComparatorUtils; import com.fr.general.ComparatorUtils;
import com.fr.general.data.Condition; import com.fr.general.data.Condition;
import com.fr.general.data.TableDataColumn; import com.fr.general.data.TableDataColumn;
@ -629,6 +630,9 @@ public class ReplaceUtils {
layerConfig.setTableData(new NameTableData(entity.getNewName())); layerConfig.setTableData(new NameTableData(entity.getNewName()));
layerConfig.setViewColumn(entity.getTargetIndex(layerConfig.getViewColumn())); layerConfig.setViewColumn(entity.getTargetIndex(layerConfig.getViewColumn()));
layerConfig.setModelColumn(entity.getTargetIndex(layerConfig.getModelColumn())); layerConfig.setModelColumn(entity.getTargetIndex(layerConfig.getModelColumn()));
for (LayerDependence dependence : layerConfig.getDependenceList()) {
dependence.setThisColumnIndex(entity.getTargetIndex(dependence.getThisColumnIndex()));
}
} }
} }
ElementCaseHelper.replaceTableDataDictionary(layerConfig.getDictionary(), (NameTableData) layerConfig.getDictionary().getTableData(), entities); ElementCaseHelper.replaceTableDataDictionary(layerConfig.getDictionary(), (NameTableData) layerConfig.getDictionary().getTableData(), entities);

Loading…
Cancel
Save