Ejemplo n.º 1
0
 /**
  * @Method Name: getBlockedDetails @Description: Get the list of cards blocked for the selected
  * reasons. @User: juan_406753 @Return Type: void
  *
  * @param e
  */
 public void getBlockedDetails(ValueChangeEvent e) {
   this.blockedCards = new ArrayList<BlockedCardTO>();
   this.showCreditCards = true;
   this.showCreditCardDetails = false;
   this.reasons = (String[]) e.getNewValue();
   InfyCreditCardWrapper iccw = new InfyCreditCardWrapper();
   this.blockedCards = iccw.getBlockedDetails(this.reasons);
 }
Ejemplo n.º 2
0
  /**
   * @Method Name: getCardDetails @Description: Get the details for the selected credit card
   * number. @User: juan_406753 @Return Type: String
   *
   * @return
   */
  public String getCardDetails() {
    int i = cards.getRowIndex();
    CardTO card = new CardTO();
    card.setCardNo(blockedCards.get(i).getCardNo());
    InfyCreditCardWrapper wr = new InfyCreditCardWrapper();
    try {
      this.showCreditCardDetails = true;
      this.showCreditCards = true;
      this.cardTo = wr.getCardDetails(card);
      return "success";

    } catch (Exception e) {
      this.showCreditCards = false;
      this.showCreditCardDetails = false;
      this.setMessage(e.getMessage());
      e.printStackTrace();
      return "fail";
    }
  }