CeErpPlaceRegister.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. using Castle.ActiveRecord;
  2. using System;
  3. using System.Text;
  4. namespace BizCom
  5. {
  6. [ActiveRecord("CE_ErpPlaceRegister")]
  7. public class CeErpPlaceRegister : ComBase<CeErpPlaceRegister>
  8. {
  9. /// <summary>
  10. ///
  11. /// </summary>
  12. [PrimaryKey(PrimaryKeyType.Native)]
  13. public int ID { get; set; }
  14. /// <summary>
  15. ///下单时间
  16. /// </summary>
  17. [Property]
  18. public DateTime? PlactTime { get; set; }
  19. /// <summary>
  20. ///发货时间
  21. /// </summary>
  22. [Property]
  23. public DateTime? DeliveryTime { get; set; }
  24. private int _deliveryCount = 0;
  25. /// <summary>
  26. ///发货数量
  27. /// </summary>
  28. [Property]
  29. public int DeliveryCount
  30. {
  31. get { return _deliveryCount; }
  32. set { _deliveryCount = value; }
  33. }
  34. private int _receiveCount = 0;
  35. /// <summary>
  36. ///收货数量
  37. /// </summary>
  38. [Property]
  39. public int ReceiveCount
  40. {
  41. get { return _receiveCount; }
  42. set { _receiveCount = value; }
  43. }
  44. private string _outSid = "";
  45. /// <summary>
  46. ///快递
  47. /// </summary>
  48. [Property]
  49. public string OutSid
  50. {
  51. get { return _outSid; }
  52. set { _outSid = value; }
  53. }
  54. private string _fileName = "";
  55. /// <summary>
  56. ///文件名
  57. /// </summary>
  58. [Property]
  59. public string FileName
  60. {
  61. get { return _fileName; }
  62. set { _fileName = value; }
  63. }
  64. private string _memo = "";
  65. /// <summary>
  66. ///备注
  67. /// </summary>
  68. [Property]
  69. public string Memo
  70. {
  71. get { return _memo; }
  72. set { _memo = value; }
  73. }
  74. private string _img = "";
  75. /// <summary>
  76. ///图片
  77. /// </summary>
  78. [Property]
  79. public string Img
  80. {
  81. get { return _img; }
  82. set { _img = value; }
  83. }
  84. private int _addUserId = 0;
  85. /// <summary>
  86. ///添加人
  87. /// </summary>
  88. [Property]
  89. public int AddUserId
  90. {
  91. get { return _addUserId; }
  92. set { _addUserId = value; }
  93. }
  94. /// <summary>
  95. ///创建时间
  96. /// </summary>
  97. [Property]
  98. public DateTime? CreateTime { get; set; }
  99. /// <summary>
  100. ///预计出货时间
  101. /// </summary>
  102. [Property]
  103. public DateTime? PreOutTime { get; set; }
  104. private int _supplier = 0;
  105. /// <summary>
  106. ///供应商ID
  107. /// </summary>
  108. [Property]
  109. public int Supplier
  110. {
  111. get { return _supplier; }
  112. set { _supplier = value; }
  113. }
  114. private string _did = "";
  115. /// <summary>
  116. ///编号
  117. /// </summary>
  118. [Property]
  119. public string Did
  120. {
  121. get { return _did; }
  122. set { _did = value; }
  123. }
  124. private int _outLate = 0;
  125. /// <summary>
  126. ///出货逾期
  127. /// </summary>
  128. [Property]
  129. public int OutLate
  130. {
  131. get { return _outLate; }
  132. set { _outLate = value; }
  133. }
  134. private int _surplus = 0;
  135. /// <summary>
  136. ///剩余件数
  137. /// </summary>
  138. [Property]
  139. public int Surplus
  140. {
  141. get { return _surplus; }
  142. set { _surplus = value; }
  143. }
  144. private string _tid = "";
  145. /// <summary>
  146. ///
  147. /// </summary>
  148. [Property]
  149. public string tid
  150. {
  151. get { return _tid; }
  152. set { _tid = value; }
  153. }
  154. private string _splitTag = "";
  155. /// <summary>
  156. ///
  157. /// </summary>
  158. [Property]
  159. public string splitTag
  160. {
  161. get { return _splitTag; }
  162. set { _splitTag = value; }
  163. }
  164. private string _curState = "";
  165. /// <summary>
  166. ///已完成未完成
  167. /// </summary>
  168. [Property]
  169. public string CurState
  170. {
  171. get { return _curState; }
  172. set { _curState = value; }
  173. }
  174. public static void Del(object id)
  175. {
  176. StringBuilder sql = new StringBuilder();
  177. sql.AppendFormat("delete from CE_ErpPlaceRegister where id=" + id);
  178. ExecuteNonQuery(sql.ToString());
  179. }
  180. }
  181. }