using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; using WIDESEA_IStoragIntegrationServices; using WIDESEAWCS_BasicInfoRepository; using WIDESEAWCS_BasicInfoService; namespace WIDESEA_StorageTaskServices { public partial class BDCManager : IBDCManager { private readonly List _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; private readonly IMESService _mesService; // 更新构造函数 public BDCManager(IDt_BDCConfigurationService BDCConfigurationService, ILocationInfoRepository locationInfoRepository, IDt_RoadWayInfoRepository roadWayInfoRepository, IMESService mesService) { _BDCConfigurationService = BDCConfigurationService; _locationRepository = locationInfoRepository; _roadWayInfoRepository = roadWayInfoRepository; _mesService = mesService; } public List TotalCapacity => _locationRepository.QueryData(); public int CurrentOccupancy => _storageLocations.Count; } }