生成单据编号
This commit is contained in:
@@ -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 = "",
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user