PrecompiledWeb/WebUI/AjaxTable4.ashx

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ WebHandler Language="C#" Class="AjaxTable4" %>

using System;
using System.Web;
using DAL;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections.Specialized;
using woxpcn;
using System.IO;
using System.Xml;
using BLL;
using Model;
public class AjaxTable4 : IHttpHandler {

    //private NameValueCollection query;
    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        //不让浏览器缓存        
        context.Response.Buffer = true;
        context.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
        context.Response.AddHeader("pragma", "no-cache");
        context.Response.AddHeader("cache-control", "");
        context.Response.CacheControl = "no-cache";
        //Page page = new Page(context.Request.QueryString);
        // context.Response.Write(page.GetResult());
        string type = context.Request["type"].ToString();
        string zsmc = context.Request["zsmc"].ToString();
        int zsid = int.Parse(context.Request["zsid"].ToString());
        if (type == "sendemail")
        {
            string usename = context.Request["usename"].ToString();
            context.Response.Write(SendEmail(usename, zsid, zsmc));
        }
        else
        {
            string g_uid = "447922258";//登陆账户
           string g_eid = "0";//企业ID代码
          string g_pwd = "123456"; //登陆密码.明文
          string g_gate_id = "300";//使用通道
          string usename = context.Request["usename"].ToString();
            string phone = context.Request["phone"].ToString();
            context.Response.Write(SendInfo(usename,phone, zsid, zsmc,g_uid,g_eid,g_pwd,g_gate_id));
        }
       
    }
    SQLHelper sqh = new SQLHelper();

    public string SendEmail(string usename, int zsid, string zsmc)
    {
        try
        {
            DataSet ds = UserInfoBLL.SelectUserInfoByUserName(usename);
            string provinceid = ds.Tables[0].Rows[0]["szsfdm"].ToString();
            string cityid = ds.Tables[0].Rows[0]["szcsdm"].ToString();
            KSSetMOD ksmod = KSSetBLL.SelectExamdaByZSID1(zsid,provinceid,cityid);
            if (ksmod.Kssj==null)
后面还有 112 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。