ManualMaterialRequest.cs
1.95 KB
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
79
80
81
82
83
84
using Hh.Mes.Service.Distribution;
using Microsoft.AspNetCore.Mvc;
using Hh.Mes.Service.SystemAuth;
namespace WebMvc.Areas.wo.Controllers
{
#region 人工叫料
/// <summary>
/// 人工叫料
/// </summary>
[Area("distribution")]
public class ManualMaterialRequestController : BaseController
{
private readonly MaterialDistributeLoadDataService service;
public ManualMaterialRequestController(IAuth authUtil, MaterialDistributeLoadDataService service) : base(authUtil)
{
this.service = service;
var user = authUtil.GetCurrentUser();
if (user != null)
{
this.service.sysWebUser = user.User;
}
}
#region 视图功能
public IActionResult Index()
{
return View();
}
#endregion
#region 获取数据
/// <summary>
/// 加载叫料头数据
/// </summary>
[HttpPost]
public string LoadHead()
{
return Serialize(service.GteChargeAreaData("feedGroupCode"));
}
/// <summary>
/// 加载叫料点
/// </summary>
[HttpPost]
public string LoadData(string keys)
{
return Serialize(service.GteLoadingData(keys));
}
#endregion
#region 提交数据
#endregion
#region 自定义方法
/// <summary>
/// 叫料操作
/// </summary>
[HttpPost]
public string LoadingAsking(string locationCode)
{
return Serialize(service.LoadingAsking(locationCode, false));
}
/// <summary>
/// 取消叫料操作
/// </summary>
[HttpPost]
public string EscLoadingAsking(string locationCode)
{
return Serialize(service.EscLoadingAsking(locationCode));
}
#endregion
}
#endregion
}