示例#1
0
        public static ListItem Convert(DataAccessGroupInfo info)
        {
            string displayContent = GetRenderedHtml(info);

            var item = new ListItem(displayContent, info.AuthorityGroupRef);

            item.Attributes["title"] = info.Description;

            item.Selected = info.HasAccessToCurrentPartition;
            item.Enabled  = !info.CanAccessAllPartitions;

            return(item);
        }
示例#2
0
        private static string GetRenderedHtml(DataAccessGroupInfo info)
        {
            StringBuilder html = new StringBuilder();

            html.Append(info.Name);

            if (info.CanAccessAllStudies)
            {
                html.AppendFormat("<span class='GlocalSeeNotesMarker'/> * </span>");
            }

            return(html.ToString());
        }