Grid多選處理: 1.按鈕時(shí)處理 if(Hon_SMTTable_ds.mark())//如果多選 { m_table = Hon_SMTTable_ds.getFirst(1); while(m_table)//循環(huán)多選的記錄 { //code m_table = Hon_SMTTable_ds.getNext();//取得下一條數(shù)據(jù) } } 2.菜單時(shí)處理 FormDataSource fds; Hon_SMTTable m_table; ; fds = element.args().record().datasource(); if(fds.mark()) { m_table = fds.getFirst(1); while(m_table) { //code m_table = Hon_SMTTable_ds.getNext(); } } |
|