using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Security.Cryptography.X509Certificates;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEAWCS_BasicInfoRepository;
|
using WIDESEAWCS_BasicInfoService;
|
|
namespace WIDESEA_StorageTaskServices
|
{
|
public partial class BDCManager : IBDCManager
|
{
|
private readonly List<Dt_PalletStockInfo> _storageLocations;
|
private readonly object _lock = new object();
|
private readonly IDt_BDCConfigurationService _BDCConfigurationService;
|
private readonly ILocationInfoRepository _locationRepository;
|
private readonly IDt_RoadWayInfoRepository _roadWayInfoRepository;
|
private readonly IDt_RoadWayRepository _roadWayRepository;
|
|
|
// 更新构造函数
|
public BDCManager(IDt_BDCConfigurationService BDCConfigurationService, ILocationInfoRepository locationInfoRepository, IDt_RoadWayInfoRepository roadWayInfoRepository )
|
{
|
_BDCConfigurationService = BDCConfigurationService;
|
_locationRepository = locationInfoRepository;
|
_roadWayInfoRepository = roadWayInfoRepository;
|
}
|
|
|
public List<DtLocationInfo> TotalCapacity => _locationRepository.QueryData();
|
|
public int CurrentOccupancy => _storageLocations.Count;
|
|
}
|
}
|