/// <summary>
        /// 查询
        /// </summary>
        private void DoSelect()
        {
            ents = BusinessHandbook.FindAll(SearchCriterion);
            this.PageState.Add("BusinessHandbookList", ents);

            string url = this.Request.Url.GetLeftPart(UriPartial.Authority) + this.Request.ApplicationPath;

            this.PageState.Add("url", url);
        }
        private void DoBatchDelete()
        {
            IList <object> idList = RequestData.GetList <object>("IdList");

            if (idList != null && idList.Count > 0)
            {
                BusinessHandbook.DoBatchDelete(idList.ToArray());
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            BusinessHandbook ent = null;

            switch (this.RequestAction)
            {
            case RequestActionEnum.Delete:
                ent = this.GetTargetData <BusinessHandbook>();
                ent.DoDelete();
                this.SetMessage("删除成功!");
                break;

            default:
                if (RequestActionString == "batchdelete")
                {
                    DoBatchDelete();
                }
                else
                {
                    DoSelect();
                }
                break;
            }
        }