ic_substitute_group_detail.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using MongoDB.Bson.Serialization.Attributes;
  4. using System.ComponentModel.DataAnnotations;
  5. namespace Business.Domain
  6. {
  7. /// <summary>
  8. /// 物料替代多群组明细
  9. /// </summary>
  10. [CollectionName("dopbase", "ic_substitute_group_detail")]
  11. [Comment("物料替代多群组明细")]
  12. public class ic_substitute_group_detail : BaseEntity
  13. {
  14. /// <summary>
  15. /// 替代多群组主键
  16. /// </summary>
  17. [Required]
  18. [Comment("替代多群组主键")]
  19. public long substitute_group_id { get; set; }
  20. /// <summary>
  21. /// 群组代码
  22. /// </summary>
  23. [StringLength(20)]
  24. [Comment("群组代码")]
  25. [BsonRepresentation(MongoDB.Bson.BsonType.String)]
  26. public string substitute_code { get; set; }
  27. /// <summary>
  28. /// 物料主键
  29. /// </summary>
  30. [Required]
  31. [Comment("物料主键")]
  32. public long icitem_id { get; set; }
  33. /// <summary>
  34. /// 物料编码
  35. /// </summary>]
  36. [StringLength(20)]
  37. [Comment("物料编码")]
  38. public string icitem_number { get; set; }
  39. /// <summary>
  40. /// 版本号
  41. /// </summary>
  42. [StringLength(80)]
  43. [Comment("版本号")]
  44. public string fversion { get; set; }
  45. /// <summary>
  46. /// 主/替
  47. /// </summary>
  48. [Comment("主/替")]
  49. public int? ismain { get; set; }
  50. /*/// <summary>
  51. /// 使用数量
  52. /// </summary>
  53. [Precision(23, 10)]
  54. [Comment("使用数量")]
  55. public decimal? use_amount { get; set; }*/
  56. /// <summary>
  57. /// 序号
  58. /// </summary>
  59. [Comment("序号")]
  60. public int? seq { get; set; }
  61. /// <summary>
  62. /// 替代数量
  63. /// </summary>
  64. [Precision(23, 10)]
  65. [Comment("替代数量")]
  66. public decimal? replace_qty { get; set; }
  67. }
  68. }