OverallDemandPlan.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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(Month), nameof(Area), nameof(Model),nameof(PlanMonth),nameof(tenant_id),nameof(company_id), nameof(factory_id), IsUnique = true)]
  16. public class OverallDemandPlan : BaseEntity
  17. {
  18. /// <summary>
  19. /// 年
  20. /// </summary>
  21. [Comment("年")]
  22. public int? Year { get; set; }
  23. /// <summary>
  24. /// 月
  25. /// </summary>
  26. [Comment("月")]
  27. public int? Month { get; set; }
  28. /// <summary>
  29. /// 区域
  30. /// </summary>
  31. [Comment("区域")]
  32. public string Area { get; set; }
  33. /// <summary>
  34. /// 规格型号
  35. /// </summary>
  36. [Comment("规格型号")]
  37. public string Model { get; set; }
  38. /// <summary>
  39. /// 计划年月
  40. /// </summary>
  41. [Comment("计划年月")]
  42. public string PlanMonth { get; set; }
  43. /// <summary>
  44. /// 产品数量
  45. /// </summary>
  46. [Comment("产品数量")]
  47. public decimal Qty { get; set; }
  48. /// <summary>
  49. /// 排序编码
  50. /// </summary>
  51. [Comment("排序编码")]
  52. public int OrderNum { get; set; }
  53. }
  54. }