protected void onStat(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; QueryMgr mgr = user.getSys <QueryMgr>(SysType.sysTypeQuery); ParamServerEarnings param = new ParamServerEarnings(); param.m_gameId = Convert.ToInt32(m_game.SelectedValue); param.m_time = __time__.Text; OpRes res = mgr.doQuery(param, QueryType.queryTypeServerEarnings, user); m_result.Rows.Clear(); if (param.m_gameId == 0) { genTable(m_result, res, user, mgr); } else { /* if (param.m_gameId == (int)GameId.cows) * { * genDetailGameTableCows(m_result, res, user); * } * else*/ { genDetailGameTable(m_result, res, user, mgr, param.m_gameId); } } }
protected void onStat(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; QueryMgr mgr = user.getSys <QueryMgr>(SysType.sysTypeQuery); ParamServerEarnings param = new ParamServerEarnings(); param.m_gameId = m_game.SelectedIndex; param.m_time = m_time.Text; OpRes res = mgr.doQuery(param, QueryType.queryTypeServerEarnings, user); m_result.Rows.Clear(); if (param.m_gameId == 0) { // genTable(m_result, res, user, mgr); TableStatServerEarningsTotal view = new TableStatServerEarningsTotal(); view.genTable(user, m_result, res, null); } else { /* if (param.m_gameId == (int)GameId.cows) * { * genDetailGameTableCows(m_result, res, user); * } * else*/ { genDetailGameTable(m_result, res, user, mgr, param.m_gameId); } } }
protected void onStat(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; QueryMgr mgr = user.getSys <QueryMgr>(SysType.sysTypeQuery); ParamServerEarnings param = new ParamServerEarnings(); param.m_gameId = m_game.SelectedIndex + 1; param.m_time = m_time.Text; OpRes res = mgr.doQuery(param, QueryType.queryTypeServerEarnings, user); genTable(m_result, res, user, mgr); }
public void ProcessRequest(HttpContext context) { RightMgr.getInstance().opCheck(RightDef.DATA_MONEY_FLOW, context.Session, context.Response); GMUser user = (GMUser)context.Session["user"]; ParamServerEarnings param = new ParamServerEarnings(); param.m_gameId = Convert.ToInt32(context.Request.Form["gameId"]); param.m_time = context.Request.Form["time"]; OpRes res = user.doQuery(param, QueryType.queryTypeServerEarnings); string str = ""; if (param.m_gameId == 0) { TableStatServerEarningsTotal view = new TableStatServerEarningsTotal(); Table table = new Table(); view.genTable(user, table, res, null); str = ItemHelp.genHTML(table); } context.Response.ContentType = "text/plain"; context.Response.Write(str); }