//
全选
public
void
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
);
}
}
//
全消
public
void
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
);
}
}