baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
+106
@@ -0,0 +1,106 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Opsoft.NetCore.O3App.Domain;
|
||||
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IServices;
|
||||
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
|
||||
using Opsoft.NetCore.O3App.Shared;
|
||||
using Opsoft.NetCore.O3App.WebApi.Models;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Opsoft.NetCore.O3App.WebApi.Controllers.WMS
|
||||
{
|
||||
[Authorize]
|
||||
public class BillHandleController : BaseApiController<BillHandleController>
|
||||
{
|
||||
private readonly IBillHandleService _Service;
|
||||
public BillHandleController(IMapper mapper, ILogger<BillHandleController> logger, IBillHandleService Service)
|
||||
: base(mapper, logger)
|
||||
{
|
||||
_Service = Service;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询需要进行复核的单据信息
|
||||
/// </summary>
|
||||
/// <param name="fNO"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<List<TRAN_INFO>>> QuerySelBill()
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await _Service.QuerySelBill();
|
||||
}, LoginInfo);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 扫描单据编号,查询单据信息
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<BaseResponse<object>> QueryBillInfo([FromBody] JObject data)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
RetMessage retMess = await _Service.QueryBillInfo(data);
|
||||
if (retMess == null || retMess.Status == 0)
|
||||
{
|
||||
throw new O3AppException(retMess.Message);
|
||||
}
|
||||
else
|
||||
{
|
||||
return retMess.Data["data"];
|
||||
}
|
||||
}, LoginInfo);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 扫描条码,查询条码信息
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<BaseResponse<object>> QueryBarCode([FromBody] JObject data)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
RetMessage retMess = await _Service.QueryBarCode(data);
|
||||
if (retMess == null || retMess.Status == 0)
|
||||
{
|
||||
throw new O3AppException(retMess.Message);
|
||||
}
|
||||
else
|
||||
{
|
||||
return retMess.Data["data"];
|
||||
}
|
||||
}, LoginInfo);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 出入库复核提交
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<BaseResponse<object>> CheckSubmit([FromBody] CheckBarCode<BD_BARCODERS2> request)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
RetMessage retMess = await _Service.CheckSubmit(request.orgID, request.tranType, request.fbillNo, request.barcodeList);
|
||||
if (retMess == null || retMess.Status == 0)
|
||||
{
|
||||
throw new O3AppException(retMess.Message);
|
||||
}
|
||||
else
|
||||
{
|
||||
return retMess.Data["data"];
|
||||
}
|
||||
}, LoginInfo);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user