Beispiel #1
0
        public static Dictionary <LookupTypeEnum, SimpleLookup> GetData()
        {
            if (luLst != null && luLst.Count > 0)
            {
                return(luLst);
            }
            luLst = new Dictionary <LookupTypeEnum, SimpleLookup>();
            DataTable dt = new DataTable();

            ECX.DataAccess.SQLHelper.PopulateTable(SimpleLookup.ConnectionString, dt, "LookupGet");
            foreach (DataRow dr in dt.Rows)
            {
                SimpleLookup lv = new SimpleLookup();
                ECX.DataAccess.Common.DataRow2Object(dr, lv);
                luLst.Add(lv.LookupType, lv);
            }
            return(luLst);
        }
Beispiel #2
0
 public LookupValue(SimpleLookup parent)
 {
     theParent = parent;
 }