| | |
| | | using WIDESEA_IBasicRepository; |
| | | using WIDESEA_IBasicService; |
| | | using WIDESEA_IInboundService; |
| | | using WIDESEA_IOutboundService; |
| | | using WIDESEA_Model.Models; |
| | | using static WIDESEA_DTO.ErpResponseContent; |
| | | |
| | |
| | | private readonly IBasicService _basicService; |
| | | private readonly IInvokeERPService _invokeERPService; |
| | | private readonly IPurchaseBSTOrderService _purchaseBSTOrderService; |
| | | private readonly IOutBSTOrderService _outBSTOrderService; |
| | | |
| | | public ErpBSTController(IBasicService basicService, IInvokeERPService invokeERPService,IPurchaseBSTOrderService purchaseBSTOrderService) |
| | | public ErpBSTController(IBasicService basicService, IInvokeERPService invokeERPService,IPurchaseBSTOrderService purchaseBSTOrderService,IOutBSTOrderService outBSTOrderService) |
| | | { |
| | | _basicService = basicService; |
| | | _invokeERPService = invokeERPService; |
| | | _purchaseBSTOrderService = purchaseBSTOrderService; |
| | | _outBSTOrderService = outBSTOrderService; |
| | | } |
| | | /// <summary> |
| | | /// 娣诲姞鑰佸巶鐗╂枡 |
| | |
| | | { |
| | | return _purchaseBSTOrderService.AddPurchaseBSTOrder(bSTPurchaseOrderDTOs); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 娣诲姞鍑哄簱鎺掔▼淇℃伅 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("ReceiveOutOrder"), AllowAnonymous] |
| | | public WebResponseContent AddOutBSTOrder([FromBody] List<BSTOutOrderDTO> bSTOutOrderDTOs) |
| | | { |
| | | return _outBSTOrderService.AddOutBSTOrder(bSTOutOrderDTOs); |
| | | } |
| | | } |
| | | } |