| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_IInboundService; |
| | | using WIDESEA_Model.Models; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers.Inbound |
| | | { |
| | | /// <summary> |
| | | /// éè´åæç» |
| | | /// </summary> |
| | | [Route("api/PurchaseOrderDetail")] |
| | | [ApiController] |
| | | public class PurchaseOrderDetailController : ApiBaseController<IPurchaseOrderDetailService, Dt_PurchaseOrderDetail> |
| | |
| | | public PurchaseOrderDetailController(IPurchaseOrderDetailService service) : base(service) |
| | | { |
| | | } |
| | | [HttpPost, HttpGet, Route("GetPurchaseOrderDetailMaterielCode"), AllowAnonymous] |
| | | public WebResponseContent GetPurchaseOrderDetailMaterielCode(int warehouseId) |
| | | { |
| | | return Service.GetPurchaseOrderDetailMaterielCode(warehouseId); |
| | | } |
| | | [HttpPost, HttpGet, Route("GetPurchaseOrderNos"), AllowAnonymous] |
| | | public WebResponseContent GetPurchaseOrderNos(string materielCode) |
| | | { |
| | | return Service.GetPurchaseOrderNos(materielCode); |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("GetOrderQuantity"), AllowAnonymous] |
| | | public WebResponseContent GetOrderQuantity(string purchaseOrderNo) |
| | | { |
| | | return Service.GetOrderQuantity(purchaseOrderNo); |
| | | } |
| | | //è·åç©æè§æ ¼ |
| | | [HttpPost, HttpGet, Route("GetOrderMaterielSpec"), AllowAnonymous] |
| | | public WebResponseContent GetOrderMaterielSpec(string purchaseOrderNo, string materielCode) |
| | | { |
| | | return Service.GetOrderMaterielSpec(purchaseOrderNo, materielCode); |
| | | } |
| | | } |
| | | } |