zhao
2021-07-19 8347f2fbddbd25369359dcb2da1233ac48a19fdc
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
using HH.Redis.ReisModel;
using HH.WMS.BLL;
using HH.WMS.BLL.Pda;
using HH.WMS.BLL.SysMgr;
using HH.WMS.Common;
using HH.WMS.Entitys;
using HH.WMS.WebApi.Areas.Common.Controllers;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
 
namespace HH.WMS.WebApi.Areas.OpenApi.Controllers
{
    public class YMApiPDAController : BaseController
    {
        #region 整排解绑
        /// <summary>
        /// 整排解绑
        /// </summary>
        /// <param name="rowCode">排号</param>
        /// <returns></returns>
        [HttpGet]
        public OperateResult RowUnBind(string rowCode)
        {
            return ValidateToken(t =>
            {
                OperateResult result = BLLCreator.Create<YmBLL>(t).RowUnBind(rowCode, t);
                return result;
            });
        }
 
        #endregion
 
 
        #region 成品空筐绑定
        /// <summary>
        /// 成品空筐绑定
        /// </summary>
        /// <param name="locationCode">货位编码</param>
        /// <returns></returns>
        [HttpGet]
        public OperateResult EndproductkkBind(string locationCode)
        {
            return ValidateToken(t =>
            {
                OperateResult result = BLLCreator.Create<YmBLL>(t).EndproductkkBind(locationCode, t);
                return result;
            });
        }
 
        #endregion
 
        #region 成品解绑
        /// <summary>
        /// 成品解绑
        /// </summary>
        /// <param name="locationCode">货位编码</param>
        /// <returns></returns>
        [HttpGet]
        public OperateResult EndProductUnbind(string locationCode)
        {
            return ValidateToken(t =>
            {
                OperateResult result = BLLCreator.Create<YmBLL>(t).EndProductUnbind(locationCode, t);
                return result;
            });
        }
 
        #endregion
 
        #region 原料扫码反馈入库
        /// <summary>
        /// 原料扫码反馈入库-根据货位找到对应物料
        /// </summary>
        /// <param name="locationCode">货位编码</param>
        /// <returns></returns>
        [HttpGet]
        public OperateResult GetLocationWithItem(string locationCode)
        {
            return ValidateToken(t =>
            {
                OperateResult result = BLLCreator.Create<YmBLL>(t).GetLocationWithItem(locationCode, t);
                return result;
            });
        }
 
        /// <summary>
        /// 原料扫码反馈入库-保存
        /// </summary>
        /// <param name="locationCode">货位编码</param>
        /// <param name="itemCode">物料编码</param>
        /// <returns></returns>
        [HttpGet]
        public OperateResult MaterialScanStockIn(string locationCode, string itemCode)
        {
            return ValidateToken(t =>
            {
                OperateResult result = BLLCreator.Create<YmBLL>(t).MaterialScanStockIn(locationCode, itemCode, t);
                return result;
            });
        }
 
        #endregion
    }
}