public void findCheque(int rowKey) { lineIndex = rowKey; PaymentItem item = entity.getItems().get(rowKey); PaymentItemCheque pic = (PaymentItemCheque) item; chequePopupHome.setCheque(pic.getCheque()); chequePopupHome.setCallerObserveString("paymentHome:popupNotice:client.cheque"); duzenlemeMi = Boolean.TRUE; }
public Boolean cekMi(int rowKey) { PaymentItem item = entity.getItems().get(rowKey); if (item instanceof PaymentItemCheque) { PaymentItemCheque paymentItemCheque = (PaymentItemCheque) item; if (paymentItemCheque.getCheque().getClientCheque() != Boolean.TRUE) { firmaCekiMi = Boolean.FALSE; } else { firmaCekiMi = Boolean.TRUE; } return Boolean.TRUE; } return Boolean.FALSE; }
public void cekSatirininDetaylariniAta(PaymentItemCheque itemCheque, Cheque cheque) { itemCheque.setOwner(entity); itemCheque.getAmount().setCurrency(cheque.getMoney().getCurrency()); itemCheque.setCheque(cheque); itemCheque.setAmount(new MoneySet(cheque.getMoney())); itemCheque.getAmount().setValue(cheque.getMoney().getValue()); itemCheque.getAmount().setCurrency(cheque.getMoney().getCurrency()); String date = DateFormat.getDateInstance().format(cheque.getMaturityDate()); String info = "Çek No: " + cheque.getReferenceNo() + " ,Banka: " + cheque.getBankName() + "/" + cheque.getBankBranch() + " ,Hesap No: " + cheque.getAccountNo() + " ,Sahibi: " + cheque.getChequeOwner() + " ,Vade: " + date; if (cheque.getInfo().length() > 0) { info = info + ", " + cheque.getInfo(); } if (info.length() > 255) { info.substring(0, 255); } itemCheque.setInfo(info); }