/***<pre> * Beneficiario Beneficiary name * * Codice IBAN IBAN code * * Codice BIC BIC code (optional, show only if present) * * Codice CUP CUP (optional, show only if present) * * Codice CIG CIG (optional, show only if present) * * Importo amount * * Causale description * * Data date * * Causale valutaria Purpose currency (optional, show only if present) * * * @param mAccountsModel * @param beneficiary * @param iban * @param bic * @param cup * @param cig * @param amount * @param description * @param purposeCurrency * @param date */ public void showBankTranser( AccountsModel mAccountsModel, String beneficiary, String iban, String bic, String cup, String cig, double amount, String description, String purposeCurrency, long date, int newPayment) { setPageTitle(TransferType.BANK_TRANSFER.getPageTitleId(newPayment)); setAccountsModel(mAccountsModel); content_tl.removeAllViews(); setText(R.string.beneficiary_tilte, beneficiary); setText(R.string.iban_tilte, iban); setText(R.string.bic_tilte, bic); setText(R.string.cup_tilte, cup); setText(R.string.cig_tilte, cig); setText( R.string.amount_tilte, Utils.notPlusGenerateFormatMoney( contentView.getContext().getResources().getString(R.string.eur), amount)); setText(R.string.description_tilte, description); if (!TextUtils.isEmpty(purposeCurrency)) { setText(R.string.purpose_currency_tilte, purposeCurrency); } setText(R.string.date_tilte, TimeUtil.getDateString(date, TimeUtil.dateFormat5)); }
/**<pre/> * * Beneficiario(beneficiary value) * * Numero di telefono (phone number) * * Operatore (provider) * * Taglio ricarica (recharge amount) * * @param mAccountsModel * @param beneficiary * @param phoneNumber * @param provider * @param amount */ public void showPhoneTopUp( AccountsModel mAccountsModel, String beneficiary, String phoneNumber, String provider, double amount, int newPayment) { setPageTitle(TransferType.PHONE_TOP_UP.getPageTitleId(newPayment)); setAccountsModel(mAccountsModel); content_tl.removeAllViews(); setText(R.string.beneficiary_tilte, beneficiary); if (BaseActivity.isOffline) { setText(R.string.phone_number, phoneNumber); } else { String certifiedNumber = Contants.getUserInfo.getUserprofileHb().getContactPhone(); if (certifiedNumber != null && phoneNumber.equals(certifiedNumber)) { setText(R.string.phone_number, Utils.maskCertifiedNumber(phoneNumber)); } else { setText(R.string.phone_number, phoneNumber); } } setText(R.string.provider_fs, provider); setText( R.string.recharge_amount, Utils.notPlusGenerateFormatMoney( contentView.getContext().getResources().getString(R.string.eur), amount)); }
public void setRecentTransferModels( List<TransferObjectCard> recentTransferModel, OnSlideItemClickListener mOnSlideItemClickListener) { mItemSlideTouchListener.setOnSlideItemClickListener(mOnSlideItemClickListener); this.recentTransferModel = recentTransferModel; recent_content.removeAllViews(); { View rowItem = (View) mLayoutInflater.inflate(R.layout.bper_recent_slidelist_items, null); TextView textView1 = (TextView) rowItem.findViewById(R.id.textView1); textView1.setText(R.string.data); TextView textView2 = (TextView) rowItem.findViewById(R.id.textView2); textView2.setText(R.string.beneficiary_tilte); TextView textView4 = (TextView) rowItem.findViewById(R.id.textView4); textView4.setText(R.string.amount_h); ImageView imageView = (ImageView) rowItem.findViewById(R.id.imageView1); imageView.setVisibility(View.INVISIBLE); recent_content.addView(rowItem); ImageView divider = new ImageView(context); divider.setImageResource(R.drawable.upper_shading); recent_content.addView(divider); } if (recentTransferModel == null || recentTransferModel.size() <= 0) { return; } String currency = contentView.getContext().getResources().getString(R.string.eur); int size = recentTransferModel.size(); for (int i = 0; i < size; i++) { TransferObjectCard accountsModel = recentTransferModel.get(i); View rowItem = (View) mLayoutInflater.inflate(R.layout.bper_recent_slidelist_items, null); TextView textView1 = (TextView) rowItem.findViewById(R.id.textView1); String operationDate = TimeUtil.getDateString(accountsModel.getDate(), TimeUtil.dateFormat5); textView1.setText(operationDate); TextView textView2 = (TextView) rowItem.findViewById(R.id.textView2); String beneficiary = accountsModel.getBeneficiaryName(); if (beneficiary == null) { beneficiary = ""; } textView2.setText(beneficiary); TextView textView4 = (TextView) rowItem.findViewById(R.id.textView4); textView4.setText(Utils.notPlusGenerateFormatMoney(currency, accountsModel.getAmount())); recent_content.addView(rowItem); if (i < size - 1) { recent_content.addView(mLayoutInflater.inflate(R.layout.separation_line_divider, null)); } ViewHolder mViewHolder = new ViewHolder(); mViewHolder.init(rowItem); mViewHolder.position = i; rowItem.setTag(mViewHolder); rowItem.setOnTouchListener(mItemSlideTouchListener); } }
/**<pre/> * * Beneficiario(beneficiary value) * * Carta numero (card number) * * Importo (amount) * * Causale (description only if is present) * * @param mAccountsModel * @param beneficiary * @param cardNumber * @param amount * @param description * @param fees */ public void showCardTopUp( AccountsModel mAccountsModel, String beneficiary, String cardNumber, double amount, String description, int newPayment) { setPageTitle(TransferType.CARD_TOP_UP.getPageTitleId(newPayment)); setAccountsModel(mAccountsModel); content_tl.removeAllViews(); setText(R.string.beneficiary_tilte, beneficiary); setText(R.string.fs_card_number, cardNumber); setText( R.string.amount_tilte, Utils.notPlusGenerateFormatMoney( contentView.getContext().getResources().getString(R.string.eur), amount)); if (!TextUtils.isEmpty(description)) { setText(R.string.description_tilte, description); } }
/**<pre/> * Beneficiario Beneficiary name * * Codice IBAN IBAN code * * Importo amount * * Causale description * * Data date * * * @param mAccountsModel * @param beneficiary * @param iban * @param amount * @param description * @param date */ public void showTranserEntry( AccountsModel mAccountsModel, String beneficiary, String iban, double amount, String description, long date, int newPayment) { setPageTitle(TransferType.TRANSFER_ENTRY.getPageTitleId(newPayment)); setAccountsModel(mAccountsModel); content_tl.removeAllViews(); setText(R.string.beneficiary_tilte, beneficiary); setText(R.string.iban_tilte, iban); setText( R.string.amount_tilte, Utils.notPlusGenerateFormatMoney( contentView.getContext().getResources().getString(R.string.eur), amount)); if (!TextUtils.isEmpty(description)) { setText(R.string.description_tilte, description); } setText(R.string.date_tilte, TimeUtil.getDateString(date, TimeUtil.dateFormat5)); }