DomesticTerminalFcst.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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(ProdLine), nameof(Model),nameof(TypeEnum),nameof(PlanMonth),nameof(tenant_id), nameof(company_id),nameof(factory_id), IsUnique = true)]
  16. public class DomesticTerminalFcst: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 ProdLine { get; set; }
  33. /// <summary>
  34. /// 规格型号
  35. /// </summary>
  36. [Comment("规格型号")]
  37. public string Model { get; set; }
  38. /// <summary>
  39. /// 类别枚举:1-需求总计;2-T1需求总计;3-T2需求总计;4-海王;5-国科
  40. /// </summary>
  41. [Comment("类别枚举")]
  42. public int TypeEnum { get; set; }
  43. /// <summary>
  44. /// 类别名称
  45. /// </summary>
  46. [Comment("类别名称")]
  47. public string TypeName { 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. /// <summary>
  59. /// 排序编码
  60. /// </summary>
  61. [Comment("排序编码")]
  62. public int OrderNum { get; set; }
  63. }
  64. }