| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- 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
- {
- /// <summary>
- /// 在制工单占用记录表
- /// </summary>
- [CollectionName("dopbang", "mo_mes_mooccupy")]
- [Comment("在制工单占用记录表")]
- public class mo_mes_mooccupy : MoBaseEntity
- {
- ///// <summary>
- ///// 工单占用ID
- ///// </summary>
- //[Key]
- //[Comment("工单占用ID")]
- //public long moo_id { get; set; }
- /// <summary>
- /// 类型--原始,分配
- /// </summary>
- [StringLength(50)]
- [Comment("类型--原始,分配")]
- public string? moo_id_type { get; set; }
- /// <summary>
- /// 订单id
- /// </summary>
- [Comment("订单id")]
- public long? moo_id_billid { get; set; }
- /// <summary>
- /// 订单号
- /// </summary>
- [StringLength(50)]
- [Comment("订单号")]
- public string? fbill_no { get; set; }
- /// <summary>
- /// 行号
- /// </summary>
- [Comment("行号")]
- public long? fentry_id { get; set; }
- /// <summary>
- /// 物料编码
- /// </summary>
- [Required]
- [StringLength(50)]
- [Comment("物料编码")]
- public string? fitem_number { get; set; }
- /// <summary>
- /// 物料名称
- /// </summary>
- [Required]
- [StringLength(500)]
- [Comment("物料名称")]
- public string? fitem_name { get; set; }
- /// <summary>
- /// 规格型号
- /// </summary>
- [StringLength(500)]
- [Comment("规格型号")]
- public string? fmodel { get; set; }
- /// <summary>
- /// 工单id
- /// </summary>
- [Comment("工单id")]
- public long? moo_moid { get; set; }
- /// <summary>
- /// 工单号
- /// </summary>
- [StringLength(50)]
- [Comment("工单号")]
- public string? moo_mo { get; set; }
- /// <summary>
- /// 占用量
- /// </summary>
- [Precision(20, 8)]
- [Comment("占用量")]
- public decimal? moo_qty { get; set; }
- /// <summary>
- /// 开始时间
- /// </summary>
- [Comment("开始时间")]
- public DateTime? moo_stime { get; set; }
- /// <summary>
- /// 结束时间
- /// </summary>
- [Comment("结束时间")]
- public DateTime? moo_etime { get; set; }
- /// <summary>
- /// 占用状态-1占用 默认0
- /// </summary>
- [DefaultValue(0)]
- [Comment("占用状态-1占用 默认0")]
- public int? moo_state { get; set; }
- /// <summary>
- /// 变更人
- /// </summary>
- [StringLength(50)]
- [Comment("变更人")]
- public string? moo_cbr { get; set; }
- /// <summary>
- /// 变更时间
- /// </summary>
- [Comment("变更时间")]
- public DateTime? moo_ctime { get; set; }
- /// <summary>
- /// 变更原因
- /// </summary>
- [StringLength(500)]
- [Comment("变更原因")]
- public string? moo_creason { get; set; }
- /// <summary>
- /// 计算ID
- /// </summary>
- [Comment("计算id")]
- [NotMapped]
- public long? bang_id { get; set; }
- }
- }
|