STL_IRON_ARRIVE.cs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. using System;
  2. using System.Data;
  3. using System.Diagnostics;
  4. using System.Reflection;
  5. using Infragistics.Win.UltraWinGrid;
  6. namespace Core.StlMes.Client.LgClassModel
  7. {
  8. [Serializable]
  9. public class STL_IRON_ARRIVE
  10. {
  11. private string _misid = ""; //铁运进铁行号
  12. private string _irnpot_no = ""; //铁罐罐号
  13. private decimal _irnpot_gross_wgt = 0; //铁罐毛重
  14. private decimal _irnpot_tare_wgt = 0; //铁罐皮重
  15. private decimal _irn_net_wgt = 0; //铁水净重
  16. private decimal _irn_rest_wgt = 0; //铁水剩余重量(铁水净重+折入量+回炉钢水量-折出量)
  17. private decimal _irn_temp = 0; //铁水温度
  18. private string _molirnleave = ""; //铁水去向
  19. private string _stoveno = ""; //高炉炉号
  20. private string _tapholeno = ""; //出铁口
  21. private string _tapping_time = ""; //高炉出铁时间
  22. private string _arrive_time = ""; //入厂时刻
  23. private string _shiftcode = ""; //班次班别
  24. private string _checkno = ""; //铁水成分检验号(进铁时高炉铁水成分)
  25. private decimal _c = 0; //C(进铁时高炉铁水成分)
  26. private decimal _si = 0; //SI(进铁时高炉铁水成分)
  27. private decimal _mn = 0; //MN(进铁时高炉铁水成分)
  28. private decimal _s = 0; //S(进铁时高炉铁水成分)
  29. private decimal _p = 0; //P(进铁时高炉铁水成分)
  30. private string _memo = ""; //备注
  31. private string _optpersonnel = ""; //操作人
  32. private string _operationdate = ""; //操作时间
  33. private decimal _stl_reheat_in = 0; //折入回炉钢水量
  34. private decimal _irn_folder_in = 0; //折罐折入量
  35. private decimal _irn_folder_out = 0; //折罐折出量
  36. private decimal _f_c = 0; //C(折罐后成分、未折罐与高炉铁水成分一致)
  37. private decimal _f_si = 0; //SI(折罐后成分、未折罐与高炉铁水成分一致)
  38. private decimal _f_mn = 0; //MN(折罐后成分、未折罐与高炉铁水成分一致)
  39. private decimal _f_s = 0; //S(折罐后成分、未折罐与高炉铁水成分一致)
  40. private decimal _f_p = 0; //P(折罐后成分、未折罐与高炉铁水成分一致)
  41. //铁运进铁行号
  42. public string MISID
  43. {
  44. get { return this._misid; }
  45. set { if (value != this._misid) this._misid = value; }
  46. }
  47. //铁罐罐号
  48. public string IRNPOT_NO
  49. {
  50. get { return this._irnpot_no; }
  51. set { if (value != this._irnpot_no) this._irnpot_no = value; }
  52. }
  53. //铁罐毛重
  54. public decimal IRNPOT_GROSS_WGT
  55. {
  56. get { return this._irnpot_gross_wgt; }
  57. set { if (value != this._irnpot_gross_wgt) this._irnpot_gross_wgt = value; }
  58. }
  59. //铁罐皮重
  60. public decimal IRNPOT_TARE_WGT
  61. {
  62. get { return this._irnpot_tare_wgt; }
  63. set { if (value != this._irnpot_tare_wgt) this._irnpot_tare_wgt = value; }
  64. }
  65. //铁水净重
  66. public decimal IRN_NET_WGT
  67. {
  68. get { return this._irn_net_wgt; }
  69. set { if (value != this._irn_net_wgt) this._irn_net_wgt = value; }
  70. }
  71. //铁水剩余重量(铁水净重+折入量+回炉钢水量-折出量)
  72. public decimal IRN_REST_WGT
  73. {
  74. get { return this._irn_rest_wgt; }
  75. set { if (value != this._irn_rest_wgt) this._irn_rest_wgt = value; }
  76. }
  77. //铁水温度
  78. public decimal IRN_TEMP
  79. {
  80. get { return this._irn_temp; }
  81. set { if (value != this._irn_temp) this._irn_temp = value; }
  82. }
  83. //铁水去向
  84. public string MOLIRNLEAVE
  85. {
  86. get { return this._molirnleave; }
  87. set { if (value != this._molirnleave) this._molirnleave = value; }
  88. }
  89. //高炉炉号
  90. public string STOVENO
  91. {
  92. get { return this._stoveno; }
  93. set { if (value != this._stoveno) this._stoveno = value; }
  94. }
  95. //出铁口
  96. public string TAPHOLENO
  97. {
  98. get { return this._tapholeno; }
  99. set { if (value != this._tapholeno) this._tapholeno = value; }
  100. }
  101. //高炉出铁时间
  102. public string TAPPING_TIME
  103. {
  104. get { return this._tapping_time; }
  105. set { if (value != this._tapping_time) this._tapping_time = value; }
  106. }
  107. //入厂时刻
  108. public string ARRIVE_TIME
  109. {
  110. get { return this._arrive_time; }
  111. set { if (value != this._arrive_time) this._arrive_time = value; }
  112. }
  113. //班次班别
  114. public string SHIFTCODE
  115. {
  116. get { return this._shiftcode; }
  117. set { if (value != this._shiftcode) this._shiftcode = value; }
  118. }
  119. //铁水成分检验号(进铁时高炉铁水成分)
  120. public string CHECKNO
  121. {
  122. get { return this._checkno; }
  123. set { if (value != this._checkno) this._checkno = value; }
  124. }
  125. //C(进铁时高炉铁水成分)
  126. public decimal C
  127. {
  128. get { return this._c; }
  129. set { if (value != this._c) this._c = value; }
  130. }
  131. //SI(进铁时高炉铁水成分)
  132. public decimal SI
  133. {
  134. get { return this._si; }
  135. set { if (value != this._si) this._si = value; }
  136. }
  137. //MN(进铁时高炉铁水成分)
  138. public decimal MN
  139. {
  140. get { return this._mn; }
  141. set { if (value != this._mn) this._mn = value; }
  142. }
  143. //S(进铁时高炉铁水成分)
  144. public decimal S
  145. {
  146. get { return this._s; }
  147. set { if (value != this._s) this._s = value; }
  148. }
  149. //P(进铁时高炉铁水成分)
  150. public decimal P
  151. {
  152. get { return this._p; }
  153. set { if (value != this._p) this._p = value; }
  154. }
  155. //备注
  156. public string MEMO
  157. {
  158. get { return this._memo; }
  159. set { if (value != this._memo) this._memo = value; }
  160. }
  161. //操作人
  162. public string OPTPERSONNEL
  163. {
  164. get { return this._optpersonnel; }
  165. set { if (value != this._optpersonnel) this._optpersonnel = value; }
  166. }
  167. //操作时间
  168. public string OPERATIONDATE
  169. {
  170. get { return this._operationdate; }
  171. set { if (value != this._operationdate) this._operationdate = value; }
  172. }
  173. //折入回炉钢水量
  174. public decimal STL_REHEAT_IN
  175. {
  176. get { return this._stl_reheat_in; }
  177. set { if (value != this._stl_reheat_in) this._stl_reheat_in = value; }
  178. }
  179. //折罐折入量
  180. public decimal IRN_FOLDER_IN
  181. {
  182. get { return this._irn_folder_in; }
  183. set { if (value != this._irn_folder_in) this._irn_folder_in = value; }
  184. }
  185. //折罐折出量
  186. public decimal IRN_FOLDER_OUT
  187. {
  188. get { return this._irn_folder_out; }
  189. set { if (value != this._irn_folder_out) this._irn_folder_out = value; }
  190. }
  191. //C(折罐后成分、未折罐与高炉铁水成分一致)
  192. public decimal F_C
  193. {
  194. get { return this._f_c; }
  195. set { if (value != this._f_c) this._f_c = value; }
  196. }
  197. //SI(折罐后成分、未折罐与高炉铁水成分一致)
  198. public decimal F_SI
  199. {
  200. get { return this._f_si; }
  201. set { if (value != this._f_si) this._f_si = value; }
  202. }
  203. //MN(折罐后成分、未折罐与高炉铁水成分一致)
  204. public decimal F_MN
  205. {
  206. get { return this._f_mn; }
  207. set { if (value != this._f_mn) this._f_mn = value; }
  208. }
  209. //S(折罐后成分、未折罐与高炉铁水成分一致)
  210. public decimal F_S
  211. {
  212. get { return this._f_s; }
  213. set { if (value != this._f_s) this._f_s = value; }
  214. }
  215. //P(折罐后成分、未折罐与高炉铁水成分一致)
  216. public decimal F_P
  217. {
  218. get { return this._f_p; }
  219. set { if (value != this._f_p) this._f_p = value; }
  220. }
  221. public void Reset()
  222. {
  223. PropertyInfo[] PropertyInfos = this.GetType().GetProperties();
  224. if (PropertyInfos == null || PropertyInfos.Length == 0) return;
  225. foreach (PropertyInfo oPropertyInfo in PropertyInfos)
  226. {
  227. try
  228. {
  229. object value = null;
  230. oPropertyInfo.SetValue(this, value, null);
  231. }
  232. catch (Exception ex)
  233. {
  234. Debug.Print(ex.Message);
  235. }
  236. }
  237. }
  238. public void Copy(ref STL_IRON_ARRIVE par)
  239. {
  240. if (par != null)
  241. {
  242. PropertyInfo[] PropertyInfos = this.GetType().GetProperties();
  243. if (PropertyInfos == null || PropertyInfos.Length == 0) return;
  244. object value;
  245. foreach (PropertyInfo oPropertyInfo in PropertyInfos)
  246. {
  247. try
  248. {
  249. value = oPropertyInfo.GetValue(par, null);
  250. oPropertyInfo.SetValue(this, value, null);
  251. }
  252. catch (Exception ex)
  253. {
  254. Debug.Print(ex.Message);
  255. }
  256. }
  257. }
  258. }
  259. public void SetData(UltraGridRow Row)
  260. {
  261. if (Row == null) return;
  262. PropertyInfo[] PropertyInfos = this.GetType().GetProperties();
  263. if (PropertyInfos == null || PropertyInfos.Length == 0) return;
  264. foreach (PropertyInfo oPropertyInfo in PropertyInfos)
  265. {
  266. try
  267. {
  268. oPropertyInfo.SetValue(this, Row.Cells[oPropertyInfo.Name.ToUpper()].Value, null);
  269. }
  270. catch (Exception ex)
  271. {
  272. Debug.Print(ex.Message);
  273. }
  274. }
  275. }
  276. public void SetData(DataRow Row)
  277. {
  278. if (Row == null) return;
  279. PropertyInfo[] PropertyInfos = this.GetType().GetProperties();
  280. if (PropertyInfos == null || PropertyInfos.Length == 0) return;
  281. foreach (PropertyInfo oPropertyInfo in PropertyInfos)
  282. {
  283. try
  284. {
  285. if (Row.Table.Columns.Contains(oPropertyInfo.Name.ToUpper()))
  286. {
  287. oPropertyInfo.SetValue(this, Row[oPropertyInfo.Name.ToUpper()], null);
  288. }
  289. }
  290. catch (Exception ex)
  291. {
  292. Debug.Print(ex.Message);
  293. }
  294. }
  295. }
  296. }
  297. }