Example #1
0
        private void GetMsgPageList()
        {
            int    CurrentPage = ReInt("CurrentPage", 1);
            string col         = ReStr("col", "*");
            int    PageSize    = ReInt("PageSize", 20);
            string Order       = ReStr("Order", " MsgStatusId, MsgId DESC ");

            DAL.MsgDAL    dal = new DAL.MsgDAL();
            StringBuilder s   = new StringBuilder();

            string DeviceId = ReStr("DeviceId", "");

            if (DeviceId == "")
            {
                throw new Exception("用户编号不能为空!");
            }

            s.Append(" 1=1 ");

            s.Append(" and TargetDeviceId='" + DeviceId + "' ");

            DataSet ds = dal.GetPageList(s.ToString(), Order, CurrentPage, PageSize, col);

            RePage2(ds);
        }