示例#1
0
        public bool UpdateExtendAttr(DataExtendAttr pro)
        {
            bool result = dal.UpdateExtendAttr(pro);

            WeakRefCache.RebuiltDataExtendAttrs();
            return(result);
        }
示例#2
0
        public bool AddExtendAttr(DataExtendAttr attr)
        {
            bool result = dal.AddExtendAttr(attr);

            WeakRefCache.RebuiltDataExtendAttrs();
            return(result);
        }
示例#3
0
        public bool DeleteExtendAttr(int propertyID)
        {
            bool result = dal.DeleteExtendAttr(propertyID);

            WeakRefCache.RebuiltDataExtendAttrs();
            return(result);
        }
示例#4
0
文件: LinkBLL.cs 项目: jackjet870/cms
        /// <summary>
        /// 删除链接
        /// </summary>
        /// <param name="linkID"></param>
        /// <returns></returns>
        public bool Delete(int linkID)
        {
            int result = dal.Delete(linkID);

            WeakRefCache.RebuiltLinks();
            return(result == 1);
        }
示例#5
0
文件: LinkBLL.cs 项目: jackjet870/cms
 /// <summary>
 /// 更新链接
 /// </summary>
 /// <param name="link"></param>
 public void UpdateLink(Link link)
 {
     if (dal.Update(link) == 1)
     {
         WeakRefCache.RebuiltLinks();
     }
 }
示例#6
0
        public bool UpdateModule(Module module)
        {
            bool result = dal.UpdateModule(module);

            if (result)
            {
                WeakRefCache.RebuiltModule();
            }
            return(result);
        }
示例#7
0
文件: LinkBLL.cs 项目: jackjet870/cms
        /// <summary>
        /// 设置链接是否显示
        /// </summary>
        /// <param name="linkID"></param>
        public bool SetVisible(int linkID)
        {
            bool result = false;
            Link link   = Get(a => a.ID == linkID);

            if (link != null)
            {
                link.Visible = !link.Visible;
                result       = dal.SetVisible(linkID, link.Visible) == 1;
                if (result)
                {
                    WeakRefCache.RebuiltLinks();
                }
            }
            return(result);
        }
示例#8
0
        public bool AddModule(int siteID, string name)
        {
            if (this.GetModule(siteID, name) == null)
            {
                //
                //todo:check siteid
                //

                bool result = dal.AddModule(new Module
                {
                    SiteId   = siteID,
                    Name     = name,
                    IsSystem = false,
                    IsDelete = false
                });

                WeakRefCache.RebuiltModule();

                return(result);
            }
            return(false);
        }
示例#9
0
 public void RebuiltExtends()
 {
     WeakRefCache.RebuiltDataExtends();
 }
示例#10
0
文件: LinkBLL.cs 项目: jackjet870/cms
 /// <summary>
 /// 添加链接
 /// </summary>
 public void CreateLink(Link link)
 {
     dal.Add(link);
     WeakRefCache.RebuiltLinks();
 }