code/Athena0.0.1/common/Util/WebControl/Tree/RescTree.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Athena.model;
using Athena.basedal;
using Athena.Idal;
namespace Athena.common.Util.WebControl
{

    public class RescTree
    {
        private resource resource { get; set; }

        public int id { get { return resource.id; } }
        public string text { get { return resource.resourcename; } }
        public int type { get { return resource.resourcetype; } }
        public string url { get { return resource.resourceurl; } }
        public string owner { get { return resource.resourceowner; } }

        public string leftico { get { return resource.resourceleftico; } }
        public string rightico { get { return resource.resourcerightico; } }
        public int? number { get { return resource.resourcenumber; } }

        public string description { get { return resource.resourcename; } }

        public bool @checked { get; set; }//加@是因为和关键字冲突
        private List<resource> roleresource { get; set; }

        private List<RescTree> _children;
        public List<RescTree> children
        {
            get
            {
                if (_children == null)
                    _children = new List<RescTree>();
                return _children;
            }
        }

        private IresourceEx _iresourceEx;
        public IresourceEx IresourceEx
        {
            get
            {
                if (_iresourceEx == null)
                {
                    _iresourceEx = IocModule.GetEntity<IresourceEx>();
                }
                return _iresourceEx;
            }
        }

        //需要获取check值的初始化方法
        public RescTree(resource resource)
        {
            this.resource = resource;

            if (resource != null)
            {
后面还有 31 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。