要求是:河北南网 全省排名前十的单位 每个月各个指标的得分情况,只展示得分率不是100% 的 使用的组件是 表格组件 因为数据表中存放的是整个河北南网每月各指标的数据,为方便测试写的SQL: SELECT * FROM XXX WHERE month = '9' ORDER BY ztdbl DESC limit 10 如果加过滤器的话如何实现呢?
下面是我写的未生效的脚本: var tableData2 = getViewData("表2") if(tableData2.get(1,3) / 15 == 1) { var loc = new Locator(["c-3"], COL, DETAIL) 表2.setColWidth(loc, 0) } if(tableData2.get(1,4) / 40 == 1) { var loc = new Locator(["c-4"], COL, DETAIL) 表2.setColWidth(1, 0) } if(tableData2.get(1,5) / 10 == 1) { var loc = new Locator(["c-5"], COL, DETAIL) 表2.setColWidth(loc, 0) } if(tableData2.get(1,6) / 5 == 1) { var loc = new Locator(["c-6"], COL, DETAIL) 表2.setColWidth(loc, 0) } if(tableData2.get(1,7) / 5 == 1) { var loc = new Locator(["c-7"], COL, DETAIL) 表2.setColWidth(loc, 0) } if(tableData2.get(1,8) / 5 == 1) { var loc = new Locator(["c-8"], COL, DETAIL) 表2.setColWidth(loc, 0) } if(tableData2.get(1,9) / 5== 1) { var loc = new Locator(["c-9"], COL, DETAIL) 表2.setColWidth(loc, 0) } if(tableData2.get(1,10) / 15 == 1) { var loc = new Locator(["c-10"], COL, DETAIL) 表2.setColWidth(loc, 0) }
求助!!!
|