using Business.Core.Attributes; using Microsoft.EntityFrameworkCore; using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Business.Domain { /// /// 在制工单占用记录表 /// [CollectionName("dopbase", "mes_mooccupy")] [Comment("在制工单占用记录表")] public class mes_mooccupy : BaseEntity { ///// ///// 工单占用ID ///// //[Key] //[Comment("工单占用ID")] //public long moo_id { get; set; } /// /// 类型--原始,分配 /// [StringLength(50)] [Comment("类型--原始,分配")] public string moo_id_type { get; set; } /// /// 订单id /// [Comment("订单id")] public long? moo_id_billid { get; set; } /// /// 订单号 /// [StringLength(50)] [Comment("订单号")] public string fbill_no { get; set; } /// /// 行号 /// [Comment("行号")] public long? fentry_id { get; set; } /// /// 物料编码 /// [Required] [StringLength(50)] [Comment("物料编码")] public string fitem_number { get; set; } /// /// 物料名称 /// [Required] [StringLength(500)] [Comment("物料名称")] public string fitem_name { get; set; } /// /// 规格型号 /// [StringLength(500)] [Comment("规格型号")] public string fmodel { get; set; } /// /// 工单id /// [Comment("工单id")] public long? moo_moid { get; set; } /// /// 工单号 /// [StringLength(50)] [Comment("工单号")] public string moo_mo { get; set; } /// /// 占用量 /// [Precision(23, 10)] [Comment("占用量")] public decimal? moo_qty { get; set; } /// /// 开始时间 /// [Comment("开始时间")] public DateTime? moo_stime { get; set; } /// /// 结束时间 /// [Comment("结束时间")] public DateTime? moo_etime { get; set; } /// /// 占用状态-1占用 默认0 /// [DefaultValue(0)] [Comment("占用状态-1占用 默认0")] public int? moo_state { get; set; } /// /// 变更人 /// [StringLength(50)] [Comment("变更人")] public string moo_cbr { get; set; } /// /// 变更时间 /// [Comment("变更时间")] public DateTime? moo_ctime { get; set; } /// /// 变更原因 /// [StringLength(500)] [Comment("变更原因")] public string moo_creason { get; set; } /// /// 计算ID /// [Comment("计算id")] [NotMapped] public long? bang_id { get; set; } } }