using Business.Core.Attributes; using Bussiness.MongoModel; using Microsoft.EntityFrameworkCore; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Bussiness.MongoModel.ProductionProcess { /// /// 发料单 /// [CollectionName("dopbase", "mo_mes_prd_sendmat")] [Comment("发料单")] public class mo_mes_prd_sendmat :MoBaseEntity { ///// ///// 发料单id ///// //[Key] //[Comment("发料单id")] //public long prdsm_id { get; set; } /// /// 单据类型 (发料、叫料、补料、退料) /// [Required] [StringLength(50)] [Comment("单据类型 (发料、叫料、补料、退料)")] public string prdsm_type { get; set; } /// /// 单据编号 /// [Required] [StringLength(50)] [Comment("单据编号")] public string prdsm_no { get; set; } /// /// 单据日期 /// [Comment("单据日期")] public DateTime prdsm_date { get; set; } /// /// 生产组织id /// [Comment("生产组织id")] public long prdsm_prdid { get; set; } /// /// 工作中心id /// [Comment("工作中心id")] public long prdsm_workcid { get; set; } /// /// 生产工单id /// [Comment("生产工单id")] public long prdsm_moid { get; set; } /// /// 生产工单号 /// [Required] [StringLength(50)] [Comment("生产工单号")] public string prdsm_mono { get; set; } /// /// 制单人 /// [Required] [StringLength(50)] [Comment("制单人")] public string prdsm_by { get; set; } /// /// 备注 /// [StringLength(500)] [Comment("备注")] public string? prdsm_note { get; set; } /// /// 状态 /// [DefaultValue(0)] [Comment("状态")] public int? prdsm_state { get; set; } /// /// 补料理由 /// [StringLength(500)] [Comment("补料理由")] public string? prdsm_reason { get; set; } /// /// 退料原因 /// //public string prdsm_breason { get; set; } /// /// 叫料数量 /// [Precision(20, 10)] [Comment("叫料数量")] public decimal prdsm_qty { get; set; } /// /// 配送日期 /// [Comment("配送日期")] public DateTime? prdsm_ddate { get; set; } /// /// 关联委外po单号 /// [StringLength(100)] [Comment("关联委外po单号")] public string? prdsm_po_no { get; set; } /// /// 关联委外po行号 /// [Comment("关联委外po行号")] public int? prdsm_po_row { get; set; } /// /// 原单类型 0 生产工单 1 委外工单 /// [DefaultValue(0)] [Comment("原单类型")] public int srcbill_type { get; set; } /// /// 源单状态 0 初始 1 下达 2 开始往金蝶推 /// [DefaultValue(0)] [Comment("源单状态")] public int srcbill_state { get; set; } } }