erp客户同步
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using WMS.Web.Core.Dto.Erp;
|
||||
using WMS.Web.Core.Dto.Erp.Customer;
|
||||
using WMS.Web.Core.Dto.Erp.Org;
|
||||
using WMS.Web.Core.Dto.Erp.Supplier;
|
||||
using WMS.Web.Domain.Infrastructure;
|
||||
@@ -100,6 +101,17 @@ namespace WMS.Web.Domain.Services.Public
|
||||
var supplier = erpSuppliers.Where(x => x.Id == supplierId).FirstOrDefault();
|
||||
return supplier == null ? "" : supplier.Name;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取客户名称
|
||||
/// </summary>
|
||||
/// <param name="erpCustomers"></param>
|
||||
/// <param name="customerId"></param>
|
||||
/// <returns></returns>
|
||||
public string GetCustomerName(List<ErpCustomerDto> erpCustomers, int customerId)
|
||||
{
|
||||
var supplier = erpCustomers.Where(x => x.Id == customerId).FirstOrDefault();
|
||||
return supplier == null ? "" : supplier.Name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓库名称
|
||||
@@ -136,5 +148,7 @@ namespace WMS.Web.Domain.Services.Public
|
||||
var stock = erpStocks.Where(x => x.Id == stockId).FirstOrDefault();
|
||||
return stock == null ? "" : stock.Code;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user