|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.fr.design.mainframe; |
|
|
|
package com.fr.design.mainframe; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.FRContext; |
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
@ -20,6 +21,7 @@ import javax.swing.tree.TreePath; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.event.ItemEvent; |
|
|
|
import java.awt.event.ItemEvent; |
|
|
|
import java.awt.event.ItemListener; |
|
|
|
import java.awt.event.ItemListener; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -96,23 +98,22 @@ public class AuthorityEditToolBarPane extends AuthorityPropertyPane { |
|
|
|
null || selectedPathArray == null) { |
|
|
|
null || selectedPathArray == null) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
for (int t = 0; t < selectedPathArray.length; t++) { |
|
|
|
ToolBarButton selectedButton = null; |
|
|
|
for (int i = 0; i < buttonlists.size(); i++) { |
|
|
|
//是否可见的checkbox
|
|
|
|
if (buttonlists.get(i).isSelected()) { |
|
|
|
UICheckBox checkbox = (UICheckBox) e.getSource(); |
|
|
|
buttonlists.get(i).changeAuthorityState(selectedPathArray[t], buttonVisible.isSelected()); |
|
|
|
for (int i = 0; i < buttonlists.size(); i++) { |
|
|
|
authorityToolBarPane.repaint(); |
|
|
|
if (buttonlists.get(i).isSelected()) { |
|
|
|
} |
|
|
|
selectedButton = buttonlists.get(i); |
|
|
|
} |
|
|
|
} |
|
|
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().fireTargetModified(); |
|
|
|
} |
|
|
|
RolesAlreadyEditedPane.getInstance().refreshDockingView(); |
|
|
|
if (selectedButton != null) { |
|
|
|
UICheckBox checkbox = (UICheckBox) e.getSource(); |
|
|
|
for (int t = 0; t < selectedPathArray.length; t++) { |
|
|
|
List<ToolBarButton> btns = AuthorityEditPane.this.buttonlists; |
|
|
|
selectedButton.changeAuthorityState(selectedPathArray[t], buttonVisible.isSelected()); |
|
|
|
for (int j = 0; j < btns.size(); j++) { |
|
|
|
authorityToolBarPane.repaint(); |
|
|
|
if (btns.get(j).isSelected()) { |
|
|
|
authorityToolBarPane.setAuthorityWebAttr(selectedButton.getWidget(), checkbox.isSelected(), selectedPathArray[t]); |
|
|
|
//由引擎实现保存进模板报表
|
|
|
|
|
|
|
|
authorityToolBarPane.setAuthorityWebAttr(btns.get(j).getWidget(), checkbox.isSelected(), selectedPathArray[t]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().fireTargetModified();//模版更新
|
|
|
|
|
|
|
|
RolesAlreadyEditedPane.getInstance().refreshDockingView();//已配置角色视图刷新
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|