| | |
| | | { |
| | | private readonly IBasicService _basicService; |
| | | private readonly IInvokeERPService _invokeERPService; |
| | | private readonly IPurchaseOrderService _purchaseOrderService; |
| | | private readonly IInboundService _inboundService; |
| | | |
| | | public ErpController(IBasicService basicService,IInvokeERPService invokeERPService,IPurchaseOrderService purchaseOrderService) |
| | | public ErpController(IBasicService basicService,IInvokeERPService invokeERPService, IInboundService inboundService) |
| | | { |
| | | _basicService = basicService; |
| | | _invokeERPService = invokeERPService; |
| | | _purchaseOrderService = purchaseOrderService; |
| | | _inboundService = inboundService; |
| | | } |
| | | /// <summary> |
| | | /// æ·»å äºæç©æ |
| | |
| | | |
| | | public WebResponseContent PurchaseInboundInfo([FromBody] ERPRoot<ERPPurchaseOrderDTO> eRPRoot) |
| | | { |
| | | return _purchaseOrderService.ReceivePurchaseOrder(eRPRoot.Content); |
| | | return _inboundService.PurchaseOrderService.ReceivePurchaseOrder(eRPRoot.Content); |
| | | } |
| | | /// <summary> |
| | | /// æ·»å äºæéè´éè´§ä¿¡æ¯ |
| | |
| | | |
| | | public WebResponseContent PurchaseReturn([FromBody] ERPRoot<ERPReturnOrderDTO> eRPRoot) |
| | | { |
| | | return _purchaseOrderService.ReceivePurchaseReturn(eRPRoot.Content); |
| | | return _inboundService.PurchaseOrderService.ReceivePurchaseReturn(eRPRoot.Content); |
| | | } |
| | | /// <summary> |
| | | /// æ·»å äºæéå®åºåºä¿¡æ¯ |
| | |
| | | |
| | | public WebResponseContent ProDeliveryOrder([FromBody] ERPRoot<ERPProDeliveryDTO> eRPRoot) |
| | | { |
| | | return _purchaseOrderService.ReceiveProDeliveryOrder(eRPRoot.Content); |
| | | return _inboundService.PurchaseOrderService.ReceiveProDeliveryOrder(eRPRoot.Content); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | public WebResponseContent ReceiveOut([FromBody] ERPRoot<ERPPickOutOrderDTO> eRPRoot) |
| | | { |
| | | return _purchaseOrderService.ReceiveOutOrder(eRPRoot.Content); |
| | | return _inboundService.PurchaseOrderService.ReceiveOutOrder(eRPRoot.Content); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å ééè´ç产å
¥åºåä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ReceiveInbound"), AllowAnonymous] |
| | | |
| | | public WebResponseContent ReceiveInbound([FromBody] ERPRoot<ERPInboundOrderDTO> eRPRoot) |
| | | { |
| | | return _inboundService.InboundOrderService.ReceiveInbound(eRPRoot.Content); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | public WebResponseContent ProDeliveryBack([FromBody] ERPRoot<ERPProDeliverBackDTO> eRPRoot) |
| | | { |
| | | return _purchaseOrderService.ReceiveProDeliveryBackOrder(eRPRoot.Content); |
| | | return _inboundService.PurchaseOrderService.ReceiveProDeliveryBackOrder(eRPRoot.Content); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¨ééè´ä¿¡æ¯ |
| | | /// ERPä¸ä¼ éè´ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ERPPurchaseUp"), AllowAnonymous] |
| | |
| | | return _invokeERPService.ERPPurchaseUp(eRPPurchaseUpModel); |
| | | } |
| | | /// <summary> |
| | | /// æ¨ééè´ä¿¡æ¯ |
| | | /// ERPæåéå®åºåºä¸ä¼ ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ERPProOutUp"), AllowAnonymous] |
| | |
| | | { |
| | | return _invokeERPService.ERPProOutUp(eRPProOutUpModel); |
| | | } |
| | | /// <summary> |
| | | /// ERPä¸ä¼ æåå
¥åºä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ERPProInUp"), AllowAnonymous] |
| | | public string ERPProInUp([FromBody] ERPProInUpModel eRPProInUpModel) |
| | | { |
| | | return _invokeERPService.ERPProInUp(eRPProInUpModel); |
| | | } |
| | | /// <summary> |
| | | /// ERPä¸ä¼ å-æåå
¥åºä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ERPSemiProInUp"), AllowAnonymous] |
| | | public string ERPSemiProInUp([FromBody] ERPProInUpModel eRPProInUpModel) |
| | | { |
| | | return _invokeERPService.ERPSemiProInUp(eRPProInUpModel); |
| | | } |
| | | } |
| | | } |