var value = _g().getCellValue(0,2,0); // 获取单元格的值 if (value == null || value.length == 0) { FR.Msg.alert("提示", "单元格不能为空,请选择一个值!"); return false; } var $span = $(".fr-checkbox-checkon"); var darray = []; var $tds = $("td").has($span); for (var i = 0, len = $tds.length; i < len; i ++) { var id = $($tds[i]).attr("id"); var idn = id.replace("A","B"); var vv=document.getElementById(idn).innerHTML; darray.push(vv); } FR.doURLPDFPrint("${sevletURL}ReportServer?reportlet=/PrintCol.cpt&ID="+darray); |