| | |
| | | [ApiController] |
| | | public class StockInfoController : ApiBaseController<IStockInfoService, Dt_StockInfo> |
| | | { |
| | | private readonly IStockInfoRepository _stockInfoRepository; |
| | | public StockInfoController(IStockInfoService service, IStockInfoRepository stockInfoRepository) : base(service) |
| | | public StockInfoController(IStockInfoService service) : base(service) |
| | | { |
| | | _stockInfoRepository = stockInfoRepository; |
| | | } |
| | | |
| | | [HttpPost, Route("GetAllStockViews"), AllowAnonymous] |
| | | [HttpPost, Route("GetAllStockViews"),AllowAnonymous] |
| | | public List<StockViewDTO> GetAllStockViews() |
| | | { |
| | | return _stockInfoRepository.GetAllStockViews(); |
| | | return Service.Repository.GetAllStockViews(); |
| | | } |
| | | |
| | | [HttpPost, Route("GetStockSelectViews"), AllowAnonymous] |
| | |
| | | { |
| | | return Service.GetStockSelectViews(materielCode); |
| | | } |
| | | [HttpPost, Route("GetPalletStockInfo"), AllowAnonymous] |
| | | public Dt_StockInfo GetPalletStockInfo([FromBody] string roadwayNo) |
| | | { |
| | | return Service.Repository.GetPalletStockInfo(roadwayNo); |
| | | } |
| | | } |
| | | } |