Exemplo n.º 1
0
        /// <summary>
        /// 删除操作
        /// </summary>
        /// <param name="id">数据ID</param>
        /// <returns></returns>
        private string DeleteData(string id)
        {
            BNotice bllBNotice = new BNotice();
            //返回结果
            string msg = string.Empty;

            string[] noticeids = { "" };
            //判断是不是多条数据删除
            if (id.Contains(","))
            {
                noticeids = id.Split(',');
            }
            else
            {
                noticeids[0] = id;
            }
            //批量删除数据
            if (bllBNotice.DeleteGovNotice(noticeids))
            {
                msg = "true";
            }
            else
            {
                msg = "false";
            }
            return(msg);
        }