| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <%@ WebHandler Language="C#" Class="GetDataDictionary_WCF" %>
- using System.Web;
- using System.Web.SessionState;
- using System.Web.Configuration;
- using Newtonsoft.Json.Linq;
- using Curtain.DataAccess;
- using System.Data;
- using DK.XuWei.WebMes;
- /// <summary>
- /// 从WCF接口获取 数据字典
- /// </summary>
- public class GetDataDictionary_WCF : IHttpHandler, IReadOnlySessionState
- {
- public void ProcessRequest(HttpContext context)
- {
- using (IDataAccess conn = DataAccess.Create())
- {
- DataTable dt = null;
-
- dt = conn.ExecuteDatatable(@"
- SELECT D.DICTIONARYVALUE,D.Remarks
- FROM TP_MST_DATADICTIONARY D
- WHERE VALUEFLAG = '1'
- AND D.DICTIONARYTYPE = @DICTIONARYTYPE@ ",
- new CDAParameter("DICTIONARYTYPE", "TPC019"));
-
- context.Response.Write(new JsonResult(dt).ToJson());
- }
- }
- public bool IsReusable
- {
- get
- {
- return false;
- }
- }
- }
|