public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            GzipExtention.Gzip(context);
            switch (context.Request["action"])
            {
            case "ProductSearch":
                this.ProcessProductSearch(context);
                return;

            case "ProductDetails":
                this.ProcessProductDetails(context);
                return;

            case "TaobaoProductIdAdd":
                this.ProcessTaobaoProductIdAdd(context);
                return;

            case "TaobaoProductIsExit":
                this.ProcessTaobaoProductIsExit(context);
                return;

            case "TaobaoProductDown":
                this.ProcessTaobaoProductDown(context);
                return;
            }
            context.Response.Write("error");
        }
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            GzipExtention.Gzip(context);
            string text = context.Request.Form["action"];
            string a    = text;

            if (a == "OrderAdd")
            {
                this.ProcessOrderAdd(context);
            }
        }
Beispiel #3
0
        public void ProcessRequest(HttpContext context)
        {
            string str2;

            context.Response.ContentType = "application/json";
            GzipExtention.Gzip(context);
            string str = context.Request["action"];

            if (((str2 = str) != null) && (str2 == "PurchaseOrderAdd"))
            {
                this.ProcessPurchaseOrderAdd(context);
            }
        }
Beispiel #4
0
        public void ProcessRequest(System.Web.HttpContext context)
        {
            context.Response.ContentType = "application/json";
            GzipExtention.Gzip(context);
            string text = context.Request["action"];
            string a;

            if ((a = text) != null)
            {
                if (!(a == "PurchaseOrderAdd"))
                {
                    return;
                }
                this.ProcessPurchaseOrderAdd(context);
            }
        }
        public void ProcessRequest(HttpContext context)
        {
            this.myContext = context;
            context.Response.ContentType = "text/plain";
            GzipExtention.Gzip(context);
            string text = context.Request.Form["action"];

            switch (text)
            {
            case "ProductSearch":
                this.ProcessProductSearch(context);
                break;

            case "ProductDetails":
                this.ProcessProductDetails(context);
                break;

            case "TaobaoProductMake":
                this.ProcessTaobaoProductMake(context);
                break;

            case "TaobaoProductDetails":
                this.ProcessTaobaoProductDetails(context);
                break;

            case "TaobaoProductIdAdd":
                this.ProcessTaobaoProductIdAdd(context);
                break;

            case "TaobaoProductIsExit":
                this.ProcessTaobaoProductIsExit(context);
                break;

            case "TaobaoProductDown":
                this.ProcessTaobaoProductDown(context);
                break;

            default:
                context.Response.Write("error");
                break;
            }
        }
Beispiel #6
0
        public void ProcessRequest(System.Web.HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            GzipExtention.Gzip(context);
            string text = context.Request["action"];

            if (text != null)
            {
                if (text == "TaobaoProductIsExit")
                {
                    this.ProcessTaobaoProductIsExit(context);
                    return;
                }
                if (text == "TaobaoProductDown")
                {
                    this.ProcessTaobaoProductDown(context);
                    return;
                }
            }
            context.Response.Write("error");
        }
Beispiel #7
0
        public void ProcessRequest(HttpContext context)
        {
            wid = context.Session[DTKeys.SESSION_WEB_ID] as string;
            if (string.IsNullOrEmpty(wid))
            {
                return;
            }
            context.Response.ContentType = "text/plain";
            GzipExtention.Gzip(context);
            switch (context.Request["action"])
            {
            case "TaobaoProductIsExit":
                this.ProcessTaobaoProductIsExit(context);
                return;

            case "TaobaoProductDown":
                this.ProcessTaobaoProductDown(context);
                return;
            }
            context.Response.Write("error");
        }
        public void ProcessRequest(System.Web.HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            GzipExtention.Gzip(context);
            string text = context.Request["action"];
            string a;

            if ((a = text) != null)
            {
                if (a == "ProductSearch")
                {
                    this.ProcessProductSearch(context);
                    return;
                }
                if (a == "ProductDetails")
                {
                    this.ProcessProductDetails(context);
                    return;
                }
                if (a == "TaobaoProductIdAdd")
                {
                    this.ProcessTaobaoProductIdAdd(context);
                    return;
                }
                if (a == "TaobaoProductIsExit")
                {
                    this.ProcessTaobaoProductIsExit(context);
                    return;
                }
                if (a == "TaobaoProductDown")
                {
                    this.ProcessTaobaoProductDown(context);
                    return;
                }
            }
            context.Response.Write("error");
        }