| | |
| | | using WIDESEA_IBasicRepository; |
| | | using WIDESEA_IBasicService; |
| | | using WIDESEA_IInboundService; |
| | | using WIDESEA_IOutboundService; |
| | | using WIDESEA_Model.Models; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers.ERP |
| | |
| | | private readonly IBasicService _basicService; |
| | | private readonly IInvokeERPService _invokeERPService; |
| | | private readonly IInboundService _inboundService; |
| | | private readonly IOutboundService _outboundService; |
| | | |
| | | public ErpController(IBasicService basicService,IInvokeERPService invokeERPService, IInboundService inboundService) |
| | | public ErpController(IBasicService basicService,IInvokeERPService invokeERPService, IInboundService inboundService, IOutboundService outboundService) |
| | | { |
| | | _basicService = basicService; |
| | | _invokeERPService = invokeERPService; |
| | | _inboundService = inboundService; |
| | | _outboundService = outboundService; |
| | | } |
| | | /// <summary> |
| | | /// æ·»å äºæç©æ |
| | |
| | | |
| | | public WebResponseContent ProDeliveryOrder([FromBody] ERPRoot<ERPProDeliveryDTO> eRPRoot) |
| | | { |
| | | return _inboundService.PurchaseOrderService.ReceiveProDeliveryOrder(eRPRoot.Content); |
| | | return _outboundService.ProDeliveryOrderService.ReceiveProDeliveryOrder(eRPRoot.Content); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | return _inboundService.InboundOrderService.ReceiveInbound(eRPRoot.Content); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ·»å éå®éè´§ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ProDeliveryBack"), AllowAnonymous] |
| | | |
| | | public WebResponseContent ProDeliveryBack([FromBody] ERPRoot<ERPProDeliverBackDTO> eRPRoot) |
| | | { |
| | | return _inboundService.PurchaseOrderService.ReceiveProDeliveryBackOrder(eRPRoot.Content); |
| | |
| | | { |
| | | return _invokeERPService.ERPPurchaseUp(eRPPurchaseUpModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ERPæåéå®åºåºä¸ä¼ ä¿¡æ¯ |
| | | /// </summary> |
| | |
| | | { |
| | | return _invokeERPService.ERPProOutUp(eRPProOutUpModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ERPä¸ä¼ æåå
¥åºä¿¡æ¯ |
| | | /// </summary> |