protected void onStat(object sender, EventArgs e)
        {
            ParamStatSeller param = new ParamStatSeller();

            param.m_timeRange = m_time.Text;
            param.m_sellerMgr = "";
            param.m_statType  = Convert.ToInt32(m_way.SelectedValue);

            GMUser user = (GMUser)Session["user"];
            OpRes  res  = user.doStat(param, StatType.statTypeSeller);

            switch (param.m_statType)
            {
            case (int)StatSellerType.stat_seller_type_day:
            case (int)StatSellerType.stat_seller_type_month:
            {
                genTableByDay(m_result, res, user);
            }
            break;

            case (int)StatSellerType.stat_seller_type_seller:
            {
                genTableBySeller(m_result, res, user, s_head2);
            }
            break;

            case (int)StatSellerType.stat_seller_type_mgr:
            {
                genTableBySeller(m_result, res, user, s_head3);
            }
            break;
            }
        }
        protected void onStat(object sender, EventArgs e)
        {
            ParamStatPlayer param = new ParamStatPlayer();

            param.m_time      = m_time.Text;
            param.m_statType  = Convert.ToInt32(m_way.SelectedValue);
            param.m_moneyType = m_moneyType.SelectedIndex;

            GMUser user = (GMUser)Session["user"];
            OpRes  res  = user.doStat(param, StatType.statTypePlayer);

            genTableByDay(m_result, res, user);
        }
예제 #3
0
        protected void onQuery(object sender, EventArgs e)
        {
            GMUser user = (GMUser)Session["user"];

            ParamIncomeExpenses param = new ParamIncomeExpenses();

            param.m_time         = m_time.Text;
            param.m_playerGainDb = Convert.ToInt32(m_player.SelectedValue);
            param.m_property     = Convert.ToInt32(m_property.SelectedValue);

            TablePlayerIncomeExpenses view = new TablePlayerIncomeExpenses();
            OpRes res = user.doStat(param, StatType.statTypePlayerIncomeExpenses);

            view.genTable(user, m_result, res, param);
        }
        protected void onStat(object sender, EventArgs e)
        {
            GMUser user = (GMUser)Session["user"];
            ParamStatSellerStep param = new ParamStatSellerStep();

            if (string.IsNullOrEmpty(m_acc))
            {
                param.m_creator  = user.m_user;
                param.m_statType = 1;
            }
            else
            {
                param.m_creator = m_acc;
            }
            param.m_time = __gmAccountCascadeStaticTime.Text;

            OpRes res = user.doStat(param, StatType.statTypeSellerStep);

            m_view.genTable(m_result, res, user);
        }
        protected void onStat(object sender, EventArgs e)
        {
            GMUser          user  = (GMUser)Session["user"];
            ParamStatSeller param = new ParamStatSeller();

            param.m_statType = Convert.ToInt32(m_way.SelectedValue);
            m_searchCond.fillCondtion(param, user);

            OpRes res = user.doStat(param, StatType.statTypeSellerAdmin);

            switch (param.m_statType)
            {
            case (int)StatSellerType.stat_seller_type_day:
            case (int)StatSellerType.stat_seller_type_month:
            {
                genTableByDay(m_result, res, user);
            }
            break;
            }
        }
        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 onQuery(object sender, EventArgs e)
        {
            GMUser user = (GMUser)Session["user"];

            ParamQuery param = new ParamQuery();

            param.m_time          = m_time.Text;
            param.m_curPage       = m_gen.curPage;
            param.m_countEachPage = m_gen.rowEachPage;

            TableRechargePlayer view = new TableRechargePlayer();
            OpRes res = user.doStat(param, StatType.statTypeRechargePlayer);

            m_page.InnerHtml = "";
            m_foot.InnerHtml = "";
            view.genTable(user, m_result, res);

            string page_html = "", foot_html = "";

            m_gen.genPage(param, @"/appaspx/td/TdRechargePlayer.aspx", ref page_html, ref foot_html, user);
            m_page.InnerHtml = page_html;
            m_foot.InnerHtml = foot_html;
        }
예제 #8
0
    public override OpRes query(GMUser user, ParamQuery param)
    {
        OpRes res = user.doStat(param, StatType.statTypeLTV);

        return(res);
    }