@Override public void actionInTransfer_actionPerformed(ActionEvent e) /* */ throws Exception /* */ { ArrayList idList = getSelectedIdValues(); SelectorItemCollection sic = new SelectorItemCollection(); sic.add("payeeName"); sic.add("ntType.number"); sic.add("payReqNumber"); String payReqNumber = null; int i = 0 ; for (Object object : idList) { PayableBillInfo payableBillInfo = (PayableBillInfo)getBizInterface().getValue(new ObjectUuidPK((String)object),sic); String lastPayReqNumber = (String) payableBillInfo.get("payReqNumber"); if(i > 0){ if((payReqNumber == null && lastPayReqNumber != null ) || (payReqNumber != null && lastPayReqNumber ==null ) ){ MsgBox.showInfo("选择的应付票据ERP付款申请单不一致"); return; } if(payReqNumber != null && lastPayReqNumber != null && !payReqNumber.equals("") && !lastPayReqNumber.equals("")){ MsgBox.showInfo("选择的应付票据ERP付款申请单不一致"); return; } } i++; } super.actionInTransfer_actionPerformed(e); }
标签:lastPayReqNumber,String,listUICTEX,id,sic,&&,EAS,null,payReqNumber From: https://www.cnblogs.com/ketoli/p/17352433.html