| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_IServices; |
| | | using WIDESEA_Model.Models; |
| | | namespace WIDESEA_WMSServer.Controllers; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers.OutboundOrder |
| | | /// <summary> |
| | | /// ç³»ç»è®¢åæ¥å£ |
| | | /// </summary> |
| | | [Route("api/[controller]")] |
| | | [ApiController] |
| | | public class Dt_OutOrderController : ApiBaseController<IDt_OutOrderService, Dt_OutOrder> |
| | | { |
| | | [Route("api/[controller]")] |
| | | [ApiController] |
| | | public class Dt_OutOrderController : ApiBaseController<IDt_OutOrderService, Dt_OutOrder> |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | |
| | | public Dt_OutOrderController(IDt_OutOrderService service, IHttpContextAccessor httpContextAccessor) : base(service) |
| | | { |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | public Dt_OutOrderController(IDt_OutOrderService service, IHttpContextAccessor httpContextAccessor) : base(service) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å ç产åºåºå |
| | | /// </summary> |
| | | /// <param name="model">åºåºæ°æ®</param> |
| | | /// <returns>æåæå¤±è´¥</returns> |
| | | [HttpPost, Route("AddOutOrderProduction"), AllowAnonymous] |
| | | public WebResponseContent AddOutOrderProduction([FromBody] SaveModel saveModel) |
| | | { |
| | | return Service.AddOutOrderProduction(saveModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å è°æ¨åºåºå |
| | | /// </summary> |
| | | /// <param name="model">åºåºæ°æ®</param> |
| | | /// <returns>æåæå¤±è´¥</returns> |
| | | [HttpPost, Route("AddOutOrderTransfer"), AllowAnonymous] |
| | | public WebResponseContent AddOutOrderTransfer([FromBody] SaveModel saveModel) |
| | | { |
| | | return Service.AddOutOrderTransfer(saveModel); |
| | | } |
| | | _httpContextAccessor = httpContextAccessor; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å ç产åºåºå |
| | | /// </summary> |
| | | /// <param name="saveModel">åºåºæ°æ®</param> |
| | | /// <returns>æåæå¤±è´¥</returns> |
| | | [HttpPost, Route("AddOutOrderProduction"), AllowAnonymous] |
| | | public WebResponseContent AddOutOrderProduction([FromBody] SaveModel saveModel) |
| | | { |
| | | return Service.AddOutOrderProduction(saveModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å è°æ¨åºåºå |
| | | /// </summary> |
| | | /// <param name="saveModel">åºåºæ°æ®</param> |
| | | /// <returns>æåæå¤±è´¥</returns> |
| | | [HttpPost, Route("AddOutOrderTransfer"), AllowAnonymous] |
| | | public WebResponseContent AddOutOrderTransfer([FromBody] SaveModel saveModel) |
| | | { |
| | | return Service.AddOutOrderTransfer(saveModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®åºåºè®¢åè·ååºåºåºå |
| | | /// </summary> |
| | | /// <param name="saveModel">åºåºæ°æ®</param> |
| | | /// <returns>æåæå¤±è´¥</returns> |
| | | [HttpPost, HttpGet, Route("GetOutboundStockAsync"), AllowAnonymous] |
| | | public async Task<WebResponseContent> GetOutboundStockAsync(string orderNo) |
| | | { |
| | | return await Service.GetOutboundStockAsync(orderNo); |
| | | } |
| | | } |