using Business.Core.Attributes; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Business.Domain { /// /// 生成工单子表 /// [CollectionName("dopbase", "mes_moentry")] [Comment("生成工单子表")] public class mes_moentry : BaseEntity { ///// ///// 生产工单子表id ///// //[Key] //[Comment("生产工单子表id")] //public long moentry_id { get; set; } /// /// 工单主表id /// [Comment("工单主表id")] public long? moentry_moid { get; set; } /// /// 工单编号 /// [StringLength(80)] [Comment("工单编号")] public string moentry_mono { get; set; } /// /// 订单行id /// [Comment("订单行id")] public long? soentry_id { get; set; } /// /// 订单行号 /// [Comment("订单行号")] public long? fentry_id { get; set; } /// /// 订单编号 /// [StringLength(80)] [Comment("订单编号")] public string fbill_no { get; set; } /// /// 单位 /// [StringLength(80)] [Comment("单位")] public string unit { get; set; } /// /// 工单生产数量(计划数量) /// [Precision(23, 10)] [Comment("工单生产数量(计划数量)")] public decimal? morder_production_number { get; set; } /// /// 需求数量 /// [Precision(23, 10)] [Comment("需求数量")] public decimal? need_number { get; set; } /// /// 剩余可用数量 /// [Precision(23, 10)] [Comment("剩余可用数量")] public decimal? remaining_number { get; set; } /// /// 计算ID /// [Comment("计算id")] [NotMapped] public long? bang_id { get; set; } } }