/** 中奖范围 */ public void setPrizeText() { String returnStr = ""; if (jcMainView.isDanguan) { returnStr = jcMainView.getDanPrizeString(getBeishu()); } else { if (!isRadio) { returnStr = getFreedomGuoGuanPrize(context.getIprogressBeiShu()); } else { returnStr = getFreedomGuoGuanPrize(context.getIprogressBeiShu()); } } prizeText.setText(returnStr); }
/** * 投注调用函数 * * @param string 显示框信息 * @return */ public void alert() { initInfo(); LayoutInflater inflater = (LayoutInflater) context.getSystemService(context.LAYOUT_INFLATER_SERVICE); View v = inflater.inflate(R.layout.alert_dialog_jc_touzhu, null); dialog = new Dialog(context, R.style.MyDialog); alertText = (TextView) v.findViewById(R.id.alert_dialog_touzhu_text_one); prizeText = (TextView) v.findViewById(R.id.alert_dialog_touzhu_prizescope); // 竞彩中奖金额范围 context.initImageView(v); setAlertText(); setPrizeText(); initBtn(dialog, v); dialog.setContentView(v); dialog.show(); }
@Override public void onClick(View v) { // TODO Auto-generated method stub RWSharedPreferences pre = new RWSharedPreferences(context, "addInfo"); context.sessionId = pre.getStringValue("sessionid"); context.phonenum = pre.getStringValue("phonenum"); context.userno = pre.getStringValue("userno"); if (context.userno == null || context.userno.equals("")) { Intent intentSession = new Intent(context, UserLogin.class); context.startActivityForResult(intentSession, 0); } else if (zhuShu == 0) { Toast.makeText(context, "请选择过关方式", Toast.LENGTH_SHORT).show(); } else { if (isAmtDialog()) { alertInfo( context.getString(R.string.jc_main_touzhu_alert_text_content), context.getString(R.string.jc_main_touzhu_alert_text_title)); } else { switch (v.getId()) { case R.id.alert_dialog_touzhu_button_cancel: initBet(); context.toJoinActivity(); break; case R.id.alert_dialog_touzhu_button_ok: beginTouzhu(); break; } dialog.cancel(); } } }
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setType(Constants.JCFOOT); createView(SF, false); setLotNo(Constants.LOTNO_JCZ); setScoreBtn(); isTeamBtn(); MobclickAgent.onEvent(this, "jingcaizuqiu"); // BY贺思明 点击首页的“竞彩足球”图标 }
/** 提示信息 */ public void setAlertText() { String returnStr = "注数:" + zhuShu + "注 " + "倍数:" + context.getIprogressBeiShu() + "倍 " + "金额:" + getAllAmt() + "元"; alertText.setText(returnStr); }
private void initBet() { context.initBet(); context.getBetAndGiftPojo().setAmount("" + getAllAmt() * 100); context.getBetAndGiftPojo().setLotmulti("" + getBeishu()); if (jcMainView.isDanguan) { context .getBetAndGiftPojo() .setBet_code( getBetCode(context.getString(R.string.jc_touzhu_DAN)) + "_" + PublicMethod.isTen(getBeishu()) + "_" + oneAmt * 100 + "_" + jcMainView.getDanZhushu() * oneAmt * 100 + "!"); } else { context.getBetAndGiftPojo().setBet_code(viewGroup.getBetCode()); } context.getBetAndGiftPojo().setIsSellWays("1"); }
public int getTeamNum() { return context.getTeamNum(); }
public TouzhuDialog(JcMainActivity context, JcMainView jcMainView) { this.context = context; this.jcMainView = jcMainView; viewGroup = new RadioGroupView(context.getContext(), this); }
public int getBeishu() { return context.getIprogressBeiShu(); }
private void beginTouzhu() { initBet(); context.touZhuNet(); }