YearDemandManagement.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. namespace Business.Domain
  10. {
  11. /// <summary>
  12. /// 年度生产需求管理表
  13. /// </summary>
  14. [Comment("年度生产需求管理表")]
  15. [Index(nameof(Year), nameof(Area), nameof(ProdLine),nameof(ProdRange), nameof(Line),nameof(Model),nameof(PlanMonth),nameof(tenant_id), nameof(company_id),nameof(factory_id), IsUnique = true)]
  16. public class YearDemandManagement:BaseEntity
  17. {
  18. /// <summary>
  19. /// 年
  20. /// </summary>
  21. [Comment("年")]
  22. public int? Year { get; set; }
  23. /// <summary>
  24. /// 区域
  25. /// </summary>
  26. [Comment("区域")]
  27. public string? Area { get; set; }
  28. /// <summary>
  29. /// 产品线
  30. /// </summary>
  31. [Comment("产品线")]
  32. public string? ProdLine { get; set; }
  33. /// <summary>
  34. /// 产品系列
  35. /// </summary>
  36. [Comment("产品系列")]
  37. public string? ProdRange { get; set; }
  38. /// <summary>
  39. /// 车间线体
  40. /// </summary>
  41. [Comment("车间线体")]
  42. public string? Line { get; set; }
  43. /// <summary>
  44. /// 规格型号
  45. /// </summary>
  46. [Comment("规格型号")]
  47. public string? Model { get; set; }
  48. /// <summary>
  49. /// 计划年月
  50. /// </summary>
  51. [Comment("计划年月")]
  52. public string? PlanMonth { get; set; }
  53. /// <summary>
  54. /// 产品数量
  55. /// </summary>
  56. [Comment("产品数量")]
  57. public decimal? Qty { get; set; }
  58. }
  59. }