public void initBettingInfo() {
   betAndGift.setSessionid(sessionId);
   betAndGift.setPhonenum(phonenum);
   betAndGift.setUserno(userno);
   betAndGift.setBettype("bet");
   betAndGift.setAmount("" + getBettingAccount() * 100);
   betAndGift.setLotmulti("" + getBettingMutile());
   betAndGift.setBet_code(getBettingCode());
   betAndGift.setIsSellWays("1");
   betAndGift.setBatchnum("1");
   betAndGift.setBatchcode(nowIssueString);
   betAndGift.setLotno(lotnoString);
 }
 private void initBetPojo(
     String zhuma, String issue, String lotMulti, String lotno, String amount, String oneAmount) {
   initPojo();
   betPojo.setPhonenum(phonenum);
   betPojo.setSessionid(sessionid);
   betPojo.setUserno(userno);
   betPojo.setBet_code(zhuma);
   betPojo.setLotno(lotno);
   betPojo.setBatchnum(issue);
   betPojo.setLotmulti(lotMulti);
   betPojo.setBettype("bet");
   betPojo.setAmount(amount);
   betPojo.setAmt(0);
   betPojo.setIsSellWays("1");
   betPojo.setOneAmount(oneAmount);
 }
Beispiel #3
0
 private void initBetPojo(
     String zhuma, String lotno, String amount, String beishu, String lomit, String oneAmount) {
   initPojo();
   betPojo.setPhonenum(phonenum);
   betPojo.setSessionid(sessionid);
   betPojo.setUserno(userno);
   betPojo.setBet_code(zhuma);
   betPojo.setLotmulti(beishu);
   betPojo.setLotno(lotno);
   betPojo.setBatchnum("1");
   betPojo.setBettype("bet");
   betPojo.setAmount(
       Integer.valueOf(amount) / Integer.valueOf(lomit) * Integer.valueOf(beishu) + "");
   betPojo.setAmt(0);
   betPojo.setOneAmount(oneAmount);
   betPojo.setIsSellWays("1");
 }
  private void addViewAndTouZhu(int redSize, int blueSize) {
    long betNums = caculateBetNums(redSize, blueSize);

    if (betNums > 10000) {
      dialogExcessive(10000);
    } else {
      BetAndGiftPojo betAndGiftPojo = new BetAndGiftPojo();

      String sessionid = shellRW.getStringValue("sessionid");
      String phonenum = shellRW.getStringValue("phonenum");
      String userno = shellRW.getStringValue("userno");
      String lotno = Constants.LOTNO_SSQ;

      betAndGiftPojo.setSessionid(sessionid);
      betAndGiftPojo.setPhonenum(phonenum);
      betAndGiftPojo.setUserno(userno);
      betAndGiftPojo.setBettype("bet");
      betAndGiftPojo.setBet_code("");
      betAndGiftPojo.setLotmulti("1");
      betAndGiftPojo.setBatchnum("1");
      betAndGiftPojo.setSellway("0");
      betAndGiftPojo.setLotno(lotno);
      betAndGiftPojo.setZhushu(String.valueOf(betNums));
      betAndGiftPojo.setAmount("" + betNums * 200);
      betAndGiftPojo.setIsSellWays("1");

      AddViewMiss addViewMiss = new AddViewMiss(this);
      CodeInfoMiss codeInfo = addViewMiss.initCodeInfo(2, 1);
      codeInfo.setTouZhuCode(
          SsqZiZhiXuanCode.simulateZhuma(selectedRedBallList, selectedBlueBallList));
      codeInfo.setZhuShu(Integer.valueOf(String.valueOf(betNums)));
      codeInfo.setAmt(Integer.valueOf(String.valueOf(betNums * 2)));
      codeInfo = setCodeInfoColor(codeInfo, selectedRedBallList, selectedBlueBallList);
      addViewMiss.addCodeInfo(codeInfo);

      ApplicationAddview app = (ApplicationAddview) getApplicationContext();
      app.setPojo(betAndGiftPojo);
      app.setAddviewmiss(addViewMiss);
      Intent intent = new Intent(SimulateSelectNumberActivity.this, OrderDetails.class);
      startActivity(intent);
    }
  }