MchFinalCheckResultDEntity.cs 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. using System;
  2. using System.ComponentModel;
  3. using System.IO;
  4. using System.Runtime.Serialization;
  5. using System.Runtime.Serialization.Formatters.Binary;
  6. using Core.Mes.Client.Comm.Attribute;
  7. namespace Core.StlMes.Client.Mcp.Control.Entity
  8. {
  9. [Serializable]
  10. /// <summary>
  11. /// 数据库表MCH_FINAL_CHECK_RESULT_D所对应的实体类(生成工具:代码生成工具3.0)
  12. /// 作者:朱少波 时间:2019-02-21
  13. /// </summary>
  14. public class MchFinalCheckResultDEntity
  15. {
  16. [Description("选择")]
  17. [Nullable(true)]
  18. [DataLength(20)]
  19. public bool Check { get; set; }
  20. /// <summary>
  21. /// 实绩编号
  22. /// </summary>
  23. private string resultNo = "";
  24. /// <summary>
  25. /// 材料号(管号)
  26. /// </summary>
  27. private string matNo = "";
  28. /// <summary>
  29. /// 喷印管号
  30. /// </summary>
  31. private decimal? measuringSeq = null;
  32. /// <summary>
  33. /// 逐支跟踪号
  34. /// </summary>
  35. private string barCode = "";
  36. /// <summary>
  37. /// 位置代码
  38. /// </summary>
  39. private string positionCode = "";
  40. /// <summary>
  41. /// 不合项代码
  42. /// </summary>
  43. private string unpassCode = "";
  44. /// <summary>
  45. /// 不合项
  46. /// </summary>
  47. private string unpassName = "";
  48. /// <summary>
  49. /// 不合描述
  50. /// </summary>
  51. private string unpassMemo = "";
  52. /// <summary>
  53. /// 0-合格 1-不合 2-废品
  54. /// </summary>
  55. private string station = "";
  56. /// <summary>
  57. /// 处置代码
  58. /// </summary>
  59. private string treatmentCode = "";
  60. /// <summary>
  61. /// 处置方式
  62. /// </summary>
  63. private string treatmentName = "";
  64. /// <summary>
  65. /// 位置
  66. /// </summary>
  67. private string positionName = "";
  68. /// <summary>
  69. /// 是否尺寸检验(光管)
  70. /// </summary>
  71. protected string isSizeCheck = "";
  72. /// <summary>
  73. /// 是否外观检验(光管)
  74. /// </summary>
  75. protected string isAppCheck = "";
  76. /// <summary>
  77. /// 0-合格 1-废品 (光管)
  78. /// </summary>
  79. private string replayStation = "";
  80. /// <summary>
  81. /// 喷印管号
  82. /// </summary>
  83. private decimal? replayMeasuringSeq = null;
  84. /// <summary>
  85. /// 实绩编号
  86. /// </summary>
  87. [Description("实绩编号")]
  88. [Nullable(false)]
  89. [DataLength(24)]
  90. public string ResultNo
  91. {
  92. get { return resultNo; }
  93. set { resultNo = value; }
  94. }
  95. /// <summary>
  96. /// 材料号(管号)
  97. /// </summary>
  98. [Description("材料号(管号)")]
  99. [Nullable(false)]
  100. [DataLength(20)]
  101. public string MatNo
  102. {
  103. get { return matNo; }
  104. set { matNo = value; }
  105. }
  106. /// <summary>
  107. /// 喷印管号
  108. /// </summary>
  109. [Description("喷印管号")]
  110. [Nullable(true)]
  111. [DataLength(10)]
  112. public decimal? MeasuringSeq
  113. {
  114. get { return measuringSeq; }
  115. set { measuringSeq = value; }
  116. }
  117. /// <summary>
  118. /// 逐支跟踪号
  119. /// </summary>
  120. [Description("逐支跟踪号")]
  121. [Nullable(true)]
  122. [DataLength(20)]
  123. public string BarCode
  124. {
  125. get { return barCode; }
  126. set { barCode = value; }
  127. }
  128. /// <summary>
  129. /// 位置代码
  130. /// </summary>
  131. [Description("位置代码")]
  132. [Nullable(false)]
  133. [DataLength(20)]
  134. public string PositionCode
  135. {
  136. get { return positionCode; }
  137. set { positionCode = value; }
  138. }
  139. /// <summary>
  140. /// 不合项代码
  141. /// </summary>
  142. [Description("不合项")]
  143. [Nullable(true)]
  144. [DataLength(20)]
  145. public string UnpassCode
  146. {
  147. get { return unpassCode; }
  148. set { unpassCode = value; }
  149. }
  150. /// <summary>
  151. /// 不合项
  152. /// </summary>
  153. [Description("不合项")]
  154. [Nullable(true)]
  155. [DataLength(20)]
  156. public string UnpassName
  157. {
  158. get { return unpassName; }
  159. set { unpassName = value; }
  160. }
  161. /// <summary>
  162. /// 不合描述
  163. /// </summary>
  164. [Description("不合描述")]
  165. [Nullable(true)]
  166. [DataLength(1)]
  167. public string UnpassMemo
  168. {
  169. get { return unpassMemo; }
  170. set { unpassMemo = value; }
  171. }
  172. /// <summary>
  173. /// 0-合格 1-不合 2-废品
  174. /// </summary>
  175. [Description("状态")]
  176. [Nullable(true)]
  177. [DataLength(1)]
  178. public string Station
  179. {
  180. get { return station; }
  181. set { station = value; }
  182. }
  183. /// <summary>
  184. /// 处置代码
  185. /// </summary>
  186. [Description("处置方式")]
  187. [Nullable(true)]
  188. [DataLength(20)]
  189. public string TreatmentCode
  190. {
  191. get { return treatmentCode; }
  192. set { treatmentCode = value; }
  193. }
  194. /// <summary>
  195. /// 处置方式
  196. /// </summary>
  197. [Description("处置方式")]
  198. [Nullable(true)]
  199. [DataLength(20)]
  200. public string TreatmentName
  201. {
  202. get { return treatmentName; }
  203. set { treatmentName = value; }
  204. }
  205. /// <summary>
  206. /// 位置
  207. /// </summary>
  208. [Description("位置")]
  209. [Nullable(false)]
  210. [DataLength(20)]
  211. public string PositionName
  212. {
  213. get { return positionName; }
  214. set { positionName = value; }
  215. }
  216. /// <summary>
  217. /// 责任单位代码
  218. /// </summary>
  219. private string responsibleCode = "";
  220. /// <summary>
  221. /// 责任单位
  222. /// </summary>
  223. private string responsibleName = "";
  224. /// <summary>
  225. /// 责任单位代码
  226. /// </summary>
  227. [Description("责任单位")]
  228. [Nullable(true)]
  229. [DataLength(40)]
  230. public string ResponsibleCode
  231. {
  232. get { return responsibleCode; }
  233. set { responsibleCode = value; }
  234. }
  235. /// <summary>
  236. /// 责任单位
  237. /// </summary>
  238. [Description("责任单位")]
  239. [Nullable(true)]
  240. [DataLength(40)]
  241. public string ResponsibleName
  242. {
  243. get { return responsibleName; }
  244. set { responsibleName = value; }
  245. }
  246. /// <summary>
  247. /// 处置代码(支)
  248. /// </summary>
  249. private string treatmentCode1 = "";
  250. /// <summary>
  251. /// 处置方式(支)
  252. /// </summary>
  253. private string treatmentName1 = "";
  254. /// <summary>
  255. /// 处置代码(支)
  256. /// </summary>
  257. [Description("处置方式(支)")]
  258. [Nullable(true)]
  259. [DataLength(40)]
  260. public string TreatmentCode1
  261. {
  262. get { return treatmentCode1; }
  263. set { treatmentCode1 = value; }
  264. }
  265. /// <summary>
  266. /// 处置方式(支)
  267. /// </summary>
  268. [Description("处置方式(支)")]
  269. [Nullable(true)]
  270. [DataLength(40)]
  271. public string TreatmentName1
  272. {
  273. get { return treatmentName1; }
  274. set { treatmentName1 = value; }
  275. }
  276. /// <summary>
  277. /// 是否尺寸检验(光管)
  278. /// </summary>
  279. [Description("是否尺寸检验")]
  280. [Nullable(true)]
  281. [DataLength(1)]
  282. public string IsSizeCheck
  283. {
  284. get { return isSizeCheck; }
  285. set { isSizeCheck = value; }
  286. }
  287. /// <summary>
  288. /// 是否外观检验(光管)
  289. /// </summary>
  290. [Description("是否外观检验")]
  291. [Nullable(true)]
  292. [DataLength(1)]
  293. public string IsAppCheck
  294. {
  295. get { return isAppCheck; }
  296. set { isAppCheck = value; }
  297. }
  298. /// <summary>
  299. /// 0-合格 1-废品 (光管)
  300. /// </summary>
  301. [Description("最终状态")]
  302. [Nullable(true)]
  303. [DataLength(1)]
  304. public string ReplayStation
  305. {
  306. get { return replayStation; }
  307. set { replayStation = value; }
  308. }
  309. private string scrapCode = "";
  310. /// <summary>
  311. /// 废品代码
  312. /// </summary>
  313. [Description("废品代码")]
  314. [Nullable(true)]
  315. [DataLength(1)]
  316. public string ScrapCode
  317. {
  318. get { return scrapCode; }
  319. set { scrapCode = value; }
  320. }
  321. private string scrapName = "";
  322. /// <summary>
  323. /// 废品代码
  324. /// </summary>
  325. [Description("废品原因")]
  326. [Nullable(true)]
  327. [DataLength(1)]
  328. public string ScrapName
  329. {
  330. get { return scrapName; }
  331. set { scrapName = value; }
  332. }
  333. /// <summary>
  334. /// 处置代码
  335. /// </summary>
  336. private string treatmentNo = "";
  337. /// <summary>
  338. /// 处置代码
  339. /// </summary>
  340. [Description("处置单号")]
  341. [Nullable(false)]
  342. [DataLength(40)]
  343. public string TreatmentNo
  344. {
  345. get { return treatmentNo; }
  346. set { treatmentNo = value; }
  347. }
  348. /// <summary>
  349. /// 最终管号
  350. /// </summary>
  351. [Description("最终管号")]
  352. [Nullable(false)]
  353. [DataLength(40)]
  354. public decimal? ReplayMeasuringSeq
  355. {
  356. get { return replayMeasuringSeq; }
  357. set { replayMeasuringSeq = value; }
  358. }
  359. public MchFinalCheckResultDEntity Clone()
  360. {
  361. using (var memStream = new MemoryStream())
  362. {
  363. var binaryFormatter = new BinaryFormatter(null,
  364. new StreamingContext(StreamingContextStates.Clone));
  365. binaryFormatter.Serialize(memStream, this);
  366. memStream.Seek(0, SeekOrigin.Begin);
  367. return binaryFormatter.Deserialize(memStream) as MchFinalCheckResultDEntity;
  368. }
  369. }
  370. }
  371. }