private void ReloadPage() { int ptype = int.Parse(Utils.GetRequest("ptype", "get", 1, @"^[0-1]$", "0")); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("超级竞猜(串串)管理"); builder.Append(Out.Tab("</div>", "<br />")); int uid = Utils.ParseInt(Utils.GetRequest("uid", "all", 1, "", "0")); builder.Append(Out.Tab("<div class=\"text\">", "")); if (ptype == 0) { builder.Append("全部|" + Out.waplink(Utils.getUrl("super.aspx?ptype=1&uid=" + uid + ""), "未返") + ""); } else { builder.Append("" + Out.waplink(Utils.getUrl("super.aspx?uid=" + uid + ""), "全部") + "|未返"); } builder.Append(Out.Tab("</div>", "<br />")); int pageSize = 10; int pageIndex; int recordCount; string strWhere = ""; string[] pageValUrl = { "act", "ptype", "uid" }; pageIndex = Utils.ParseInt(Request.QueryString["page"]); if (pageIndex == 0) { pageIndex = 1; } if (uid > 0) { strWhere += "UsID=" + uid + " and "; } strWhere += "IsOpen=1"; if (ptype == 1) { strWhere += " and Status=0"; } // 开始读取竞猜 IList <TPR.Model.guess.Super> listSuper = new TPR.BLL.guess.Super().GetSupers(pageIndex, pageSize, strWhere, out recordCount); if (listSuper.Count > 0) { int k = 1; foreach (TPR.Model.guess.Super n in listSuper) { if (k % 2 == 0) { builder.Append(Out.Tab("<div class=\"text\">", "<br />")); } else { if (k == 1) { builder.Append(Out.Tab("<div>", "")); } else { builder.Append(Out.Tab("<div>", "<br />")); } } string sWin = string.Empty; if (n.Status == 0) { sWin = "未返"; } else if (n.Status == 1) { sWin = "赢"; } else { sWin = "输"; } builder.Append(Out.waplink(Utils.getUrl("super.aspx?act=view&uid=" + n.UsID + "&id=" + n.ID + ""), "[" + sWin + "]串竞猜" + Convert.ToDouble(n.PayCent) + "" + ub.Get("SiteBz") + "") + ""); string[] Title = Regex.Split(Utils.Mid(n.Title, 2, n.Title.Length), "##"); for (int i = 0; i < Title.Length; i++) { builder.Append("<br />场次" + (i + 1) + ":" + Title[i] + ""); } builder.Append(Out.Tab("</div>", "")); k++; } // 分页 builder.Append(BasePage.MultiPage(pageIndex, pageSize, recordCount, Utils.getPageUrl(), pageValUrl, "page", 0)); } else { builder.Append(Out.Div("div", "没有相关记录..")); } string strText = "输入用户ID:/,"; string strName = "uid,backurl"; string strType = "text,hidden"; string strValu = "'" + Utils.getPage(0) + ""; string strEmpt = "true,false"; string strIdea = "/"; string strOthe = "搜串串记录,super.aspx,post,1,red"; builder.Append(Out.wapform(strText, strName, strType, strValu, strEmpt, strIdea, strOthe)); builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div>", "")); builder.Append(Out.waplink(Utils.getUrl("default.aspx"), "返回上一级")); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"title\">", "<br />")); builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>"); builder.Append(Out.Tab("</div>", "<br />")); }
protected void Page_Load(object sender, EventArgs e) { Master.Title = "完场数据分析"; int ptype = Utils.ParseInt(Utils.GetRequest("ptype", "get", 1, @"^[1-2]$", "1")); int showtype = Utils.ParseInt(Utils.GetRequest("showtype", "get", 1, @"^[0-3]$", "0")); if (showtype == 0) { builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("完场数据分析(不含串串)"); builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div class=\"text\">", "")); if (ptype == 1) { builder.Append("当前统计:足球 " + Out.waplink(Utils.getUrl("stats.aspx?ptype=2"), "切换篮球")); } else { builder.Append("当前统计:篮球 " + Out.waplink(Utils.getUrl("stats.aspx?ptype=1"), "切换足球")); } builder.Append(Out.Tab("</div>", "<br />")); //统计今天 int todaycsNum, todayzsNum, todaywinNum; long todayzsCent, todaywinCent; todaycsNum = new TPR.BLL.guess.BaList().GetBaListCount("p_type=" + ptype + " and Year(p_addtime)=" + DateTime.Now.Year + " AND Month(p_addtime) = " + DateTime.Now.Month + " and Day(p_addtime) = " + DateTime.Now.Day + " and p_active<>0"); todayzsNum = new TPR.BLL.guess.BaPay().GetBaPayCount("ptype=" + ptype + " and Year(paytimes) = " + DateTime.Now.Year + " AND Month(paytimes) = " + DateTime.Now.Month + " and Day(paytimes) = " + DateTime.Now.Day + " and p_active<>0"); todaywinNum = new TPR.BLL.guess.BaPay().GetBaPayCount("ptype=" + ptype + " and Year(paytimes) = " + DateTime.Now.Year + " AND Month(paytimes) = " + DateTime.Now.Month + " and Day(paytimes) = " + DateTime.Now.Day + " and p_getMoney>0 and p_active<>0"); todayzsCent = new TPR.BLL.guess.BaPay().GetBaPaypayCent("ptype=" + ptype + " and Year(paytimes) = " + DateTime.Now.Year + " AND Month(paytimes) = " + DateTime.Now.Month + " and Day(paytimes) = " + DateTime.Now.Day + " and p_active<>0"); todaywinCent = new TPR.BLL.guess.BaPay().GetBaPaygetMoney("ptype=" + ptype + " and Year(paytimes) = " + DateTime.Now.Year + " AND Month(paytimes) = " + DateTime.Now.Month + " and Day(paytimes) = " + DateTime.Now.Day + " and p_getMoney>0 and p_active<>0"); //统计昨天 int yestcsNum, yestzsNum, yestwinNum; long yestzsCent, yestwinCent; yestcsNum = new TPR.BLL.guess.BaList().GetBaListCount("p_type=" + ptype + " and Year(p_addtime)=" + DateTime.Now.AddDays(-1).Year + " AND Month(p_addtime) = " + DateTime.Now.AddDays(-1).Month + " and Day(p_addtime) = " + DateTime.Now.AddDays(-1).Day + " and p_active<>0"); yestzsNum = new TPR.BLL.guess.BaPay().GetBaPayCount("ptype=" + ptype + " and Year(paytimes) = " + DateTime.Now.AddDays(-1).Year + " AND Month(paytimes) = " + DateTime.Now.AddDays(-1).Month + " and Day(paytimes) = " + DateTime.Now.AddDays(-1).Day + " and p_active<>0"); yestwinNum = new TPR.BLL.guess.BaPay().GetBaPayCount("ptype=" + ptype + " and Year(paytimes) = " + DateTime.Now.AddDays(-1).Year + " AND Month(paytimes) = " + DateTime.Now.AddDays(-1).Month + " and Day(paytimes) = " + DateTime.Now.AddDays(-1).Day + " and p_getMoney>0 and p_active<>0"); yestzsCent = new TPR.BLL.guess.BaPay().GetBaPaypayCent("ptype=" + ptype + " and Year(paytimes) = " + DateTime.Now.AddDays(-1).Year + " AND Month(paytimes) = " + DateTime.Now.AddDays(-1).Month + " and Day(paytimes) = " + DateTime.Now.AddDays(-1).Day + " and p_active<>0"); yestwinCent = new TPR.BLL.guess.BaPay().GetBaPaygetMoney("ptype=" + ptype + " and Year(paytimes) = " + DateTime.Now.AddDays(-1).Year + " AND Month(paytimes) = " + DateTime.Now.AddDays(-1).Month + " and Day(paytimes) = " + DateTime.Now.AddDays(-1).Day + " and p_getMoney>0 and p_active<>0"); //统计本月 int bmcsNum, bmzsNum, bmwinNum; long bmzsCent, bmwinCent; bmcsNum = new TPR.BLL.guess.BaList().GetBaListCount("p_type=" + ptype + " and Year(p_addtime)=" + (DateTime.Now.Year) + " AND Month(p_addtime) = " + (DateTime.Now.Month) + " and p_active<>0"); bmzsNum = new TPR.BLL.guess.BaPay().GetBaPayCount("ptype=" + ptype + " and Year(paytimes) = " + (DateTime.Now.Year) + " AND Month(paytimes) = " + (DateTime.Now.Month) + " and p_active<>0"); bmwinNum = new TPR.BLL.guess.BaPay().GetBaPayCount("ptype=" + ptype + " and Year(paytimes) = " + (DateTime.Now.Year) + " AND Month(paytimes) = " + (DateTime.Now.Month) + " and p_getMoney>0 and p_active<>0"); bmzsCent = new TPR.BLL.guess.BaPay().GetBaPaypayCent("ptype=" + ptype + " and Year(paytimes) = " + (DateTime.Now.Year) + " AND Month(paytimes) = " + (DateTime.Now.Month) + " and p_active<>0"); bmwinCent = new TPR.BLL.guess.BaPay().GetBaPaygetMoney("ptype=" + ptype + " and Year(paytimes) = " + (DateTime.Now.Year) + " AND Month(paytimes) = " + (DateTime.Now.Month) + " and p_getMoney>0 and p_active<>0"); //统计上月 int smcsNum, smzsNum, smwinNum; long smzsCent, smwinCent; smcsNum = new TPR.BLL.guess.BaList().GetBaListCount("p_type=" + ptype + " and Year(p_addtime)=" + (DateTime.Now.Year - DateTime.Now.Day) + " AND Month(p_addtime) = " + (DateTime.Now.Month - DateTime.Now.Day) + " and p_active<>0"); smzsNum = new TPR.BLL.guess.BaPay().GetBaPayCount("ptype=" + ptype + " and Year(paytimes) = " + (DateTime.Now.Year - DateTime.Now.Day) + " AND Month(paytimes) = " + (DateTime.Now.Month - DateTime.Now.Day) + " and p_active<>0"); smwinNum = new TPR.BLL.guess.BaPay().GetBaPayCount("ptype=" + ptype + " and Year(paytimes) = " + (DateTime.Now.Year - DateTime.Now.Day) + " AND Month(paytimes) = " + (DateTime.Now.Month - DateTime.Now.Day) + " and p_getMoney>0 and p_active<>0"); smzsCent = new TPR.BLL.guess.BaPay().GetBaPaypayCent("ptype=" + ptype + " and Year(paytimes) = " + (DateTime.Now.Year - DateTime.Now.Day) + " AND Month(paytimes) = " + (DateTime.Now.Month - DateTime.Now.Day) + " and p_active<>0"); smwinCent = new TPR.BLL.guess.BaPay().GetBaPaygetMoney("ptype=" + ptype + " and Year(paytimes) = " + (DateTime.Now.Year - DateTime.Now.Day) + " AND Month(paytimes) = " + (DateTime.Now.Month - DateTime.Now.Day) + " and p_getMoney>0 and p_active<>0"); //总计 int csNum, zsNum, winNum; long zsCent, winCent; csNum = new TPR.BLL.guess.BaList().GetBaListCount("p_type=" + ptype + " and p_active<>0"); zsNum = new TPR.BLL.guess.BaPay().GetBaPayCount("ptype=" + ptype + " and p_active<>0"); winNum = new TPR.BLL.guess.BaPay().GetBaPayCount("ptype=" + ptype + " and p_getMoney>0 and p_active<>0"); zsCent = new TPR.BLL.guess.BaPay().GetBaPaypayCent("ptype=" + ptype + " and p_active<>0"); winCent = new TPR.BLL.guess.BaPay().GetBaPaygetMoney("ptype=" + ptype + " and p_getMoney>0 and p_active<>0"); builder.Append(Out.Tab("<div>", "")); builder.Append("<table border=\"1\" cellpadding=\"3\" cellspacing=\"0\">"); builder.Append("<tr>"); builder.Append("<td>类别</td><td>场次</td><td>下注数</td><td>下注额</td><td>用户赢注数</td><td>用户赢金额</td><td>本站盈利</td>"); builder.Append("</tr>"); builder.Append("<tr>"); builder.Append("<td>今天</td><td>" + todaycsNum + "</td><td>" + todayzsNum + "</td><td>" + todayzsCent + "</td><td>" + todaywinNum + "</td><td>" + todaywinCent + "</td><td>" + (todayzsCent - todaywinCent) + "</td>"); builder.Append("</tr>"); builder.Append("<tr>"); builder.Append("<td>昨天</td><td>" + yestcsNum + "</td><td>" + yestzsNum + "</td><td>" + yestzsCent + "</td><td>" + yestwinNum + "</td><td>" + yestwinCent + "</td><td>" + (yestzsCent - yestwinCent) + "</td>"); builder.Append("</tr>"); builder.Append("<tr>"); builder.Append("<td>本月</td><td>" + bmcsNum + "</td><td>" + bmzsNum + "</td><td>" + bmzsCent + "</td><td>" + bmwinNum + "</td><td>" + bmwinCent + "</td><td>" + (bmzsCent - bmwinCent) + "</td>"); builder.Append("</tr>"); builder.Append("<tr>"); builder.Append("<td>上月</td><td>" + smcsNum + "</td><td>" + smzsNum + "</td><td>" + smzsCent + "</td><td>" + smwinNum + "</td><td>" + smwinCent + "</td><td>" + (smzsCent - smwinCent) + "</td>"); builder.Append("</tr>"); builder.Append("<tr>"); builder.Append("<td>总计</td><td>" + csNum + "</td><td>" + zsNum + "</td><td>" + zsCent + "</td><td>" + winNum + "</td><td>" + winCent + "</td><td>" + (zsCent - winCent) + "</td>"); builder.Append("</tr>"); builder.Append("</table>"); builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div>", "")); builder.Append(Out.waplink(Utils.getUrl("stats.aspx?showtype=1"), ">串串数据分析")); builder.Append(Out.Tab("</div>", "")); } else if (showtype == 1) { //统计今天 int todayzsNum2, todaywinNum2; long todayzsCent2, todaywinCent2; todayzsNum2 = new TPR.BLL.guess.Super().GetSuperCount("Year(AddTime) = " + DateTime.Now.Year + " AND Month(AddTime) = " + DateTime.Now.Month + " and Day(AddTime) = " + DateTime.Now.Day + " and Status<>0"); todaywinNum2 = new TPR.BLL.guess.Super().GetSuperCount("Year(AddTime) = " + DateTime.Now.Year + " AND Month(AddTime) = " + DateTime.Now.Month + " and Day(AddTime) = " + DateTime.Now.Day + " and getMoney>0 and Status<>0"); todayzsCent2 = new TPR.BLL.guess.Super().GetSuperpayCent("Year(AddTime) = " + DateTime.Now.Year + " AND Month(AddTime) = " + DateTime.Now.Month + " and Day(AddTime) = " + DateTime.Now.Day + " and Status<>0"); todaywinCent2 = new TPR.BLL.guess.Super().GetSupergetMoney("Year(AddTime) = " + DateTime.Now.Year + " AND Month(AddTime) = " + DateTime.Now.Month + " and Day(AddTime) = " + DateTime.Now.Day + " and getMoney>0 and Status<>0"); //统计昨天 int yestzsNum2, yestwinNum2; long yestzsCent2, yestwinCent2; yestzsNum2 = new TPR.BLL.guess.Super().GetSuperCount("Year(AddTime) = " + DateTime.Now.AddDays(-1).Year + " AND Month(AddTime) = " + DateTime.Now.AddDays(-1).Month + " and Day(AddTime) = " + DateTime.Now.AddDays(-1).Day + " and Status<>0"); yestwinNum2 = new TPR.BLL.guess.Super().GetSuperCount("Year(AddTime) = " + DateTime.Now.AddDays(-1).Year + " AND Month(AddTime) = " + DateTime.Now.AddDays(-1).Month + " and Day(AddTime) = " + DateTime.Now.AddDays(-1).Day + " and getMoney>0 and Status<>0"); yestzsCent2 = new TPR.BLL.guess.Super().GetSuperpayCent("Year(AddTime) = " + DateTime.Now.AddDays(-1).Year + " AND Month(AddTime) = " + DateTime.Now.AddDays(-1).Month + " and Day(AddTime) = " + DateTime.Now.AddDays(-1).Day + " and Status<>0"); yestwinCent2 = new TPR.BLL.guess.Super().GetSupergetMoney("Year(AddTime) = " + DateTime.Now.AddDays(-1).Year + " AND Month(AddTime) = " + DateTime.Now.AddDays(-1).Month + " and Day(AddTime) = " + DateTime.Now.AddDays(-1).Day + " and getMoney>0 and Status<>0"); //统计本月 int bmzsNum2, bmwinNum2; long bmzsCent2, bmwinCent2; bmzsNum2 = new TPR.BLL.guess.Super().GetSuperCount("Year(AddTime) = " + (DateTime.Now.Year) + " AND Month(AddTime) = " + (DateTime.Now.Month) + " and Status<>0"); bmwinNum2 = new TPR.BLL.guess.Super().GetSuperCount("Year(AddTime) = " + (DateTime.Now.Year) + " AND Month(AddTime) = " + (DateTime.Now.Month) + " and getMoney>0 and Status<>0"); bmzsCent2 = new TPR.BLL.guess.Super().GetSuperpayCent("Year(AddTime) = " + (DateTime.Now.Year) + " AND Month(AddTime) = " + (DateTime.Now.Month) + " and Status<>0"); bmwinCent2 = new TPR.BLL.guess.Super().GetSupergetMoney("Year(AddTime) = " + (DateTime.Now.Year) + " AND Month(AddTime) = " + (DateTime.Now.Month) + " and getMoney>0 and Status<>0"); //统计上月 int smzsNum2, smwinNum2; long smzsCent2, smwinCent2; smzsNum2 = new TPR.BLL.guess.Super().GetSuperCount("Year(AddTime) = " + (DateTime.Now.Year - DateTime.Now.Day) + " AND Month(AddTime) = " + (DateTime.Now.Month - DateTime.Now.Day) + " and Status<>0"); smwinNum2 = new TPR.BLL.guess.Super().GetSuperCount("Year(AddTime) = " + (DateTime.Now.Year - DateTime.Now.Day) + " AND Month(AddTime) = " + (DateTime.Now.Month - DateTime.Now.Day) + " and getMoney>0 and Status<>0"); smzsCent2 = new TPR.BLL.guess.Super().GetSuperpayCent("Year(AddTime) = " + (DateTime.Now.Year - DateTime.Now.Day) + " AND Month(AddTime) = " + (DateTime.Now.Month - DateTime.Now.Day) + " and Status<>0"); smwinCent2 = new TPR.BLL.guess.Super().GetSupergetMoney("Year(AddTime) = " + (DateTime.Now.Year - DateTime.Now.Day) + " AND Month(AddTime) = " + (DateTime.Now.Month - DateTime.Now.Day) + " and getMoney>0 and Status<>0"); //总计 int zsNum2, winNum2; long zsCent2, winCent2; zsNum2 = new TPR.BLL.guess.Super().GetSuperCount("Status<>0"); winNum2 = new TPR.BLL.guess.Super().GetSuperCount("getMoney>0 and Status<>0"); zsCent2 = new TPR.BLL.guess.Super().GetSuperpayCent("Status<>0"); winCent2 = new TPR.BLL.guess.Super().GetSupergetMoney("getMoney>0 and Status<>0"); builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("完场串串数据分析"); builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div>", "")); builder.Append("<table border=\"1\" cellpadding=\"3\" cellspacing=\"0\">"); builder.Append("<tr>"); builder.Append("<td>类别</td><td>下注数</td><td>下注额</td><td>用户赢注数</td><td>用户赢金额</td><td>本站盈利</td>"); builder.Append("</tr>"); builder.Append("<tr>"); builder.Append("<td>今天</td><td>" + todayzsNum2 + "</td><td>" + todayzsCent2 + "</td><td>" + todaywinNum2 + "</td><td>" + todaywinCent2 + "</td><td>" + (todayzsCent2 - todaywinCent2) + "</td>"); builder.Append("</tr>"); builder.Append("<tr>"); builder.Append("<td>昨天</td><td>" + yestzsNum2 + "</td><td>" + yestzsCent2 + "</td><td>" + yestwinNum2 + "</td><td>" + yestwinCent2 + "</td><td>" + (yestzsCent2 - yestwinCent2) + "</td>"); builder.Append("</tr>"); builder.Append("<tr>"); builder.Append("<td>本月</td><td>" + bmzsNum2 + "</td><td>" + bmzsCent2 + "</td><td>" + bmwinNum2 + "</td><td>" + bmwinCent2 + "</td><td>" + (bmzsCent2 - bmwinCent2) + "</td>"); builder.Append("</tr>"); builder.Append("<tr>"); builder.Append("<td>上月</td><td>" + smzsNum2 + "</td><td>" + smzsCent2 + "</td><td>" + smwinNum2 + "</td><td>" + smwinCent2 + "</td><td>" + (smzsCent2 - smwinCent2) + "</td>"); builder.Append("</tr>"); builder.Append("<tr>"); builder.Append("<td>总计</td><td>" + zsNum2 + "</td><td>" + zsCent2 + "</td><td>" + winNum2 + "</td><td>" + winCent2 + "</td><td>" + (zsCent2 - winCent2) + "</td>"); builder.Append("</tr>"); builder.Append("</table>"); builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div>", "")); builder.Append(Out.waplink(Utils.getUrl("stats.aspx"), ">普通数据分析")); builder.Append(Out.Tab("</div>", "")); } else if (showtype > 1) { Master.Title = "未场数据分析"; DataSet ds = null; builder.Append(Out.Tab("<div class=\"title\">", "")); if (showtype == 2) { builder.Append("未结束赛事下注数TOP10"); ds = new TPR.BLL.guess.BaPay().GetBaPayList("top 10 bcid,count(bcid) as payCount", "p_active=0 group by bcid", "count(bcid) desc"); } else { builder.Append("未结束赛事下注额TOP10"); ds = new TPR.BLL.guess.BaPay().GetBaPayList("top 10 bcid,sum(payCent) as payCount", "p_active=0 group by bcid", "sum(payCent) desc"); } builder.Append(Out.Tab("</div>", "<br />")); builder.Append(Out.Tab("<div>", "")); builder.Append("<table border=\"1\" cellpadding=\"3\" cellspacing=\"0\">"); builder.Append("<tr>"); builder.Append("<td>名次</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td><td>7</td><td>8</td><td>9</td><td>10</td>"); builder.Append("</tr>"); builder.Append("<tr>"); builder.Append("<td>赛事ID</td>"); for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { builder.Append("<td>" + Out.waplink(Utils.getUrl("ShowGuess.aspx?gid=" + ds.Tables[0].Rows[i]["bcid"].ToString()), ds.Tables[0].Rows[i]["bcid"].ToString()) + "</td>"); } if (ds.Tables[0].Rows.Count < 10) { for (int i = 0; i < 10 - ds.Tables[0].Rows.Count; i++) { builder.Append("<td>0</td>"); } } builder.Append("</tr>"); builder.Append("<tr>"); if (showtype == 2) { builder.Append("<td>下注数</td>"); } else { builder.Append("<td>下注额</td>"); } for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { builder.Append("<td>" + Convert.ToDouble(ds.Tables[0].Rows[i]["payCount"]) + "</td>"); } if (ds.Tables[0].Rows.Count < 10) { for (int i = 0; i < 10 - ds.Tables[0].Rows.Count; i++) { builder.Append("<td>0</td>"); } } builder.Append("</tr>"); builder.Append("</table>"); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div>", "")); if (showtype == 2) { builder.Append(Out.waplink(Utils.getUrl("stats.aspx?showtype=3"), ">未结束赛事下注额TOP10")); } else { builder.Append(Out.waplink(Utils.getUrl("stats.aspx?showtype=2"), ">未结束赛事下注数TOP10")); } builder.Append(Out.Tab("</div>", "")); } builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div>", "")); builder.Append(Out.waplink(Utils.getUrl("default.aspx"), "返回上一级")); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"title\">", "<br />")); builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>"); builder.Append(Out.Tab("</div>", "<br />")); }
private void ViewPage() { int uid = Utils.ParseInt(Utils.GetRequest("uid", "get", 2, @"^[0-9]\d*$", "ID无效")); int id = int.Parse(Utils.GetRequest("id", "get", 2, @"^[0-9]\d*$", "ID无效")); if (!new TPR.BLL.guess.Super().Exists(id, uid)) { Utils.Error("不存在的记录..", ""); } builder.Append(Out.Tab("<div class=\"title\">", "")); builder.Append("" + Out.waplink(Utils.getUrl("super.aspx?uid=" + uid + ""), "串串记录") + "|查看详情"); builder.Append(Out.Tab("</div>", "<br />")); TPR.Model.guess.Super model = new TPR.BLL.guess.Super().GetSuper(id); builder.Append(Out.Tab("<div class=\"text\">", "")); builder.Append("" + Out.waplink(Utils.getUrl("../uinfo.aspx?uid=" + model.UsID + "&backurl=" + Utils.PostPage(1) + ""), "" + model.UsName + "(" + model.UsID + ")") + "|" + DT.FormatDate(Convert.ToDateTime(model.AddTime), 0) + ""); builder.Append(Out.Tab("</div>", "<br />")); string[] BID = Regex.Split(Utils.Mid(model.BID, 2, model.BID.Length), "##"); string[] Title = Regex.Split(Utils.Mid(model.Title, 2, model.Title.Length), "##"); string[] Times = Regex.Split(Utils.Mid(model.Times, 2, model.Times.Length), "##"); string[] StTitle = Regex.Split(Utils.Mid(model.StTitle, 2, model.StTitle.Length), "##"); string[] Odds = Regex.Split(Utils.Mid(model.Odds, 2, model.Odds.Length), "##"); string[] getOdds = null; if (model.Status > 0) { getOdds = Regex.Split(Utils.Mid(model.getOdds, 2, model.getOdds.Length), "##"); } builder.Append(Out.Tab("<div>", "")); builder.Append(model.AddTime); double pl = 1; double pCent = Convert.ToDouble(model.PayCent); for (int i = 0; i < Title.Length; i++) { builder.Append("<br />比赛场次" + (i + 1) + ":" + Title[i] + "<br />"); builder.Append("比赛时间:" + Times[i] + "<br />"); builder.Append("" + StTitle[i] + ","); builder.Append("赔率:" + Odds[i]); if (model.Status > 0) { builder.Append("<br />结果:" + getOdds[i]); string str = getOdds[i].ToString(); if (str == "全输") { pl = pl * 0; pCent = pCent * 0; } else if (str == "平盘") { pl = pl * 1; pCent = pCent * 1; } else if (str == "输半") { pl = pl * 0.5; pCent = pCent * 0.5; } else if (str == "全赢") { pl = pl * 1.9; pCent = pCent * 1.9; } else//赢半 { pl = pl * 1.45; pCent = pCent * 1.45; } } else { builder.Append("<br />结果:未返"); } } builder.Append(Out.Tab("</div>", Out.Hr())); builder.Append(Out.Tab("<div class=\"text\">", "")); if (model.Status == 1) { builder.Append("投注:" + Convert.ToDouble(model.PayCent) + "" + ub.Get("SiteBz") + "<br />"); builder.Append("总计:赢了" + pCent + "" + ub.Get("SiteBz") + ""); if (model.p_case == 0) { builder.Append("(未兑奖)"); } else { builder.Append("(已兑奖)"); } builder.Append("<br />总赔率:" + Convert.ToDouble(pl) + ""); } else if (model.Status == 2) { builder.Append("投注:" + Convert.ToDouble(model.PayCent) + "" + ub.Get("SiteBz") + "<br />"); builder.Append("总计:输了" + Convert.ToDouble(model.PayCent) + "" + ub.Get("SiteBz") + ""); } else { builder.Append("投注:" + Convert.ToDouble(model.PayCent) + "" + ub.Get("SiteBz") + "<br />"); builder.Append("总计:等待返彩"); } builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"hr\"></div>", Out.Hr())); builder.Append(Out.Tab("<div>", "")); builder.Append(Out.waplink(Utils.getUrl("super.aspx?uid=" + uid + ""), "返回上一级") + ""); builder.Append(Out.Tab("</div>", "")); builder.Append(Out.Tab("<div class=\"title\">", "<br />")); builder.Append("<a href=\"" + Utils.getUrl("../default.aspx") + "\">返回管理中心</a>"); builder.Append(Out.Tab("</div>", "<br />")); }