| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Data;
- using System.Text;
- namespace Core.LgMes.Client.lgClassModel.SqModel
- {
- public class TBB01_SEQ_INGR
- {
- private string _CHEM_CD;
- private double _DISPLAY_SEQ;
- private string _DISPLAY_LEN;
- private string _COMP_YN;
- private string _COMP_CAL;
- private string _COMP_DETAIL;
- private string _REG_PGM_ID;
- private string _REG_ID;
- private string _REG_DTIME;
- private string _MOD_PGM_ID;
- private string _MOD_ID;
- private string _MOD_DTIME;
- public string CHEM_CD { get { return this._CHEM_CD; } set { this._CHEM_CD = value; } }
- public double DISPLAY_SEQ { get { return this._DISPLAY_SEQ; } set { this._DISPLAY_SEQ = value; } }
- public string DISPLAY_LEN { get { return this._DISPLAY_LEN; } set { this._DISPLAY_LEN = value; } }
- public string COMP_YN { get { return this._COMP_YN; } set { this._COMP_YN = value; } }
- public string COMP_CAL { get { return this._COMP_CAL; } set { this._COMP_CAL = value; } }
- public string COMP_DETAIL { get { return this._COMP_DETAIL; } set { this._COMP_DETAIL = value; } }
- public string REG_PGM_ID { get { return this._REG_PGM_ID; } set { this._REG_PGM_ID = value; } }
- public string REG_ID { get { return this._REG_ID; } set { this._REG_ID = value; } }
- public string REG_DTIME { get { return this._REG_DTIME; } set { this._REG_DTIME = value; } }
- public string MOD_PGM_ID { get { return this._MOD_PGM_ID; } set { this._MOD_PGM_ID = value; } }
- public string MOD_ID { get { return this._MOD_ID; } set { this._MOD_ID = value; } }
- public string MOD_DTIME { get { return this._MOD_DTIME; } set { this._MOD_DTIME = value; } }
- public static TBB01_SEQ_INGR GetTbb01SeqIngrBySignalRow(DataRow dr)
- {
- if (dr == null)
- return null;
- TBB01_SEQ_INGR tbb = new TBB01_SEQ_INGR();
- try { tbb.CHEM_CD = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["CHEM_CD"]); }
- catch { }
- try { tbb.DISPLAY_SEQ = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToDouble(dr["DISPLAY_SEQ"]); }
- catch { }
- try { tbb.DISPLAY_LEN = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["DISPLAY_LEN"]); }
- catch { }
- try { tbb.COMP_YN = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["COMP_YN"]); }
- catch { }
- try { tbb.COMP_CAL = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["COMP_CAL"]); }
- catch { }
- try { tbb.COMP_DETAIL = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["COMP_DETAIL"]); }
- catch { }
- try { tbb.REG_PGM_ID = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["REG_PGM_ID"]); }
- catch { }
- try { tbb.REG_ID = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["REG_ID"]); }
- catch { }
- try { tbb.REG_DTIME = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["REG_DTIME"]); }
- catch { }
- try { tbb.MOD_PGM_ID = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["MOD_PGM_ID"]); }
- catch { }
- try { tbb.MOD_ID = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["MOD_ID"]); }
- catch { }
- try { tbb.MOD_DTIME = Core.Mes.Client.Common.Util.LgConvertUtil.ConvetToString(dr["MOD_DTIME"]); }
- catch { }
- return tbb;
- }
- /// <summary>
- /// 将同名数据集转为实体类返回
- /// </summary>
- /// <param name="ds"></param>
- /// <returns></returns>
- public static List<TBB01_SEQ_INGR> GetTbb01SeqIngrByDataSet(DataSet ds)
- {
- List<TBB01_SEQ_INGR> list = null;
- if (ds == null || ds.Tables.Count == 0|| ds.Tables[0].Rows.Count == 0)
- return list;
- list = new List<TBB01_SEQ_INGR>();
- foreach (DataRow dr in ds.Tables[0].Rows)
- {
- list.Add(GetTbb01SeqIngrBySignalRow(dr));
- }
- return list;
- }
- }
- }
|