Esempio n. 1
0
        private static void LoadLookupTable(String strTableName)
        {
            if (LookupTables.ContainsKey(strTableName) == false && LastUpdateTimes.ContainsKey(strTableName) == false)
            {
                BusinessObjectController Ctrl = BusinessControllerFactory.GetBusinessController(strTableName);
                if (Ctrl != null)
                {
                    DataSet ds = Ctrl.GetDataSetAllObjects();
                    if (ds != null && ds.Tables.Count > 0)
                    {
                        LookupTables.Add(strTableName, ds.Tables[0]);

                        if (DataStructureProvider.IsTableColumn(strTableName, ABCCommon.ABCConstString.colUpdateTime))
                        {
                            LastUpdateTimes.Add(strTableName, TimeProvider.GetTableLastUpdateTime(strTableName));
                        }
                    }
                }
            }
        }