⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dragclassupdate.ashx.cs

📁 易想商城系统
💻 CS
字号:
using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;

namespace YXShop.Web.Admin.Article
{
    /// <summary>
    /// Summary description for $codebehindclassname$
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class dragClassUpdate : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/html"; 
            if ((context.Request["Class_ID"] != "") && (context.Request["Parent_ID"] != "") && (context.Request["Channel_ID"] != ""))
            {
                int result = Update_Class(context.Request["Class_ID"].ToString(), context.Request["Parent_ID"].ToString(), context.Request["Channel_ID"].ToString());
                if (result == 0)
                {
                    context.Response.Write("1");
                }
                else if(result == 2)
                {
                    context.Response.Write("2");
                 } 
                else
                {
                    context.Response.Write("0");
                }
           }
            else
            {
                context.Response.Write("0");
            }
        }

        public int Update_Class(string Class_ID, string Parent_ID, string Channel_ID)
        {
            YXShop.BLL.YixiangChannelClass bll = new YXShop.BLL.YixiangChannelClass();
            return   bll.UpdateChannelClassSimple(Class_ID,Parent_ID,Channel_ID);
         }

        public bool IsReusable
        {
            get
            {
                return false ;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -