/*
|
*接口编写处...
|
*如果接口需要做Action的权限验证,请在Action上使用属性
|
*如: [ApiActionPermission("Dt_outboundorder_head",Enums.ActionPermissionOptions.Search)]
|
*/
|
|
using Microsoft.AspNetCore.Mvc;
|
using System;
|
using System.Collections.Generic;
|
using System.Threading.Tasks;
|
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.AspNetCore.Http;
|
using WIDESEA.Entity.DomainModels;
|
using WIDESEA.Services.IServices;
|
using WIDESEA.Core.Utilities;
|
using Microsoft.AspNetCore.Authorization;
|
|
namespace WIDESEA.Services.Controllers
|
{
|
public partial class Dt_outboundorder_headController
|
{
|
private readonly IDt_outboundorder_headService _service;//访问业务代码
|
private readonly IHttpContextAccessor _httpContextAccessor;
|
|
[ActivatorUtilitiesConstructor]
|
public Dt_outboundorder_headController(
|
IDt_outboundorder_headService service,
|
IHttpContextAccessor httpContextAccessor
|
)
|
: base(service)
|
{
|
_service = service;
|
_httpContextAccessor = httpContextAccessor;
|
}
|
|
//by rover
|
//根据创建的出库订单,获取所有分配的出库铜剁
|
[HttpPost, Route("GetDistributionList")]
|
public WebResponseContent GetDistributionList([FromBody] SaveModel saveModel)
|
{
|
return Service.GetDistributionList(saveModel);
|
}
|
|
/// <summary>
|
/// 获取历史产品配货单
|
/// </summary>
|
/// <param name="saveModel"></param>
|
/// <returns></returns>
|
[HttpPost, Route("GetDistributionListhty")]
|
public WebResponseContent GetDistributionListhty([FromBody] SaveModel saveModel)
|
{
|
return Service.GetDistributionListhty(saveModel);
|
}
|
|
//获取产品配货清单
|
[HttpPost, Route("GetDeliveryList")]
|
public WebResponseContent GetDeliveryList([FromBody] SaveModel saveModel)
|
{
|
return Service.GetDeliveryList(saveModel);
|
}
|
|
//获取产品批次清单
|
[HttpPost, Route("GetproductbatchList")]
|
public WebResponseContent GetproductbatchList([FromBody] SaveModel saveModel)
|
{
|
return Service.GetproductbatchList(saveModel);
|
}
|
|
//历史中获取产品批次清单
|
[HttpPost, Route("GetproductbatchListhty")]
|
public WebResponseContent GetproductbatchListhty([FromBody] SaveModel saveModel)
|
{
|
return Service.GetproductbatchListhty(saveModel);
|
}
|
|
//历史中获取产品配货清单
|
[HttpPost, Route("GetDeliveryListhty")]
|
public WebResponseContent GetDeliveryListhty([FromBody] SaveModel saveModel)
|
{
|
return Service.GetDeliveryListhty(saveModel);
|
}
|
|
|
|
//获取获取出入库、库存汇总信息
|
[HttpPost, Route("GetInToOutToTalList")]
|
public WebResponseContent GetInToOutToTalList([FromBody] SaveModel saveModel)
|
{
|
return Service.GetInToOutToTalList(saveModel);
|
}
|
|
//获取出库汇总信息
|
[HttpPost, Route("GetOutToTalList")]
|
public WebResponseContent GetOutToTalList([FromBody] SaveModel saveModel)
|
{
|
return Service.GetOutToTalList(saveModel);
|
}
|
//获取入库汇总信息
|
[HttpPost, Route("GetInToTalList")]
|
public WebResponseContent GetInToTalList([FromBody] SaveModel saveModel)
|
{
|
return Service.GetInToTalList(saveModel);
|
}
|
|
//获取库存汇总信息
|
[HttpPost, Route("GetConTalList")]
|
public WebResponseContent GetConTalList()
|
{
|
return Service.GetConTalList();
|
}
|
|
//获取获取出入库、库存明细清单
|
[HttpPost, Route("GetInToOutToTalListDetail")]
|
public WebResponseContent GetInToOutToTalListDetail([FromBody] SaveModel saveModel)
|
{
|
return Service.GetInToOutToTalListDetail(saveModel);
|
}
|
|
//获取获取出入库、库存明细清单
|
[HttpPost, Route("GetReleaseStrip")]
|
public WebResponseContent GetReleaseStrip([FromBody] SaveModel saveModel)
|
{
|
return Service.GetReleaseStrip(saveModel);
|
}
|
|
//获取入库明细清单
|
[HttpPost, Route("GetInInToTalListDetail")]
|
public WebResponseContent GetInInToTalListDetail([FromBody] SaveModel saveModel)
|
{
|
return Service.GetInInToTalListDetail(saveModel);
|
}
|
|
//获取出库明细清单
|
[HttpPost, Route("GetInOutToTalListDetail")]
|
public WebResponseContent GetInOutToTalListDetail([FromBody] SaveModel saveModel)
|
{
|
return Service.GetInOutToTalListDetail(saveModel);
|
}
|
|
//获取库存明细清单
|
[HttpPost, Route("GetInConToTalListDetail")]
|
public WebResponseContent GetInConToTalListDetail([FromBody] SaveModel saveModel)
|
{
|
return Service.GetInConToTalListDetail(saveModel);
|
}
|
|
/// <summary>
|
/// 获取入库计量单
|
/// </summary>
|
/// <param name="saveModel"></param>
|
/// <returns></returns>
|
[HttpPost, Route("GetMeasurementsheet")]
|
public WebResponseContent GetMeasurementsheet([FromBody] SaveModel saveModel) {
|
return Service.GetMeasurementsheet(saveModel);
|
}
|
|
/// <summary>
|
/// 获取入库计量单
|
/// </summary>
|
/// <param name="saveModel"></param>
|
/// <returns></returns>
|
[HttpPost, Route("GetReleaseStripHty")]
|
public WebResponseContent GetReleaseStripHty([FromBody] SaveModel saveModel)
|
{
|
return Service.GetReleaseStripHty(saveModel);
|
}
|
}
|
}
|