日期:2014-05-17 浏览次数:20426 次
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string[] pItem = context.Request["points"].Split(new char[] { '|' });
String pointString = "";
for (int i = 0; i < pItem.Length; i++)
{
pItem[i] = GetExtendId(pItem[i]);
//if (!pointString.Contains(pItem[i]))
//{
if (pItem.Length == 1)
{
pointString = pItem[i];
}
else
{
pointString += "|" + pItem[i];
}
//}
}
if (context.Session["tag"] != null)
{
context.Session["tag"] = context.Session["tag"].ToString() + "|" + pointString;
}
else
context.Session["tag"] = pointString;
ybTrend.ChartRespData respData = ybTrend.Utilites.QueryChartRespData(pointString,
context.Request["startTime"], context.Request["endTime"],
context.Request["period"]);
JavaScriptSerializer jsonSerializer = new JavaScriptSerializer();
string resp = jsonSerializer.Serialize(respData);
context.Response.Write(resp);
context.Response.End();
}
protected void