Sheet2$.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. using System;
  2. using Castle.ActiveRecord;
  3. using System.Text;
  4. namespace BizCom
  5. {
  6. [ActiveRecord("Sheet2$")]
  7. public class Sheet2$ : ComBase<Sheet2$>
  8. {
  9. private string _order_no="";
  10. /// <summary>
  11. ///
  12. /// </summary>
  13. [Property]
  14. public string order_no
  15. {
  16. get{ return _order_no; }
  17. set{ _order_no=value; }
  18. }
  19. private double _price=0;
  20. /// <summary>
  21. ///
  22. /// </summary>
  23. [Property]
  24. public double price
  25. {
  26. get{ return _price; }
  27. set{ _price=value; }
  28. }
  29. private string _pay_time="";
  30. /// <summary>
  31. ///
  32. /// </summary>
  33. [Property]
  34. public string pay_time
  35. {
  36. get{ return _pay_time; }
  37. set{ _pay_time=value; }
  38. }
  39. private string _supplier_name="";
  40. /// <summary>
  41. ///
  42. /// </summary>
  43. [Property]
  44. public string supplier_name
  45. {
  46. get{ return _supplier_name; }
  47. set{ _supplier_name=value; }
  48. }
  49. private string _company_name="";
  50. /// <summary>
  51. ///
  52. /// </summary>
  53. [Property]
  54. public string company_name
  55. {
  56. get{ return _company_name; }
  57. set{ _company_name=value; }
  58. }
  59. private string _customer_name="";
  60. /// <summary>
  61. ///
  62. /// </summary>
  63. [Property]
  64. public string customer_name
  65. {
  66. get{ return _customer_name; }
  67. set{ _customer_name=value; }
  68. }
  69. private string _user_designer_name="";
  70. /// <summary>
  71. ///
  72. /// </summary>
  73. [Property]
  74. public string user_designer_name
  75. {
  76. get{ return _user_designer_name; }
  77. set{ _user_designer_name=value; }
  78. }
  79. private string _user_waiter_name="";
  80. /// <summary>
  81. ///
  82. /// </summary>
  83. [Property]
  84. public string user_waiter_name
  85. {
  86. get{ return _user_waiter_name; }
  87. set{ _user_waiter_name=value; }
  88. }
  89. private string _remark="";
  90. /// <summary>
  91. ///
  92. /// </summary>
  93. [Property]
  94. public string remark
  95. {
  96. get{ return _remark; }
  97. set{ _remark=value; }
  98. }
  99. public static void Del(object id)
  100. {
  101. StringBuilder sql = new StringBuilder();
  102. sql.AppendFormat("delete from Sheet2$ where id=" + id);
  103. ExecuteNonQuery(sql.ToString());
  104. }
  105. }
  106. }