Res_ItemVendor.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OASystem.Domain.Entities.Resource
  7. {
  8. /// <summary>
  9. /// 物料供应商
  10. /// </summary>
  11. [SugarTable("Res_ItemVendor")]
  12. public class Res_ItemVendor : EntityBase
  13. {
  14. /// <summary>
  15. /// 供应商公司经营范围,SetDataId拼接,请注意拼接格式统一为英文逗号
  16. /// </summary>
  17. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  18. public string BusRange { get; set; }
  19. /// <summary>
  20. /// 供应商名称(公司全称)
  21. /// </summary>
  22. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)")]
  23. public string FullName { get; set; }
  24. /// <summary>
  25. /// 供应商简称
  26. /// </summary>
  27. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  28. public string ShortName { get; set; }
  29. /// <summary>
  30. /// 供应商联系地址
  31. /// </summary>
  32. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)")]
  33. public string Address { get; set; }
  34. /// <summary>
  35. /// 供应商联系人
  36. /// </summary>
  37. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  38. public string Linker { get; set; }
  39. /// <summary>
  40. /// 供应商联系人职位
  41. /// </summary>
  42. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  43. public string Job { get; set; }
  44. /// <summary>
  45. /// 供应商联系方式
  46. /// </summary>
  47. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  48. public string Mobile { get; set; }
  49. }
  50. [SugarTable("Res_ItemType")]
  51. public class Res_ItemTypeInfo : EntityBase
  52. {
  53. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  54. public int SdId { get; set; }
  55. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  56. public string TypeName { get; set; }
  57. }
  58. /// <summary>
  59. /// 物料供应详细信息表
  60. /// </summary>
  61. [SugarTable("Res_ItemDetail")]
  62. public class Res_ItemDetailInfo : EntityBase
  63. {
  64. /// <summary>
  65. /// 物料供应商
  66. /// </summary>
  67. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  68. public int VendorId { get; set; }
  69. /// <summary>
  70. /// 物料名称
  71. /// </summary>
  72. [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
  73. public string ItemName { get; set; }
  74. /// <summary>
  75. /// 物料类型Id
  76. /// </summary>
  77. [SugarColumn(IsNullable = true, ColumnDataType = "int")]
  78. public int ItemTypeId { get; set; }
  79. /// <summary>
  80. /// 最低单价
  81. /// </summary>
  82. [SugarColumn(IsNullable = true, ColumnDataType = "decimal(9,2)")]
  83. public decimal MinRate { get; set; }
  84. /// <summary>
  85. /// 最低价格维护时间
  86. /// </summary>
  87. [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
  88. public DateTime MinDt { get; set; }
  89. /// <summary>
  90. /// 最高单价
  91. /// </summary>
  92. [SugarColumn(IsNullable = true, ColumnDataType = "decimal(9,2)")]
  93. public decimal MaxRate { get; set; }
  94. /// <summary>
  95. /// 最高价格维护时间
  96. /// </summary>
  97. [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
  98. public DateTime MaxDt { get; set; }
  99. /// <summary>
  100. /// 当前单价
  101. /// </summary>
  102. [SugarColumn(IsNullable = true, ColumnDataType = "decimal(9,2)")]
  103. public decimal CurrRate { get; set; }
  104. /// <summary>
  105. /// 当前价格维护时间
  106. /// </summary>
  107. [SugarColumn(IsNullable = true, ColumnDataType = "datetime")]
  108. public DateTime CurrDt { get; set; }
  109. }
  110. }