Esempio n. 1
0
  protected void setAttribute() {

    AttributeCode attributeCode = (AttributeCode) iterator.next();

    if (attributeCode.equals(currentAttributeCode)) {
      pageContext.setAttribute("selected", "selected");
    } else {
      pageContext.setAttribute("selected", "");
    }
    pageContext.setAttribute("attributeId", attributeCode.getAttributeId());
    pageContext.setAttribute("attributeCode", attributeCode.getAttributeCode());
    pageContext.setAttribute("attributeName", attributeCode.getAttributeName());
    pageContext.setAttribute("description", "" + attributeCode.getDescription());
    if (attributeCode instanceof BankBranch) {
      pageContext.setAttribute(
          "orderBankId", ((BankBranch) attributeCode).getBank().getAttributeId());
    }
    //        if(attributeCode instanceof Bank && this.selectedType == null) {
    //            pageContext.setAttribute("bankID",
    // ((com.laconic.fm.bank.component.Bank)attributeCode).getBankID());
    //        }else if(attributeCode instanceof AccountType && this.selectedType == null) {
    //            pageContext.setAttribute("accountTypeID",
    // ((AccountType)attributeCode).getAccountTypeID());
    //        }else if(attributeCode instanceof VoucherType && this.selectedType == null) {
    //            pageContext.setAttribute("voucherTypeID",
    // ((VoucherType)attributeCode).getVoucherTypeID());
    //        }else if(attributeCode instanceof NoteType && this.selectedType == null) {
    //            pageContext.setAttribute("noteTypeID", ((NoteType)attributeCode).getNoteTypeID());
    //        }else if(attributeCode instanceof BankBranch) {
    //            pageContext.setAttribute("orderBankCode",
    // ((BankBranch)attributeCode).getBank().getAttributeCode());
    //            pageContext.setAttribute("orderBankName",
    // ((BankBranch)attributeCode).getBank().getAttributeName());
    //        }
  }
Esempio n. 2
0
  protected void setAttribute() {

    AttributeCode attributeCode = (AttributeCode) iterator.next();

    if (attributeCode.equals(currentAttributeCode)) {
      pageContext.setAttribute("selected", "selected");
    } else {
      pageContext.setAttribute("selected", "");
    }

    pageContext.setAttribute("attributeId", attributeCode.getAttributeId());
    pageContext.setAttribute("attributeCode", attributeCode.getAttributeCode());
    pageContext.setAttribute("attributeName", attributeCode.getAttributeName());

    if (attributeCode instanceof EntrySet) {
      if ("receipt".equals(selectedType)) {
        pageContext.setAttribute("receiveFromReceipt", ((EntrySet) attributeCode).getReceiveFrom());
        pageContext.setAttribute("multiPayToReceipt", ((EntrySet) attributeCode).getMultiPayFor());
      }
      if ("receiptTypeList".equals(selectedType)) {
        pageContext.setAttribute("sendToFlag", ((EntrySet) attributeCode).getSendTo());
      } else {
        pageContext.setAttribute("partnerTypePayment", ((EntrySet) attributeCode).getPartnerType());
        pageContext.setAttribute("receiptTypePayment", ((EntrySet) attributeCode).getReceiptType());
        pageContext.setAttribute(
            "voucherTypeCode", ((EntrySet) attributeCode).getVoucherType().getAttributeCode());
      }
    } else if (attributeCode instanceof BankAccount) {
      pageContext.setAttribute("bankAccountNo", ((BankAccount) attributeCode).getAccountNumber());
      pageContext.setAttribute(
          "bankName", ((BankAccount) attributeCode).getBank().getAttributeName());
      pageContext.setAttribute(
          "bankCurrency", ((BankAccount) attributeCode).getCurrency().getAttributeCode());
    }
  }
Esempio n. 3
0
  protected void setAttribute() {

    AttributeCode attributeCode = (AttributeCode) iterator.next();

    if (attributeCode.equals(currentAttributeCode)) {
      pageContext.setAttribute("selected", "selected");
    } else {
      pageContext.setAttribute("selected", "");
    }
    pageContext.setAttribute(
        "attributeId",
        attributeCode.getAttributeId() == null ? "" : attributeCode.getAttributeId());
    pageContext.setAttribute(
        "attributeCode",
        attributeCode.getAttributeCode() == null ? "" : attributeCode.getAttributeCode());
    pageContext.setAttribute(
        "attributeName",
        attributeCode.getAttributeName() == null ? "" : attributeCode.getAttributeName());
    pageContext.setAttribute(
        "description",
        attributeCode.getDescription() == null ? "" : attributeCode.getDescription());
  }