OrderStickBills.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.Invoice
  10. {
  11. [Table("OrderStickBills")]
  12. public class OrderStickBill:Entity<string>
  13. {
  14. public const int CustomerIdMaxLength = 30;
  15. public const int StickNumMaxLength = 30;
  16. public const int ReturnOrderNoMaxLength = 30;
  17. public const int OrderNoMaxLength = 500;
  18. public const int StickManMaxLength = 20;
  19. public const int DescriptionMaxLength = 4000;
  20. public const int UserIDLastModMaxLength = 20;
  21. [Required]
  22. [StringLength(CustomerIdMaxLength)]
  23. public string CustomerId { get; set; }
  24. [Column(TypeName = "smalldatetime")]
  25. public DateTime? CreatDate { get; set; }
  26. [StringLength(StickNumMaxLength)]
  27. public string StickNum { get; set; }
  28. [StringLength(StickManMaxLength)]
  29. public string StickMan { get; set; }
  30. [StringLength(DescriptionMaxLength)]
  31. public string Description { get; set; }
  32. [Column(TypeName = "smalldatetime")]
  33. public DateTime? TimeCreated { get; set; }
  34. [Column(TypeName = "smalldatetime")]
  35. public DateTime? TimeLastMod { get; set; }
  36. [StringLength(UserIDLastModMaxLength)]
  37. public string UserIDLastMod { get; set; }
  38. //开票状态(1:未开票 2:已开票)
  39. public int? InvoiceState { get; set; }
  40. //金额
  41. public decimal? Amount { get; set; }
  42. [StringLength(StickNumMaxLength)]
  43. public string OriginalStickNum { get; set; }
  44. [MaxLength(ReturnOrderNoMaxLength)]
  45. public string ReturnOrderNo { get; set; }
  46. [MaxLength(OrderNoMaxLength)]
  47. public string OrderNo { get; set; }
  48. public int InvoiceType { get; set; }
  49. }
  50. }