srm_pr_main_occupy.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. namespace Business.Domain
  7. {
  8. /// <summary>
  9. /// 采购申请单占用
  10. /// </summary>
  11. [CollectionName("dopbase", "srm_pr_main_occupy")]
  12. [Comment("采购申请单占用")]
  13. [Index(nameof(morder_mo),nameof(morder_id), nameof(tenant_id), nameof(company_id), nameof(factory_id), IsUnique = true)]
  14. public class srm_pr_main_occupy : BaseEntity
  15. {
  16. /// <summary>
  17. /// 工单ID
  18. /// </summary>
  19. [Comment("工单ID")]
  20. public long? morder_id { get; set; }
  21. /// <summary>
  22. /// 工单编号
  23. /// </summary>
  24. [Comment("工单编号")]
  25. public string morder_mo { get; set; }
  26. /// <summary>
  27. /// 占用量
  28. /// </summary>
  29. [Precision(23, 10)]
  30. [Comment("占用量")]
  31. public decimal? qty { get; set; }
  32. /// <summary>
  33. /// 占用状态
  34. /// </summary>
  35. [Comment("占用状态")]
  36. public int? state { get; set; }
  37. /// <summary>
  38. /// 计算ID
  39. /// </summary>
  40. [Comment("计算id")]
  41. [NotMapped]
  42. public long? bang_id { get; set; }
  43. }
  44. }