dengjunjie
2025-05-20 be484c84a25d1f6c769e7b5e958048d745942e55
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
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core;
using WIDESEA_Core.BaseServices;
using WIDESEA_DTO.Stock;
using WIDESEA_DTO.WCSInfo;
using WIDESEA_IStockRepository;
using WIDESEA_Model.Models;
 
namespace WIDESEA_IStockService
{
    public interface IStockInfoService : IService<Dt_StockInfo>
    {
        IStockInfoRepository Repository { get; }
 
        Dt_StockInfo? GetStockByPalletCode(string palletCode);
        /// <summary>
        /// 修改库存信息及入库单
        /// </summary>
        /// <param name="stockInfo"></param>
        /// <param name="inboundOrder"></param>
        /// <returns></returns>
        WebResponseContent AddStockInfo(ref Dt_StockInfo stockInfo, ref Dt_InboundOrder inboundOrder, ProductionlineDTO productionlineDTO);
        /// <summary>
        /// 添加空托组盘信息
        /// </summary>
        /// <param name="palletCode"></param>
        /// <returns></returns>
        WebResponseContent AddStockEmpty(string palletCode);
 
        void AddMaterielGroup(Dt_StockInfo stockInfo);
 
        List<Dt_StockInfo> GetUseableStocks(string materielCode);
 
        List<StockSelectViewDTO> GetStockSelectViews(string materielCode);
 
        List<Dt_StockInfo> GetOutboundStocks(List<Dt_StockInfo> stockInfos, string materielCode, decimal needQuantity, out decimal residueQuantity);
    }
}