Пример #1
0
        public string GetCareName()
        {
            var buf  = new StringBuilder();
            var cBll = new UsersBll();
            var list = cBll.SearchListByValid(Utits.WelfareCentreID);

            buf.AppendFormat("<option value=\"{0}\">{1}</option>", "请选择", "==请选择==");
            if (list != null)
            {
                foreach (var item in list)
                {
                    buf.AppendFormat("<option value=\"{0}\">{1}</option>", item.UserID, item.RealName);
                }
            }
            return(buf.ToString());
        }