示例#1
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));
            }
        }
示例#2
0
 public static ArrayList GetComboBoxItems(string sql, SqlTextType type, string colname)
 {
     return(CtrlHelper.DataTableToItems(GetPublicDataTable(sql, type), colname));
 }