CeErpSpecialRefund.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using Castle.ActiveRecord;
  2. using NHibernate.Criterion;
  3. namespace BizCom
  4. {
  5. [ActiveRecord("Ce_ErpSpecialRefund")]
  6. public class CeErpSpecialRefund : ComBase<CeErpSpecialRefund>
  7. {
  8. [PrimaryKey(PrimaryKeyType.Native)]
  9. public int ID { get; set; }
  10. private string _refoid = "";
  11. /// <summary>
  12. ///交易编号
  13. /// </summary>
  14. [Property]
  15. public string refoid
  16. {
  17. get { return _refoid; }
  18. set { _refoid = value; }
  19. }
  20. private string _refxml = "";
  21. /// <summary>
  22. /// </summary>
  23. [Property]
  24. public string refxml
  25. {
  26. get { return _refxml; }
  27. set { _refxml = value; }
  28. }
  29. private int _whethernotify = 0;
  30. [Property]
  31. public int whethernotify
  32. {
  33. get { return _whethernotify; }
  34. set { _whethernotify = value; }
  35. }
  36. public static CeErpSpecialRefund GetByTid(string tid)
  37. {
  38. return FindFirst(Expression.Eq("refoid", tid));
  39. }
  40. }
  41. }