CeErpInvoicingInfo.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. using Castle.ActiveRecord;
  2. using System.Text;
  3. namespace BizCom
  4. {
  5. [ActiveRecord("CE_ErpInvoicingInfo")]
  6. public class CeErpInvoicingInfo : ComBase<CeErpInvoicingInfo>
  7. {
  8. /// <summary>
  9. ///
  10. /// </summary>
  11. [PrimaryKey(PrimaryKeyType.Native)]
  12. public int ID { get; set; }
  13. private string _comName = "";
  14. /// <summary>
  15. ///公司全名
  16. /// </summary>
  17. [Property]
  18. public string ComName
  19. {
  20. get { return _comName; }
  21. set { _comName = value; }
  22. }
  23. private string _cName = "";
  24. /// <summary>
  25. ///公司简称
  26. /// </summary>
  27. [Property]
  28. public string CName
  29. {
  30. get { return _cName; }
  31. set { _cName = value; }
  32. }
  33. private string _tax = "";
  34. /// <summary>
  35. ///税号
  36. /// </summary>
  37. [Property]
  38. public string Tax
  39. {
  40. get { return _tax; }
  41. set { _tax = value; }
  42. }
  43. private string _address = "";
  44. /// <summary>
  45. ///注册地址
  46. /// </summary>
  47. [Property]
  48. public string Address
  49. {
  50. get { return _address; }
  51. set { _address = value; }
  52. }
  53. private string _phone = "";
  54. /// <summary>
  55. ///注册电话
  56. /// </summary>
  57. [Property]
  58. public string Phone
  59. {
  60. get { return _phone; }
  61. set { _phone = value; }
  62. }
  63. private string _bank = "";
  64. /// <summary>
  65. ///开户行
  66. /// </summary>
  67. [Property]
  68. public string Bank
  69. {
  70. get { return _bank; }
  71. set { _bank = value; }
  72. }
  73. private string _bankAcc = "";
  74. /// <summary>
  75. ///开户账号
  76. /// </summary>
  77. [Property]
  78. public string BankAcc
  79. {
  80. get { return _bankAcc; }
  81. set { _bankAcc = value; }
  82. }
  83. private string _billKey = "";
  84. /// <summary>
  85. ///开票身份认证
  86. /// </summary>
  87. [Property]
  88. public string BillKey
  89. {
  90. get { return _billKey; }
  91. set { _billKey = value; }
  92. }
  93. private string _legal = "";
  94. /// <summary>
  95. ///法人
  96. /// </summary>
  97. [Property]
  98. public string legal
  99. {
  100. get { return _legal; }
  101. set { _legal = value; }
  102. }
  103. private string _taxrate = "";
  104. /// <summary>
  105. ///税率
  106. /// </summary>
  107. [Property]
  108. public string taxrate
  109. {
  110. get { return _taxrate; }
  111. set { _taxrate = value; }
  112. }
  113. private double _limitPrice = 0;
  114. /// <summary>
  115. ///
  116. /// </summary>
  117. [Property]
  118. public double LimitPrice
  119. {
  120. get { return _limitPrice; }
  121. set { _limitPrice = value; }
  122. }
  123. public static void Del(object id)
  124. {
  125. StringBuilder sql = new StringBuilder();
  126. sql.AppendFormat("delete from CE_ErpInvoicingInfo where id=" + id);
  127. ExecuteNonQuery(sql.ToString());
  128. }
  129. }
  130. }