nc65 按钮控制用到的API

重写isActionEnable方法

@Override
	protected boolean isActionEnable() {
		if (editor.getBillCardPanel().getBillModel().getRowCount() <= 0) {
			return false;
		}
		ExecuteVO executeVO = (ExecuteVO) ((BatchBillTable) this.getEditor())
				.getModel().getSelectedData();
		if (null == executeVO
				|| (null != executeVO.getComfirm_status() && ComfirmSatusEnum.complete
						.toIntValue() == executeVO.getComfirm_status())) {
			return false;
		}
		return true;
	}

猜你喜欢

转载自blog.csdn.net/u014714841/article/details/80406522