protected void Page_Load(object sender, EventArgs e) { RightMgr.getInstance().opCheck("", Session, Response); string acc = Request.QueryString["acc"]; if (string.IsNullOrEmpty(acc)) { Server.Transfer(DefCC.ASPX_EMPTY); } GMUser user = (GMUser)Session["user"]; m_isAdmin.Text = user.m_accType.ToString(); ParamMemberInfo param = new ParamMemberInfo(); param.m_creator = acc; param.m_searchDepth = 1; m_view = new ViewPlayerScoreInfo(IsRefreshed); OpRes res = user.doQuery(param, QueryType.queryTypePlayerMember); m_view.genTable(m_result, res, user); m_levelStr.InnerHtml = user.getOpLevelMgr().getCurLevelStr(acc); }
protected void onSearchSpecialAcc() { GMUser user = (GMUser)Session["user"]; ParamMemberInfo param = new ParamMemberInfo(); param.m_searchDepth = 1; param.m_acc = m_acc.Text; int sel = Convert.ToInt32(m_type.SelectedValue); switch (sel) { case AccType.ACC_AGENCY: { OpRes res = user.doQuery(param, QueryType.queryTypeGmAccount); m_view.genTable(m_result, res, user, new EventHandler(onScoreOp), param); } break; case AccType.ACC_PLAYER: { ViewPlayerScoreInfo view = new ViewPlayerScoreInfo(IsRefreshed); OpRes res = user.doQuery(param, QueryType.queryTypePlayerMember); view.genTable(m_result, res, user); } break; } Label L = (Label)m_result.FindControl("Label" + param.m_acc); if (L != null) { L.Text = ""; } }
protected void onQueryMember(GMUser user) { ParamMemberInfo param = new ParamMemberInfo(); if (!string.IsNullOrEmpty(m_creator)) { param.m_creator = m_creator; } param.m_searchDepth = 1; param.m_curPage = m_gen.curPage; param.m_countEachPage = m_gen.rowEachPage; m_view = new ViewPlayerScoreInfo(IsRefreshed); OpRes res = user.doQuery(param, QueryType.queryTypePlayerMember); m_view.genTable(m_result, res, user, this, param); if (!string.IsNullOrEmpty(m_creator)) { m_levelStr.InnerHtml = user.getOpLevelMgr().getCurLevelStr(m_creator); } }