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);
|
}
|
|
}
|
}
|