1
hutongqing
2024-09-13 3ca95f10e441ff66d4d62f8dfe202bfb26c3c8e8
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
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEA_Core;
using WIDESEA_Core.BaseController;
using WIDESEA_DTO.Stock;
using WIDESEA_IOutboundService;
using WIDESEA_Model.Models;
 
namespace WIDESEA_WMSServer.Controllers.Outbound
{
    [Route("api/OutboundOrderDetail")]
    [ApiController]
    public class OutboundOrderDetailController : ApiBaseController<IOutboundOrderDetailService, Dt_OutboundOrderDetail>
    {
        public OutboundOrderDetailController(IOutboundOrderDetailService service) : base(service)
        {
        }
 
        [HttpPost, Route("AutoLockOutboundStock")]
        public WebResponseContent LockOutboundStock(int orderDetailId)
        {
            return Service.LockOutboundStock(orderDetailId);
        }
 
        [HttpPost, Route("LockOutboundStock")]
        public WebResponseContent LockOutboundStock(int id, [FromBody] List<StockSelectViewDTO> stockSelectViews)
        {
            return Service.LockOutboundStock(id, stockSelectViews);
        }
 
        [HttpPost, Route("RevokeLockOutboundStock")]
        public WebResponseContent RevokeLockOutboundStock(int id)
        {
            return Service.RevokeLockOutboundStock(id);
        }
 
        [HttpPost, Route("AssignStockOutbound")]
        public (List<Dt_StockInfo>, Dt_OutboundOrderDetail, List<Dt_OutStockLockInfo>, List<Dt_LocationInfo>) AssignStockOutbound(int orderDetailId, [FromBody] List<StockSelectViewDTO> stockSelectViews)
        {
            return Service.AssignStockOutbound(orderDetailId, stockSelectViews);
        }
    }
}