CeErpReturnCash.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. using Castle.ActiveRecord;
  2. using NHibernate.Criterion;
  3. using System;
  4. using System.Text;
  5. namespace BizCom
  6. {
  7. [ActiveRecord("CE_ErpReturnCash")]
  8. public class CeErpReturnCash : ComBase<CeErpReturnCash>
  9. {
  10. /// <summary>
  11. ///
  12. /// </summary>
  13. [PrimaryKey(PrimaryKeyType.Native)]
  14. public int ID { get; set; }
  15. private string _tid = "";
  16. /// <summary>
  17. ///交易编号
  18. /// </summary>
  19. [Property]
  20. public string tid
  21. {
  22. get { return _tid; }
  23. set { _tid = value; }
  24. }
  25. private string _rtype = "";
  26. /// <summary>
  27. ///交易类型列表
  28. /// </summary>
  29. [Property]
  30. public string rtype
  31. {
  32. get { return _rtype; }
  33. set { _rtype = value; }
  34. }
  35. private double _price = 0;
  36. /// <summary>
  37. ///
  38. /// </summary>
  39. [Property]
  40. public double price
  41. {
  42. get { return _price; }
  43. set { _price = value; }
  44. }
  45. /// <summary>
  46. ///交易创建时间
  47. /// </summary>
  48. [Property]
  49. public DateTime? created { get; set; }
  50. /// <summary>
  51. ///审核时间
  52. /// </summary>
  53. [Property]
  54. public DateTime? verifytime { get; set; }
  55. private string _buyer_nick = "";
  56. /// <summary>
  57. ///买家昵称
  58. /// </summary>
  59. [Property]
  60. public string buyer_nick
  61. {
  62. get { return _buyer_nick; }
  63. set { _buyer_nick = value; }
  64. }
  65. private double _payment = 0;
  66. /// <summary>
  67. ///实付金额
  68. /// </summary>
  69. [Property]
  70. public double payment
  71. {
  72. get { return _payment; }
  73. set { _payment = value; }
  74. }
  75. private double _returnprice = 0;
  76. /// <summary>
  77. ///返现金额
  78. /// </summary>
  79. [Property]
  80. public double returnprice
  81. {
  82. get { return _returnprice; }
  83. set { _returnprice = value; }
  84. }
  85. private string _con = "";
  86. /// <summary>
  87. ///返现说明
  88. /// </summary>
  89. [Property]
  90. public string con
  91. {
  92. get { return _con; }
  93. set { _con = value; }
  94. }
  95. private int _verifyuserid = 0;
  96. /// <summary>
  97. ///审核人
  98. /// </summary>
  99. [Property]
  100. public int verifyuserid
  101. {
  102. get { return _verifyuserid; }
  103. set { _verifyuserid = value; }
  104. }
  105. private int _applyuserid = 0;
  106. /// <summary>
  107. ///申请人
  108. /// </summary>
  109. [Property]
  110. public int applyuserid
  111. {
  112. get { return _applyuserid; }
  113. set { _applyuserid = value; }
  114. }
  115. private int _cashstate = 0;
  116. /// <summary>
  117. ///审核状态0未审核1通过
  118. /// </summary>
  119. [Property]
  120. public int cashstate
  121. {
  122. get { return _cashstate; }
  123. set { _cashstate = value; }
  124. }
  125. private string _seller_nick = "";
  126. /// <summary>
  127. ///卖家店铺
  128. /// </summary>
  129. [Property]
  130. public string seller_nick
  131. {
  132. get { return _seller_nick; }
  133. set { _seller_nick = value; }
  134. }
  135. private string _backreason = "";
  136. /// <summary>
  137. ///退回原因
  138. /// </summary>
  139. [Property]
  140. public string backreason
  141. {
  142. get { return _backreason; }
  143. set { _backreason = value; }
  144. }
  145. private string _img = "";
  146. /// <summary>
  147. ///
  148. /// </summary>
  149. [Property]
  150. public string img
  151. {
  152. get { return _img; }
  153. set { _img = value; }
  154. }
  155. public static void Del(object id)
  156. {
  157. StringBuilder sql = new StringBuilder();
  158. sql.AppendFormat("delete from CE_ErpReturnCash where id=" + id);
  159. ExecuteNonQuery(sql.ToString());
  160. }
  161. public static CeErpReturnCash GetByTid(string tid)
  162. {
  163. return FindFirst(Expression.Eq("tid", tid));
  164. }
  165. }
  166. }