コード例 #1
0
        public virtual bool Validate()
        {
            this.validErrors = string.Empty;
            if (this.searchParams == null)
            {
                this.validErrors += "请传入搜索参数";
                return(false);
            }

            if (this.searchParams != null && this.searchParams.createDate != null &&
                this.searchParams.createDate.Length > 2)
            {
                this.validErrors += "搜索参数【创建日期】传入不正确";
                return(false);
            }

            if (pageInfo == null)
            {
                pageInfo = new RequestPageInfo();
            }

            return(string.IsNullOrEmpty(this.validErrors));
        }
コード例 #2
0
 protected RichSearchNoParamModel()
 {
     pageInfo = new RequestPageInfo();
 }
コード例 #3
0
 protected RichSearchBaseModel()
 {
     pageInfo = new RequestPageInfo();
 }