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<bool> AddToBDC(Dt_CarBodyInfo 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<Dt_CarBodyInfo> GetInventory()
|
{
|
throw new NotImplementedException();
|
}
|
|
public List<Dt_CarBodyInfo> RetrieveByColor(int color)
|
{
|
throw new NotImplementedException();
|
}
|
|
public List<Dt_CarBodyInfo> RetrieveByModel(string model)
|
{
|
throw new NotImplementedException();
|
}
|
|
public Dt_CarBodyInfo RetrieveFromBDC(string bodyId)
|
{
|
throw new NotImplementedException();
|
}
|
}
|
}
|