schangxiang@126.com
2025-06-04 3e837690e8a1d3b6e86f3db72d2d84eab1bc7114
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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);
        }
 
 
    }
}