CraftOrdDesignStdPicSmpDetailEntity.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  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 CraftOrdDesignStdPicSmpDetailEntity: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. /// CRAFT_SEQ
  34. /// </summary>
  35. private string pic = "";
  36. /// <summary>
  37. /// LOOP_VALUE
  38. /// </summary>
  39. [Description("PIC")]
  40. [Nullable(false)]
  41. [DataLength(40)]
  42. [JsonProperty("pic")]
  43. public string Pic
  44. {
  45. get { return pic; }
  46. set { pic = value; }
  47. }
  48. /// <summary>
  49. /// 工艺文件号
  50. /// </summary>
  51. [Description("工艺文件号")]
  52. [Nullable(false)]
  53. [DataLength(150)]
  54. public string CraftNo
  55. {
  56. get { return craftNo; }
  57. set { craftNo = value; }
  58. }
  59. /// <summary>
  60. /// 工序代码
  61. /// </summary>
  62. [Description("工序代码")]
  63. [Nullable(false)]
  64. [DataLength(100)]
  65. public string ProcessCode
  66. {
  67. get { return processCode; }
  68. set { processCode = value; }
  69. }
  70. /// <summary>
  71. /// ORD_LN_PK
  72. /// </summary>
  73. [Description("ORD_LN_PK")]
  74. [Nullable(false)]
  75. [DataLength(150)]
  76. public string OrdLnPk
  77. {
  78. get { return ordLnPk; }
  79. set { ordLnPk = value; }
  80. }
  81. /// <summary>
  82. /// 序号
  83. /// </summary>
  84. [Description("序号")]
  85. [Nullable(false)]
  86. [DataLength(150)]
  87. public string CraftSeq
  88. {
  89. get { return craftSeq; }
  90. set { craftSeq = value; }
  91. }
  92. /// <summary>
  93. /// DESGIN_KEY
  94. /// </summary>
  95. private string type = "";
  96. /// <summary>
  97. /// DESGIN_KEY
  98. /// </summary>
  99. [Description("分类")]
  100. [Nullable(false)]
  101. [DataLength(40)]
  102. [JsonProperty("type")]
  103. public string Type
  104. {
  105. get { return type; }
  106. set { type = value; }
  107. }
  108. /// <summary>
  109. /// SPLINE_NO
  110. /// </summary>
  111. private string splineNo = "";
  112. /// <summary>
  113. /// SPLINE_NO
  114. /// </summary>
  115. [Description("试样码")]
  116. [Nullable(false)]
  117. [DataLength(40)]
  118. [JsonProperty("splineNo")]
  119. public string SplineNo
  120. {
  121. get { return splineNo; }
  122. set { splineNo = value; }
  123. }
  124. /// <summary>
  125. /// PHY_CODE_MIN
  126. /// </summary>
  127. private string phyCodeMin = "";
  128. /// <summary>
  129. /// PHY_CODE_MIN
  130. /// </summary>
  131. [Description("试样组代码")]
  132. [Nullable(false)]
  133. [DataLength(40)]
  134. [JsonProperty("phyCodeMin")]
  135. public string PhyCodeMin
  136. {
  137. get { return phyCodeMin; }
  138. set { phyCodeMin = value; }
  139. }
  140. /// <summary>
  141. /// PHY_NAME_MIN
  142. /// </summary>
  143. private string phyNameMin = "";
  144. /// <summary>
  145. /// PHY_NAME_MIN
  146. /// </summary>
  147. [Description("试样组")]
  148. [Nullable(false)]
  149. [DataLength(40)]
  150. [JsonProperty("phyNameMin")]
  151. public string PhyNameMin
  152. {
  153. get { return phyNameMin; }
  154. set { phyNameMin = value; }
  155. }
  156. /// <summary>
  157. /// RATE
  158. /// </summary>
  159. private string rate = "";
  160. /// <summary>
  161. /// RATE
  162. /// </summary>
  163. [Description("取样频率代码")]
  164. [Nullable(false)]
  165. [DataLength(40)]
  166. [JsonProperty("rate")]
  167. public string Rate
  168. {
  169. get { return rate; }
  170. set { rate = value; }
  171. }
  172. /// <summary>
  173. /// DESC_RATE
  174. /// </summary>
  175. private string descRate = "";
  176. /// <summary>
  177. /// DESC_RATE
  178. /// </summary>
  179. [Description("取样频率")]
  180. [Nullable(false)]
  181. [DataLength(40)]
  182. [JsonProperty("descRate")]
  183. public string DescRate
  184. {
  185. get { return descRate; }
  186. set { descRate = value; }
  187. }
  188. /// <summary>
  189. /// BATCH_UNIT
  190. /// </summary>
  191. private string batchUnit = "";
  192. /// <summary>
  193. /// BATCH_UNIT
  194. /// </summary>
  195. [Description("分批单位")]
  196. [Nullable(false)]
  197. [DataLength(40)]
  198. [JsonProperty("batchUnit")]
  199. public string BatchUnit
  200. {
  201. get { return batchUnit; }
  202. set { batchUnit = value; }
  203. }
  204. /// <summary>
  205. /// BATCH_CNT
  206. /// </summary>
  207. private string batchCnt = "";
  208. /// <summary>
  209. /// BATCH_CNT
  210. /// </summary>
  211. [Description("分批数量")]
  212. [Nullable(false)]
  213. [DataLength(40)]
  214. [JsonProperty("batchCnt")]
  215. public string BatchCnt
  216. {
  217. get { return batchCnt; }
  218. set { batchCnt = value; }
  219. }
  220. /// <summary>
  221. /// BATCH_CNT
  222. /// </summary>
  223. private string batchCntM = "";
  224. /// <summary>
  225. /// BATCH_CNT
  226. /// </summary>
  227. [Description("母管分批数量")]
  228. [Nullable(false)]
  229. [DataLength(40)]
  230. [JsonProperty("batchCntM")]
  231. public string BatchCntM
  232. {
  233. get { return batchCntM; }
  234. set { batchCntM = value; }
  235. }
  236. /// <summary>
  237. /// SAMPLE_COUNT
  238. /// </summary>
  239. private string sampleCount = "";
  240. /// <summary>
  241. /// SAMPLE_COUNT
  242. /// </summary>
  243. [Description("样条个数(每管头)")]
  244. [Nullable(false)]
  245. [DataLength(40)]
  246. [JsonProperty("sampleCount")]
  247. public string SampleCount
  248. {
  249. get { return sampleCount; }
  250. set { sampleCount = value; }
  251. }
  252. /// <summary>
  253. /// DESC_COUNT
  254. /// </summary>
  255. private string descCount = "";
  256. /// <summary>
  257. /// DESC_COUNT
  258. /// </summary>
  259. [Description("管头个数(每炉或批)")]
  260. [Nullable(false)]
  261. [DataLength(40)]
  262. [JsonProperty("descCount")]
  263. public string DescCount
  264. {
  265. get { return descCount; }
  266. set { descCount = value; }
  267. }
  268. /// <summary>
  269. /// POSITION
  270. /// </summary>
  271. private string position = "";
  272. /// <summary>
  273. /// POSITION
  274. /// </summary>
  275. [Description("取样位置代码")]
  276. [Nullable(false)]
  277. [DataLength(40)]
  278. [JsonProperty("position")]
  279. public string Position
  280. {
  281. get { return position; }
  282. set { position = value; }
  283. }
  284. /// <summary>
  285. /// DESC_POSITION
  286. /// </summary>
  287. private string descPosition = "";
  288. /// <summary>
  289. /// DESC_POSITION
  290. /// </summary>
  291. [Description("取样位置")]
  292. [Nullable(false)]
  293. [DataLength(40)]
  294. [JsonProperty("type")]
  295. public string DescPosition
  296. {
  297. get { return descPosition; }
  298. set { descPosition = value; }
  299. }
  300. /// <summary>
  301. /// LENGTH
  302. /// </summary>
  303. private string length = "";
  304. /// <summary>
  305. /// LENGTH
  306. /// </summary>
  307. [Description("样条长度")]
  308. [Nullable(false)]
  309. [DataLength(40)]
  310. [JsonProperty("length")]
  311. public string Length
  312. {
  313. get { return length; }
  314. set { length = value; }
  315. }
  316. /// <summary>
  317. /// WIDTH
  318. /// </summary>
  319. private string width = "";
  320. /// <summary>
  321. /// WIDTH
  322. /// </summary>
  323. [Description("样条宽度")]
  324. [Nullable(false)]
  325. [DataLength(40)]
  326. [JsonProperty("width")]
  327. public string Width
  328. {
  329. get { return width; }
  330. set { width = value; }
  331. }
  332. /// <summary>
  333. /// SAMPLE_STYLE
  334. /// </summary>
  335. private string sampleStyle = "";
  336. /// <summary>
  337. /// SAMPLE_STYLE
  338. /// </summary>
  339. [Description("样条形状代码")]
  340. [Nullable(false)]
  341. [DataLength(40)]
  342. [JsonProperty("sampleStyle")]
  343. public string SampleStyle
  344. {
  345. get { return sampleStyle; }
  346. set { sampleStyle = value; }
  347. }
  348. /// <summary>
  349. /// SAMPLE_STYLE_DESC
  350. /// </summary>
  351. private string sampleStyleDesc = "";
  352. /// <summary>
  353. /// SAMPLE_STYLE_DESC
  354. /// </summary>
  355. [Description("样条形状")]
  356. [Nullable(false)]
  357. [DataLength(40)]
  358. [JsonProperty("sampleStyle")]
  359. public string SampleStyleDesc
  360. {
  361. get { return sampleStyleDesc; }
  362. set { sampleStyleDesc = value; }
  363. }
  364. /// <summary>
  365. /// PHY_NAME_GROUP
  366. /// </summary>
  367. private string phyNameGroup = "";
  368. /// <summary>
  369. /// PHY_NAME_GROUP
  370. /// </summary>
  371. [Description("检验项集合")]
  372. [Nullable(false)]
  373. [DataLength(40)]
  374. [JsonProperty("phyNameGroup")]
  375. public string PhyNameGroup
  376. {
  377. get { return phyNameGroup; }
  378. set { phyNameGroup = value; }
  379. }
  380. /// <summary>
  381. /// PHY_NAME_GROUP
  382. /// </summary>
  383. private string phyCodeGroup = "";
  384. /// <summary>
  385. /// PHY_CODE_GROUP
  386. /// </summary>
  387. [Description("检验项集合")]
  388. [Nullable(false)]
  389. [DataLength(40)]
  390. [JsonProperty("phyCodeGroup")]
  391. public string PhyCodeGroup
  392. {
  393. get { return phyCodeGroup; }
  394. set { phyCodeGroup = value; }
  395. }
  396. /// <summary>
  397. /// ATTACH_PERCENT
  398. /// </summary>
  399. private string attachPercent = "";
  400. /// <summary>
  401. /// ATTACH_PERCENT
  402. /// </summary>
  403. [Description("抽样比例")]
  404. [Nullable(false)]
  405. [DataLength(40)]
  406. [JsonProperty("attachPercent")]
  407. public string AttachPercent
  408. {
  409. get { return attachPercent; }
  410. set { attachPercent = value; }
  411. }
  412. /// <summary>
  413. /// ATTACH_COUNT
  414. /// </summary>
  415. private string attachCount = "";
  416. /// <summary>
  417. /// ATTACH_COUNT
  418. /// </summary>
  419. [Description("抽样比例最小管数")]
  420. [Nullable(false)]
  421. [DataLength(40)]
  422. [JsonProperty("attachCount")]
  423. public string AttachCount
  424. {
  425. get { return attachCount; }
  426. set { attachCount = value; }
  427. }
  428. /// <summary>
  429. /// TOP_STOVE
  430. /// </summary>
  431. private string topStove = "";
  432. /// <summary>
  433. /// TOP_STOVE
  434. /// </summary>
  435. [Description("前几炉(生产批)")]
  436. [Nullable(false)]
  437. [DataLength(40)]
  438. [JsonProperty("topStove")]
  439. public string TopStove
  440. {
  441. get { return topStove; }
  442. set { topStove = value; }
  443. }
  444. /// <summary>
  445. /// LOOP_VALUE
  446. /// </summary>
  447. private string loopValue = "";
  448. /// <summary>
  449. /// LOOP_VALUE
  450. /// </summary>
  451. [Description("循环炉数(生产批)")]
  452. [Nullable(false)]
  453. [DataLength(40)]
  454. [JsonProperty("loopValue")]
  455. public string LoopValue
  456. {
  457. get { return loopValue; }
  458. set { loopValue = value; }
  459. }
  460. public object Clone()
  461. {
  462. using (var memStream = new MemoryStream())
  463. {
  464. var binaryFormatter = new BinaryFormatter(null,
  465. new StreamingContext(StreamingContextStates.Clone));
  466. binaryFormatter.Serialize(memStream, this);
  467. memStream.Seek(0, SeekOrigin.Begin);
  468. return binaryFormatter.Deserialize(memStream);
  469. }
  470. }
  471. }
  472. }