/// <summary>
        /// 批量删除操作
        /// </summary>
        public static void DoBatchDelete(params object[] args)
        {
            WebLink[] tents = WebLink.FindAll(Expression.In("Id", args));

            foreach (WebLink tent in tents)
            {
                tent.DoDelete();
            }
        }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            IntegratedManage.Model.WebLink ent = null;
            switch (this.RequestAction)
            {
            case RequestActionEnum.Delete:
                ent = this.GetTargetData <IntegratedManage.Model.WebLink>();
                ent.DoDelete();
                this.SetMessage("删除成功!");
                break;

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