/* using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using Volo.Abp.DependencyInjection; using Win_in.Sfs.Basedata.Application.Contracts; using Win_in.Sfs.Wms.DataExchange.QAD; using Win_in.Sfs.Wms.Store.Application.Contracts; namespace Win_in.Sfs.Wms.DataExchange { [Route($"{DataExchangeConsts.RouteRoot}/call-qad-interface")] public class CallQADInterfaceService: ITransientDependency { private readonly Basedata.Application.Contracts.ISupplierItemAppService _supplierItemAppService; private readonly Store.Application.Contracts.ISupplierAsnAppService _supplierAsnAppService; private readonly Basedata.Application.Contracts.ISupplierAppService _supplierAppService; private readonly Basedata.Application.Contracts.ICustomerItemAppService _customerItemAppService; private readonly Basedata.Application.Contracts.IItemBasicAppService _itemBasicAppService; private readonly Basedata.Application.Contracts.IBomAppService _bomAppService; private readonly Store.Application.Contracts.IPurchaseOrderAppService _purchaseOrderAppService; private readonly Basedata.Application.Contracts.IProductLineAppService _productLineAppService; private readonly Basedata.Application.Contracts.IProductionLineItemAppService _prodLineItemAppService; private readonly Basedata.Application.Contracts.ICustomerAppService _customerAppService; private readonly Store.Application.Contracts.ISaleOrderAppService _saleOrderAppService; /// /// 对象映射 /// private readonly Volo.Abp.ObjectMapping.IObjectMapper _objectMapper; public CallQADInterfaceService( Basedata.Application.Contracts.ISupplierItemAppService supplierItemAppService, Store.Application.Contracts.ISupplierAsnAppService supplierAsnAppService, Basedata.Application.Contracts.ISupplierAppService supplierAppService, Basedata.Application.Contracts.ICustomerItemAppService customerItemAppService, Basedata.Application.Contracts.IItemBasicAppService itemBasicAppService, Basedata.Application.Contracts.IBomAppService bomAppService, Store.Application.Contracts.IPurchaseOrderAppService purchaseOrderAppService, Basedata.Application.Contracts.IProductLineAppService productLineAppService, Basedata.Application.Contracts.IProductionLineItemAppService prodLineItemAppService, Basedata.Application.Contracts.ICustomerAppService customerAppService, Store.Application.Contracts.ISaleOrderAppService saleOrderAppService, Volo.Abp.ObjectMapping.IObjectMapper objectMapper ) { _supplierItemAppService = supplierItemAppService; _supplierAsnAppService = supplierAsnAppService; _supplierAppService = supplierAppService; _customerItemAppService = customerItemAppService; _itemBasicAppService = itemBasicAppService; _bomAppService = bomAppService; _purchaseOrderAppService = purchaseOrderAppService; _productLineAppService = productLineAppService; _prodLineItemAppService = prodLineItemAppService; _customerAppService = customerAppService; _saleOrderAppService = saleOrderAppService; _objectMapper = objectMapper; } [HttpPost("upsert-supplier-item-create")] public async Task UpsertSupplierItemCreateAsync(VendPart input) { var targetObj = _objectMapper.Map(input); var retObj = await _supplierItemAppService.CreateAsync(targetObj); } public async Task UpsertSupplierAsnAsync(AsnMstr input) { var targetObj = _objectMapper.Map(input); //var retObj = await _supplierAsnAppService.CreateAsync(targetObj); } public async Task UpsertSupplierAsync(Vend input) { var targetObj = _objectMapper.Map(input); var retObj = await _supplierAppService.CreateAsync(targetObj); } public async Task UpsertCustomerItemAsync(CustPart input) { var targetObj = _objectMapper.Map(input); var retObj = await _customerItemAppService.CreateAsync(targetObj); } public async Task UpsertItemBasicAsync(Part input) { var targetObj = _objectMapper.Map(input); var retObj = await _itemBasicAppService.CreateAsync(targetObj); } public async Task UpsertBomAsync(Bom input) { var targetObj = _objectMapper.Map(input); var retObj = await _bomAppService.CreateAsync(targetObj); } public async Task UpsertPurchaseOrderAsync(PoMstr input) { var targetObj = _objectMapper.Map(input); var retObj = await _purchaseOrderAppService.CreateAsync(targetObj); } public async Task UpsertProductLineAsync(ProdLine input) { var targetObj = _objectMapper.Map(input); var retObj = await _productLineAppService.CreateAsync(targetObj); } public async Task UpsertProductionLineItemAsync(ProdLine input) { var targetObj = _objectMapper.Map(input); var retObj = await _prodLineItemAppService.CreateAsync(targetObj); } public async Task UpsertCustomerAsync(Cust input) { var targetObj = _objectMapper.Map(input); var retObj = await _customerAppService.CreateAsync(targetObj); } public async Task UpsertSaleOrderAsync(SodDet input) { var targetObj = _objectMapper.Map(input); //SaleOrderCreateInput SaleOrderDetailInput var retObj = await _saleOrderAppService.CreateAsync(targetObj); } } } */