37 lines
966 B
C#
37 lines
966 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace VRS.Handler
|
|
{
|
|
/// <summary>
|
|
/// TechRuleHandler 的摘要说明
|
|
/// </summary>
|
|
public class TechRuleHandler :BasePage, IHttpHandler
|
|
{
|
|
DataService.BLL.pro_know bll = new DataService.BLL.pro_know();
|
|
|
|
public override void ProcessRequest(HttpContext context)
|
|
{
|
|
context.Response.ContentType = "text/plain";
|
|
var typeModel = GetTypeByName("技术规范");
|
|
if (typeModel != null)
|
|
{
|
|
var models = bll.GetModelList(string.Format(" type_id = '{0}' ", typeModel.type_id));
|
|
if (models.Any())
|
|
{
|
|
context.Response.Write(models.First().content);
|
|
}
|
|
}
|
|
}
|
|
|
|
public new bool IsReusable
|
|
{
|
|
get
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
} |