Example #1
0
  @Override
  public BankBranch getBankBranch() {
    BankBranch a = new BankBranch();
    Bank b = new Bank(bankCode.getText(), bankName.getText());

    a.setId(getId());
    a.setCode(branchCode.getText());
    a.setDomiciliation(domiciliation.getText());
    a.setBicCode(bicCode.getText());
    a.setAddress(addressView.get());

    a.setBank(b);

    return a;
  }
Example #2
0
  @Override
  public void setBankBranch(BankBranch a) {
    branchRef = a;
    if (branchRef != null) {
      branchId = a.getId();
      no.setText(String.valueOf(branchId));
      setBank(a.getBank());
      branchCode.setText(a.getCode());

      domiciliation.setText(a.getDomiciliation());
      bicCode.setText(a.getBicCode()); // XXX efface saisie si bic null

      Address adr = a.getAddress();
      if (adr != null) {
        addressView.set(adr);
      }
    }
  }