mes_moentry.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. using Business.Core.Attributes;
  2. using Business.Model;
  3. using Microsoft.EntityFrameworkCore;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.ComponentModel.DataAnnotations;
  8. using System.ComponentModel.DataAnnotations.Schema;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. namespace Business.Model.Production
  13. {
  14. /// <summary>
  15. /// 生成工单子表
  16. /// </summary>
  17. [CollectionName("dopbase", "mes_moentry")]
  18. [Comment("生成工单子表")]
  19. public class mes_moentry : BaseEntity
  20. {
  21. ///// <summary>
  22. ///// 生产工单子表id
  23. ///// </summary>
  24. //[Key]
  25. //[Comment("生产工单子表id")]
  26. //public long moentry_id { get; set; }
  27. /// <summary>
  28. /// 工单主表id
  29. /// </summary>
  30. [Comment("工单主表id")]
  31. public long? moentry_moid { get; set; }
  32. /// <summary>
  33. /// 工单编号
  34. /// </summary>
  35. [StringLength(80)]
  36. [Comment("工单编号")]
  37. public string? moentry_mono { get; set; }
  38. /// <summary>
  39. /// 订单行id
  40. /// </summary>
  41. [Comment("订单行id")]
  42. public long? soentry_id { get; set; }
  43. /// <summary>
  44. /// 订单行号
  45. /// </summary>
  46. [Comment("订单行号")]
  47. public long? fentry_id { get; set; }
  48. /// <summary>
  49. /// 订单编号
  50. /// </summary>
  51. [StringLength(80)]
  52. [Comment("订单编号")]
  53. public string? fbill_no { get; set; }
  54. /// <summary>
  55. /// 单位
  56. /// </summary>
  57. [StringLength(80)]
  58. [Comment("单位")]
  59. public string? unit { get; set; }
  60. /// <summary>
  61. /// 工单生产数量(计划数量)
  62. /// </summary>
  63. [Precision(23, 10)]
  64. [Comment("工单生产数量(计划数量)")]
  65. public decimal? morder_production_number { get; set; }
  66. /// <summary>
  67. /// 需求数量
  68. /// </summary>
  69. [Precision(23, 10)]
  70. [Comment("需求数量")]
  71. public decimal? need_number { get; set; }
  72. /// <summary>
  73. /// 剩余可用数量
  74. /// </summary>
  75. [Precision(23, 10)]
  76. [Comment("剩余可用数量")]
  77. public decimal? remaining_number { get; set; }
  78. /// <summary>
  79. /// 计算ID
  80. /// </summary>
  81. [Comment("计算id")]
  82. [NotMapped]
  83. public long? bang_id { get; set; }
  84. }
  85. }