| | |
| | | private Map<String, String> attrNameAndValMap = new LinkedHashMap();//存储属性名称(包含内部名称和外部名称)和对应的值 |
| | | private String tokenUrl= ConfigUtils.getConfigValue("410.code.token.url","http://127.0.0.1:37000/ubcs-auth/oauth/token"); |
| | | private String[] fields; |
| | | private String[] Values; |
| | | private String[] values; |
| | | /** |
| | | * 存储分类的Map,key:分类名称,value:分类值 |
| | | */ |
| | |
| | | public CodeApplyFor410Dialog(JDialog dialog, String clsfName, String deptName) { |
| | | this(dialog, "pdmUser", clsfName, deptName,new String[]{}); |
| | | } |
| | | public CodeApplyFor410Dialog(JDialog dialog, String clsfName, String deptName,String[] fields,String[] values) { |
| | | this(dialog, "pdmUser", clsfName, deptName,new String[]{},fields,values); |
| | | } |
| | | public CodeApplyFor410Dialog(Frame frame, String clsfName, String deptName,String[] fields,String[] values){ |
| | | this.setModal(true); |
| | | parentComponet = frame; |
| | |
| | | this.clsfName = clsfName; |
| | | this.deptName = deptName; |
| | | this.fields=fields; |
| | | this.Values=values; |
| | | this.values=values; |
| | | //this.libName = libName; |
| | | init(); |
| | | |
| | |
| | | this.deptName = deptName; |
| | | // this.libName = libName; |
| | | |
| | | init(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | public CodeApplyFor410Dialog(JDialog dialog, String userName, String clsfName, String deptName, String[] libName,String[] fields,String[] values) { |
| | | super(dialog, true); |
| | | VCISwingUtil.setClientMainFrame(new Frame()); |
| | | try { |
| | | this.setModal(true); |
| | | parentComponet = dialog; |
| | | this.userName = userName; |
| | | this.clsfName = clsfName; |
| | | this.deptName = deptName; |
| | | this.fields = fields; |
| | | this.values = values; |
| | | init(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | private void bulidPal() throws Exception { |
| | | this.setDefaultCloseOperation(DISPOSE_ON_CLOSE); |
| | | this.setTitle("代码申请"); |
| | | mainPal = new CodeApplyPanelFor410(this,tokenUserObject, true, clsfName, deptName,libName); |
| | | Map<String , String> displayValues = new HashMap<>(); |
| | | if(fields != null && fields.length > 0 && values !=null && values.length > 0){ |
| | | for (int i = 0; i < fields.length; i++) { |
| | | displayValues.put(fields[i] , values[i]); |
| | | } |
| | | } |
| | | |
| | | mainPal = new CodeApplyPanelFor410(this,tokenUserObject, true, clsfName, deptName,libName,displayValues); |
| | | |
| | | VCIJPanel btnPal = new VCIJPanel(); |
| | | btnPal.add(okBtn); |