baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
+99
@@ -0,0 +1,99 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Opsoft.NetCore.O3App.Domain;
|
||||
using Opsoft.NetCore.O3App.Domain.UnitOfWork.MES.IServices;
|
||||
using Opsoft.NetCore.O3App.Domain.UnitOfWork.MES.Model;
|
||||
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.Filters;
|
||||
using Opsoft.NetCore.O3App.WebApi.Models;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Opsoft.NetCore.O3App.WebApi.Controllers.MES
|
||||
{
|
||||
/// <summary>
|
||||
/// 质检
|
||||
/// </summary>
|
||||
[Authorize]
|
||||
public class QualityCheckController : BaseApiController<QualityCheckController>
|
||||
{
|
||||
private readonly IQualityCheckService service;
|
||||
public QualityCheckController(IMapper mapper, ILogger<QualityCheckController> logger, IQualityCheckService Service)
|
||||
: base(mapper, logger)
|
||||
{
|
||||
service = Service;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询质检单
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<BaseResponse<object>> SearchQualityBill([FromBody] JObject request)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.SearchQualityBill(input);
|
||||
}, request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得质检单信息
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<BaseResponse<object>> GetQualityBill([FromBody] JObject request)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.GetQualityBill(input);
|
||||
}, request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存质检单信息
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<BaseResponse<object>> SaveQualityBill([FromBody] T_SFC_QUALITY request)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.SaveQualityBill(input);
|
||||
}, request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存质检单信息
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<BaseResponse<object>> QualityBillInspectionCompleted([FromBody] T_SFC_QUALITY request)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.QualityBillInspectionCompleted(input);
|
||||
}, request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存质检单信息
|
||||
/// </summary>
|
||||
/// <param name="data"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<BaseResponse<object>> OpenWin([FromBody] JObject request)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.OpenWin(input);
|
||||
}, request);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user