using iWareDataCore.BASE.Service; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace FineUIPro.iWareWms.View.MATERIAL.Material { /// /// MaterialData 的摘要说明 /// public class MaterialData : 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 = MaterialService.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; } } } }