CeErpMailInfo.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using Castle.ActiveRecord;
  2. using System;
  3. using System.Text;
  4. namespace BizCom
  5. {
  6. [ActiveRecord("CE_ErpMailInfo")]
  7. public class CeErpMailInfo : ComBase<CeErpMailInfo>
  8. {
  9. /// <summary>
  10. ///
  11. /// </summary>
  12. [PrimaryKey(PrimaryKeyType.Native)]
  13. public int ID { get; set; }
  14. private string _name = "";
  15. /// <summary>
  16. ///우뒵츰俚
  17. /// </summary>
  18. [Property]
  19. public string name
  20. {
  21. get { return _name; }
  22. set { _name = value; }
  23. }
  24. private string _code = "";
  25. /// <summary>
  26. ///우뒵긍뵀
  27. /// </summary>
  28. [Property]
  29. public string code
  30. {
  31. get { return _code; }
  32. set { _code = value; }
  33. }
  34. private string _cpCode = "";
  35. /// <summary>
  36. ///듐힛溝固우뒵긍뵀
  37. /// </summary>
  38. [Property]
  39. public string cpCode
  40. {
  41. get { return _cpCode; }
  42. set { _cpCode = value; }
  43. }
  44. /// <summary>
  45. ///
  46. /// </summary>
  47. [Property]
  48. public DateTime? addTime { get; set; }
  49. private int _isAuth = 0;
  50. /// <summary>
  51. ///角뤠竿홈
  52. /// </summary>
  53. [Property]
  54. public int isAuth
  55. {
  56. get { return _isAuth; }
  57. set { _isAuth = value; }
  58. }
  59. public static void Del(object id)
  60. {
  61. StringBuilder sql = new StringBuilder();
  62. sql.AppendFormat("delete from CE_ErpMailInfo where id=" + id);
  63. ExecuteNonQuery(sql.ToString());
  64. }
  65. }
  66. }