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

(开头部分) 3KB

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

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

namespace CY_ZZJY.Web.admin.organization
{
    /// <summary>
    /// query 的摘要说明
    /// </summary>
    public class query : IHttpHandler
    {
        private  SYS_ORGANIZATION_Service _SYS_ORGANIZATION_Service = new SYS_ORGANIZATION_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 "加载组织机构":
                    {
                        string jsonTree = string.Empty;
                        string PARENT_ID = context.Request.Params["PARENT_ID"].ToString().Trim();
                        jsonTree = CY_ZZJY.Utilities.JsonOrganizationTree.CreateEasyUITreeGrid(PARENT_ID);
                        context.Response.Write(jsonTree);
                        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_ORGANIZATION_Service.SetIsEnabled(id, "Y");
                        if (flag == true)
                            context.Response.Write("True");
                        else
                            context.Response.Write("False");
                        break;
                    }
                case "设置是否启用":
                    {
                        #region 参数
                        string id = string.Empty;
                        string isenabled = string.Empty;
                        if (!string.IsNullOrEmpty(context.Request.Params["id"].ToString()))
                            id = context.Request.Params["id"].ToString().Trim();
                        if (!string.IsNullOrEmpty(context.Request.Params["isenabled"].ToString()))
                            isenabled = context.Request.Params["isenabled"].ToString().Trim();
                        #endregion
                        bool flag = this._SYS_ORGANIZATION_Service.SetIsEnabled(id, isenabled);
                        if (flag == true)
                            context.Response.Write("True");
后面还有 27 行代码,购买后查看完整代码

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

AI 解读 AI

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

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