示例#1
0
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <returns></returns>
        public ActionResult DeleteBatch()
        {
            List <string>  list     = WebUtil.GetFormObject <List <string> >("list", null);
            ReportProvider provider = new ReportProvider();
            int            line     = provider.Delete(list);

            if (line > 0)
            {
                this.ReturnJson.AddProperty("Key", "1000");
                this.ReturnJson.AddProperty("Value", "删除成功");
            }
            else
            {
                this.ReturnJson.AddProperty("Key", "1001");
                this.ReturnJson.AddProperty("Value", "删除失败");
            }
            return(Content(this.ReturnJson.ToString()));
        }
示例#2
0
        /// <summary>
        /// 删除报表
        /// </summary>
        /// <returns></returns>
        public ActionResult Delete()
        {
            string         ReportNum = WebUtil.GetFormValue <string>("ReportNum", string.Empty);
            ReportProvider provider  = new ReportProvider();
            int            line      = provider.Delete(ReportNum);

            if (line > 0)
            {
                this.ReturnJson.AddProperty("Key", "1000");
                this.ReturnJson.AddProperty("Value", "删除成功");
            }
            else
            {
                this.ReturnJson.AddProperty("Key", "1001");
                this.ReturnJson.AddProperty("Value", "删除失败");
            }
            return(Content(this.ReturnJson.ToString()));
        }
示例#3
0
        /// <summary>
        /// 删除报表
        /// </summary>
        /// <returns></returns>
        public ActionResult Delete()
        {
            List <string>  list        = WebUtil.GetFormObject <List <string> >("list");
            string         CompanyID   = WebUtil.GetFormValue <string>("CompanyID", string.Empty);
            ReportProvider provider    = new ReportProvider(CompanyID);
            int            returnValue = provider.Delete(list);
            DataResult     result      = new DataResult();

            if (returnValue > 0)
            {
                result.Code    = (int)EResponseCode.Success;
                result.Message = "自定义报表删除成功";
            }
            else
            {
                result.Code    = (int)EResponseCode.Exception;
                result.Message = "自定义报表删除失败";
            }
            return(Content(JsonHelper.SerializeObject(result)));
        }