using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.BasicData.Entities;
///
/// 物料信息
///
[SugarTable("bas_material")]
public partial class BasMaterial : BaseEntity
{
public BasMaterial()
{
id = SnowflakeIdHelper.NextId();
}
///
/// 所属组织
///
public string? org_id { get; set; }
///
/// 物料代码
///
public string code { get; set; } = string.Empty;
///
/// 物料名称
///
public string name { get; set; } = string.Empty;
///
/// 物料分类ID
///
public string category_id { get; set; } = string.Empty;
///
/// 单位ID
///
public string unit_id { get; set; } = string.Empty;
///
/// 单价
///
public decimal? cost { get; set; }
///
/// 毛重
///
public decimal? grossweight { get; set; }
///
/// 净重
///
public decimal? netweight { get; set; }
///
/// 长
///
public decimal? length { get; set; }
///
/// 宽
///
public decimal? width { get; set; }
///
/// 高
///
public decimal? high { get; set; }
///
/// 体积
///
public decimal? volumn { get; set; }
///
/// 是否免检
///
public int? isexemption { get; set; }
///
/// 安全库存
///
public decimal? safeqty { get; set; }
///
/// 保质期
///
public int? qualityperiod { get; set; }
///
/// 是否过期允许出库
///
public string? expireout { get; set; }
///
/// 最小包装
///
public decimal? minpacking { get; set; }
///
/// 是否先进先出管控
///
public string? fifo { get; set; }
///
/// 先进先出间隔天数,批次间隔天数
///
public int? fifo_interval_days { get; set; }
///
/// 物料规格型号
///
public string? material_standard { get; set; }
///
/// 海关编码
///
public string? fhscode { get; set; }
///
/// 附属性
///
public string? attribute { get; set; }
///
/// 管控类型: 批管控:Lot 单管控:KeyParts 非管控:NoControl
///
public string? controltype { get; set; }
///
/// 备注
///
public string? remark { get; set; }
///
/// 创建用户
///
public string? create_id { get; set; }
///
/// 创建时间
///
public DateTime? create_time { get; set; }
///
/// 修改用户
///
public string? modify_id { get; set; }
///
/// 修改时间
///
public DateTime? modify_time { get; set; }
///
/// 扩展字段
///
public string? extras { get; set; }
///
/// 状态
///
public string? state { get; set; }
///
/// 物料属性
///
public string? material_property { get; set; }
///
/// 标签
///
public string? label { get; set; }
///
/// 描述
///
public string? descrip { get; set; }
///
/// 批次管理
///
public int? is_batch_enabled { get; set; }
///
/// 标签管理
///
public int? is_label_enabled { get; set; }
///
/// 附件
///
public string? attachment { get; set; }
///
/// 先进先出 0否 1是
///
public int? first_in_out { get; set; }
///
/// 存储有效期(天)
///
public int? storage_valid_day { get; set; }
///
/// 预警提前期(天)
///
public int? early_warn_day { get; set; }
///
/// 安全库存
///
public int? safe_stock { get; set; }
///
/// 安全库存包含状态
///
public string? safe_stock_stauts { get; set; }
///
/// 发料仓库id
///
public string? send_warehouse_id { get; set; }
///
/// 入厂单位id
///
public string? into_factory_unit_id { get; set; }
///
/// 投料单位
///
public string? material_in_unit_id { get; set; }
///
/// 产出单位
///
public string? material_out_unit_id { get; set; }
///
/// 请料方式 1按计划排程请料 2自行管控
///
public string? material_request_method { get; set; }
///
/// 是否包含入库数
///
public int? is_contain_into_num { get; set; }
///
/// 是否创建子工单
///
public string? is_create_sub_work_order { get; set; }
///
/// 保质期
///
public int? quality_guarantee_period { get; set; }
///
/// DI编码
///
public string? di { get; set; }
///
/// 删除标志
///
public int? deleted { get; set; }
///
/// 箱号
///
public string container_no { get; set; }
///
/// 规格型号
///
public string? material_specification { get; set; }
}