using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WIDESEA_StorageTaskServices { public partial class BDCManager { public async Task AddToBDC(Dt_CarBody body) { // 根据车身类型检查是否可以入库 if (body.CarType == (int)BodyType.WhiteBody) { if (!await _BDCConfigurationService.CanAddWhiteBody()) { Console.WriteLine($"无法入库:白车身已达到最大缓存限制"); return false; } } else // 彩车身 { if (!await _BDCConfigurationService.CanAddPaintedBody()) { Console.WriteLine($"无法入库:彩车身已达到最大缓存限制"); return false; } } //TotalCapacity.Where(x=>x.EnalbeStatus == (int)EnableEnum.Enable && x.LocationStatus == (int)LocationEnum.Free).OrderByDescending.FirstOrDefault(); return true; } public void GenerateReport() { throw new NotImplementedException(); } public List GetInventory() { throw new NotImplementedException(); } public List RetrieveByColor(int color) { throw new NotImplementedException(); } public List RetrieveByModel(string model) { throw new NotImplementedException(); } public Dt_CarBody RetrieveFromBDC(string bodyId) { throw new NotImplementedException(); } } }