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();
|
}
|
|
/// <summary>
|
/// 发送型材物料信息
|
/// </summary>
|
/// <param name="materialcode"></param>
|
/// <returns></returns>
|
[HttpPost]
|
public ActionResult SendAndChackMaterial(string materialcode)
|
{
|
string msg;
|
return Json(new { Result = CacheEntity.ControlCenterWcfServiceClient.SendAndChackMaterial(materialcode, out msg), Message = msg }, JsonRequestBehavior.DenyGet);
|
}
|
/// <summary>
|
/// 发送堆垛机手动任务
|
/// </summary>
|
/// <param name="materialcode"></param>
|
/// <param name="toplace"></param>
|
/// <param name="tasktype"></param>
|
/// <returns></returns>
|
[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);
|
}
|
|
|
/// <summary>
|
/// 查看模式
|
/// </summary>
|
/// <returns></returns>
|
[HttpPost]
|
public ActionResult GetMode()
|
{
|
return Json(new { Result = CacheEntity.ControlCenterWcfServiceClient.GetMode() }, JsonRequestBehavior.DenyGet);
|
}
|
|
|
/// <summary>
|
/// 编号模式
|
/// </summary>
|
/// <returns></returns>
|
[HttpPost]
|
public ActionResult GetStacker()
|
{
|
return Json(new { Result = CacheEntity.ControlCenterWcfServiceClient.GetStacker() }, JsonRequestBehavior.DenyGet);
|
}
|
|
|
}
|
}
|