|
|
@ -811,6 +811,7 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm<F |
|
|
|
* @param index 切换位置 |
|
|
|
* @param index 切换位置 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void tabChanged(int index) { |
|
|
|
public void tabChanged(int index) { |
|
|
|
|
|
|
|
this.index = index; |
|
|
|
if (index == ELEMENTCASE_TAB) { |
|
|
|
if (index == ELEMENTCASE_TAB) { |
|
|
|
formDesign.setReportBlockEditing(true); |
|
|
|
formDesign.setReportBlockEditing(true); |
|
|
|
ecTabAction(); |
|
|
|
ecTabAction(); |
|
|
@ -818,7 +819,6 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm<F |
|
|
|
formDesign.setReportBlockEditing(false); |
|
|
|
formDesign.setReportBlockEditing(false); |
|
|
|
formTabAction(); |
|
|
|
formTabAction(); |
|
|
|
} |
|
|
|
} |
|
|
|
this.index = index; |
|
|
|
|
|
|
|
refreshToolArea(); |
|
|
|
refreshToolArea(); |
|
|
|
this.cardLayout.show(tabCenterPane, CARDNAME[index]); |
|
|
|
this.cardLayout.show(tabCenterPane, CARDNAME[index]); |
|
|
|
if (elementCaseDesign != null && index == ELEMENTCASE_TAB) { |
|
|
|
if (elementCaseDesign != null && index == ELEMENTCASE_TAB) { |
|
|
|