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 Page_Load(object sender, EventArgs e) { RightMgr.getInstance().opCheck("", Session, Response); string acc = ""; if (!IsPostBack) { if (m_gen.parse(Request)) { acc = m_gen.m_creator; } else { acc = Request.QueryString["acc"]; if (string.IsNullOrEmpty(acc)) { return; } m_gen.m_creator = acc; } } GMUser user = (GMUser)Session["user"]; ParamMemberInfo param = new ParamMemberInfo(); param.m_creator = acc; param.m_searchDepth = 1; param.m_curPage = m_gen.curPage; param.m_countEachPage = m_gen.rowEachPage; OpRes res = user.doQuery(param, QueryType.queryTypePlayerMember); m_view.genTable(m_result, res, user, this, param); m_levelStr.InnerHtml = user.getOpLevelMgr().getCurLevelStr(acc); }
protected void initQueryMember(GMUser user) { ParamMemberInfo param = new ParamMemberInfo(); param.m_searchDepth = 1; URLParam uparam = new URLParam(); uparam.m_url = DefCC.ASPX_SCORE_GM; user.getOpLevelMgr().addRootAcc(param.getRootUser(user), uparam); m_levelStr.InnerHtml = user.getOpLevelMgr().getCurLevelStr(param.getRootUser(user)); OpRes res = user.doQuery(param, QueryType.queryTypeGmAccount); m_view.genTable(m_result, res, user, new EventHandler(onScoreOp), param); }
protected void onQueryMember1(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamMemberInfo param = new ParamMemberInfo(); m_searchCond.fillCondtion(param, user); param.m_searchDepth = 1; URLParam uparam = new URLParam(); uparam.m_url = @"/appaspx/account/AccountSearchSwitch.aspx"; user.getOpLevelMgr().addRootAcc(param.getRootUser(user), uparam); m_levelStr.InnerHtml = user.getOpLevelMgr().getCurLevelStr(param.getRootUser(user)); OpRes res = user.doQuery(param, QueryType.queryTypeGmAccount); m_view.genTable(m_result, res, user, new EventHandler(onSetingAcc), param); }
protected void onQuery(object sender, EventArgs e) { m_time.Text = searchDateSpan.getDateTimeSpanLeft() + " - " + searchDateSpan.getDateTimeSpanRight(); GMUser user = (GMUser)Session["user"]; URLParam uparam = new URLParam(); uparam.m_key = "acc"; uparam.m_value = ItemHelp.getAccountSpecial(user); uparam.addExParam("time", m_time.Text.TrimStart(' ').TrimEnd(' ')); uparam.addExParam("detail", 0); // 细节显示区是代理 uparam.m_url = DefCC.ASPX_WIN_LOSE; user.getOpLevelMgr().addRootAcc(user.m_user, uparam); onQuery("", 0, user); m_levelStr.InnerHtml = user.getOpLevelMgr().getCurLevelStr(user.m_user); }
private void addSubLevel(GMUser user, string creator, string acc, ParamWinLose p) { URLParam uparam = new URLParam(); uparam.m_key = "acc"; uparam.m_value = acc; uparam.addExParam("time", p.m_time.TrimStart(' ').TrimEnd(' ')); uparam.addExParam("detail", p.m_detailType); uparam.m_url = DefCC.ASPX_WIN_LOSE; if (p.m_creatorIsSubAcc) { user.getOpLevelMgr().addSub(user.m_user, acc, uparam); } else { user.getOpLevelMgr().addSub(creator, acc, uparam); } }
protected void queryNextLevelMember(string acc, GMUser user) { ParamMemberInfo param = new ParamMemberInfo(); param.m_searchDepth = 1; param.m_creator = acc; OpRes res = user.doQuery(param, QueryType.queryTypeGmAccount); m_view.genTable(m_result, res, user, new EventHandler(onScoreOp), param); m_levelStr.InnerHtml = user.getOpLevelMgr().getCurLevelStr(acc); }
protected void onQuery(string creator, int detailType, GMUser user) { m_levelStr.InnerHtml = user.getOpLevelMgr().getCurLevelStr(creator); ParamWinLose param = new ParamWinLose(); param.m_creator = creator == "" ? ItemHelp.getAccountSpecial(user) : creator; param.m_detailType = detailType; param.m_time = m_time.Text; param.m_playerAcc = m_acc.Text; if (creator == "") { param.m_creatorIsSubAcc = ItemHelp.isSubAcc(user); } OpRes res = user.doStat(param, StatType.statTypeWinLose); if (param.isStatOnePlayer()) { ViewPlayerWinLose v = new ViewPlayerWinLose(); v.genTable(m_result, res, user); } else { genTableSumResult(m_result, res, user, param); if (res == OpRes.opres_success) { if (param.isDetailSubAgent()) { genTableDetailResult(m_detailResult, res, user, param, s_head); m_info.InnerText = string.Format("{0}的直属下线", creator); } else { genTableDetailResult(m_detailResult, res, user, param, s_head1); m_info.InnerText = string.Format("{0}的直属会员", creator); } } } }
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); } }
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"]; ParamMemberInfo param = new ParamMemberInfo(); param.m_creator = acc; param.m_searchDepth = 1; OpRes res = user.doQuery(param, QueryType.queryTypeGmAccount); m_view.genTable(m_result, res, user, new EventHandler(onSetingAcc), param); m_creator.InnerHtml = user.getOpLevelMgr().getCurLevelStr(acc); }