| | |
| | | |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.vci.base.ui.exception.VCIException; |
| | | import com.vci.base.ui.swing.VCIOptionPane; |
| | | import com.vci.base.ui.swing.components.VCIJPanel; |
| | | import com.vci.base.ui.tree.VCIBaseTree; |
| | |
| | | import com.vci.ubcs.codeapply.object.CodeClassify; |
| | | import com.vci.ubcs.codeapply.object.R; |
| | | import com.vci.ubcs.codeapply.utils.ConfigUtils; |
| | | import com.vci.ubcs.codeapply.utils.HttpUtil; |
| | | import com.vci.ubcs.system.user.entity.User; |
| | | import javax.swing.event.TreeExpansionEvent; |
| | | import javax.swing.event.TreeExpansionListener; |
| | |
| | | private TransmitTreeObject transmitTreeObject = new TransmitTreeObject(); |
| | | private User userObj = null; |
| | | private VCIBaseTreeNode selNode = null; |
| | | private String url=ConfigUtils.getConfigValue("410.code.url","http://127.0.0.1:36014/codeApplySwingController"); |
| | | /** |
| | | * 存储分类的Map,key:分类名称,value:分类值 |
| | | */ |
| | |
| | | */ |
| | | private CodeClassify[] getRMTypeByDescAndLib() { |
| | | CodeClassify[] objs = new CodeClassify[]{}; |
| | | String url= ConfigUtils.getConfigValue("410.PDM.leftdescLibNode.url","http://127.0.0.1:36014/codeApplySwingController/getRMTypeByDescAndLib"); |
| | | // String url= ConfigUtils.getConfigValue("410.PDM.leftdescLibNode.url","http://127.0.0.1:36014/codeApplySwingController/getRMTypeByDescAndLib"); |
| | | /**系统只加载代码项 如果libName不为空,直接获取对应的代码项**/ |
| | | Map<String,String> condtionMap=new HashMap<>(); |
| | | condtionMap.put("desc", this.clsfName); |
| | | condtionMap.put("codeLibName",rootNode.toString()); |
| | | |
| | | R r=HttpUtil.sendGet(url,condtionMap,new HashMap<>()); |
| | | R r= HttpUtil.sendGet(url+"/getRMTypeByDescAndLib",condtionMap,new HashMap<>()); |
| | | List<CodeClassify> codeClassifyList = new ArrayList<>(); |
| | | if(r.isSuccess()){ |
| | | Object object= r.getData(); |
| | |
| | | * @return |
| | | */ |
| | | private CodeClassify[] getChildRMTypeObjects(String parentId){ |
| | | String url= ConfigUtils.getConfigValue("410.PDM.leftClsfNode.url","http://127.0.0.1:36014/codeApplySwingController/selectCodeClassifyVOByParentId"); |
| | | // String url= ConfigUtils.getConfigValue("410.PDM.leftClsfNode.url","http://127.0.0.1:36014/codeApplySwingController/selectCodeClassifyVOByParentId"); |
| | | /**系统只加载代码项 如果libName不为空,直接获取对应的代码项**/ |
| | | Map<String,String> condtionMap=new HashMap<>(); |
| | | condtionMap.put("parentId", parentId ); |
| | | R r=HttpUtil.sendGet(url,condtionMap,new HashMap<>()); |
| | | R r=HttpUtil.sendGet(url+"/selectCodeClassifyVOByParentId",condtionMap,new HashMap<>()); |
| | | List<CodeClassify> codeClassifyList = new ArrayList<>(); |
| | | if(r.isSuccess()){ |
| | | Object object= r.getData(); |