Browse Source

REPORT-4005 [9.0一轮回归] 设置事件编辑提交入库失败

master
plough 7 years ago
parent
commit
72d14d396b
  1. 3
      designer/src/com/fr/design/mainframe/ElementCasePaneDelegate.java
  2. 9
      designer/src/com/fr/design/write/submit/SmartInsertDBManipulationPane.java
  3. 3
      designer/src/com/fr/poly/creator/ECBlockPane.java

3
designer/src/com/fr/design/mainframe/ElementCasePaneDelegate.java

@ -48,6 +48,9 @@ public class ElementCasePaneDelegate extends ElementCasePane<WorkSheet> {
@Override
public void selectionChanged(SelectionEvent e) {
if (!isEditable()) {
return;
}
//在编辑权限,所以要更新权限编辑面板
if (BaseUtils.isAuthorityEditing()) {
AuthorityPropertyPane authorityPropertyPane = new AuthorityPropertyPane(ElementCasePaneDelegate.this);

9
designer/src/com/fr/design/write/submit/SmartInsertDBManipulationPane.java

@ -34,10 +34,7 @@ import com.fr.design.gui.ispinner.UIBasicSpinner;
import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.layout.TableLayout;
import com.fr.design.layout.TableLayoutHelper;
import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.ElementCasePane;
import com.fr.design.mainframe.JTemplate;
import com.fr.design.mainframe.JWorkBook;
import com.fr.design.mainframe.*;
import com.fr.design.selection.SelectionEvent;
import com.fr.design.selection.SelectionListener;
import com.fr.general.Inter;
@ -196,11 +193,11 @@ public class SmartInsertDBManipulationPane extends DBManipulationPane {
/*
* 当前的ReportPane不可编辑,不可切换Sheet,加GridSelectionChangeListener
*/
ePane.setSelection(NO_SELECTION);
ePane.setEditable(false);
ePane.setSelection(NO_SELECTION);
ePane.getGrid().setNotShowingTableSelectPane(false);
BasicDialog dlg = bPane.showWindow(SwingUtilities.getWindowAncestor(SmartInsertDBManipulationPane.this));
BasicDialog dlg = bPane.showWindow(DesignerContext.getDesignerFrame());
dlg.setModal(false);
dlg.setVisible(true);

3
designer/src/com/fr/poly/creator/ECBlockPane.java

@ -52,6 +52,9 @@ public class ECBlockPane extends PolyElementCasePane {
@Override
public void selectionChanged(SelectionEvent e) {
if (!isEditable()) {
return;
}
if (BaseUtils.isAuthorityEditing()) {
if (designer.getSelection().getEditingElementCasePane() == null) {
EastRegionContainerPane.getInstance().switchMode(EastRegionContainerPane.PropertyMode.AUTHORITY_EDITION_DISABLED);

Loading…
Cancel
Save