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
  • 相关阅读:
    【转】angular通过$http与服务器通信
    【转】Angular运行原理揭秘 Part 1
    【转】 定义模板和服务
    【转】angular Ajax请求
    【转】AngularJS路由和模板
    算法之美--2.2 Array
    算法之美--2.2数组
    人工神经网络--ANN
    AVL树原理及实现 +B树
    学习计划 2016//11//28
  • 原文地址:https://www.cnblogs.com/luojiabao/p/10963548.html
Copyright © 2011-2022 走看看