Ejemplo n.º 1
0
 private int getSubstringforamt() {
   int amt = 0;
   for (int i = 0; i < subscribeInfocheck.size(); i++) {
     Checktouinfo check = subscribeInfocheck.get(i);
     if (check.state.equals("1")) {
       amt += Integer.valueOf(check.getAmt());
     }
   }
   return amt / 100;
 }
Ejemplo n.º 2
0
 private String getSubstringforset() {
   StringBuffer str = new StringBuffer();
   for (int i = 0; i < subscribeInfocheck.size(); i++) {
     Checktouinfo check = subscribeInfocheck.get(i);
     if (check.state.equals("1")) {
       str.append(check.getBatchcode())
           .append(",")
           .append(check.getAmt())
           .append(",")
           .append(check.getBeishu())
           .append("!");
     }
   }
   if (str.toString().equals("")) {
     isTouzhu = false;
     Toast.makeText(this, "请至少选择一期", Toast.LENGTH_SHORT).show();
     return "";
   } else {
     isTouzhu = true;
     String strset = str.toString().substring(0, str.toString().length() - 1);
     return strset;
   }
 }