示例#1
0
        public PageIndex GetPageIndex()
        {
            if (this.qryData == null)
            {
                return(null);
            }
            string pistr = this.qryData.GetAttr("PageIndex");

            if (Func.AttrIsNull(pistr))
            {
                return(null);
            }
            PageIndex pi     = new PageIndex(pistr);
            string    action = this.qryData.GetAttr("PageAction");

            if (Func.AttrIsNull(action))
            {
                return(pi);
            }
            string jumpNo = this.qryData.GetAttr("JumpNo");

            if (Func.AttrIsNull(jumpNo))
            {
                pi.SetAction(action, 0);
            }
            else
            {
                pi.SetAction(action, Convert.ToInt32(jumpNo));
            }
            return(pi);
        }