using System; using System.Collections.Generic; using System.Linq; using System.Data; using System.Text; namespace Core.LgMes.Client.lgClassModel.LgChem { public class STL_CHEMELEMENT { private string _CHECKNO; private string _HEATNO; private string _STATIONCODE; private string _ASSAYTYPECODE; private string _FLAG; private string _C; private string _SI; private string _MN; private string _P; private string _S; private string _NI; private string _CR; private string _CU; private string _ASN; private string _TI; private string _V; private string _MO; private string _B; private string _W; private string _AL; private string _ZN; private string _PB; private string _SN; private string _CA; private string _LA; private string _SB; private string _CE; private string _SE; private string _MG; private string _NB; private string _CD; private string _BI; private string _N; private string _H; private string _O; private string _FE; private string _AT; private string _BA; private string _BE; private string _CS; private string _CL; private string _CO; private string _DY; private string _ER; private string _EU; private string _GD; private string _GA; private string _GE; private string _HF; private string _HO; private string _IND; private string _I; private string _IR; private string _KR; private string _LI; private string _LU; private string _ND; private string _NA; private string _OS; private string _PD; private string _PT; private string _K; private string _PR; private string _RE; private string _RH; private string _RB; private string _SM; private string _SC; private string _SR; private string _TA; private string _TE; private string _TB; private string _TM; private string _YB; private string _Y; private string _ZR; private string _ALT; private string _ALS; private string _ALINS; private string _CSC; private string _CEQ; private string _CAO; private string _MGO; private string _SIO2; private string _AL2O3; private string _TFEO; private string _FE2O3; private string _H2O; private string _CAF2; private string _P2O5; private string _TFE; private string _CR2O3; private string _TIO2; private string _MNO; private string _ALKALINITY; private string _V2O5; private string _FEO; private string _HIC; private string _STEELNAME; private string _SHIFTCODE; private DateTime _ASSAYDATE; private string _ISBUY; private string _PCM; private string _CEV; private string _BSOL; public string CHECKNO { get { return this._CHECKNO; } set { this._CHECKNO = value; } } public string HEATNO { get { return this._HEATNO; } set { this._HEATNO = value; } } public string STATIONCODE { get { return this._STATIONCODE; } set { this._STATIONCODE = value; } } public string ASSAYTYPECODE { get { return this._ASSAYTYPECODE; } set { this._ASSAYTYPECODE = value; } } public string FLAG { get { return this._FLAG; } set { this._FLAG = value; } } public string C { get { return this._C; } set { this._C = value; } } public string SI { get { return this._SI; } set { this._SI = value; } } public string MN { get { return this._MN; } set { this._MN = value; } } public string P { get { return this._P; } set { this._P = value; } } public string S { get { return this._S; } set { this._S = value; } } public string NI { get { return this._NI; } set { this._NI = value; } } public string CR { get { return this._CR; } set { this._CR = value; } } public string CU { get { return this._CU; } set { this._CU = value; } } public string ASN { get { return this._ASN; } set { this._ASN = value; } } public string TI { get { return this._TI; } set { this._TI = value; } } public string V { get { return this._V; } set { this._V = value; } } public string MO { get { return this._MO; } set { this._MO = value; } } public string B { get { return this._B; } set { this._B = value; } } public string W { get { return this._W; } set { this._W = value; } } public string AL { get { return this._AL; } set { this._AL = value; } } public string ZN { get { return this._ZN; } set { this._ZN = value; } } public string PB { get { return this._PB; } set { this._PB = value; } } public string SN { get { return this._SN; } set { this._SN = value; } } public string CA { get { return this._CA; } set { this._CA = value; } } public string LA { get { return this._LA; } set { this._LA = value; } } public string SB { get { return this._SB; } set { this._SB = value; } } public string CE { get { return this._CE; } set { this._CE = value; } } public string SE { get { return this._SE; } set { this._SE = value; } } public string MG { get { return this._MG; } set { this._MG = value; } } public string NB { get { return this._NB; } set { this._NB = value; } } public string CD { get { return this._CD; } set { this._CD = value; } } public string BI { get { return this._BI; } set { this._BI = value; } } public string N { get { return this._N; } set { this._N = value; } } public string H { get { return this._H; } set { this._H = value; } } public string O { get { return this._O; } set { this._O = value; } } public string FE { get { return this._FE; } set { this._FE = value; } } public string AT { get { return this._AT; } set { this._AT = value; } } public string BA { get { return this._BA; } set { this._BA = value; } } public string BE { get { return this._BE; } set { this._BE = value; } } public string CS { get { return this._CS; } set { this._CS = value; } } public string CL { get { return this._CL; } set { this._CL = value; } } public string CO { get { return this._CO; } set { this._CO = value; } } public string DY { get { return this._DY; } set { this._DY = value; } } public string ER { get { return this._ER; } set { this._ER = value; } } public string EU { get { return this._EU; } set { this._EU = value; } } public string GD { get { return this._GD; } set { this._GD = value; } } public string GA { get { return this._GA; } set { this._GA = value; } } public string GE { get { return this._GE; } set { this._GE = value; } } public string HF { get { return this._HF; } set { this._HF = value; } } public string HO { get { return this._HO; } set { this._HO = value; } } public string IND { get { return this._IND; } set { this._IND = value; } } public string I { get { return this._I; } set { this._I = value; } } public string IR { get { return this._IR; } set { this._IR = value; } } public string KR { get { return this._KR; } set { this._KR = value; } } public string LI { get { return this._LI; } set { this._LI = value; } } public string LU { get { return this._LU; } set { this._LU = value; } } public string ND { get { return this._ND; } set { this._ND = value; } } public string NA { get { return this._NA; } set { this._NA = value; } } public string OS { get { return this._OS; } set { this._OS = value; } } public string PD { get { return this._PD; } set { this._PD = value; } } public string PT { get { return this._PT; } set { this._PT = value; } } public string K { get { return this._K; } set { this._K = value; } } public string PR { get { return this._PR; } set { this._PR = value; } } public string RE { get { return this._RE; } set { this._RE = value; } } public string RH { get { return this._RH; } set { this._RH = value; } } public string RB { get { return this._RB; } set { this._RB = value; } } public string SM { get { return this._SM; } set { this._SM = value; } } public string SC { get { return this._SC; } set { this._SC = value; } } public string SR { get { return this._SR; } set { this._SR = value; } } public string TA { get { return this._TA; } set { this._TA = value; } } public string TE { get { return this._TE; } set { this._TE = value; } } public string TB { get { return this._TB; } set { this._TB = value; } } public string TM { get { return this._TM; } set { this._TM = value; } } public string YB { get { return this._YB; } set { this._YB = value; } } public string Y { get { return this._Y; } set { this._Y = value; } } public string ZR { get { return this._ZR; } set { this._ZR = value; } } public string ALT { get { return this._ALT; } set { this._ALT = value; } } public string ALS { get { return this._ALS; } set { this._ALS = value; } } public string ALINS { get { return this._ALINS; } set { this._ALINS = value; } } public string CSC { get { return this._CSC; } set { this._CSC = value; } } public string CEQ { get { return this._CEQ; } set { this._CEQ = value; } } public string CAO { get { return this._CAO; } set { this._CAO = value; } } public string MGO { get { return this._MGO; } set { this._MGO = value; } } public string SIO2 { get { return this._SIO2; } set { this._SIO2 = value; } } public string AL2O3 { get { return this._AL2O3; } set { this._AL2O3 = value; } } public string TFEO { get { return this._TFEO; } set { this._TFEO = value; } } public string FE2O3 { get { return this._FE2O3; } set { this._FE2O3 = value; } } public string H2O { get { return this._H2O; } set { this._H2O = value; } } public string CAF2 { get { return this._CAF2; } set { this._CAF2 = value; } } public string P2O5 { get { return this._P2O5; } set { this._P2O5 = value; } } public string TFE { get { return this._TFE; } set { this._TFE = value; } } public string CR2O3 { get { return this._CR2O3; } set { this._CR2O3 = value; } } public string TIO2 { get { return this._TIO2; } set { this._TIO2 = value; } } public string MNO { get { return this._MNO; } set { this._MNO = value; } } public string ALKALINITY { get { return this._ALKALINITY; } set { this._ALKALINITY = value; } } public string V2O5 { get { return this._V2O5; } set { this._V2O5 = value; } } public string FEO { get { return this._FEO; } set { this._FEO = value; } } public string HIC { get { return this._HIC; } set { this._HIC = value; } } public string STEELNAME { get { return this._STEELNAME; } set { this._STEELNAME = value; } } public string SHIFTCODE { get { return this._SHIFTCODE; } set { this._SHIFTCODE = value; } } public DateTime ASSAYDATE { get { return this._ASSAYDATE; } set { this._ASSAYDATE = value; } } public string ISBUY { get { return this._ISBUY; } set { this._ISBUY = value; } } public string PCM { get { return this._PCM; } set { this._PCM = value; } } public string CEV { get { return this._CEV; } set { this._CEV = value; } } public string BSOL { get { return this._BSOL; } set { this._BSOL = value; } } public static STL_CHEMELEMENT GetStlChemeLementBySignalRow(DataRow dr) { STL_CHEMELEMENT chem = null; if (dr == null) return chem; chem = new STL_CHEMELEMENT(); try { chem.CHECKNO = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CHECKNO"]); } catch { } try { chem.HEATNO = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["HEATNO"]); } catch { } try { chem.STATIONCODE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["STATIONCODE"]); } catch { } try { chem.ASSAYTYPECODE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["ASSAYTYPECODE"]); } catch { } try { chem.FLAG = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["FLAG"]); } catch { } try { chem.C = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["C"]); } catch { } try { chem.SI = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["SI"]); } catch { } try { chem.MN = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["MN"]); } catch { } try { chem.P = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["P"]); } catch { } try { chem.S = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["S"]); } catch { } try { chem.NI = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["NI"]); } catch { } try { chem.CR = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CR"]); } catch { } try { chem.CU = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CU"]); } catch { } try { chem.ASN = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["ASN"]); } catch { } try { chem.TI = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["TI"]); } catch { } try { chem.V = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["V"]); } catch { } try { chem.MO = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["MO"]); } catch { } try { chem.B = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["B"]); } catch { } try { chem.W = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["W"]); } catch { } try { chem.AL = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["AL"]); } catch { } try { chem.ZN = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["ZN"]); } catch { } try { chem.PB = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["PB"]); } catch { } try { chem.SN = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["SN"]); } catch { } try { chem.CA = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CA"]); } catch { } try { chem.LA = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["LA"]); } catch { } try { chem.SB = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["SB"]); } catch { } try { chem.CE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CE"]); } catch { } try { chem.SE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["SE"]); } catch { } try { chem.MG = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["MG"]); } catch { } try { chem.NB = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["NB"]); } catch { } try { chem.CD = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CD"]); } catch { } try { chem.BI = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["BI"]); } catch { } try { chem.N = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["N"]); } catch { } try { chem.H = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["H"]); } catch { } try { chem.O = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["O"]); } catch { } try { chem.FE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["FE"]); } catch { } try { chem.AT = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["AT"]); } catch { } try { chem.BA = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["BA"]); } catch { } try { chem.BE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["BE"]); } catch { } try { chem.CS = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CS"]); } catch { } try { chem.CL = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CL"]); } catch { } try { chem.CO = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CO"]); } catch { } try { chem.DY = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["DY"]); } catch { } try { chem.ER = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["ER"]); } catch { } try { chem.EU = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["EU"]); } catch { } try { chem.GD = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["GD"]); } catch { } try { chem.GA = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["GA"]); } catch { } try { chem.GE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["GE"]); } catch { } try { chem.HF = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["HF"]); } catch { } try { chem.HO = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["HO"]); } catch { } try { chem.IND = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["IND"]); } catch { } try { chem.I = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["I"]); } catch { } try { chem.IR = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["IR"]); } catch { } try { chem.KR = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["KR"]); } catch { } try { chem.LI = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["LI"]); } catch { } try { chem.LU = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["LU"]); } catch { } try { chem.ND = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["ND"]); } catch { } try { chem.NA = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["NA"]); } catch { } try { chem.OS = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["OS"]); } catch { } try { chem.PD = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["PD"]); } catch { } try { chem.PT = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["PT"]); } catch { } try { chem.K = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["K"]); } catch { } try { chem.PR = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["PR"]); } catch { } try { chem.RE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["RE"]); } catch { } try { chem.RH = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["RH"]); } catch { } try { chem.RB = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["RB"]); } catch { } try { chem.SM = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["SM"]); } catch { } try { chem.SC = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["SC"]); } catch { } try { chem.SR = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["SR"]); } catch { } try { chem.TA = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["TA"]); } catch { } try { chem.TE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["TE"]); } catch { } try { chem.TB = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["TB"]); } catch { } try { chem.TM = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["TM"]); } catch { } try { chem.YB = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["YB"]); } catch { } try { chem.Y = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["Y"]); } catch { } try { chem.ZR = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["ZR"]); } catch { } try { chem.ALT = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["ALT"]); } catch { } try { chem.ALS = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["ALS"]); } catch { } try { chem.ALINS = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["ALINS"]); } catch { } try { chem.CSC = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CSC"]); } catch { } try { chem.CEQ = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CEQ"]); } catch { } try { chem.CAO = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CAO"]); } catch { } try { chem.MGO = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["MGO"]); } catch { } try { chem.SIO2 = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["SIO2"]); } catch { } try { chem.AL2O3 = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["AL2O3"]); } catch { } try { chem.TFEO = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["TFEO"]); } catch { } try { chem.FE2O3 = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["FE2O3"]); } catch { } try { chem.H2O = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["H2O"]); } catch { } try { chem.CAF2 = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CAF2"]); } catch { } try { chem.P2O5 = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["P2O5"]); } catch { } try { chem.TFE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["TFE"]); } catch { } try { chem.CR2O3 = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CR2O3"]); } catch { } try { chem.TIO2 = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["TIO2"]); } catch { } try { chem.MNO = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["MNO"]); } catch { } try { chem.ALKALINITY = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["ALKALINITY"]); } catch { } try { chem.V2O5 = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["V2O5"]); } catch { } try { chem.FEO = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["FEO"]); } catch { } try { chem.HIC = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["HIC"]); } catch { } try { chem.STEELNAME = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["STEELNAME"]); } catch { } try { chem.SHIFTCODE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["SHIFTCODE"]); } catch { } try { chem.ASSAYDATE = Core.Mes.Client.Common.Util.LgConvertUtil.ConvertToDateTime(dr["ASSAYDATE"]); } catch { } try { chem.ISBUY = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["ISBUY"]); } catch { } try { chem.PCM = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["PCM"]); } catch { } try { chem.CEV = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CEV"]); } catch { } try { chem.BSOL = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["BSOL"]); } catch { } return chem; } public static List GetStlChemeLementByDataSet(DataSet ds) { List list = null; if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) return list; list = new List(); foreach (DataRow dr in ds.Tables[0].Rows) { list.Add(GetStlChemeLementBySignalRow(dr)); } return list; } } }