Esempio n. 1
0
        public string GetNoticeList(int pageIndex, int pageSize, out int totalRecords)
        {
            StringBuilder sb   = new StringBuilder();
            Notice        bll  = new Notice();
            var           list = bll.GetListExceptContent(pageIndex, pageSize, out totalRecords, "", null);

            if (list == null || list.Count == 0)
            {
                return("[]");
            }
            return(sb.ToString());
        }
Esempio n. 2
0
        private void Bind()
        {
            //查询条件
            GetSearchItem();

            int totalRecords = 0;

            Notice bll = new Notice();

            rpData.DataSource = bll.GetListExceptContent(pageIndex, pageSize, out totalRecords, sqlWhere, parms == null ? null : parms.ToArray());
            rpData.DataBind();

            myDataAppend += "<div id=\"myDataForPage\" style=\"display:none;\">[{\"PageIndex\":\"" + pageIndex + "\",\"PageSize\":\"" + pageSize + "\",\"TotalRecord\":\"" + totalRecords + "\",\"QueryStr\":\"" + queryStr + "\"}]</div>";
        }