CY_ZZJY.Web/admin/dictionaries/query.ashx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CY_ZZJY.Service.Sys;
using CY_ZZJY.EasyUI;

namespace CY_ZZJY.Web.admin.dictionaries
{
    /// <summary>
    /// query 的摘要说明
    /// </summary>
    public class query : IHttpHandler
    {
        private SYS_DICTIONARIES_Service _SYS_DICTIONARIES_Service = new SYS_DICTIONARIES_Service();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            int pageIndex = Convert.ToInt32(context.Request.Params["page"]);
            int pageSize = Convert.ToInt32(context.Request.Params["rows"]);
            string action = string.Empty;
            if (!string.IsNullOrEmpty(context.Request.Params["action"].ToString()))
                action = context.Request.Params["action"].ToString().Trim();
            switch (action.Trim())
            {
                #region 数据字典信息
                case "数据字典明细信息":
                    {
                        #region 参数
                        string type = string.Empty;
                        if (!string.IsNullOrEmpty(context.Request.Params["type"].ToString()))
                            type = context.Request.Params["type"].ToString().Trim();
                        #endregion
                        EasyUIGridResult dtResult = this._SYS_DICTIONARIES_Service.Query(type, pageIndex, pageSize);
                        string result = BuildJosnData_EasyUI.BuildJosnData_By_DataTable_NoFooter(dtResult.RecordCount, dtResult.DataResult);
                        context.Response.Write(result);
                        break;
                    }
                case "删除数据字典":
                    {
                        #region 参数
                        string id = string.Empty;
                        if (!string.IsNullOrEmpty(context.Request.Params["id"].ToString()))
                            id = context.Request.Params["id"].ToString().Trim();
                        #endregion
                        bool flag = this._SYS_DICTIONARIES_Service.Delete(id);
                        if (flag == true)
                            context.Response.Write("True");
                        else
                            context.Response.Write("False");
                        break;
                    }
                #endregion
            }
        }
        public bool IsReusable
        {
            get { return false; }
        }
    }
后面还有 1 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。