From 1c7d84d153f22148c7c8dbf80aa646edb0c53648 Mon Sep 17 00:00:00 2001
From: 刘磊 <1161824510@qq.com>
Date: 星期四, 18 十二月 2025 09:24:57 +0800
Subject: [PATCH] 同步
---
项目代码/WMS/WMSServer/WIDESEA_StorageTaskServices/BDCManager/BDCManager.cs | 49 +++++++++++++++++--------------------------------
1 files changed, 17 insertions(+), 32 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageTaskServices/BDCManager/BDCManager.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageTaskServices/BDCManager/BDCManager.cs"
index 8b0a749..21003a2 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageTaskServices/BDCManager/BDCManager.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageTaskServices/BDCManager/BDCManager.cs"
@@ -4,48 +4,33 @@
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
+using WIDESEAWCS_BasicInfoRepository;
+using WIDESEAWCS_BasicInfoService;
namespace WIDESEA_StorageTaskServices
{
- public class BDCManager : IBDCManager
+ public partial class BDCManager : IBDCManager
{
private readonly List<Dt_PalletStockInfo> _storageLocations;
- private readonly List<DtLocationInfo> _locationInfos;
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 int TotalCapacity => _locationInfos.Count;
+ // 鏇存柊鏋勯�犲嚱鏁�
+ 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;
- public bool AddToBDC(Dt_CarBody body)
- {
- throw new NotImplementedException();
- }
-
- public void GenerateReport()
- {
- throw new NotImplementedException();
- }
-
- public List<Dt_CarBody> GetInventory()
- {
- throw new NotImplementedException();
- }
-
- public List<Dt_CarBody> RetrieveByColor(int color)
- {
- throw new NotImplementedException();
- }
-
- public List<Dt_CarBody> RetrieveByModel(string model)
- {
- throw new NotImplementedException();
- }
-
- public Dt_CarBody RetrieveFromBDC(string bodyId)
- {
- throw new NotImplementedException();
- }
}
}
--
Gitblit v1.9.3