protected void onQuery(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamLottery p = new ParamLottery(); p.m_boxId = m_game.SelectedValue; QueryMgr mgr = user.getSys <QueryMgr>(SysType.sysTypeQuery); OpRes res = mgr.doQuery(p, QueryType.queryTypeOldEaringsRate, user); genExpRateTable(m_result, mgr, p); }
protected void onQuery(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamLottery p = new ParamLottery(); ListItem item = m_game.Items[m_game.SelectedIndex]; p.m_way = (QueryWay)Convert.ToInt32(item.Value); QueryMgr mgr = user.getSys <QueryMgr>(SysType.sysTypeQuery); OpRes res = mgr.doQuery(p, QueryType.queryTypeOldEaringsRate, user); genExpRateTable(m_result, mgr, p); }
// 期望盈利率表格 protected void genExpRateTable(Table table, QueryMgr mgr, ParamLottery p) { GMUser user = (GMUser)Session["user"]; table.GridLines = GridLines.Both; TableRow tr = new TableRow(); table.Rows.Add(tr); int i = 0; for (; i < s_head.Length; i++) { TableCell td = new TableCell(); tr.Cells.Add(td); td.Text = s_head[i]; } List <ResultOldEarningRateItem> qresult = (List <ResultOldEarningRateItem>)mgr.getQueryResult(QueryType.queryTypeOldEaringsRate); for (i = 0; i < qresult.Count; i++) { if ((i & 1) == 0) { tr.CssClass = "alt"; } m_content[0] = StrName.s_gameName[qresult[i].m_gameId]; m_content[1] = qresult[i].m_resetTime; m_content[2] = StrName.s_roomName[qresult[i].m_roomId - 1]; m_content[3] = ItemHelp.showMoneyValue(qresult[i].m_income).ToString(); m_content[4] = ItemHelp.showMoneyValue(qresult[i].m_outlay).ToString(); m_content[5] = qresult[i].getFactExpRate(); m_content[6] = qresult[i].m_expRate.ToString(); tr = new TableRow(); table.Rows.Add(tr); for (int j = 0; j < s_head.Length; j++) { TableCell td = new TableCell(); tr.Cells.Add(td); td.Text = m_content[j]; } } }
public override void genPage(ParamQueryBase queryParam, string url, ref string pageLink, ref string foot, GMUser user) { ParamLottery dparam = (ParamLottery)queryParam; PageBrowseGenerator p = new PageBrowseGenerator(); long total_page = 0; Dictionary <string, object> urlParam = new Dictionary <string, object>(); urlParam["time"] = dparam.m_time; urlParam["playerId"] = dparam.m_playerId; urlParam["boxId"] = dparam.m_boxId; urlParam["param"] = dparam.m_param; pageLink = p.genPageFoot(queryParam.m_curPage, m_rowEachPage, url, ref total_page, user, urlParam); if (total_page != 0) { foot = queryParam.m_curPage + "/" + total_page; } }