qinchulong
2024-10-12 b17d60113095491a95557f6f785cb1c0e744e8cc
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
43
44
45
46
47
48
49
50
51
using WIDESEA_Core.BaseRepository;
using WIDESEA_Core.BaseServices;
using WIDESEA_IRepository;
using WIDESEA_IServices;
using WIDESEA_Model.Models;
 
namespace WIDESEA_Services
{
    public class Dt_OutOrderAndStockService : ServiceBase<Dt_OutOrderAndStock, IDt_OutOrderAndStockRepository>, IDt_OutOrderAndStockService
    {
        private readonly IUnitOfWorkManage _unitOfWorkManage;
 
        public Dt_OutOrderAndStockService(IDt_OutOrderAndStockRepository BaseDal,
                                  IUnitOfWorkManage unitOfWorkManage) : base(BaseDal)
        {
            _unitOfWorkManage = unitOfWorkManage;
        }
 
        /// <summary>
        /// 根据特定条件获取出库物料信息
        /// </summary>
        /// <param name="locationID">货位ID</param>
        /// <param name="orderNum">出库订单</param>
        /// <param name="palletCode">托盘号</param>
        /// <returns>出库物料信息</returns>
        public async Task<Dt_OutOrderAndStock> GetOrderAndStock(string locationID = null, string orderNum = null, string palletCode = null)
        {
            return await BaseDal.GetOrderAndStock(locationID, orderNum, palletCode);
        }
 
        /// <summary>
        /// 导航删除
        /// </summary>
        /// <param name="stock">出库物料信息</param>
        /// <returns>成功/失败</returns>
        public bool DeleteNavOrderStock(Dt_OutOrderAndStock stock)
        {
            return BaseDal.DeleteNavOrderStock(stock);
        }
 
        /// <summary>
        /// 导航更新
        /// </summary>
        /// <param name="stock">出库物料信息</param>
        /// <returns>成功/失败</returns>
        public bool UpdateNavOrderStock(Dt_OutOrderAndStock stock)
        {
            return BaseDal.UpdateNavOrderStock(stock);
        }
    }
}