Exemple #1
0
        private void GetIMUserList()
        {
            int     num         = 0;
            int     num2        = 0;
            int     queryInt    = WebUtils.GetQueryInt("pagesize", 10);
            int     queryInt2   = WebUtils.GetQueryInt("page", 1);
            string  queryString = WebUtils.GetQueryString("sendertype");
            DataSet pagerData   = OnlineUser.GetPagerData("*", string.Concat(new string[]
            {
                " Not (UserType='",
                queryString,
                "' AND UserID=",
                WebUtils.GetQueryInt("senderid", 0).ToString(),
                ")"
            }), " IsOnline desc,UserType asc ", queryInt, queryInt2, ref num, ref num2);

            if (pagerData != null && pagerData.Tables.Count > 0)
            {
                DataTable dt = pagerData.Tables[0];
                base.Response.Write(JsonUtils.DataTableToJson(dt));
            }
            else
            {
                base.Response.Write(string.Empty);
            }
        }