| | |
| | | |
| | | public class RMDataReferTempDialog extends VCIJDialog { |
| | | private CodeApplyFor410MainPanel owner; |
| | | private CodeClassifyTemplateAttrVO codeClassifyTemplateAttr; |
| | | //private CodeClassifyTemplateAttrVO codeClassifyTemplateAttr; |
| | | private String referConfig=""; |
| | | private RMDataReferTempDialogActionListener actionListener = new RMDataReferTempDialogActionListener(this); |
| | | private VCIJButton btnOk = VCISwingUtil.createVCIJButton("ok", "确定", "确定", "accept.png", actionListener); |
| | | private VCIJButton btnCancel = VCISwingUtil.createVCIJButton("cancel", "取消", "取消", "cancel.png", actionListener); |
| | |
| | | private VCIBaseTree leftTree = null; |
| | | private VCIBaseTreeModel leftTreeModel = null; |
| | | private KeyValue keyValue; |
| | | public RMDataReferTempDialog(CodeApplyFor410MainPanel owner, CodeClassifyTemplateAttrVO codeClassifyTemplateAttr) { |
| | | public RMDataReferTempDialog(CodeApplyFor410MainPanel owner, String referConfig) { |
| | | //super(true); |
| | | this.owner = owner; |
| | | this.codeClassifyTemplateAttr = codeClassifyTemplateAttr; |
| | | this.referConfig = referConfig; |
| | | init(); |
| | | setTitle("引用模板-属性选择"); |
| | | //initDialogSize(rmDataAddDialog.getWidth(), rmDataAddDialog.getHeight()); |
| | |
| | | private VCIJPanel createRMDataMainPanel(){ |
| | | VCIJPanel rmDataTablePanel = new VCIJPanel(new BorderLayout()); |
| | | uiFormRefer=new UIFormRefer(); |
| | | if(StringUtils.isNotBlank(codeClassifyTemplateAttr.getReferConfig())){ |
| | | uiFormRefer = JSONObject.toJavaObject(JSONObject.parseObject(codeClassifyTemplateAttr.getReferConfig().toString()), UIFormRefer.class); |
| | | if(StringUtils.isNotBlank(referConfig)){ |
| | | uiFormRefer = JSONObject.toJavaObject(JSONObject.parseObject(referConfig.toString()), UIFormRefer.class); |
| | | } |
| | | if(uiFormRefer !=null&&(uiFormRefer.getType().equals(CodeReferConfigTypeEnum.TREE.getValue()) |
| | | ||uiFormRefer.getType().equals(CodeReferConfigTypeEnum.ORGDEPARTMENTREFER.getValue()))){ |