public void setValue(DebtPackageInfoAppDto dto) {
    if (dto == null) return;

    this.dto = dto;

    fenqiHeadImageView.setDefaultImageResId(R.drawable.fenqi_head_default);
    fenqiHeadImageView.setErrorImageResId(R.drawable.fenqi_head_default);
    fenqiHeadImageView.setLocalImageBitmap(R.drawable.fenqi_head_default);
    fenqiHeadImageView.setImageUrl(
        dto.getLogoImg(), ImageCacheManager.getInstance().getImageLoader());

    nameTextView.setText(dto.getRealName());

    companyTextView.setText("(" + dto.getOrganization() + ")");

    fenqiDescTextView.setText("分期消费:" + dto.getGoodsName() + " ¥" + dto.getGoodsPrice());

    totalAmountTextView.setText(this.dto.getTotalMoney());
    transferMoneyTextView.setText(this.dto.getMaxMoney());
    surplusTextView.setText(this.dto.getMaxPeriod() + "");
    purchaseIncentivesTextView.setText(this.dto.getReward());
    expectedRateTextView.setText(this.dto.getMinRate() + "%");

    repaymentTypeTextView.setText("按天付息,到期还本");
    recordsCountTextView.setText(this.dto.getPeople() + "");

    if (null != dto.getRewardRate()) {
      rewardRateTextView.setText("加息" + dto.getRewardRate() + "%");
      handler.postDelayed(runnable, 1000); // 开始Timer
    }
  }
  @Override
  public void onClick(View v) {
    switch (v.getId()) {
      case R.id.fenqiLayout:
        { // 分期用户信息
          Intent intent = new Intent(this.context, StagingUserActivity.class);
          intent.putExtra("DTO", dto);
          this.context.startActivity(intent);
        }
        break;

      case R.id.itemDescLayout:
        { // 产品详情
          Intent intent = new Intent(this.context, ItemDetailActivity.class);
          intent.putExtra("DTO", dto);
          this.context.startActivity(intent);
        }
        break;

      case R.id.investmentRecordsLayout:
        { // 投资记录
          Intent intent = new Intent(this.context, InvestmentRecordsActivity.class);
          intent.putExtra("id", dto.getId());
          this.context.startActivity(intent);
        }
        break;

      case R.id.purchaseBtn:
        { // 收购债权
          Intent intent = new Intent(this.context, TransferInvestmentActivity.class);
          intent.putExtra("DTO", dto);
          this.context.startActivityForResult(intent, 0);
        }

        break;
    }
  }