OrderItems.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Abp.Domain.Entities;
  9. using Abp.Domain.Entities.Auditing;
  10. namespace ShwasherSys.Order
  11. {
  12. [Table("OrderItems")]
  13. public class OrderItem:Entity<int>
  14. {
  15. public const int OrderNoMaxLength = 30;
  16. public const int ProductNoMaxLength = 30;
  17. public const int CurrencyIdMaxLength = 10;
  18. public const int IsReportMaxLength = 1;
  19. public const int IsPartSendMaxLength = 1;
  20. public const int WareHouseMaxLength = 50;
  21. public const int OrderItemDescMaxLength = 500;
  22. public const int PartNoMaxLength = 30;
  23. public const int UserIDLastModMaxLength = 20;
  24. public const int IsLockMaxLength = 1;
  25. public const int StandardNameMaxLength = 50;
  26. public const int FromCurrenyIdMaxLength = 20;
  27. [Required]
  28. [StringLength(OrderNoMaxLength)]
  29. public string OrderNo { get; set; }
  30. [Required]
  31. [StringLength(ProductNoMaxLength)]
  32. public string ProductNo { get; set; }
  33. [Column(TypeName = "money")]
  34. public decimal Price { get; set; }
  35. [Column(TypeName = "money")]
  36. public decimal AfterTaxPrice { get; set; }
  37. [Required]
  38. [StringLength(CurrencyIdMaxLength)]
  39. public string CurrencyId { get; set; }
  40. [Column(TypeName = "numeric")]
  41. [DecimalPrecision]
  42. public decimal Quantity { get; set; }
  43. public int OrderUnitId { get; set; }
  44. [Column(TypeName = "smalldatetime")]
  45. public DateTime SendDate { get; set; }
  46. [Required]
  47. [StringLength(IsReportMaxLength)]
  48. public string IsReport { get; set; }
  49. [Required]
  50. [StringLength(IsPartSendMaxLength)]
  51. public string IsPartSend { get; set; }
  52. public int? OrderItemStatusId { get; set; }
  53. [StringLength(WareHouseMaxLength)]
  54. public string WareHouse { get; set; }
  55. [StringLength(OrderItemDescMaxLength)]
  56. public string OrderItemDesc { get; set; }
  57. [Column(TypeName = "smalldatetime")]
  58. public DateTime? TimeCreated { get; set; }
  59. [Column(TypeName = "smalldatetime")]
  60. public DateTime? TimeLastMod { get; set; }
  61. [StringLength(UserIDLastModMaxLength)]
  62. public string UserIDLastMod { get; set; }
  63. [StringLength(PartNoMaxLength)]
  64. public string PartNo { get; set; }
  65. [DecimalPrecision]
  66. public decimal? ToCnyRate { get; set; }
  67. //[DecimalPrecision]
  68. //public decimal? CurrencyPrice { get; set; }
  69. /// <summary>
  70. /// 订单明细紧急程度
  71. /// </summary>
  72. public int EmergencyLevel { get; set; }
  73. //是否删除
  74. [StringLength(IsLockMaxLength)]
  75. public string IsLock { get; set; }
  76. //客户标准名称
  77. [StringLength(StandardNameMaxLength)]
  78. public string StandardName { get; set; }
  79. /// <summary>
  80. /// 仓库配货完成状态
  81. /// </summary>
  82. public int StoreCompleteState { get; set; } = 0;
  83. /// <summary>
  84. /// 运费
  85. /// </summary>
  86. public decimal LogisticsFee { get; set; } = 0;
  87. /// <summary>
  88. /// 模具费
  89. /// </summary>
  90. public decimal MoldFee { get; set; } = 0;
  91. /// <summary>
  92. /// 运费(不含税)
  93. /// </summary>
  94. public decimal LogisticsFeeAfterTax { get; set; } = 0;
  95. /// <summary>
  96. /// 模具费(不含税)
  97. /// </summary>
  98. public decimal MoldFeeAfterTax { get; set; } = 0;
  99. }
  100. [Table("OrderSendExceed")]
  101. public class OrderSendExceed : AuditedEntity<int>
  102. {
  103. public const int OperatorManMaxLength = 30;
  104. [Required]
  105. public int OrderItemId { get; set; }
  106. [Column(TypeName = "numeric")]
  107. [DecimalPrecision]
  108. public decimal ExceedQuantity { get; set; }
  109. [StringLength(OperatorManMaxLength)]
  110. public string OperatorMan { get; set; }
  111. public string OrderNo { get; set; }
  112. public string ProductNo { get; set; }
  113. }
  114. }