/** 对合买对象进行赋值 */ public void setPojo() { RWSharedPreferences pre = new RWSharedPreferences(JoinStartActivity.this, "addInfo"); sessionId = pre.getStringValue("sessionid"); phonenum = pre.getStringValue("phonenum"); userno = pre.getStringValue("userno"); betAndGift.setBettype("startcase"); betAndGift.setTotalAmt(betAndGift.getAmount()); if (betAndGift.getIssuper().equals("0")) { betAndGift.setOneAmount("300"); } else { betAndGift.setOneAmount("200"); } betAndGift.setSafeAmt(isNull(PublicMethod.toFen(isNull(safeEdit.getText().toString())))); betAndGift.setBuyAmt(isNull(PublicMethod.toFen(isNull(buyEdit.getText().toString())))); betAndGift.setMinAmt(PublicMethod.toFen(isNull(minEdit.getText().toString()))); betAndGift.setCommisionRation(commisionRation); betAndGift.setVisibility(visible); betAndGift.setBatchcode(PublicMethod.toIssue(betAndGift.getLotno())); betAndGift.setDescription(descriptionEdit.getText().toString()); betAndGift.setSessionid(sessionId); betAndGift.setPhonenum(phonenum); betAndGift.setUserno(userno); betAndGift.setLotmulti("" + iProgressBeishu); // lotmulti 倍数 投注的倍数 betAndGift.setBatchnum("" + iProgressQishu); // batchnum 追号期数 默认为1(不追号) betAndGift.setAmount("" + ZixuanActivity.addView.getAllAmt() * iProgressBeishu * 100); betAndGift.setIsSellWays("1"); betAndGift.setBet_code( ZixuanActivity.addView.getTouzhuCode(iProgressBeishu, betAndGift.getAmt() * 100)); }
/** 初始化投注信息 */ public void initBet() { betAndGift.setIsSellWays("1"); betAndGift.setAmount("" + addviewmiss.getAllAmt() * iProgressBeishu * 100); betAndGift.setSessionid(sessionId); betAndGift.setPhonenum(phonenum); betAndGift.setUserno(userno); betAndGift.setDescription(""); betAndGift.setBettype("bet"); // 投注为bet,赠彩为gift betAndGift.setLotmulti("" + iProgressBeishu); // lotmulti 倍数 投注的倍数 betAndGift.setBatchnum("" + iProgressQishu); // batchnum 追号期数 默认为1(不追号) betAndGift.setBet_code(addviewmiss.getTouzhuCode(iProgressBeishu, betAndGift.getAmt() * 100)); }
/** 初始化投注信息 */ public void initBet() { betAndGift.setIsSellWays("1"); betAndGift.setAmount("" + addviewmiss.getAllAmt() * iProgressBeishu * 100); betAndGift.setSessionid(sessionId); betAndGift.setPhonenum(phonenum); betAndGift.setUserno(userno); betAndGift.setDescription(""); betAndGift.setBettype("bet"); // 投注为bet,赠彩为gift betAndGift.setLotmulti("" + iProgressBeishu); // lotmulti 倍数 投注的倍数 betAndGift.setBatchnum("" + iProgressQishu); // batchnum 追号期数 默认为1(不追号) betAndGift.setBet_code(addviewmiss.getTouzhuCode(iProgressBeishu, betAndGift.getAmt() * 100)); lotno = PublicMethod.toLotno(betAndGift.getLotno()); if (PublicMethod.toIssue(betAndGift.getLotno()) != null) { betAndGift.setBatchcode(PublicMethod.toIssue(betAndGift.getLotno())); // 期号 } if (state == 2) { betAndGift.setSubscribeInfo(getSubstringforset()); } else { betAndGift.setSubscribeInfo(""); } }