| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- using System;
- using System.Data;
- using System.Diagnostics;
- using System.Reflection;
- using Infragistics.Win.UltraWinGrid;
- namespace Core.StlMes.Client.LgClassModel
- {
- [Serializable]
- public class STL_IRON_ARRIVE
- {
- private string _misid = ""; //铁运进铁行号
- private string _irnpot_no = ""; //铁罐罐号
- private decimal _irnpot_gross_wgt = 0; //铁罐毛重
- private decimal _irnpot_tare_wgt = 0; //铁罐皮重
- private decimal _irn_net_wgt = 0; //铁水净重
- private decimal _irn_rest_wgt = 0; //铁水剩余重量(铁水净重+折入量+回炉钢水量-折出量)
- private decimal _irn_temp = 0; //铁水温度
- private string _molirnleave = ""; //铁水去向
- private string _stoveno = ""; //高炉炉号
- private string _tapholeno = ""; //出铁口
- private string _tapping_time = ""; //高炉出铁时间
- private string _arrive_time = ""; //入厂时刻
- private string _shiftcode = ""; //班次班别
- private string _checkno = ""; //铁水成分检验号(进铁时高炉铁水成分)
- private decimal _c = 0; //C(进铁时高炉铁水成分)
- private decimal _si = 0; //SI(进铁时高炉铁水成分)
- private decimal _mn = 0; //MN(进铁时高炉铁水成分)
- private decimal _s = 0; //S(进铁时高炉铁水成分)
- private decimal _p = 0; //P(进铁时高炉铁水成分)
- private string _memo = ""; //备注
- private string _optpersonnel = ""; //操作人
- private string _operationdate = ""; //操作时间
- private decimal _stl_reheat_in = 0; //折入回炉钢水量
- private decimal _irn_folder_in = 0; //折罐折入量
- private decimal _irn_folder_out = 0; //折罐折出量
- private decimal _f_c = 0; //C(折罐后成分、未折罐与高炉铁水成分一致)
- private decimal _f_si = 0; //SI(折罐后成分、未折罐与高炉铁水成分一致)
- private decimal _f_mn = 0; //MN(折罐后成分、未折罐与高炉铁水成分一致)
- private decimal _f_s = 0; //S(折罐后成分、未折罐与高炉铁水成分一致)
- private decimal _f_p = 0; //P(折罐后成分、未折罐与高炉铁水成分一致)
- //铁运进铁行号
- public string MISID
- {
- get { return this._misid; }
- set { if (value != this._misid) this._misid = value; }
- }
- //铁罐罐号
- public string IRNPOT_NO
- {
- get { return this._irnpot_no; }
- set { if (value != this._irnpot_no) this._irnpot_no = value; }
- }
- //铁罐毛重
- public decimal IRNPOT_GROSS_WGT
- {
- get { return this._irnpot_gross_wgt; }
- set { if (value != this._irnpot_gross_wgt) this._irnpot_gross_wgt = value; }
- }
- //铁罐皮重
- public decimal IRNPOT_TARE_WGT
- {
- get { return this._irnpot_tare_wgt; }
- set { if (value != this._irnpot_tare_wgt) this._irnpot_tare_wgt = value; }
- }
- //铁水净重
- public decimal IRN_NET_WGT
- {
- get { return this._irn_net_wgt; }
- set { if (value != this._irn_net_wgt) this._irn_net_wgt = value; }
- }
- //铁水剩余重量(铁水净重+折入量+回炉钢水量-折出量)
- public decimal IRN_REST_WGT
- {
- get { return this._irn_rest_wgt; }
- set { if (value != this._irn_rest_wgt) this._irn_rest_wgt = value; }
- }
- //铁水温度
- public decimal IRN_TEMP
- {
- get { return this._irn_temp; }
- set { if (value != this._irn_temp) this._irn_temp = value; }
- }
- //铁水去向
- public string MOLIRNLEAVE
- {
- get { return this._molirnleave; }
- set { if (value != this._molirnleave) this._molirnleave = value; }
- }
- //高炉炉号
- public string STOVENO
- {
- get { return this._stoveno; }
- set { if (value != this._stoveno) this._stoveno = value; }
- }
- //出铁口
- public string TAPHOLENO
- {
- get { return this._tapholeno; }
- set { if (value != this._tapholeno) this._tapholeno = value; }
- }
- //高炉出铁时间
- public string TAPPING_TIME
- {
- get { return this._tapping_time; }
- set { if (value != this._tapping_time) this._tapping_time = value; }
- }
- //入厂时刻
- public string ARRIVE_TIME
- {
- get { return this._arrive_time; }
- set { if (value != this._arrive_time) this._arrive_time = value; }
- }
- //班次班别
- public string SHIFTCODE
- {
- get { return this._shiftcode; }
- set { if (value != this._shiftcode) this._shiftcode = value; }
- }
- //铁水成分检验号(进铁时高炉铁水成分)
- public string CHECKNO
- {
- get { return this._checkno; }
- set { if (value != this._checkno) this._checkno = value; }
- }
- //C(进铁时高炉铁水成分)
- public decimal C
- {
- get { return this._c; }
- set { if (value != this._c) this._c = value; }
- }
- //SI(进铁时高炉铁水成分)
- public decimal SI
- {
- get { return this._si; }
- set { if (value != this._si) this._si = value; }
- }
- //MN(进铁时高炉铁水成分)
- public decimal MN
- {
- get { return this._mn; }
- set { if (value != this._mn) this._mn = value; }
- }
- //S(进铁时高炉铁水成分)
- public decimal S
- {
- get { return this._s; }
- set { if (value != this._s) this._s = value; }
- }
- //P(进铁时高炉铁水成分)
- public decimal P
- {
- get { return this._p; }
- set { if (value != this._p) this._p = value; }
- }
- //备注
- public string MEMO
- {
- get { return this._memo; }
- set { if (value != this._memo) this._memo = value; }
- }
- //操作人
- public string OPTPERSONNEL
- {
- get { return this._optpersonnel; }
- set { if (value != this._optpersonnel) this._optpersonnel = value; }
- }
- //操作时间
- public string OPERATIONDATE
- {
- get { return this._operationdate; }
- set { if (value != this._operationdate) this._operationdate = value; }
- }
- //折入回炉钢水量
- public decimal STL_REHEAT_IN
- {
- get { return this._stl_reheat_in; }
- set { if (value != this._stl_reheat_in) this._stl_reheat_in = value; }
- }
- //折罐折入量
- public decimal IRN_FOLDER_IN
- {
- get { return this._irn_folder_in; }
- set { if (value != this._irn_folder_in) this._irn_folder_in = value; }
- }
- //折罐折出量
- public decimal IRN_FOLDER_OUT
- {
- get { return this._irn_folder_out; }
- set { if (value != this._irn_folder_out) this._irn_folder_out = value; }
- }
- //C(折罐后成分、未折罐与高炉铁水成分一致)
- public decimal F_C
- {
- get { return this._f_c; }
- set { if (value != this._f_c) this._f_c = value; }
- }
- //SI(折罐后成分、未折罐与高炉铁水成分一致)
- public decimal F_SI
- {
- get { return this._f_si; }
- set { if (value != this._f_si) this._f_si = value; }
- }
- //MN(折罐后成分、未折罐与高炉铁水成分一致)
- public decimal F_MN
- {
- get { return this._f_mn; }
- set { if (value != this._f_mn) this._f_mn = value; }
- }
- //S(折罐后成分、未折罐与高炉铁水成分一致)
- public decimal F_S
- {
- get { return this._f_s; }
- set { if (value != this._f_s) this._f_s = value; }
- }
- //P(折罐后成分、未折罐与高炉铁水成分一致)
- public decimal F_P
- {
- get { return this._f_p; }
- set { if (value != this._f_p) this._f_p = value; }
- }
- public void Reset()
- {
- PropertyInfo[] PropertyInfos = this.GetType().GetProperties();
- if (PropertyInfos == null || PropertyInfos.Length == 0) return;
- foreach (PropertyInfo oPropertyInfo in PropertyInfos)
- {
- try
- {
- object value = null;
- oPropertyInfo.SetValue(this, value, null);
- }
- catch (Exception ex)
- {
- Debug.Print(ex.Message);
- }
- }
- }
- public void Copy(ref STL_IRON_ARRIVE par)
- {
- if (par != null)
- {
- PropertyInfo[] PropertyInfos = this.GetType().GetProperties();
- if (PropertyInfos == null || PropertyInfos.Length == 0) return;
- object value;
- foreach (PropertyInfo oPropertyInfo in PropertyInfos)
- {
- try
- {
- value = oPropertyInfo.GetValue(par, null);
- oPropertyInfo.SetValue(this, value, null);
- }
- catch (Exception ex)
- {
- Debug.Print(ex.Message);
- }
- }
- }
- }
- public void SetData(UltraGridRow Row)
- {
- if (Row == null) return;
- PropertyInfo[] PropertyInfos = this.GetType().GetProperties();
- if (PropertyInfos == null || PropertyInfos.Length == 0) return;
- foreach (PropertyInfo oPropertyInfo in PropertyInfos)
- {
- try
- {
- oPropertyInfo.SetValue(this, Row.Cells[oPropertyInfo.Name.ToUpper()].Value, null);
- }
- catch (Exception ex)
- {
- Debug.Print(ex.Message);
- }
- }
- }
- public void SetData(DataRow Row)
- {
- if (Row == null) return;
- PropertyInfo[] PropertyInfos = this.GetType().GetProperties();
- if (PropertyInfos == null || PropertyInfos.Length == 0) return;
- foreach (PropertyInfo oPropertyInfo in PropertyInfos)
- {
- try
- {
- if (Row.Table.Columns.Contains(oPropertyInfo.Name.ToUpper()))
- {
- oPropertyInfo.SetValue(this, Row[oPropertyInfo.Name.ToUpper()], null);
- }
- }
- catch (Exception ex)
- {
- Debug.Print(ex.Message);
- }
- }
- }
- }
- }
|