Esempio n. 1
0
  @Override
  public void onDatePick(
      CharSequence year,
      CharSequence month,
      CharSequence day,
      int yearint,
      int monthint,
      int dayint) {

    //        String result = day.toString() + " " + month + " " + year.toString();
    Calendar calendar = Calendar.getInstance();
    calendar.set(yearint, monthint, dayint);
    time = calendar.getTimeInMillis();
    String result = TimeUtil.getDateString(time, TimeUtil.dateFormat5);
    date.setText(result);

    expandFocusResultChange(result);

    long now = System.currentTimeMillis();
    if (time < now) {
      setNowTime();
      result = TimeUtil.getDateString(time, TimeUtil.dateFormat5);
      date.setText(result);
      expandFocusResultChange(result);
    }
  }
Esempio n. 2
0
  @Override
  protected void onRecover(String text) {

    if (text == null || text.equals("")) {
      return;
    }
    time = TimeUtil.getTimeByString(text, TimeUtil.dateFormat2);
    String date = TimeUtil.getDateString(time, TimeUtil.dateFormat5);
    expandResultChange(date);
    this.date.setText(date);
  }
 /***<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));
 }
Esempio n. 4
0
  @Override
  protected void resetResult() {
    super.resetResult();
    init = false;
    setNowTime();
    String date = TimeUtil.getDateString(time, TimeUtil.dateFormat5);
    expandFocusResultChange(date);
    this.date.setText(date);

    ViewGroup v = (ViewGroup) this.expandBarResultListener;
    v.setVisibility(View.VISIBLE);
  }
 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);
   }
 }
Esempio n. 6
0
  @Override
  protected void onAttachedToWindow() {
    super.onAttachedToWindow();
    if (date == null) {

      date = (TextView) findViewById(R.id.date_text);
      date.setOnClickListener(this);

      setNowTime();
      String date = TimeUtil.getDateString(time, TimeUtil.dateFormat5);
      expandFocusResultChange(date);
      this.date.setText(date);
    }
  }
 /**<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));
 }
 public void setDate(long date) {
   this.date = date;
   birth_data_et.setText(TimeUtil.getDateString(date, TimeUtil.dateFormat5));
 }