MonthlyProdCapacityDtl.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using Microsoft.EntityFrameworkCore.Metadata.Internal;
  10. namespace Business.Domain
  11. {
  12. /// <summary>
  13. /// 月度产能共识明细表
  14. /// </summary>
  15. [Comment("月度产能共识明细表")]
  16. [Index(nameof(Year), nameof(Month),nameof(PlanMonth), nameof(ProdLine),nameof(Model), nameof(tenant_id),nameof(company_id), nameof(factory_id), IsUnique = true)]
  17. public class MonthlyProdCapacityDtl:BaseEntity
  18. {
  19. /// <summary>
  20. /// 年
  21. /// </summary>
  22. [Comment("年")]
  23. public int? Year { get; set; }
  24. /// <summary>
  25. /// 月
  26. /// </summary>
  27. [Comment("月")]
  28. public int? Month { get; set; }
  29. /// <summary>
  30. /// 计划年月
  31. /// </summary>
  32. [Comment("计划年月")]
  33. public string PlanMonth { get; set; }
  34. /// <summary>
  35. /// 生产线
  36. /// </summary>
  37. [Comment("生产线")]
  38. public string ProdLine { get; set; }
  39. /// <summary>
  40. /// 规格型号
  41. /// </summary>
  42. [Comment("规格型号")]
  43. public string Model { get; set; }
  44. /// <summary>
  45. /// 预估需要生产数量
  46. /// </summary>
  47. [Comment("预估需要生产数量")]
  48. public decimal Qty { get; set; }
  49. }
  50. }