schangxiang@126.com
2025-09-16 215cd8f05f4de1da31a611649bc21a26ec829115
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using iWareCommon.Utils;
using iWarePod.Cache.Entity;
using iWarePod.ControlCenterWcfService;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
 
namespace iWarePod.Controllers
{
    public class DeviceController : Controller
    {
        //
        // GET: /Device/
 
        public ActionResult Index()
        {
            return View();
        }
 
 
        [HttpPost]
        public ActionResult GetConveyorInfos()
        {
            string msg;
            return Json(new { Result = CacheEntity.ControlCenterWcfServiceClient.GetConveyorInfos(out msg), Message = msg }, JsonRequestBehavior.DenyGet);
        }
 
 
        [HttpPost]
        public ActionResult GetConveyorInfo(string name)
        {
            string msg;
            return Json(new { Result = CacheEntity.ControlCenterWcfServiceClient.GetConveyorInfo(name, out msg), Message = msg},JsonRequestBehavior.DenyGet);
        }
 
        [HttpPost]
        public ActionResult GetGateInfo(string conveyorName,string gateName)
        {
            string msg;
            return Json(new { Result = CacheEntity.ControlCenterWcfServiceClient.GetGateInfo(conveyorName, gateName, out msg), Message = msg }, JsonRequestBehavior.DenyGet);
        }
 
 
        [HttpPost]
        public ActionResult GetStacker(string name)
        {
            string msg;
            return Json(new { Result = CacheEntity.ControlCenterWcfServiceClient.GetStackInfo(name, out msg), Message = msg }, JsonRequestBehavior.DenyGet);
        }
 
    }
}