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;
///
/// 构造函数
///
///
public YardBookController(IOP_YARD_BOOKService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetYardBookList")]
public DataResult> GetListByPage([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
///
///
///
///
[HttpPost]
[Route("EditBook")]
public DataResult EditBook([FromBody]OP_YARD_BOOKInput model)
{
var res = _invokeService.EditBOOK(model);
return res;
}
///
/// 发运预约便捷
///
///
///
[HttpPost]
[Route("DespatchEdit")]
public DataResult DespatchEdit([FromBody]DespatchInput model)
{
var res = _invokeService.DespatchEdit(model);
return res;
}
///
/// 发运预约提交
///
///
///
[HttpGet]
[Route("SubmitDespatch")]
public DataResult SubmitDespatch([FromQuery]string id)
{
var res = _invokeService.SubmitDespatch(id);
return res;
}
///
/// 删除预约信息
///
///
///
[HttpGet]
[Route("DelBookInfo")]
public DataResult DelBookInfo([FromQuery]string id)
{
var res = _invokeService.DelBookInfo(id);
return res;
}
///
/// 发运预约材料提交
///
///
///
[HttpGet]
[Route("SubmitDespatchFile")]
public DataResult SubmitDespatchFile([FromQuery]string id)
{
var res = _invokeService.SubmitDespatchFile(id);
return res;
}
///
/// 提箱预约编辑
///
///
///
[HttpPost]
[Route("TakeBoxEdit")]
public DataResult TakeBoxEdit([FromBody]TakeBoxInput model)
{
var res = _invokeService.TakeBoxEdit(model);
return res;
}
///
/// 提箱预约提交
///
///
///
[HttpGet]
[Route("SubmitTakeBox")]
public DataResult SubmitTakeBox([FromQuery]string id)
{
var res = _invokeService.SubmitTakeBox(id);
return res;
}
///
/// 提箱预约撤销
///
///
///
[HttpGet]
[Route("CancelTakeBox")]
public DataResult CancelTakeBox([FromQuery]string id)
{
var res = _invokeService.CancelTakeBox(id);
return res;
}
///
/// 提交
///
///
///
[HttpPost]
[Route("SubmitBook")]
public DataResult SubmitBook([FromBody]OP_YARD_BOOKInput model)
{
var res = _invokeService.SubmitBook(model);
return res;
}
///
/// 上传发运装箱资料
///
///
///
[HttpPost]
[Route("UploadDespatchFiles")]
public DataResult UploadDespatchFiles([FromBody]DespatchFileInput model)
{
var res = _invokeService.UploadDespatchFiles(model);
return res;
}
///
/// 获取文件列表
///
///
///
[HttpGet]
[Route("GetFileList")]
public DataResult> GetFileList([FromQuery]string id)
{
var res = _invokeService.GetFileList(id);
return res;
}
///
/// 获取预约信息
///
///
///
[HttpGet]
[Route("GetBookInfo")]
public DataResult GetBookInfo([FromQuery]string id)
{
var res = _invokeService.GetBookInfo(id);
return res;
}
///
/// 获取发运预约及装箱资料信息
///
///
///
[HttpGet]
[Route("GetDespatchInfo")]
public DataResult GetDespatchInfo([FromQuery]string id)
{
var res = _invokeService.GetDespatchInfo(id);
return res;
}
///
/// 打印磅单
///
///
///
[HttpGet]
[Route("GetPrintInfo")]
public async Task GetPrintInfo([FromQuery]string ids)
{
var res = await _invokeService.GetPrintInfo(ids);
return res;
}
}