You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using DS.Module.Core;
|
|
|
|
|
using DS.WMS.Core.System.Dtos;
|
|
|
|
|
using DS.WMS.Core.System.Entity;
|
|
|
|
|
using DS.WMS.Core.System.Interface;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace DS.WMS.WebApi.Controllers;
|
|
|
|
|
|
|
|
|
|
public class YardBookController : ApiController
|
|
|
|
|
{
|
|
|
|
|
private readonly IOP_YARD_BOOKService _invokeService;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 构造函数
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="invokeService"></param>
|
|
|
|
|
public YardBookController(IOP_YARD_BOOKService invokeService)
|
|
|
|
|
{
|
|
|
|
|
_invokeService = invokeService;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("GetYardBookList")]
|
|
|
|
|
public DataResult<List<VW_OP_YARD_BOOK>> GetListByPage([FromBody] PageRequest request)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetListByPage(request);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[Route("EditBook")]
|
|
|
|
|
public DataResult EditBook([FromBody] OP_YARD_BOOKInput model)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.EditBOOK(model);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("SubmitBook")]
|
|
|
|
|
public DataResult SubmitBook([FromQuery]string id)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.SubmitBook(id);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 获取文件列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet]
|
|
|
|
|
[Route("GetFileList")]
|
|
|
|
|
public DataResult<List<fileinfo>> GetFileList([FromQuery]string id)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.GetFileList(id);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
}
|