|
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/dc15253c/377bd30d/ |
?#pragma checksum "D:\wwwroot\jmxbaogao\wwwroot\Counter\NewAntiCodeExist.ashx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D015D3C686671C3698FCF191D8FC9CBB"
#line 1 "D:\wwwroot\jmxbaogao\wwwroot\Counter\NewAntiCodeExist.ashx"
/****************************************
* 版权所有:南昌金启软件有限公司
* 网 址:www.21it.com
****************************************/
using System.Data;
using System.Web;
using Com.Huji.DataBll;
using Com.Huji.DataModel;
using Com.Huji.DataTools;
using Com.Huji.Web.Pager;
namespace Com.Huji.Web.Counter
{
public class NewAntiCodeExist : BaseHandler
{
public override void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
if (!ProcessRequestError()) return;
NewAntiCodeBll dal = new NewAntiCodeBll();
DataTable dt = dal.GetNewAntiCode(BigPageSize, 1, " and anti_code='" + context.Request.QueryString["search"] + "'", out TotalRecord);
if (dt == null || dt.Rows.Count == 0)
{
Converts.ResponseWriteEnd(context, "error");
}
else
{
NewAntiCodeData data = dal.GetNewAntiCodeModel(Converts.ToInt32(dt.Rows[0]["anti_code_id"]));
data.IsRead++;
dal.UpdateNewAntiCode(data, 1);
Converts.ResponseWriteEnd(context, data.IsRead.ToString());
}
}
}
}
#line default
#line hidden