예제 #1
0
        public static ArrayList GetComboBoxItems(ParamCaches pcs, string name)
        {
            if (pcs == null)
            {
                return(new ArrayList());
            }

            return(pcs[name].Items);
        }
예제 #2
0
        public static ArrayList GetComboBoxItems(ParamCaches pcs, string sql, SqlTextType type, string colname)
        {
            string pt = ConfigurationManager.AppSettings[PublicConsts.PC_ParamType];

            if (!String.IsNullOrEmpty(pt) && (pt.ToLower() == "mem"))
            {
                if (pcs == null)
                {
                    return(new ArrayList());
                }

                return(pcs[sql].Items);
            }
            else
            {
                return(CtrlHelper.DataTableToItems(GetPublicDataTable(sql, type), colname));
            }
        }