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

(开头部分) 8KB

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

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

namespace CY_ZZJY.Web.admin.user
{
    /// <summary>
    /// query 的摘要说明
    /// </summary>
    public class query : IHttpHandler
    {
        private SYS_MENU_Service _SYS_MENU_Service = new SYS_MENU_Service();
        private SYS_USER_Service _SYS_USER_Service = new SYS_USER_Service();
        private SYS_ROLE_MENU_PERMISSION_Service _SYS_ROLE_MENU_PERMISSION_Service = new SYS_ROLE_MENU_PERMISSION_Service();
        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 "人员明细信息":
                    {
                        #region 参数
                        string name = string.Empty;
                        string orgId = string.Empty;
                        if (!string.IsNullOrEmpty(context.Request.Params["name"].ToString()))
                            name = context.Request.Params["name"].ToString().Trim();
                        if (!string.IsNullOrEmpty(context.Request.Params["orgId"].ToString()))
                            orgId = context.Request.Params["orgId"].ToString().Trim();
                        #endregion
                        EasyUIGridResult dtResult = this._SYS_USER_Service.Query(orgId, name, pageIndex, pageSize);
                        string result = BuildJosnData_EasyUI.BuildJosnData_By_DataTable_NoFooter(dtResult.RecordCount, dtResult.DataResult);
                        context.Response.Write(result);
                        break;
                    }
                case "删除人员信息":
                    {
                        #region 参数
                        string user_id = string.Empty;
                        if (!string.IsNullOrEmpty(context.Request.Params["user_id"].ToString()))
                            user_id = context.Request.Params["user_id"].ToString().Trim();
                        #endregion
                        bool flag = this._SYS_USER_Service.Delete(user_id);
                        Mdl_SYS_USER _Mdl_SYS_USER = this._SYS_USER_Service.GetEntity(user_id);
                        if (_Mdl_SYS_USER != null)
                        { bool flag1 = this._SYS_ROLE_MENU_PERMISSION_Service.DeleteByRoleID(_Mdl_SYS_USER.ROLE_ID); }
                        if (flag == true)
                            context.Response.Write("True");
                        else
                            context.Response.Write("False");
后面还有 119 行代码,购买后查看完整代码

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

AI 解读 AI

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

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