EasyShop/ashx/AddMenuList.ashx.cs

(开头部分) 1KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using conn;
using System.Text;
using System.Data;
using FormatJosn;
using ExeSql;
using System.Data.SqlClient;
using System.Net;
using MyModels;


namespace EasyShop.ashx
{
    /// <summary>
    /// AddMenuList 的摘要说明
    /// </summary>
    public class AddMenuList : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            //classid, classname, href
            string cid = context.Request.Params["classid"].ToString();
            string fileName = context.Request.Params["filename"].ToString();
            string menuName = context.Request.Params["classname"].ToString();
            string menuLink = context.Request.Params["href"].ToString();
            TB_MC_SysNavMenu tms = new TB_MC_SysNavMenu();
            tms.ID = tms.GetMaxId() + 1;
            tms.CID = int.Parse(cid);
            tms.Dj = 1;
            tms.addtime = DateTime.Now;
            tms.IsActive = true;
            tms.NavMenuName = menuName;
            tms.ClassFile = fileName;
            tms.IconImg = "icon_xtsz.png";
            if (!string.IsNullOrEmpty(menuLink))
            {
                tms.NavAspx = menuLink;
            }
            else
            {
                tms.NavAspx = string.Empty;
            }
            int k = tms.Add();
            string result = "NO";
            if (k > 0)
            {
                result = "OK";
            }
            context.Response.Write(result);
        }

        public bool IsReusable
        {
            get
            {
后面还有 5 行代码,购买后查看完整代码

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

AI 解读 AI

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

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