OrderHeader.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. namespace ShwasherSys.Order
  10. {
  11. [Table("OrderHeader")]
  12. public class OrderHeader:Entity<string>
  13. {
  14. public const int OrderNoMaxLength = 30;
  15. public const int DelUserIdMaxLength = 30;
  16. public const int CustomerIdMaxLength = 30;
  17. public const int LinkNameMaxLength = 50;
  18. public const int FaxMaxLength = 50;
  19. public const int TelephoneMaxLength = 50;
  20. public const int StockNoMaxLength = 50;
  21. public const int UserIDLastModMaxLength = 30;
  22. public const int IsOutSaleMaxLength = 30;
  23. public const int SaleManMaxLength = 50;
  24. public const int IsLockMaxLength = 1;
  25. /*[StringLength(OrderNoMaxLength)]
  26. public string OrderNo { get; set; }*/
  27. [Required]
  28. [StringLength(CustomerIdMaxLength)]
  29. public string CustomerId { get; set; }
  30. [Required]
  31. [StringLength(LinkNameMaxLength)]
  32. public string LinkName { get; set; }
  33. [Column(TypeName = "smalldatetime")]
  34. public DateTime OrderDate { get; set; }
  35. [StringLength(FaxMaxLength)]
  36. public string Fax { get; set; }
  37. [StringLength(TelephoneMaxLength)]
  38. public string Telephone { get; set; }
  39. public int CustomerSendId { get; set; }
  40. [StringLength(StockNoMaxLength)]
  41. public string StockNo { get; set; }
  42. public int OrderStatusId { get; set; }
  43. [Column(TypeName = "smalldatetime")]
  44. public DateTime? TimeCreated { get; set; }
  45. [Column(TypeName = "smalldatetime")]
  46. public DateTime? TimeLastMod { get; set; }
  47. [StringLength(UserIDLastModMaxLength)]
  48. public string UserIDLastMod { get; set; }
  49. /// <summary>
  50. /// 内销:0 外销 :1
  51. /// </summary>
  52. public int? SaleType { get; set; }
  53. //销售人员
  54. [StringLength(SaleManMaxLength)]
  55. public string SaleMan { get; set; }
  56. //是否删除
  57. [StringLength(IsLockMaxLength)]
  58. public string IsLock { get; set; }
  59. }
  60. }