zoukankan      html  css  js  c++  java
  • eas之得到当前选中的行id

    其实有个快捷键:ctrl+shift+C 就可以直接拿到了....


    public String[] getSelected(){
    checkSelected;
    //SelectManager是kdtable中行管理类
    ArrayList bolcks=tblMain.getSelectManager().getBlocks();
    ArrayList idList=new ArrayList();
    Iterator iterator=block.iterator();
    while(iterator.hasNext()){
    KDTSelectBlock block=(KDTSelectBlock)iterator.next();
    int top=block.getTop();
    int bottom=block.getBottom();
    for(int rowIndex=top;rowIndex<=bottom;rowIndex++){
    ICell cell=tbMain.getRow(rowIndex).getCell(getKeyFieldName());//获取指定分录的单元格的对象
    if(idList.contains(cell.getValue())){
    idList.add(cell.getValue());
    }
    }
    }
    String[] listId=null;
    if(idList!=null && idList.size()>0){
    Iterator iterator=idList.iterator();
    listId=new String[idList.Size()];
    int index=0;
    while(iterator.hasNext()){
    listId[index]=(String)iterator.next();
    index++;
    }
    return listId;
    }
    }

  • 相关阅读:
    JSON序列化选项
    JOSN的stringify()和parse()方法
    html5增强元素--续
    html5页面增强元素
    js继承模式
    js常用设计模式
    js跨浏览器事件处理
    前端兴趣浓厚,后端提不起来兴趣
    padding的讲究
    margin的讲究
  • 原文地址:https://www.cnblogs.com/luojiabao/p/11087773.html
Copyright © 2011-2022 走看看