using Microsoft.EntityFrameworkCore; using System; using System.ComponentModel.DataAnnotations; namespace Business.Domain { /// ///补货模型ROP /// [Comment("补货模型ROP")] [Index(nameof(number), nameof(tenant_id), nameof(fversion),nameof(long_period),nameof(short_period),nameof(isparam), nameof(seqno),nameof(zero_based_seqno), nameof(factory_id), IsUnique = true)] public class ReplenishmentROP : BaseEntity { /// /// 物料编码 /// [StringLength(80)] [Comment("物料编码")] public string number { get; set; } /// /// 物料名称 /// [StringLength(200)] [Comment("物料名称")] public string name { get; set; } /// /// 规格型号 /// [StringLength(200)] [Comment("规格型号")] public string model { get; set; } /// /// 生命周期 /// [StringLength(50)] public string? lifecycle { get; set; } /// /// 市场 /// [StringLength(50)] public string? area { get; set; } /// /// 物料属性:0.配置类 1.自制 2.委外加工 3.外购 4.虚拟件 /// [Comment("物料属性")] public int? erp_cls { get; set; } /// /// 版本号 /// [StringLength(80)] [Comment("版本号")] public string? fversion { get; set; } /// /// 期初库存 /// [Precision(20, 8)] [Comment("期初库存")] public decimal? actual_period_start_instock { get; set; } /// /// 计划发货数量 /// [Precision(20, 8)] [Comment("发货计划")] public decimal? plan_out_qty { get; set; } /// /// 实际发货 为空或-1时表示不适用,为0时表示没有发货记录。注意能区分这两种形式 /// [Precision(20, 8)] [Comment("实际发货")] public decimal? actual_out_qty { get; set; } /// /// 计划生产 /// [Precision(20, 8)] [Comment("计划生产")] public decimal? plan_in { get; set; } /// /// 实际生产 /// [Precision(20, 8)] [Comment("实际生产")] public decimal? actual_in { get; set; } /// /// 计划期末库存 /// [Precision(20, 8)] [Comment("计划期末库存")] public decimal? plan_period_end_instock { get; set; } /// /// 实际期末库存 /// [Precision(20, 8)] [Comment("实际期末库存")] public decimal? actual_period_end_instock { get; set; } /// /// 库存偏差 /// [Precision(20, 8)] [Comment("库存偏差")] public decimal? instock_deviation { get; set; } /// /// 年份 /// [Comment("年份")] public int? year { get; set; } /// /// 长周期:年Y月M周W /// [StringLength(8)] [Comment("长周期")] public string? long_period { get; set; } /// /// 短周期:月M周W日D /// [StringLength(8)] [Comment("短周期")] public string? short_period { get; set; } /// /// 序次号,短在长中间的序次号,在补货模型中,长周期都是年,短周期是月(1~12), 或周(1~53) /// [Comment("序次号,短在长中间的序次号,在补货模型中,长周期都是年,短周期是月(1~12), 或周(1~53)")] public int? seqno { get; set; } /// /// 计算辅助列,由于月和周是分别的记录,都可以区分开。 当前周期为0,前后到h ~f每个周期末动态修改方便计算使用 /// [Comment("计算辅助列,由于月和周是分别的记录,都可以区分开。当前周期为0,前后到h ~f每个周期末动态修改方便计算使用")] public int? zero_based_seqno { get; set; } /// /// 周期开始日期 /// [Comment("周期开始日期")] public DateTime? period_start_date { get; set; } /// /// 周期结束日期 /// [Comment("周期结束日期")] public DateTime? period_end_date { get; set; } /// /// 月均需求 /// [Precision(20, 8)] [Comment("月均需求")] public decimal? monthl_avg_demand { get; set; } /// /// 月均需求标准方差 /// [Precision(20, 8)] [Comment("月均需求标准方差")] public decimal? monthl_avg_demand_variance { get; set; } /// /// 月均出库 /// [Precision(20, 8)] [Comment("月均出库")] public decimal? monthl_avg_outstock { get; set; } /// /// 供应前置期参数(天) /// [Precision(20, 8)] [Comment("供应前置期参数(天)")] public decimal? supply_leadtime { get; set; } /// /// ABC分类 /// [StringLength(8)] [Comment("ABC分类")] public string? abc { get; set; } /// /// FMR分类 /// [StringLength(8)] [Comment("FMR分类")] public string? fmr { get; set; } /// /// Z服务水平参数 /// [Precision(20, 8)] [Comment("Z服务水平参数")] public decimal? service_level_pct { get; set; } /// /// 存货周转率 /// [Precision(20, 8)] [Comment("存货周转率")] public decimal? stock_turnover { get; set; } /// /// 最小包装 /// [Precision(20, 8)] [Comment("最小包装")] public decimal? min_pack_qty { get; set; } /// /// 最小批量 /// [Precision(20, 8)] [Comment("最小批量")] public decimal? moq { get; set; } /// /// 安全库存 /// [Precision(20, 8)] [Comment("安全库存")] public decimal? security_stock { get; set; } /// /// 圆整后供应批量 /// [Precision(20, 8)] [Comment("圆整后供应批量")] public decimal? eop { get; set; } /// /// 重新订货点 /// [Precision(20, 8)] [Comment("重新订货点")] public decimal? rop_computed { get; set; } /// /// 月均出库最高库存 /// [Precision(20, 8)] [Comment("月均出库最高库存")] public decimal? max_stock_level { get; set; } /// /// 修正后重新订货点 /// [Precision(20, 8)] [Comment("修正后重新订货点")] public decimal? rop_revised { get; set; } /// /// 销售/渠道 /// [Comment("销售/渠道")] public string distributionchannel { get; set; } /// /// 是否是计算参数,默认为否,是的话一月更新一次 /// [Comment("是否是计算参数,默认为否,是的话一月更新一次")] public bool isparam { get; set; } } }