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;
|
}
|
}
|
}
|
}
|