StatementBill.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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.Auditing;
  9. namespace ShwasherSys.Invoice
  10. {
  11. [Table("StatementBill")]
  12. public class StatementBill:AuditedEntity<int>
  13. {
  14. public const int CustomerIdMaxLength = 30;
  15. public const int StatementBillNoMaxLength = 30;
  16. public const int OrderStickBillNoMaxLength = 30;
  17. public const int BillManMaxLength = 20;
  18. public const int DescriptionMaxLength = 4000;
  19. [Required]
  20. [StringLength(StatementBillNoMaxLength)]
  21. [Index(IsUnique = true)]
  22. public string StatementBillNo { get; set; }
  23. [Required]
  24. [StringLength(CustomerIdMaxLength)]
  25. public string CustomerId { get; set; }
  26. //对账单开票人
  27. [StringLength(BillManMaxLength)]
  28. public string BillMan { get; set; }
  29. [StringLength(DescriptionMaxLength)]
  30. public string Description { get; set; }
  31. /// <summary>
  32. /// 1:已开票 0:未开票
  33. /// </summary>
  34. public int? StatementState { get; set; }
  35. [StringLength(OrderStickBillNoMaxLength)]
  36. public string OrderStickBillNo { get; set; }
  37. }
  38. [Table("N_ViewStatementBill")]
  39. public class ViewStatementBill : AuditedEntity<int>
  40. {
  41. public const int CustomerIdMaxLength = 30;
  42. public const int StatementBillNoMaxLength = 30;
  43. public const int BillManMaxLength = 20;
  44. public const int DescriptionMaxLength = 4000;
  45. [Required]
  46. [StringLength(StatementBillNoMaxLength)]
  47. [Index(IsUnique = true)]
  48. public string StatementBillNo { get; set; }
  49. [Required]
  50. [StringLength(CustomerIdMaxLength)]
  51. public string CustomerId { get; set; }
  52. //对账单开票人
  53. [StringLength(BillManMaxLength)]
  54. public string BillMan { get; set; }
  55. [StringLength(DescriptionMaxLength)]
  56. public string Description { get; set; }
  57. /// <summary>
  58. /// 1:已开票 0:未开票
  59. /// </summary>
  60. public int? StatementState { get; set; }
  61. public string CustomerName{ get; set; }
  62. //[StringLength(OrderStickBillNoMaxLength)]
  63. public string OrderStickBillNo { get; set; }
  64. [DecimalPrecision()]
  65. public decimal? TotalPrice { get; set; }
  66. [DecimalPrecision()]
  67. public decimal? AfterTaxTotalPrice { get; set; }
  68. public string CurrencyId { get; set; }
  69. }
  70. }