|
|
@ -63,7 +63,7 @@ namespace Win.Sfs.SettleAccount.Entities.VWSparePart |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 大众备件调整导入(财务期初时用的功能)
|
|
|
|
/// 大众备件明细数据导入功能(以后正常使用的功能),包含导入有空的订单号
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
|
|
|
|
/// <returns></returns>
|
|
|
@ -101,7 +101,17 @@ namespace Win.Sfs.SettleAccount.Entities.VWSparePart |
|
|
|
_bomList.Add(new SparePartVersion(_id, branchId, year, period, version, customerCode)); |
|
|
|
foreach (var itm in entityList) |
|
|
|
{ |
|
|
|
itm.SetValue(GuidGenerator.Create(), branchId, year, period, version, "not90"); |
|
|
|
if (string.IsNullOrEmpty(itm.PurchaseOrderNo)) |
|
|
|
{ |
|
|
|
//订单号不空
|
|
|
|
itm.SetValue(GuidGenerator.Create(), branchId, year, period, version, "not90", "NoOrder"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
//赋值上主键ID
|
|
|
|
itm.SetValue(GuidGenerator.Create(), branchId, year, period, version, "not90"); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if (checkList.Count > 0) |
|
|
|
{ |
|
|
@ -113,7 +123,7 @@ namespace Win.Sfs.SettleAccount.Entities.VWSparePart |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 大众备件明细数据导入功能(以后正常使用的功能)
|
|
|
|
/// 大众备件调整导入(财务期初时用的功能),订单号+物料号能一对一匹配
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="files"></param>
|
|
|
|
/// <param name="branchId"></param>
|
|
|
|