public void Parse(DataRow row) { PlineDTMDL mdl = PlineDTMDL.ParseDataRow(row); this.DTID = mdl.DTID; this.PLINEID = mdl.PLINEID; this.RANGEID = mdl.RANGEID; this.START_TIME = mdl.START_TIME; this.END_TIME = mdl.END_TIME; this.DOWNTIME = mdl.DOWNTIME; this.CLA_ORDER = mdl.CLA_ORDER; }
public static PlineDTMDL ParseDataRow(DataRow row) { PlineDTMDL mdl = new PlineDTMDL(); try { mdl.DTID = Convert.ToString(row["DTID"]); mdl.PLINEID = Convert.ToString(row["PLINEID"]); mdl.RANGEID = Convert.ToString(row["RANGEID"]); mdl.START_TIME = Convert.ToDateTime(row["START_TIME"]); mdl.END_TIME = Convert.ToDateTime(row["END_TIME"]); mdl.DOWNTIME = Convert.ToInt32(row["DOWNTIME"]); mdl.CLA_ORDER = Convert.ToInt32(row["CLA_ORDER"]); return(mdl); } catch { throw; } }