using iWareDataCore.TASK.Entity;
using iWareDataCore.TASK.Service;
using iWarePod.Cache.Entity;
using System;
using System.Text;
using System.Web.Mvc;
namespace iWarePod.Controllers
{
public class TaskController : Controller
{
//
// GET: /Task/
public ActionResult Index()
{
return View();
}
///
/// 发送型材物料信息
///
///
///
[HttpPost]
public ActionResult SendAndChackMaterial(string materialcode)
{
string msg;
return Json(new { Result = CacheEntity.ControlCenterWcfServiceClient.SendAndChackMaterial(materialcode, out msg), Message = msg }, JsonRequestBehavior.DenyGet);
}
///
/// 发送堆垛机手动任务
///
///
///
///
///
[HttpPost]
public ActionResult SendTask(string materialcode,string toplace,string tasktype)
{
string msg;
return Json(new { Result = PartTaskService.GetInstance().SavePartTask(materialcode,toplace,tasktype,out msg), Message = msg }, JsonRequestBehavior.DenyGet);
}
///
/// 查看模式
///
///
[HttpPost]
public ActionResult GetMode()
{
return Json(new { Result = CacheEntity.ControlCenterWcfServiceClient.GetMode() }, JsonRequestBehavior.DenyGet);
}
///
/// 编号模式
///
///
[HttpPost]
public ActionResult GetStacker()
{
return Json(new { Result = CacheEntity.ControlCenterWcfServiceClient.GetStacker() }, JsonRequestBehavior.DenyGet);
}
}
}