Browse Source

设计器bug, 条件属性那边选普通形态, 无法保存公式, 日期等格式.

代码规范
master
zpc 8 years ago
parent
commit
419bb2347b
  1. 12
      designer/src/com/fr/design/condition/PresentHighlightPane.java

12
designer/src/com/fr/design/condition/PresentHighlightPane.java

@ -97,14 +97,16 @@ public class PresentHighlightPane extends ConditionAttrSingleConditionPane<Highl
} }
public void populate(HighlightAction ha) { public void populate(HighlightAction ha) {
present = ((PresentHighlightAction)ha).getPresent(); int valueIndex = ((PresentHighlightAction)ha).getValueIndex();
Object obj = ((PresentHighlightAction)ha).getValue(); if(0 == valueIndex)
if (!(present instanceof NormalPresent) && null == obj) { {
presentComboBox.setSelectedIndex(1); presentComboBox.setSelectedIndex(1);
} else { }
else {
presentComboBox.setSelectedIndex(0); presentComboBox.setSelectedIndex(0);
this.valueEditor.populate(obj); this.valueEditor.populate(((PresentHighlightAction)ha).getValue());
} }
} }
public HighlightAction update() { public HighlightAction update() {

Loading…
Cancel
Save