Sheet1$.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using System;
  2. using Castle.ActiveRecord;
  3. using System.Text;
  4. namespace BizCom
  5. {
  6. [ActiveRecord("Sheet1$")]
  7. public class Sheet1$ : ComBase<Sheet1$>
  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 _company_name="";
  40. /// <summary>
  41. ///
  42. /// </summary>
  43. [Property]
  44. public string company_name
  45. {
  46. get{ return _company_name; }
  47. set{ _company_name=value; }
  48. }
  49. private string _customer_name="";
  50. /// <summary>
  51. ///
  52. /// </summary>
  53. [Property]
  54. public string customer_name
  55. {
  56. get{ return _customer_name; }
  57. set{ _customer_name=value; }
  58. }
  59. private string _f6="";
  60. /// <summary>
  61. ///
  62. /// </summary>
  63. [Property]
  64. public string F6
  65. {
  66. get{ return _f6; }
  67. set{ _f6=value; }
  68. }
  69. private string _f7="";
  70. /// <summary>
  71. ///
  72. /// </summary>
  73. [Property]
  74. public string F7
  75. {
  76. get{ return _f7; }
  77. set{ _f7=value; }
  78. }
  79. public static void Del(object id)
  80. {
  81. StringBuilder sql = new StringBuilder();
  82. sql.AppendFormat("delete from Sheet1$ where id=" + id);
  83. ExecuteNonQuery(sql.ToString());
  84. }
  85. }
  86. }