单据的叙事簿界面选中多条数据批量更改状态,目前我只能做到获取鼠标最后点击的那条数据的ID,如何获取选中的集合,批量更改数据状态?
with(easNames){
var detailTable = pluginCtx.getKDTable("tblMain");
var selectManager = detailTable.getSelectManager();
var selectBlock =selectManager.get();
if (selectBlock != null) {
var rowIndex = selectBlock.getTop();
var iRow = detailTable.getRow(rowIndex);
var metaPK = com.kingdee.bos.metadata.MetaDataPK.create("com.kingdee.eas.auto4s.rsm.rs.app.RepairSettlement");
var methodSignature = "Boolean updateSettleDate(BOSUuid arg1)";
if(iRow!=null)
{
var selectedid = iRow.getCell("id").getValue();
var billid = [BOSUuid.read(selectedid)];
var result = com.kingdee.bos.framework.BOClientTool.callCmethod(metaPK,methodSignature,billid);
}
}
}