예제 #1
0
        //----------------------------------------------------------

        public IList GetCheckBoxList(IRole role)
        {
            IList  actions   = GetActionAll();
            String inputName = objAction.GetType().Name;

            IList results = new ArrayList();

            foreach (ISecurityAction a in actions)
            {
                if (a == null)
                {
                    continue;
                }
                ActionVo av = new ActionVo();
                av.Name  = a.Name;
                av.Value = getInputValue(role, a);
                if (HasAction(role, a))
                {
                    av.Checked = "checked=\"checked\"";
                }
                results.Add(av);
            }
            return(results);
        }
예제 #2
0
        //----------------------------------------------------------
        public IList GetCheckBoxList( IRole role )
        {
            IList actions = GetActionAll();
            String inputName = objAction.GetType().Name;

            IList results = new ArrayList();
            foreach (ISecurityAction a in actions) {

                if (a == null) continue;
                ActionVo av = new ActionVo();
                av.Name = a.Name;
                av.Value = getInputValue( role, a );
                if (HasAction( role, a )){
                    av.Checked = "checked=\"checked\"";
                }
                results.Add( av );
            }
            return results;
        }