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
using System;
using System.Reflection;
using System.Web;
using Terra.YaoGan.Common;
using Terra.YaoGan.Service;
 
namespace Terra.YaoGan.Web.Ashx
{
    public class DataQL : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            string name = context.Request["Action"];
            MethodInfo method = base.GetType().GetMethod(name);
            if (method != null)
            {
                method.Invoke(this, new object[]
                {
                    context
                });
            }
        }
        public void GetQL(HttpContext context)
        {
            string str = context.Request["tabName"];
            string text = "SELECT  *  FROM  " + str;
            string s = DataTableToJson.DtToJson(new GetTableCommon().GetTable(text));
            context.Response.Write(s);
        }
 
        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}