生成单据编号

This commit is contained in:
18942506660
2023-10-28 15:16:18 +08:00
parent f5cc13f422
commit 25e8a9e30a
5 changed files with 67 additions and 10 deletions

View File

@@ -44,11 +44,11 @@ namespace WMS.Web.Repositories
await _context.OutStock.AddAsync(entity);
await _context.SaveChangesAsync();
//if (string.IsNullOrEmpty(entity.OutSourcFeedNo))
//{
// entity.GenerateNo();
// await _context.SaveChangesAsync();
//}
if (string.IsNullOrEmpty(entity.BillNo))
{
entity.GenerateNo();
await _context.SaveChangesAsync();
}
if (_transaction != null)
_transaction.Commit();
@@ -85,6 +85,7 @@ namespace WMS.Web.Repositories
{
#region dto组装
Id = 0,
BillNo=s.order.BillNo,
Status = "",
Type = "",
Creator = "",

View File

@@ -44,11 +44,11 @@ namespace WMS.Web.Repositories
await _context.OutStockTask.AddAsync(entity);
await _context.SaveChangesAsync();
//if (string.IsNullOrEmpty(entity.OutSourcFeedNo))
//{
// entity.GenerateNo();
// await _context.SaveChangesAsync();
//}
if (string.IsNullOrEmpty(entity.BillNo))
{
entity.GenerateNo();
await _context.SaveChangesAsync();
}
if (_transaction != null)
_transaction.Commit();
@@ -169,6 +169,7 @@ namespace WMS.Web.Repositories
{
#region dto组装
Id = 0,
BillNo=s.order.BillNo,
Status = "",
Type = "",
CreateTime = s.order.OperateTime.DateToStringSeconds(),