baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+86
@@ -0,0 +1,86 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Opsoft.NetCore.O3App.Domain.Interface;
|
||||
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories;
|
||||
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IServices;
|
||||
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
|
||||
using Opsoft.NetCore.O3App.Shared;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Opsoft.NetCore.O3App.Services.WMS
|
||||
{
|
||||
/// <summary>
|
||||
/// 其他入库、出库
|
||||
/// </summary>
|
||||
[MapTo(typeof(IMisInStockService), ServiceLifetime.Transient)]
|
||||
public class MisInStockService : ServiceBase<BaseEntity, IMisInStockRepository>, IMisInStockService
|
||||
{
|
||||
private readonly ISelBillRepository _selBillRepository;
|
||||
public MisInStockService(IMisInStockRepository repository, ISelBillRepository selBillRepository) : base(repository)
|
||||
{
|
||||
Init(repository);
|
||||
Init(selBillRepository);
|
||||
_selBillRepository = selBillRepository;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 提交入库信息
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<RetMessage> MisInStockSubmit(InputBarCode<BD_BARCODERS2> request)
|
||||
{
|
||||
if (request.barcodeList == null || request.barcodeList.Count <= 0)
|
||||
{
|
||||
return new RetMessage
|
||||
{
|
||||
Status = 0,
|
||||
Message = "提交信息为空"
|
||||
};
|
||||
}
|
||||
string tranType = "STK_MISCELLANEOUS";
|
||||
List<BOS_SELBILL> selBillList = await _selBillRepository.QuerySelBill(request.orgID, tranType);
|
||||
if (selBillList == null || selBillList.Count <= 0)
|
||||
{
|
||||
return new RetMessage
|
||||
{
|
||||
Status = 0,
|
||||
Message = "其他入库对应的出入库流程信息未找到"
|
||||
};
|
||||
}
|
||||
request.TranType = tranType;
|
||||
return await (repository as IMisInStockRepository).MisInStockSubmit(request, selBillList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 提交出库信息
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<RetMessage> MisRetStockSubmit(InputBarCode<BD_BARCODERS2> request)
|
||||
{
|
||||
if (request.barcodeList == null || request.barcodeList.Count <= 0)
|
||||
{
|
||||
return new RetMessage
|
||||
{
|
||||
Status = 0,
|
||||
Message = "提交信息为空"
|
||||
};
|
||||
}
|
||||
string tranType = "STK_MISDELIVERY";
|
||||
List<BOS_SELBILL> selBillList = await _selBillRepository.QuerySelBill(request.orgID, tranType);
|
||||
if (selBillList == null || selBillList.Count <= 0)
|
||||
{
|
||||
return new RetMessage
|
||||
{
|
||||
Status = 0,
|
||||
Message = "其他出库对应的出入库流程信息未找到"
|
||||
};
|
||||
}
|
||||
request.TranType = tranType;
|
||||
return await (repository as IMisInStockRepository).MisRetStockSubmit(request, selBillList);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user