13693261870
2024-04-02 2a1b873b4b78b508d5d53c57992e734c56619df8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Web;
using Terra.YaoGan.Service;
using Terra.YaoGan.Common;
using System.Data;
 
namespace Terra.YaoGan.Web.Ashx
{
    /// <summary>
    /// Third 的摘要说明
    /// </summary>
    public class Third : IHttpHandler
    {
 
        public void ProcessRequest(HttpContext context)
        {
            string Action = context.Request["Action"];
 
            MethodInfo mif = this.GetType().GetMethod(Action) ;
            if (mif != null)
            {
                mif.Invoke(this,new object[] { context});
            }
 
 
 
            //context.Response.ContentType = "text/plain";
            //context.Response.Write("Hello World");
        }
 
 
        //获取三级目录
        public  void GetThird(HttpContext context)
        {
            string where = context.Request["id"];
            GetTableBySql gt = new GetTableBySql();
            DataTable   dt=gt.GetSecondAndThirdCount(where);
            if (dt.Rows.Count == 0)
            {
                context.Response.Write("number");
            }else
            {
                context.Response.Write("numbers");
            }
        }
 
 
 
        public  void GetThirdData(HttpContext context)
        {
            string where = context.Request["id"];
            GetTableBySql gt = new GetTableBySql();
            DataTable dt = gt.GetSecondAndThirdTable(where);
            context.Response.Write(DataTableToJson.DtToJson(dt));
 
        }
 
 
 
 
 
        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}