using Business.Core.Attributes; using Bussiness.MongoModel; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bussiness.MongoModel.Production { /// /// 生成工单子表 /// [CollectionName("dopbang", "mo_mes_moentry")] [Comment("生成工单子表")] public class mo_mes_moentry : MoBaseEntity { ///// ///// 生产工单子表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(20, 8)] [Comment("工单生产数量(计划数量)")] public decimal? morder_production_number { get; set; } /// /// 需求数量 /// [Precision(20, 8)] [Comment("需求数量")] public decimal? need_number { get; set; } /// /// 剩余可用数量 /// [Precision(20, 8)] [Comment("剩余可用数量")] public decimal? remaining_number { get; set; } /// /// 计算ID /// [Comment("计算id")] [NotMapped] public long? bang_id { get; set; } } }