刘磊
2025-11-17 efbeb93b3d454f06d65dbcc68ad828cc95bc9404
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
62
63
64
65
66
67
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace WIDESEA_Model.Models
{
    /// <summary>
    /// BDC缓存配置,存储各类物料的最大缓存数量限制
    /// </summary>
    [SugarTable(nameof(Dt_BDCConfiguration), "BDC缓存配置")]
    public class Dt_BDCConfiguration
    {
        [Key]
        public int Id { get; set; }
 
        /// <summary>
        /// 配置名称
        /// </summary>
        [Required]
        [MaxLength(100)]
        public string Name { get; set; } = "Default Configuration";
 
        /// <summary>
        /// 白车身最大缓存数
        /// </summary>
        [Range(0, int.MaxValue)]
        public int MaxWhiteBodyCache { get; set; } = 100;
 
        /// <summary>
        /// 彩车身最大缓存数
        /// </summary>
        [Range(0, int.MaxValue)]
        public int MaxPaintedBodyCache { get; set; } = 100;
 
        /// <summary>
        /// 电池壳最大缓存数
        /// </summary>
        [Range(0, int.MaxValue)]
        public int MaxBatteryCaseCache { get; set; } = 50;
 
        /// <summary>
        /// 空滑橇最大缓存数
        /// </summary>
        [Range(0, int.MaxValue)]
        public int MaxEmptySledCache { get; set; } = 30;
 
        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime LastUpdatedTime { get; set; } = DateTime.Now;
 
        /// <summary>
        /// 更新人
        /// </summary>
        [MaxLength(50)]
        public string UpdatedBy { get; set; } = "System";
 
        /// <summary>
        /// 是否启用
        /// </summary>
        public int IsActive { get; set; }
    }
}