修改
This commit is contained in:
1 parent
c494b7b1ef
commit
523dee5e38
15 files changed
+304
-128
No files matched your search
@@ -135,22 +135,30 @@ namespace HHWMS.Web.Controllers
|
||||
var detailList = new List<ReceiptDetail>();
|
||||
foreach(var item in plList)
|
||||
{
|
||||
detailList.Add(new ReceiptDetail
|
||||
if (!string.IsNullOrEmpty(item))
|
||||
{
|
||||
UniqueCode = item,
|
||||
MaterialType = "PL",
|
||||
ReceiptHeaderId = vm.Entity.ReceiptHeaderId
|
||||
});
|
||||
detailList.Add(new ReceiptDetail
|
||||
{
|
||||
UniqueCode = item,
|
||||
Status = 0,
|
||||
MaterialType = "PL",
|
||||
ReceiptHeaderId = vm.Entity.ReceiptHeaderId
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in slList)
|
||||
{
|
||||
detailList.Add(new ReceiptDetail
|
||||
if (!string.IsNullOrEmpty(item))
|
||||
{
|
||||
UniqueCode = item,
|
||||
MaterialType = "SL",
|
||||
ReceiptHeaderId = vm.Entity.ReceiptHeaderId
|
||||
});
|
||||
detailList.Add(new ReceiptDetail
|
||||
{
|
||||
UniqueCode = item,
|
||||
MaterialType = "SL",
|
||||
Status = 0,
|
||||
ReceiptHeaderId = vm.Entity.ReceiptHeaderId
|
||||
});
|
||||
}
|
||||
}
|
||||
_unitwork.BatchAdd(detailList.ToArray());
|
||||
return FFResult().CloseDialog().RefreshGrid(index: 1);
|
||||
|
||||
Reference in new issue
Block a user