24 lines
776 B
Plaintext
24 lines
776 B
Plaintext
<%@ WebHandler Language="C#" Class="getkjcd" %>
|
|
|
|
using System;
|
|
using System.Web;
|
|
using System.Data;
|
|
using System.Data.SqlClient;
|
|
using System.Web.SessionState;
|
|
public class getkjcd : IHttpHandler,IRequiresSessionState {
|
|
|
|
public void ProcessRequest (HttpContext context) {
|
|
context.Response.ContentType = "text/plain";
|
|
string gn = context.Request.Form["nr"].ToString();
|
|
Maticsoft.Model.nr_z_yhzh user = (Maticsoft.Model.nr_z_yhzh)(HttpContext.Current.Session["user"]);
|
|
string mkdz = DBHlper.getfirstcolmn("select top 1 cddz from nr_z_yh_kjcd where yonghu='" + user.id + "' and cdmc like '%"+gn+"%'");
|
|
context.Response.Write(mkdz);
|
|
}
|
|
|
|
public bool IsReusable {
|
|
get {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
} |