using SqlSugar; namespace MES.Service.Modes; /// /// [SugarTable("MES_DEPOTS")] public class MesDepots { /// /// /// 默认值: (newid()) /// [SugarColumn(ColumnName = "guid", IsPrimaryKey = true)] public Guid Guid { get; set; } /// /// 仓库ID /// [SugarColumn(ColumnName = "depot_id", IsNullable = false)] public long DepotId { get; set; } /// /// 仓库编码 /// [SugarColumn(ColumnName = "depot_code", Length = 50, IsNullable = true)] public string? DepotCode { get; set; } /// /// 仓库名称 /// [SugarColumn(ColumnName = "depot_name", Length = 100, IsNullable = true)] public string? DepotName { get; set; } /// /// 备注 /// [SugarColumn(ColumnName = "description", Length = 255, IsNullable = true)] public string? Description { get; set; } /// /// 仓库负责人 /// [SugarColumn(ColumnName = "create_by", Length = 20, IsNullable = true)] public string? CreateBy { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "create_date", IsNullable = true)] public DateTime? CreateDate { get; set; } /// /// 最后更新人 /// [SugarColumn(ColumnName = "lastupdate_by", Length = 20, IsNullable = true)] public string? LastupdateBy { get; set; } /// /// 最后更新时间 /// [SugarColumn(ColumnName = "lastupdate_date", IsNullable = true)] public DateTime? LastupdateDate { get; set; } /// /// 仓库类型 /// [SugarColumn(ColumnName = "depottype", Length = 30, IsNullable = true)] public string? Depottype { get; set; } /// /// 分厂编码 /// [SugarColumn(ColumnName = "factory", Length = 20, IsNullable = true)] public string? Factory { get; set; } /// /// 物料使用 (默认 0) /// [SugarColumn(ColumnName = "type_1", IsNullable = true)] public int? Type1 { get; set; } /// /// 成品使用 (默认 0) /// [SugarColumn(ColumnName = "type_2", IsNullable = true)] public int? Type2 { get; set; } /// /// 仓库类型编码 /// [SugarColumn(ColumnName = "depottypecode", IsNullable = true)] public int? Depottypecode { get; set; } /// /// 公司代码 /// [SugarColumn(ColumnName = "company", Length = 20, IsNullable = true)] public string? Company { get; set; } /// /// 看板图标样式 /// [SugarColumn(ColumnName = "icon_type", IsNullable = true)] public int? IconType { get; set; } /// /// 是否委外仓库 (默认 0) /// [SugarColumn(ColumnName = "is_wy", IsNullable = true)] public int? IsWy { get; set; } /// /// 禁用状态 (默认 0) 注意:原表为 nvarchar(10) 且默认 '0' /// [SugarColumn(ColumnName = "is_ng", Length = 10, IsNullable = true)] public string? IsNg { get; set; } /// /// 仓库地址 /// [SugarColumn(ColumnName = "cwhaddress", Length = 200, IsNullable = true)] public string? Cwhaddress { get; set; } /// /// 看板显示区域编号 (默认 1) /// [SugarColumn(ColumnName = "pi_type", Length = 10, IsNullable = true)] public string? PiType { get; set; } /// /// 分组 /// [SugarColumn(ColumnName = "zuid", Length = 20, IsNullable = true)] public string? Zuid { get; set; } /// /// 允许即时库存负库存 /// [SugarColumn(ColumnName = "is_fkc", Length = 30, IsNullable = true)] public string? IsFkc { get; set; } /// /// 生产车间 /// [SugarColumn(ColumnName = "production_workshop", Length = 32, IsNullable = true)] public string? ProductionWorkshop { get; set; } /// /// 物料属性 /// [SugarColumn(ColumnName = "material_properti", Length = 32, IsNullable = true)] public string? MaterialProperti { get; set; } /// /// 自定义字段3 /// [SugarColumn(ColumnName = "remark3", Length = 32, IsNullable = true)] public string? Remark3 { get; set; } /// /// 自定义字段4 /// [SugarColumn(ColumnName = "remark4", Length = 32, IsNullable = true)] public string? Remark4 { get; set; } /// /// 自定义字段5 /// [SugarColumn(ColumnName = "remark5", Length = 32, IsNullable = true)] public string? Remark5 { get; set; } /// /// 点检时间 /// [SugarColumn(ColumnName = "check_date", IsNullable = true)] public DateTime? CheckDate { get; set; } /// /// 点检人 /// [SugarColumn(ColumnName = "check_by", Length = 50, IsNullable = true)] public string? CheckBy { get; set; } /// /// 点检状态 (默认 0) /// [SugarColumn(ColumnName = "check_status", IsNullable = true)] public bool? CheckStatus { get; set; } /// /// 创建组织 /// [SugarColumn(ColumnName = "Fumbrella", Length = 32, IsNullable = true)] public string? Fumbrella { get; set; } /// /// 使用组织 /// [SugarColumn(ColumnName = "FSubsidiary", Length = 32, IsNullable = true)] public string? FSubsidiary { get; set; } /// /// 供应商 /// [SugarColumn(ColumnName = "SUPPLIER_ID", Length = 50, IsNullable = true)] public string? SupplierId { get; set; } /// /// 客户 /// [SugarColumn(ColumnName = "Client_Id", Length = 50, IsNullable = true)] public string? ClientId { get; set; } /// /// 部门 /// [SugarColumn(ColumnName = "department", Length = 50, IsNullable = true)] public string? Department { get; set; } /// /// 联系电话 /// [SugarColumn(ColumnName = "Phone", Length = 50, IsNullable = true)] public string? Phone { get; set; } /// /// Z=暂存,A=创建,B=审核中,C=已审核,D=重新审核 /// [SugarColumn(ColumnName = "DOCUMENT_STATUS", Length = 10, IsNullable = true)] public string? DocumentStatus { get; set; } /// /// 0=可用,4=在途,6=废品,2=冻结,5=收货冻结,1=待检,8=不参与核算,3=退回冻结,7=不良 /// [SugarColumn(ColumnName = "STOCK_STATUS_TYPE", Length = 50, IsNullable = true)] public string? StockStatusType { get; set; } /// /// 数据状态 /// [SugarColumn(ColumnName = "FDocumentStatus", Length = 100, IsNullable = true)] public string? FDocumentStatus { get; set; } /// /// 客户 (整数) /// [SugarColumn(ColumnName = "FCustomerId", IsNullable = true)] public int? FCustomerId { get; set; } /// /// 库存状态类型 /// [SugarColumn(ColumnName = "FStockStatusType", Length = 50, IsNullable = true)] public string? FStockStatusType { get; set; } /// /// 启用仓位管理 /// [SugarColumn(ColumnName = "FISOPENLOCATION", Length = 5, IsNullable = true)] public string? FIsOpenLocation { get; set; } [SugarColumn(IsIgnore = true)] public string? Type { get; set; } }