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
  • 相关阅读:
    poj 2406 Power Strings【最小循环节】
    hdoj 2087 剪花布条
    hdoj 1054 Strategic Game【匈牙利算法+最小顶点覆盖】
    hdoj 1151 Air Raid
    hdoj 2502 月之数
    hdoj 1862 EXCEL排序
    hdoj 1200 To and Fro
    hdoj 1150 Machine Schedule【匈牙利算法+最小顶点覆盖】
    hdoj 1068 Girls and Boys【匈牙利算法+最大独立集】
    uva1563
  • 原文地址:https://www.cnblogs.com/luojiabao/p/10963548.html
Copyright © 2011-2022 走看看