예제 #1
0
 /** 对合买对象进行赋值 */
 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));
 }
예제 #2
0
 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);
 }
예제 #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");
 }