控制已审批单据不能删除/修改原创
1人赞赏了该文章
311次浏览
未经作者许可,禁止转载编辑于2022年10月16日 21:48:11
kd.bos.fdc.fundplancom.kingdee.util.StringUtilskd.bos.entity.datamodel.IListModelkd.bos.entity.datamodel.ListSelectedRowkd.bos.entity.datamodel.ListSelectedRowCollectionkd.bos.form.control.events.BeforeClickEventkd.bos.form.control.events.BeforeItemClickEventkd.bos.list.IListViewkd.bos.list.plugin.AbstractListPluginFundplanListFormPlugin AbstractListPlugin { String KEY_EDIT= String KEY_DEL= @Override beforeClick(BeforeClickEvent evt) { .beforeClick(evt)} @Override beforeItemClick(BeforeItemClickEvent evt) { (StringUtils.equals(KEY_EDITevt.getItemKey())){ IListModel listModel = ((IListView).getView()).getListModel()IListView listV = ((IListView).getView())ListSelectedRowCollection rows = listV.getSelectedRows()(ListSelectedRow row : rows) { String state = row.getBillStatus()(state.equals()){ .getView().showMessage()evt.setCancel()} } } (StringUtils.equals(KEY_DELevt.getItemKey())){ IListModel listModel = ((IListView).getView()).getListModel()IListView listV = ((IListView).getView())ListSelectedRowCollection rows = listV.getSelectedRows()(ListSelectedRow row : rows) { String state = row.getBillStatus()(state.equals()){ .getView().showMessage()evt.setCancel()} } } } }
推荐阅读