using iWareCommon.Common.Entity; using iWareDataCore.BASE.Service; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Web; namespace FineUIPro.iWareWms.View.FM.Place { /// /// 许艺潇 /// 2018.07 /// 工艺管理的特殊属性数据查询 /// ProcessingTechnicPropertyData 的摘要说明 /// public class PlaceData : IHttpHandler { public void ProcessRequest(HttpContext context) { string term = context.Request.QueryString["term"]; if (!string.IsNullOrEmpty(term)) { term = term.ToLower(); string msg; var ja = new JArray(); var packingLists = PlaceService.GetInstance().GetCodes(term, 20, out msg); packingLists.ForEach(x => ja.Add(x)); context.Response.ContentType = "text/plain"; context.Response.Write(ja.ToString()); } } public bool IsReusable { get { return false; } } } }