| | |
| | | using WIDESEA_External.Model; |
| | | using WIDESEA_IBasicRepository; |
| | | using WIDESEA_IBasicService; |
| | | using WIDESEA_IInboundService; |
| | | using WIDESEA_Model.Models; |
| | | using static WIDESEA_DTO.ErpResponseContent; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers.ERP |
| | | { |
| | |
| | | { |
| | | private readonly IBasicService _basicService; |
| | | private readonly IInvokeERPService _invokeERPService; |
| | | private readonly IInboundService _inboundService; |
| | | |
| | | public ErpController(IBasicService basicService,IInvokeERPService invokeERPService) |
| | | public ErpController(IBasicService basicService,IInvokeERPService invokeERPService, IInboundService inboundService) |
| | | { |
| | | _basicService = basicService; |
| | | _invokeERPService = invokeERPService; |
| | | _inboundService = inboundService; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å äºæç©æ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ReceiveMaterial"), AllowAnonymous] |
| | | |
| | | public WebResponseContent ReceiveMaterial([FromBody] ERPRoot<ERPMaterialDTO> eRPRoot) |
| | | { |
| | | return _basicService.MaterielInfoService.ReceiveMaterial(eRPRoot.Content); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å äºæä¾åºå |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ReceiveSupplier"), AllowAnonymous] |
| | | |
| | | public WebResponseContent ReceiveSupplier([FromBody] ERPRoot<ERPSupplierDTO> eRPRoot) |
| | | { |
| | | return _basicService.SupplierInfoService.ReceiveSupplier(eRPRoot.Content); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å äºæå®¢æ· |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ReceiveCustomer"), AllowAnonymous] |
| | | |
| | | public WebResponseContent ReceiveCustomer([FromBody] ERPRoot<ERPCustomerDTO> eRPRoot) |
| | | { |
| | | return _basicService.CustomerInfoService.ReceiveCustomer(eRPRoot.Content); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å äºæåå·¥ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ReceiveStaff"), AllowAnonymous] |
| | | |
| | | public WebResponseContent ReceiveStaff([FromBody] ERPRoot<ERPUserInfoDTO> eRPRoot) |
| | | { |
| | | return _basicService.UserInfoService.ReceiveStaff(eRPRoot.Content); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å äºæéè´å
¥åºä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("PurchaseInboundInfo"), AllowAnonymous] |
| | | |
| | | public WebResponseContent PurchaseInboundInfo([FromBody] ERPRoot<ERPPurchaseOrderDTO> eRPRoot) |
| | | { |
| | | return _inboundService.PurchaseOrderService.ReceivePurchaseOrder(eRPRoot.Content); |
| | | } |
| | | /// <summary> |
| | | /// æ·»å äºæéè´éè´§ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("PurchaseReturn"), AllowAnonymous] |
| | | |
| | | public WebResponseContent PurchaseReturn([FromBody] ERPRoot<ERPReturnOrderDTO> eRPRoot) |
| | | { |
| | | return _inboundService.PurchaseOrderService.ReceivePurchaseReturn(eRPRoot.Content); |
| | | } |
| | | /// <summary> |
| | | /// æ·»å äºæéå®åºåºä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ProDeliveryOrder"), AllowAnonymous] |
| | | |
| | | public WebResponseContent ProDeliveryOrder([FromBody] ERPRoot<ERPProDeliveryDTO> eRPRoot) |
| | | { |
| | | return _inboundService.PurchaseOrderService.ReceiveProDeliveryOrder(eRPRoot.Content); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å éçäº§é¢æä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ReceiveOut"), AllowAnonymous] |
| | | |
| | | public WebResponseContent ReceiveOut([FromBody] ERPRoot<ERPPickOutOrderDTO> eRPRoot) |
| | | { |
| | | 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); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ·»å éå®éè´§ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ProDeliveryBack"), AllowAnonymous] |
| | | |
| | | public WebResponseContent ProDeliveryBack([FromBody] ERPRoot<ERPProDeliverBackDTO> eRPRoot) |
| | | { |
| | | return _inboundService.PurchaseOrderService.ReceiveProDeliveryBackOrder(eRPRoot.Content); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ERPä¸ä¼ éè´ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ERPPurchaseUp"), AllowAnonymous] |
| | | public string ERPPurchaseUp([FromBody] ERPPurchaseUpModel eRPPurchaseUpModel) |
| | | { |
| | | return _invokeERPService.ERPPurchaseUp(eRPPurchaseUpModel); |
| | | } |
| | | /// <summary> |
| | | /// ERPæåéå®åºåºä¸ä¼ ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("ERPProOutUp"), AllowAnonymous] |
| | | public string ERPProOutUp([FromBody] ERPProOutUpModel eRPProOutUpModel) |
| | | { |
| | | 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); |
| | | } |
| | | } |
| | | } |