schangxiang@126.com
2025-08-25 aa383c30e4f1053e97c6a33ccf9a899fca26dd20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
{
    /// <summary>
    /// MaterialData 的摘要说明
    /// </summary>
    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;
            }
        }
    }
}