using iWareDataCore.BASE.Service; using iWareDataCore.TASK.Service; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace FineUIPro.iWareWms.View.TASK.MainTaskView { /// /// 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 mainTasks = MainTaskService.GetInstance().QueryByCode(term, 20, out msg); mainTasks.ForEach(x => ja.Add(x)); context.Response.ContentType = "text/plain"; context.Response.Write(ja.ToString()); } } public bool IsReusable { get { return false; } } } }