供应商信息应用上
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using WMS.Web.Core.Dto.Erp;
|
||||
using WMS.Web.Core.Dto.Erp.Org;
|
||||
using WMS.Web.Core.Dto.Erp.Supplier;
|
||||
using WMS.Web.Domain.Infrastructure;
|
||||
using WMS.Web.Domain.IService.Public;
|
||||
|
||||
@@ -87,5 +88,17 @@ namespace WMS.Web.Domain.Services.Public
|
||||
var org = erpOrgs.Where(x => x.Id == orgId).FirstOrDefault();
|
||||
return org == null ? "" : org.Name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取供应商名称
|
||||
/// </summary>
|
||||
/// <param name="erpSuppliers"></param>
|
||||
/// <param name="supplierId"></param>
|
||||
/// <returns></returns>
|
||||
public string GetSupplierName(List<ErpSupplierDto> erpSuppliers, int supplierId)
|
||||
{
|
||||
var supplier = erpSuppliers.Where(x => x.Id == supplierId).FirstOrDefault();
|
||||
return supplier == null ? "" : supplier.Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user