CeErpTradeSample.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. using Castle.ActiveRecord;
  2. using NHibernate.Criterion;
  3. using System;
  4. using System.Text;
  5. namespace BizCom
  6. {
  7. [ActiveRecord("CE_ErpTradeSample")]
  8. public class CeErpTradeSample : ComBase<CeErpTradeSample>
  9. {
  10. /// <summary>
  11. ///
  12. /// </summary>
  13. [PrimaryKey(PrimaryKeyType.Native)]
  14. public int ID { get; set; }
  15. private string _ctid = "";
  16. /// <summary>
  17. ///땐데뵀
  18. /// </summary>
  19. [Property]
  20. public string ctid
  21. {
  22. get { return _ctid; }
  23. set { _ctid = value; }
  24. }
  25. /// <summary>
  26. ///쌈데珂쇌
  27. /// </summary>
  28. [Property]
  29. public DateTime? ReceiveDate { get; set; }
  30. private double _advanceFee = 0;
  31. /// <summary>
  32. ///득마쏜띨
  33. /// </summary>
  34. [Property]
  35. public double AdvanceFee
  36. {
  37. get { return _advanceFee; }
  38. set { _advanceFee = value; }
  39. }
  40. private double _refund = 0;
  41. /// <summary>
  42. ///럿운쏜띨
  43. /// </summary>
  44. [Property]
  45. public double Refund
  46. {
  47. get { return _refund; }
  48. set { _refund = value; }
  49. }
  50. private double _commission = 0;
  51. /// <summary>
  52. ///澾쏜
  53. /// </summary>
  54. [Property]
  55. public double Commission
  56. {
  57. get { return _commission; }
  58. set { _commission = value; }
  59. }
  60. private double _serviceFee = 0;
  61. /// <summary>
  62. ///틱憩륩蛟롤
  63. /// </summary>
  64. [Property]
  65. public double ServiceFee
  66. {
  67. get { return _serviceFee; }
  68. set { _serviceFee = value; }
  69. }
  70. private double _logisticsFee = 0;
  71. /// <summary>
  72. ///우뒵롤
  73. /// </summary>
  74. [Property]
  75. public double LogisticsFee
  76. {
  77. get { return _logisticsFee; }
  78. set { _logisticsFee = value; }
  79. }
  80. /// <summary>
  81. ///깃션휑퍅
  82. /// </summary>
  83. [Property]
  84. public DateTime? SampleDate { get; set; }
  85. private int _sampleUserId = 0;
  86. /// <summary>
  87. ///깃션훙逃ID
  88. /// </summary>
  89. [Property]
  90. public int SampleUserId
  91. {
  92. get { return _sampleUserId; }
  93. set { _sampleUserId = value; }
  94. }
  95. public static void Del(object id)
  96. {
  97. StringBuilder sql = new StringBuilder();
  98. sql.AppendFormat("delete from CE_ErpTradeSample where id=" + id);
  99. ExecuteNonQuery(sql.ToString());
  100. }
  101. public static CeErpTradeSample GetBytid(string tid)
  102. {
  103. return FindFirst(Expression.Eq("ctid", tid));
  104. }
  105. }
  106. }