分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-04-06 dd2b970907682890ab0f16c6efc7c04edfe1598f
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
70
71
72
73
74
75
76
77
78
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core.Utilities;
using WIDESEA_Entity.DomainModels;
using WIDESEA_Entity.DomainModels.Mes;
using WIDESEA_WMS;
 
namespace WIDESEA_WCSServer.Controllers.ToWms
{
    [Route("api/ToWms")]
    [ApiController]
    public class ToWMSController : ControllerBase
    {
        private static readonly object OutsourceInboundobj = new object();
        private static readonly object agvTransferListbj = new object();
        /// <summary>
        /// 移库(手动,临时)
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        [HttpPost, Route("AddToFloat3")]
        public WebResponseContent AddToFloat3([FromBody] MesRequestTemp request)
        {
            return new ToMesServer().AddToFloat3(request);
        }
 
 
        /// <summary>
        /// 外协移库
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        [HttpPost, Route("agvTransferList")]
        public WebResponseContent agvTransferList([FromBody] SaveModel saveModel)
        {
            lock (agvTransferListbj)
            {
                return new ToMesServer().agvTransferList(saveModel);
            }
        }
 
        /// <summary>
        /// 外协出库(检测上料)
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        [HttpPost, Route("OutsourceInbound")]
        public WebResponseContent OutsourceInbound([FromBody] SaveModel saveModel)
        {
            lock (OutsourceInboundobj)
            {
                return new ToMesServer().OutsourceInbound(saveModel);
            }
        }
 
        /// <summary>
        /// 空盘
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        [HttpPost, Route("SendEpmtyTask")]
        public WebResponseContent SendEpmtyTask([FromBody] SaveModel saveModel)
        {
            return new ToMesServer().SendEpmtyTask(saveModel);
        }
 
        /// <summary>
        /// 绑定车轮
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        [HttpPost, Route("UpdateStation")]
        public WebResponseContent UpdateStation([FromBody] SaveModel saveModel)
        {
            return new ToMesServer().UpdateStation(saveModel);
        }
    }
}