CraftOrdDesignStdPicSmpTotalEntity.cs 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.IO;
  5. using System.Linq;
  6. using System.Runtime.Serialization;
  7. using System.Runtime.Serialization.Formatters.Binary;
  8. using System.Text;
  9. using Core.Mes.Client.Comm.Attribute;
  10. using Newtonsoft.Json;
  11. namespace Core.StlMes.Client.SaleOrder
  12. {
  13. [Serializable]
  14. public class CraftOrdDesignStdPicSmpTotalEntity: ICloneable
  15. {
  16. /// <summary>
  17. /// 工艺文件号
  18. /// </summary>
  19. private string craftNo = "";
  20. /// <summary>
  21. /// 工序代码
  22. /// </summary>
  23. private string processCode = "";
  24. /// <summary>
  25. /// ORD_LN_PK
  26. /// </summary>
  27. private string ordLnPk = "";
  28. /// <summary>
  29. /// CRAFT_SEQ
  30. /// </summary>
  31. private string craftSeq = "";
  32. /// <summary>
  33. /// ORD_LN_PK
  34. /// </summary>
  35. [Description("ORD_LN_PK")]
  36. [Nullable(false)]
  37. [DataLength(150)]
  38. public string OrdLnPk
  39. {
  40. get { return ordLnPk; }
  41. set { ordLnPk = value; }
  42. }
  43. /// <summary>
  44. /// 序号
  45. /// </summary>
  46. [Description("序号")]
  47. [Nullable(false)]
  48. [DataLength(150)]
  49. public string CraftSeq
  50. {
  51. get { return craftSeq; }
  52. set { craftSeq = value; }
  53. }
  54. /// <summary>
  55. /// 工艺文件号
  56. /// </summary>
  57. [Description("工艺文件号")]
  58. [Nullable(false)]
  59. [DataLength(150)]
  60. public string CraftNo
  61. {
  62. get { return craftNo; }
  63. set { craftNo = value; }
  64. }
  65. /// <summary>
  66. /// 工序代码
  67. /// </summary>
  68. [Description("工序代码")]
  69. [Nullable(false)]
  70. [DataLength(100)]
  71. public string ProcessCode
  72. {
  73. get { return processCode; }
  74. set { processCode = value; }
  75. }
  76. /// <summary>
  77. /// 根据批数分情况讨论
  78. /// </summary>
  79. private decimal? batchNum;
  80. /// <summary>
  81. /// 根据批数分情况讨论
  82. /// </summary>
  83. [Description("分类")]
  84. [Nullable(false)]
  85. [DataLength(40)]
  86. [JsonProperty("type")]
  87. public decimal? BatchNum
  88. {
  89. get { return batchNum; }
  90. set { batchNum = value; }
  91. }
  92. /// <summary>
  93. /// 第几批
  94. /// </summary>
  95. private decimal? batchNo = 0;
  96. /// <summary>
  97. /// 第几批
  98. /// </summary>
  99. [Description("批号")]
  100. [Nullable(false)]
  101. [DataLength(40)]
  102. [JsonProperty("batchNo")]
  103. public decimal? BatchNo
  104. {
  105. get { return batchNo; }
  106. set { batchNo = value; }
  107. }
  108. /// <summary>
  109. /// SAMPLE_LENGTH
  110. /// </summary>
  111. private string sampleLength = "";
  112. /// <summary>
  113. /// SAMPLE_NO
  114. /// </summary>
  115. [Description("样管长度")]
  116. [Nullable(false)]
  117. [DataLength(40)]
  118. [JsonProperty("sampleLength")]
  119. public string SampleLength
  120. {
  121. get { return sampleLength; }
  122. set { sampleLength = value; }
  123. }
  124. /// <summary>
  125. /// POSITION
  126. /// </summary>
  127. private string position = "";
  128. /// <summary>
  129. /// POSITION
  130. /// </summary>
  131. [Description("取样位置代码")]
  132. [Nullable(false)]
  133. [DataLength(40)]
  134. [JsonProperty("position")]
  135. public string Position
  136. {
  137. get { return position; }
  138. set { position = value; }
  139. }
  140. /// <summary>
  141. /// DESC_POSITION
  142. /// </summary>
  143. private string descPosition = "";
  144. /// <summary>
  145. /// DESC_POSITION
  146. /// </summary>
  147. [Description("取样位置")]
  148. [Nullable(false)]
  149. [DataLength(40)]
  150. [JsonProperty("type")]
  151. public string DescPosition
  152. {
  153. get { return descPosition; }
  154. set { descPosition = value; }
  155. }
  156. /// <summary>
  157. /// SAMPLE_COUNT
  158. /// </summary>
  159. private string sampleCount = "";
  160. /// <summary>
  161. /// SAMPLE_COUNT
  162. /// </summary>
  163. [Description("取样数量(管头)")]
  164. [Nullable(false)]
  165. [DataLength(40)]
  166. [JsonProperty("sampleCount")]
  167. public string SampleCount
  168. {
  169. get { return sampleCount; }
  170. set { sampleCount = value; }
  171. }
  172. /// <summary>
  173. /// REMARK
  174. /// </summary>
  175. private string remark = "";
  176. /// <summary>
  177. /// REMARK
  178. /// </summary>
  179. [Description("备注说明")]
  180. [Nullable(false)]
  181. [DataLength(40)]
  182. [JsonProperty("remark")]
  183. public string Remark
  184. {
  185. get { return remark; }
  186. set { remark = value; }
  187. }
  188. /// <summary>
  189. /// PHY_NAME_GROUP
  190. /// </summary>
  191. private string phyNameGroup = "";
  192. /// <summary>
  193. /// PHY_NAME_GROUP
  194. /// </summary>
  195. [Description("试样码集合")]
  196. [Nullable(false)]
  197. [DataLength(40)]
  198. [JsonProperty("phyNameGroup")]
  199. public string PhyNameGroup
  200. {
  201. get { return phyNameGroup; }
  202. set { phyNameGroup = value; }
  203. }
  204. /// <summary>
  205. /// SPLINE_NO
  206. /// </summary>
  207. private string phyCodeGroup = "";
  208. /// <summary>
  209. /// PHY_CODE_GROUP
  210. /// </summary>
  211. [Description("试样码集合")]
  212. [Nullable(false)]
  213. [DataLength(40)]
  214. [JsonProperty("phyCodeGroup")]
  215. public string PhyCodeGroup
  216. {
  217. get { return phyCodeGroup; }
  218. set { phyCodeGroup = value; }
  219. }
  220. /// <summary>
  221. /// 根据炉数分情况讨论,可能是公式 5n+2 或者<=2
  222. /// </summary>
  223. private string stoveNum = "";
  224. /// <summary>
  225. /// 根据炉数分情况讨论,可能是公式 5n+2 或者<=2
  226. /// </summary>
  227. [Description("炉数")]
  228. [Nullable(true)]
  229. [DataLength(20)]
  230. public string StoveNum
  231. {
  232. get { return stoveNum; }
  233. set { stoveNum = value; }
  234. }
  235. public object Tag { get; set; }
  236. public object Clone()
  237. {
  238. using (var memStream = new MemoryStream())
  239. {
  240. var binaryFormatter = new BinaryFormatter(null,
  241. new StreamingContext(StreamingContextStates.Clone));
  242. binaryFormatter.Serialize(memStream, this);
  243. memStream.Seek(0, SeekOrigin.Begin);
  244. return binaryFormatter.Deserialize(memStream);
  245. }
  246. }
  247. }
  248. }