CeErpInvoice.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. using Castle.ActiveRecord;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BizCom
  8. {
  9. [ActiveRecord("CE_ErpInvoice")]
  10. public class CeErpInvoice : ComBase<CeErpInvoice>
  11. {
  12. /// <summary>
  13. /// ID
  14. /// </summary>
  15. [PrimaryKey(PrimaryKeyType.Native)]
  16. public int ID { get; set; }
  17. private string _tid = "";
  18. /// <summary>
  19. ///
  20. /// </summary>
  21. [Property]
  22. public string tid
  23. {
  24. get { return _tid; }
  25. set { _tid = value; }
  26. }
  27. private string _ctid = "";
  28. /// <summary>
  29. ///
  30. /// </summary>
  31. [Property]
  32. public string ctid
  33. {
  34. get { return _ctid; }
  35. set { _ctid = value; }
  36. }
  37. private string _status = "";
  38. /// <summary>
  39. /// 状态
  40. /// PENDING_REVIEW 待审核
  41. /// PENDING_INVOICE 待开票
  42. /// FINISH 已完成
  43. /// FAIL 开票失败
  44. /// ALREADY_RED 已红冲
  45. /// CANCEL 已取消
  46. /// BACK 已驳回
  47. /// ERROR 错误
  48. /// </summary>
  49. [Property]
  50. public string status
  51. {
  52. get { return _status; }
  53. set { _status = value; }
  54. }
  55. /// <summary>
  56. /// 完成时间
  57. /// </summary>
  58. [Property]
  59. public DateTime? finishtime { get; set; }
  60. /// <summary>
  61. /// 创建时间
  62. /// </summary>
  63. [Property]
  64. private DateTime? createtime { get; set; }
  65. private string _message = "";
  66. /// <summary>
  67. ///
  68. /// </summary>
  69. [Property]
  70. public string message
  71. {
  72. get { return _message; }
  73. set { _message = value; }
  74. }
  75. private int _createId = 0;
  76. /// <summary>
  77. ///
  78. /// </summary>
  79. [Property]
  80. public int createId
  81. {
  82. get { return _createId; }
  83. set { _createId = value; }
  84. }
  85. private string _buyerTitle = "";
  86. /// <summary>
  87. /// 购买抬头
  88. /// </summary>
  89. [Property]
  90. public string buyerTitle
  91. {
  92. get { return _buyerTitle; }
  93. set { _buyerTitle = value; }
  94. }
  95. private string _buyerSn = "";
  96. /// <summary>
  97. /// 购买识别号
  98. /// </summary>
  99. [Property]
  100. public string buyerSn
  101. {
  102. get { return _buyerSn; }
  103. set { _buyerSn = value; }
  104. }
  105. private string _sellerTitle = "";
  106. /// <summary>
  107. /// 卖方抬头
  108. /// </summary>
  109. [Property]
  110. public string sellerTitle
  111. {
  112. get { return _sellerTitle; }
  113. set { _sellerTitle = value; }
  114. }
  115. private string _sellerSn = "";
  116. /// <summary>
  117. /// 卖方识别号
  118. /// </summary>
  119. [Property]
  120. public string sellerSn
  121. {
  122. get { return _sellerSn; }
  123. set { _sellerSn = value; }
  124. }
  125. private double _price = 0.0;
  126. /// <summary>
  127. /// 开票金额
  128. /// </summary>
  129. [Property]
  130. public double price
  131. {
  132. get { return _price; }
  133. set { _price = value; }
  134. }
  135. private double _taxRate = 0.0;
  136. /// <summary>
  137. /// 税率
  138. /// </summary>
  139. [Property]
  140. public double taxRate
  141. {
  142. get { return _taxRate; }
  143. set { _taxRate = value; }
  144. }
  145. private double _taxPrice = 0.0;
  146. /// <summary>
  147. /// 税费
  148. /// </summary>
  149. [Property]
  150. public double taxPrice
  151. {
  152. get { return _taxPrice; }
  153. set { _taxPrice = value; }
  154. }
  155. }
  156. }