using System;
|
using System.Collections.Generic;
|
using System.Data;
|
using System.Linq;
|
using System.Reflection;
|
using System.Web;
|
using Terra.YaoGan.Common;
|
using Terra.YaoGan.Service;
|
|
namespace Terra.YaoGan.Web.Ashx
|
{
|
/// <summary>
|
/// DataDZZH 的摘要说明
|
/// </summary>
|
public class DataDZZH : 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 });
|
}
|
}
|
|
|
//获取地质灾害信息
|
public void GetDZZH(HttpContext context)
|
{
|
string SQL = "SELECT COUNT(LEIXING) NUMBER,LEIXING from DZZH GROUP BY leixing";
|
GetTableCommon gt= new GetTableCommon();
|
DataTable dt = gt.GetTable(SQL);
|
string jsonStr = DataTableToJson.DtToJson(dt);
|
context.Response.Write(jsonStr);
|
|
|
}
|
//获取湟水河信息
|
public void GetHSH(HttpContext context)
|
{
|
string SQL = "SELECT * from HSH where Tname='HSH'";
|
GetTableCommon gt = new GetTableCommon();
|
DataTable dt = gt.GetTable(SQL);
|
string jsonStr = DataTableToJson.DtToJson(dt);
|
context.Response.Write(jsonStr);
|
}
|
|
|
//获取全省热熔
|
public void GetQSSRR(HttpContext context)
|
{
|
string SQL = "select * from HSH where Tname='QSRR'";
|
GetTableCommon gt = new GetTableCommon();
|
DataTable dt = gt.GetTable(SQL);
|
string jsonStr = DataTableToJson.DtToJson(dt);
|
context.Response.Write(jsonStr);
|
}
|
|
|
|
|
public bool IsReusable
|
{
|
get
|
{
|
return false;
|
}
|
}
|
}
|
}
|