Browse Source

REPORT-5659 [9.0三轮回归]单元格格式日期型,无法保存

master
MoMeak 7 years ago
parent
commit
c159dde548
  1. 5
      designer_base/src/com/fr/design/gui/style/FormatPane.java

5
designer_base/src/com/fr/design/gui/style/FormatPane.java

@ -258,12 +258,7 @@ public class FormatPane extends AbstractBasicStylePane implements GlobalNameObs
private void setPatternComboBoxAndList(int formatStyle, String pattern) { private void setPatternComboBoxAndList(int formatStyle, String pattern) {
this.typeComboBox.setSelectedItem(formatStyle); this.typeComboBox.setSelectedItem(formatStyle);
int i = isArrayContainPattern(FormatField.getInstance().getFormatArray(formatStyle), pattern);
if (i == -1) {
this.textField.setSelectedItem(pattern); this.textField.setSelectedItem(pattern);
} else {
this.textField.setSelectedItem(pattern);
}
} }
private boolean isTimeType(String pattern) { private boolean isTimeType(String pattern) {

Loading…
Cancel
Save