CeErpNotice.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. using Castle.ActiveRecord;
  2. using System;
  3. using System.Text;
  4. namespace BizCom
  5. {
  6. [ActiveRecord("CE_ErpNotice")]
  7. public class CeErpNotice : ComBase<CeErpNotice>
  8. {
  9. /// <summary>
  10. ///
  11. /// </summary>
  12. [PrimaryKey(PrimaryKeyType.Native)]
  13. public int ID { get; set; }
  14. private string _title = "";
  15. /// <summary>
  16. ///
  17. /// </summary>
  18. [Property]
  19. public string Title
  20. {
  21. get { return _title; }
  22. set { _title = value; }
  23. }
  24. private string _con = "";
  25. /// <summary>
  26. ///
  27. /// </summary>
  28. [Property]
  29. public string Con
  30. {
  31. get { return _con; }
  32. set { _con = value; }
  33. }
  34. private string _receiver = "";
  35. /// <summary>
  36. ///
  37. /// </summary>
  38. [Property]
  39. public string Receiver
  40. {
  41. get { return _receiver; }
  42. set { _receiver = value; }
  43. }
  44. /// <summary>
  45. ///
  46. /// </summary>
  47. [Property]
  48. public DateTime? CreatedTime { get; set; }
  49. /// <summary>
  50. ///
  51. /// </summary>
  52. [Property]
  53. public DateTime? NoticeTime { get; set; }
  54. private int _readedCount = 0;
  55. /// <summary>
  56. ///
  57. /// </summary>
  58. [Property]
  59. public int ReadedCount
  60. {
  61. get { return _readedCount; }
  62. set { _readedCount = value; }
  63. }
  64. private int _senderId = 0;
  65. /// <summary>
  66. ///
  67. /// </summary>
  68. [Property]
  69. public int senderId
  70. {
  71. get { return _senderId; }
  72. set { _senderId = value; }
  73. }
  74. private string _receiverStr = "";
  75. /// <summary>
  76. ///
  77. /// </summary>
  78. [Property]
  79. public string ReceiverStr
  80. {
  81. get { return _receiverStr; }
  82. set { _receiverStr = value; }
  83. }
  84. private string _noticeType = "";
  85. /// <summary>
  86. ///
  87. /// </summary>
  88. [Property]
  89. public string NoticeType
  90. {
  91. get { return _noticeType; }
  92. set { _noticeType = value; }
  93. }
  94. public static void Del(object id)
  95. {
  96. StringBuilder sql = new StringBuilder();
  97. sql.AppendFormat("delete from CE_ErpNotice where id=" + id);
  98. ExecuteNonQuery(sql.ToString());
  99. }
  100. }
  101. }