刘磊
2 天以前 1c7d84d153f22148c7c8dbf80aa646edb0c53648
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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_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<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();
        }
    }
}