1
hutongqing
2024-09-13 3ca95f10e441ff66d4d62f8dfe202bfb26c3c8e8
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
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
 
namespace WIDESEA_Model.Models
{
    [SugarTable(nameof(Dt_MaterielInfo), "物料信息")]
    public class Dt_MaterielInfo : BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int Id { get; set; }
 
        [SugarColumn(IsNullable = false, ColumnDescription = "区域主键")]
        public int AreaId { get; set; }
 
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编号")]
        public string MaterielCode { get; set; }
 
        [SugarColumn(IsNullable = false, Length = 200, ColumnDescription = "物料名称")]
        public string MaterielName { get; set; }
 
        [SugarColumn(IsNullable = true, Length = 500, ColumnDescription = "物料描述")]
        public string MaterielDes { get; set; }
 
        [SugarColumn(IsNullable = false, ColumnDescription = "容器类型", DefaultValue = "0")]
        public int CotainerType { get; set; }
 
        [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "包装规格")]
        public string Packspes { get; set; }
 
        [SugarColumn(IsNullable = false, ColumnDescription = "物料属性", DefaultValue = "0")]
        public int Attribute { get; set; }
 
        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "计量单位", DefaultValue = "0")]
        public string Unit { get; set; }
 
        [SugarColumn(IsNullable = false, ColumnDescription = "有效期", DefaultValue = "-1")]
        public int Validity { get; set; }
 
        [SugarColumn(IsNullable = false, DecimalDigits = 2, ColumnDescription = "安全库存", DefaultValue = "-1")]
        public decimal SafetyStock { get; set; }
 
        [SugarColumn(IsNullable = false, ColumnDescription = "是否允许混批")]
        public bool IsMixBatch { get; set; }
 
        [SugarColumn(IsNullable = false, ColumnDescription = "是否允许混料")]
        public bool IsMixMateriel { get; set; }
 
        [SugarColumn(IsNullable = true, Length = 200, ColumnDescription = "备注")]
        public string Remark { get; set; }
    }
}