Beispiel #1
0
        private string Get_MessageID(string strMessageGUID)
        {
            zlzw.BLL.MessageListBLL messageListBLL = new zlzw.BLL.MessageListBLL();
            DataTable dt = messageListBLL.GetList("MessageGUID='" + strMessageGUID + "'").Tables[0];

            return(dt.Rows[0]["MessageID"].ToString());
        }
Beispiel #2
0
        private int Load_MessageListRecordCount()
        {
            zlzw.BLL.MessageListBLL messageListBLL = new zlzw.BLL.MessageListBLL();
            DataTable dt = messageListBLL.GetList("IsEnable=1 and IsReply=1").Tables[0];

            return(dt.Rows.Count);
        }
Beispiel #3
0
        private void MessageList_BindGrid()
        {
            zlzw.BLL.MessageListBLL messageListBLL = new zlzw.BLL.MessageListBLL();
            DataTable dt = messageListBLL.GetList(grid1.PageSize, grid1.PageIndex + 1, "*", "PublishDate", 0, "desc", "IsEnable=1").Tables[0];

            grid1.DataSource = dt;
            grid1.DataBind();
        }
Beispiel #4
0
        private void Load_MessageList()
        {
            int nPageIndex = AspNetPager1.CurrentPageIndex;
            int nPageSize  = AspNetPager1.PageSize = 5;

            zlzw.BLL.MessageListBLL messageListBLL = new zlzw.BLL.MessageListBLL();
            DataTable dt = messageListBLL.GetList(nPageSize, nPageIndex, "*", "PublishDate", 0, "desc", "IsEnable=1 and IsReply=1").Tables[0];

            Repeater1.DataSource = dt;
            Repeater1.DataBind();
        }
Beispiel #5
0
        /// <summary>
        /// 获取总页数
        /// </summary>
        /// <returns></returns>
        private int Get_MessageListTotalCount()
        {
            zlzw.BLL.MessageListBLL messageListBLL = new zlzw.BLL.MessageListBLL();
            DataTable dt = messageListBLL.GetList("IsEnable=1").Tables[0];

            if (dt.Rows.Count > 0)
            {
                return(dt.Rows.Count);
            }
            else
            {
                return(0);
            }
        }