Esempio n. 1
0
 public void getCodeInfo(AddView addView) {
   int zhuShu = getZhuShu();
   CodeInfo codeInfo = addView.initCodeInfo(getAmt(zhuShu), zhuShu);
   setLotoNoAndType(codeInfo);
   String lotoNo = codeInfo.getLotoNo();
   String touzhuType = codeInfo.getTouZhuType();
   AreaNum[] areaNums = itemViewArray.get(0).areaNums;
   codeInfo.setTouZhuCode(code.zhuma(areaNums, iProgressBeishu, 0));
   boolean isFirst = true;
   for (AreaNum areaNum : areaNums) {
     int[] codes = areaNum.table.getHighlightBallNOs();
     String codeStr = "";
     for (int i = 0; i < codes.length; i++) {
       if (isTen) {
         codeStr += PublicMethod.isTen(codes[i]);
       } else {
         codeStr += String.valueOf(codes[i]);
       }
       if (i != codes.length - 1) {
         if (!lotoNo.equals(Constants.LOTNO_QXC)
             && !lotoNo.equals(Constants.LOTNO_PL5)
             && !(lotoNo.equals(Constants.LOTNO_PL3) && touzhuType.equals("zhixuan"))) {
           codeStr += ",";
         }
       }
     }
     if (lotoNo.equals(Constants.LOTNO_PL3) && touzhuType.equals("zu3_danshi") && isFirst) {
       codeStr += ("," + codeStr);
       isFirst = false;
     }
     codeInfo.addAreaCode(codeStr, areaNum.textColor);
   }
   addView.addCodeInfo(codeInfo);
 }
Esempio n. 2
0
 public void getCodeInfo(AddView addView) {
   int zhuShu = getZhuShu();
   CodeInfo codeInfo = addView.initCodeInfo(getAmt(zhuShu), zhuShu);
   AreaNum[] areaNums = itemViewArray.get(0).areaNums;
   codeInfo.setTouZhuCode(code.zhuma(areaNums, iProgressBeishu, 0));
   for (AreaNum areaNum : areaNums) {
     int[] codes = areaNum.table.getHighlightBallNOs();
     String codeStr = "";
     for (int i = 0; i < codes.length; i++) {
       codeStr += PublicMethod.isTen(codes[i]);
       if (i != codes.length - 1) {
         codeStr += ",";
       }
     }
     codeInfo.addAreaCode(codeStr, areaNum.textColor);
   }
   addView.addCodeInfo(codeInfo);
 }