Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            RightMgr.getInstance().opCheck("viewlog", Session, Response);

            try
            {
                m_reqPage = Convert.ToInt32(Request["page"]);
                if (m_reqPage == 0)
                {
                    m_reqPage = 1;
                }
            }
            catch (System.Exception ex)
            {
                m_reqPage = 1;
            }
            GMUser user = (GMUser)Session["user"];

            genTable(m_reqPage, user);
            long total             = 0;
            PageBrowseGenerator pg = new PageBrowseGenerator();

            // user.totalRecord = OpLogMgr.getInstance().totalRecord;
            m_page.InnerHtml = pg.genPageFoot(m_reqPage, ROW_EACH_PAGE, @"/appaspx/LogViewer.aspx", ref total, user);
            if (total != 0)
            {
                m_foot.InnerHtml = m_reqPage + "/" + total;
            }
        }
    // 生成分页
    public virtual void genPage(ParamQueryBase queryParam, string url, ref string pageLink, ref string foot, GMUser user)
    {
        PageBrowseGenerator p = new PageBrowseGenerator();
        long total_page       = 0;

        pageLink = p.genPageFoot(queryParam.m_curPage, m_rowEachPage, url, ref total_page, user);
        if (total_page != 0)
        {
            foot = queryParam.m_curPage + "/" + total_page;
        }
    }
    public override void genPage(ParamQueryBase query_param, string url, ref string page_link, ref string foot, GMUser user)
    {
        ParamQueryOpLog     dparam            = (ParamQueryOpLog)query_param;
        PageBrowseGenerator p                 = new PageBrowseGenerator();
        long total_page                       = 0;
        Dictionary <string, object> url_param = new Dictionary <string, object>();

        url_param["opType"] = dparam.m_logType;
        url_param["time"]   = dparam.m_time;
        page_link           = p.genPageFoot(query_param.m_curPage, m_rowEachPage, url, ref total_page, user, url_param);
        if (total_page != 0)
        {
            foot = query_param.m_curPage + "/" + total_page;
        }
    }
    public override void genPage(ParamQueryBase query_param, string url, ref string page_link, ref string foot, GMUser user)
    {
        ParamQueryGift      dparam            = (ParamQueryGift)query_param;
        PageBrowseGenerator p                 = new PageBrowseGenerator();
        long total_page                       = 0;
        Dictionary <string, object> url_param = new Dictionary <string, object>();

        url_param["state"]    = dparam.m_state;
        url_param["playerId"] = dparam.m_param;
        page_link             = p.genPageFoot(query_param.m_curPage, m_rowEachPage, url, ref total_page, user, url_param);
        if (total_page != 0)
        {
            foot = query_param.m_curPage + "/" + total_page;
        }
    }
    public override void genPage(ParamQueryBase queryParam, string url, ref string page_link, ref string foot, GMUser user)
    {
        ParamMemberInfo     dparam           = (ParamMemberInfo)queryParam;
        PageBrowseGenerator p                = new PageBrowseGenerator();
        long total_page                      = 0;
        Dictionary <string, object> urlParam = new Dictionary <string, object>();

        urlParam["creator"] = dparam.m_creator;

        page_link = p.genPageFoot(queryParam.m_curPage, m_rowEachPage, url, ref total_page, user, urlParam);
        if (total_page != 0)
        {
            foot = queryParam.m_curPage + "/" + total_page;
        }
    }
    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;
        }
    }
Exemplo n.º 7
0
    public override void genPage(ParamQueryBase query_param, string url, ref string page_link, ref string foot, GMUser user)
    {
        ParamQueryRecharge  dparam            = (ParamQueryRecharge)query_param;
        PageBrowseGenerator p                 = new PageBrowseGenerator();
        long total_page                       = 0;
        Dictionary <string, object> url_param = new Dictionary <string, object>();

        url_param["param"]  = dparam.m_param;
        url_param["way"]    = (int)dparam.m_way;
        url_param["time"]   = dparam.m_time;
        url_param["plat"]   = dparam.m_platIndex;
        url_param["result"] = dparam.m_result;
        url_param["range"]  = dparam.m_range;
        url_param["server"] = dparam.m_gameServerIndex;
        page_link           = p.genPageFoot(query_param.m_curPage, m_rowEachPage, url, ref total_page, user, url_param);
        if (total_page != 0)
        {
            foot = query_param.m_curPage + "/" + total_page;
        }
    }
    public override void genPage(ParamQueryBase queryParam, string url, ref string pageLink, ref string foot, GMUser user)
    {
        ParamMoneyQuery     dparam           = (ParamMoneyQuery)queryParam;
        PageBrowseGenerator p                = new PageBrowseGenerator();
        long total_page                      = 0;
        Dictionary <string, object> urlParam = new Dictionary <string, object>();

        urlParam["param"]    = dparam.m_param;
        urlParam["time"]     = dparam.m_time;
        urlParam["way"]      = (int)dparam.m_way;
        urlParam["filter"]   = dparam.m_filter;
        urlParam["property"] = dparam.m_property;
        urlParam["range"]    = dparam.m_range;
        urlParam["gameId"]   = dparam.m_gameId;

        pageLink = p.genPageFoot(queryParam.m_curPage, m_rowEachPage, url, ref total_page, user, urlParam);
        if (total_page != 0)
        {
            foot = queryParam.m_curPage + "/" + total_page;
        }
    }