hutongqing
2024-11-27 553dfb0714e78ca05a62fcf352cc1da2c0be5b70
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_DTO.Stock;
using WIDESEAWCS_IBasicRepository;
using WIDESEAWCS_IStockRepository;
using WIDESEAWCS_IStockService;
using WIDESEAWCS_Model.Models;
 
namespace WIDESEAWCS_Server.Controllers.Stock
{
    [Route("api/StockInfo")]
    [ApiController]
    public class StockInfoController : ApiBaseController<IStockInfoService, Dt_StockInfo>
    {
        public StockInfoController(IStockInfoService service) : base(service)
        {
        }
 
        [HttpPost, Route("GetAllStockViews"), AllowAnonymous]
        public List<StockViewDTO> GetAllStockViews()
        {
            return Service.Repository.GetAllStockViews();
        }
 
        //[HttpPost, Route("GetStockSelectViews"), AllowAnonymous]
        //public List<StockSelectViewDTO> GetStockSelectViews(string materielCode)
        //{
        //    return Service.GetStockSelectViews(materielCode);
        //}
 
        [HttpPost, Route("GetPalletStockInfo"), AllowAnonymous]
        public Dt_StockInfo GetPalletStockInfo(string roadwayNo)
        {
            return Service.Repository.GetPalletStockInfo(roadwayNo);
        }
    }
}