baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
@@ -0,0 +1,209 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using Opsoft.NetCore.O3App.Domain.UnitOfWork.IPadReport.IServices;
|
||||
using Opsoft.NetCore.O3App.Domain.UnitOfWork.IPadReport.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.IPadReport
|
||||
{
|
||||
/// <summary>
|
||||
/// 汇报信息查询控制层
|
||||
/// </summary>
|
||||
[Authorize]
|
||||
public class ReportInfoLoadController : BaseApiController<ReportInfoLoadController>
|
||||
{
|
||||
//服务层变量
|
||||
private readonly IReportInfoLoadService service;
|
||||
public ReportInfoLoadController(IMapper mapper, ILogger<ReportInfoLoadController> logger, IReportInfoLoadService reportInfoLoadService)
|
||||
: base(mapper, logger)
|
||||
{
|
||||
service = reportInfoLoadService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按工作中心代码获取资源信息
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<List<Basic>>> QueryResourceByWorkCenter([FromQuery] Dictionary<string, string> paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.QueryResourceByWorkCenter(input);
|
||||
}, paramaters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 依据班组=>员工信息/员工信息=>班组
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<List<Basic>>> GetTeamFromEmp([FromQuery] Dictionary<string, string> paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.GetTeamEmpTwo(input);
|
||||
}, paramaters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 历史汇报信息加载
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<List<ProductionAct>>> ReloadHisReport([FromQuery] Dictionary<string, string> paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.ReloadReportHisReport(input);
|
||||
}, paramaters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 历史汇报信息加载
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<object>> ReloadHisReports([FromQuery] Dictionary<string, string> paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.ReloadReportHisReports(input);
|
||||
}, paramaters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 单资源汇报信息加载
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<ProductionAct>> ReloadSingeleResource([FromQuery] Dictionary<string, string> paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.ReloadSingeleResource(input);
|
||||
}, paramaters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 单资源汇报信息加载(Web)
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<ProductionAct>> ReloadSingeleResourceWeb([FromQuery] Dictionary<string, string> paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.ReloadSingeleResourceWeb(input);
|
||||
}, paramaters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 提交资源信息
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<BaseResponse<List<ProductionAct>>> SubmitResouces([FromBody] JObject paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.SubmitResouces(input);
|
||||
}, paramaters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除资源信息
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<BaseResponse<List<string>>> DeleteResources([FromBody] JObject paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.DeleteResources(input);
|
||||
}, paramaters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询条码类型及信息
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<Dictionary<string, object>>> GetBarcodeInfo([FromQuery] Dictionary<string, string> paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.GetBarcodeInfo(input);
|
||||
}, paramaters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询SN汇报扫描条码信息
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<bool>> CheckSNReportBarcode([FromQuery] Dictionary<string, string> paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.CheckSNReportBarcode(input);
|
||||
}, paramaters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询周转码汇报数量
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<decimal>> GetConutByTCCode([FromQuery] Dictionary<string, string> paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.GetConutByTCCode(input);
|
||||
}, paramaters);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重置汇报系统参数
|
||||
/// </summary>
|
||||
/// <param name="paramaters"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<Dictionary<string, object>>> ReLoadReportSystemParam()
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.ReLoadReportSystemParam();
|
||||
}, string.Empty);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取生产信息
|
||||
/// </summary>
|
||||
/// <param name="SData"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<BaseResponse<object>> GetReportMessage([FromQuery] Dictionary<string, string> paramaters)
|
||||
{
|
||||
return await TryProcess(async input =>
|
||||
{
|
||||
return await service.GetReportMessage(input);
|
||||
}, paramaters);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user