| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- using Castle.ActiveRecord;
- using System;
- using System.Text;
- namespace BizCom
- {
- [ActiveRecord("CE_ErpNotice")]
- public class CeErpNotice : ComBase<CeErpNotice>
- {
- /// <summary>
- ///
- /// </summary>
- [PrimaryKey(PrimaryKeyType.Native)]
- public int ID { get; set; }
- private string _title = "";
- /// <summary>
- ///
- /// </summary>
- [Property]
- public string Title
- {
- get { return _title; }
- set { _title = value; }
- }
- private string _con = "";
- /// <summary>
- ///
- /// </summary>
- [Property]
- public string Con
- {
- get { return _con; }
- set { _con = value; }
- }
- private string _receiver = "";
- /// <summary>
- ///
- /// </summary>
- [Property]
- public string Receiver
- {
- get { return _receiver; }
- set { _receiver = value; }
- }
- /// <summary>
- ///
- /// </summary>
- [Property]
- public DateTime? CreatedTime { get; set; }
- /// <summary>
- ///
- /// </summary>
- [Property]
- public DateTime? NoticeTime { get; set; }
- private int _readedCount = 0;
- /// <summary>
- ///
- /// </summary>
- [Property]
- public int ReadedCount
- {
- get { return _readedCount; }
- set { _readedCount = value; }
- }
- private int _senderId = 0;
- /// <summary>
- ///
- /// </summary>
- [Property]
- public int senderId
- {
- get { return _senderId; }
- set { _senderId = value; }
- }
- private string _receiverStr = "";
- /// <summary>
- ///
- /// </summary>
- [Property]
- public string ReceiverStr
- {
- get { return _receiverStr; }
- set { _receiverStr = value; }
- }
- private string _noticeType = "";
- /// <summary>
- ///
- /// </summary>
- [Property]
- public string NoticeType
- {
- get { return _noticeType; }
- set { _noticeType = value; }
- }
- public static void Del(object id)
- {
- StringBuilder sql = new StringBuilder();
- sql.AppendFormat("delete from CE_ErpNotice where id=" + id);
- ExecuteNonQuery(sql.ToString());
- }
- }
- }
|