示例#1
0
        private void Deletes(HttpContext context)
        {
            string text = context.Request["logIds"];

            if (string.IsNullOrEmpty(text))
            {
                throw new HidistroAshxException("错误的参数");
            }
            int num = EventLogs.DeleteLogs(text);

            if (num > 0)
            {
                base.ReturnSuccessResult(context, $"成功删除了{num}个操作日志", 0, true);
                return;
            }
            throw new HidistroAshxException("在删除过程中出现未知错误");
        }
示例#2
0
        private void DeleteCheck()
        {
            string text = "";

            if (!string.IsNullOrEmpty(base.Request["CheckBoxGroup"]))
            {
                text = base.Request["CheckBoxGroup"];
            }
            if (text.Length <= 0)
            {
                this.ShowMsg("请先选择要删除的操作日志项", false);
                return;
            }
            int num = EventLogs.DeleteLogs(text);

            this.BindLogs();
            this.ShowMsg(string.Format("成功删除了{0}个操作日志", num), true);
        }
示例#3
0
        private void DeleteCheck()
        {
            string strIds = "";

            if (!string.IsNullOrEmpty(base.Request["CheckBoxGroup"]))
            {
                strIds = base.Request["CheckBoxGroup"];
            }
            if (strIds.Length <= 0)
            {
                ShowMsg("请先选择要删除的操作日志项", false);
            }
            else
            {
                int num = EventLogs.DeleteLogs(strIds);
                BindLogs();
                ShowMsg(string.Format("成功删除了{0}个操作日志", num), true);
            }
        }