//全选
publicvoid onBoSelectAll() throws Exception{
BillModel headModel = ui.getBillListPanel().getHeadBillModel();
for(int i = 0; i < ui.getBillListPanel().getHeadTable().getRowCount(); i++){
if(headModel.getRowState(i)==BillModel.SELECTED){
headModel.setRowState(i, BillModel.UNSTATE);
}
headModel.setRowState(i, BillModel.SELECTED);
}
}
//全消
publicvoid onBoCancelAll() throws Exception{
BillModel headModel = ui.getBillListPanel().getHeadBillModel();
for(int i = 0; i < ui.getBillListPanel().getHeadTable().getRowCount(); i++){
if(headModel.getRowState(i)==BillModel.UNSTATE){
headModel.setRowState(i, BillModel.SELECTED);
}
headModel.setRowState(i, BillModel.UNSTATE);
}
}