zoukankan      html  css  js  c++  java
  • eas之常用源码整理

    //查看是否有相关权限
    boolean hasAllotPermission=
            PermissionFactory.getRemoteInstance().hasFunctionPermission(new ObjectUuidPK(userId),new ObjectUuidPK(orgId),paramString);
     
    //Context上下文的获取
    Context ctx=Tools.getInstance().getCtx();
    SysContext ctx=SysContext.getContext();
     
    //清除分录删除事件  
    int n=kdtEntrys_detailPanel.getRemoveLineButton().getActionListenes().length();
    if(n>0){
       for (int i = 0; i < n; i++) {
         kdtEntrys_detailPanel.getRemoveLinesButton().removeActionListener(kdtEntrys_detailPanel.getRemoveLinesButton().getActionListeners()[i]);
       }
    }
    kdtEntrys_detailPanel.getRemoveLinesButton().addActionListeners(actionRemoveLine);
     
    //清除分录插入事件
    int n=kdtEntrys_detailPanel.getInsertLineButton().getActionListenes().length();
    if(n>0){
       for (int i = 0; i < n; i++) {
         kdtEntrys_detailPanel.getInsertLineButton().removeActionListener(kdtEntrys_detailPanel.getInsertLineButton().getActionListeners()[i]);
       }
    }
    kdtEntrys_detailPanel.getInsertLineButton().addActionListeners(actionInsertLine);
     
    //清除分录新增事件  
    n = kdtEntrys_detailPanel.getAddNewLineButton().getActionListeners().length;  
    if (n > 0) {  
      for (int i=0; i<n; i++) {  
           kdtEntrys_detailPanel.getAddNewLineButton().removeActionListener(kdtEntrys_detailPanel.getAddNewLineButton().getActionListeners() [i]);  
      }  
    }  
    kdtEntrys_detailPanel.getAddNewLineButton().addActionListener(actionAddLine); 
    承接钉钉定制;网站服务定制; 联系qq:1655119603
  • 相关阅读:
    单步调试及回滚测试
    程序员的自我修养阅读笔记03
    第八周总结
    NABCD项目分析
    程序员的自我修养阅读笔记02
    第七周总结
    程序员的自我修养阅读笔记01
    第六周总结
    结对地铁开发
    第五周总结
  • 原文地址:https://www.cnblogs.com/luojiabao/p/10963548.html
Copyright © 2011-2022 走看看