|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/2cfdeb0f/aecb9789/ |
?#pragma checksum "D:\wwwroot\kryihaiequip\wwwroot\Message\ashx\XunPan.ashx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "35D92198E843BA9F39601C76471591CE"
#line 1 "D:\wwwroot\kryihaiequip\wwwroot\Message\ashx\XunPan.ashx"
using System;
using System.Data;
using System.Web;
using Udows.Web.BusinessRules;
public class XunPan : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string sql = "<Company needitem=\"CompanyName\"/>";
DataSet set = (DataSet)CFactory.CGetData(sql);
string sql2 = "<Message needitem=\"ID\" IsDel=\"0\" IsRead=\"0\"/>";
DataSet set2 = (DataSet)CFactory.CGetData(sql2);
string jsonStr = "{";
if (set != null && set.Tables[0].Rows.Count > 0)
{
jsonStr += "\"CompanyName\":\"" + set.Tables[0].Rows[0]["CompanyName"] + "\"";
}
if (set2 != null)
{
jsonStr += ",\"NoReadCount\":\"" + set2.Tables[0].Rows.Count + "\"";
}
jsonStr += "}";
context.Response.Write(jsonStr);
}
public bool IsReusable
{
get
{
return false;
}
}
}
#line default
#line hidden