75 lines
2.4 KiB
C#
75 lines
2.4 KiB
C#
using MyCode.Project.Domain.Message.Act.PurchaseOrder;
|
|
using MyCode.Project.Domain.Message.Common;
|
|
using MyCode.Project.Domain.Message.Request.InvoiceOrder;
|
|
using MyCode.Project.Domain.Message.Request.PurchaseOrder;
|
|
using MyCode.Project.Domain.Message.Request.User;
|
|
using MyCode.Project.Domain.Message.Response.InvoiceOrder;
|
|
using MyCode.Project.Domain.Message.Response.PurchaseOrder;
|
|
using MyCode.Project.Domain.Message.Response.User;
|
|
using MyCode.Project.Infrastructure.Common;
|
|
using MyCode.Project.Infrastructure.Extensions;
|
|
using MyCode.Project.Repositories.Common;
|
|
using MyCode.Project.Services;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Web.Http;
|
|
|
|
namespace MyCode.Project.WebApi.Areas.Admin.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 发货通知单相关
|
|
/// </summary>
|
|
public class InvoiceOrderController : BaseAdminController
|
|
{
|
|
private IInvoiceOrderService _invoiceOrderService;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="invoiceOrderService"></param>
|
|
public InvoiceOrderController(IInvoiceOrderService invoiceOrderService
|
|
)
|
|
{
|
|
_invoiceOrderService = invoiceOrderService;
|
|
}
|
|
|
|
#region GetPageList(发货通知单分页列表查询)
|
|
/// <summary>
|
|
/// 发货通知单分页列表查询
|
|
/// </summary>
|
|
/// <param name="pagedSearch"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public PageResult<InvoiceOrderPageList> GetPageList(PagedSearch<InvoiceOrderPageSearch> pagedSearch)
|
|
{
|
|
return _invoiceOrderService.GetPageList(pagedSearch, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region DeleteOrder(删除某个发货订单)
|
|
/// <summary>
|
|
/// 删除某个发货订单
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public void DeleteOrder(IdAct act)
|
|
{
|
|
_invoiceOrderService.DeleteOrder(act, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region SetBaoShuTiaoMa(根据每包数量得到全部包裹打印条码)
|
|
/// <summary>
|
|
/// 根据每包数量得到全部包裹打印条码
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public TiaoMaResp SetBaoShuTiaoMa(TiaoMaAct act)
|
|
{
|
|
return _invoiceOrderService.SetBaoShuTiaoMa(act);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|