示例#1
0
        /// <summary>
        /// 标记删除分类树及其他的子集
        /// </summary>
        /// <returns></returns>
        internal ReplayBase DelCatInfoAndChilds()
        {
            ReplayBase result = new ReplayBase();

            try
            {
                List <string> Ids = new List <string>();
                //获取他自己和自己
                SearchCatInfoCondtion = new SearchCatInfoRequest()
                {
                    id = this.CatInfo.id
                };
                SearchCatInfoList();
                if (this.SearchCatInfoListReplay.Count > 0)
                {
                    foreach (CatInfoModel info in this.SearchCatInfoListReplay)
                    {
                        Ids.Add(info.id);
                    }
                    result = BaseSysTemDataBaseManager.RsDelCatTree(Ids);
                }
                else
                {
                    result.ReturnCode    = EnumErrorCode.EmptyDate;
                    result.ReturnMessage = "没有找到需要删除的数据";
                }
            }
            catch (Exception e) {
                result.ReturnCode    = EnumErrorCode.ServiceError;
                result.ReturnMessage = "服务器错误 500";
                SysManagerService.SysSaveErrorLogMsg(e.ToString(), this.CatInfo);
            }
            return(result);
        }
示例#2
0
        public List <Tree> SearchCatTreeList(SearchCatInfoRequest condtion)
        {
            PublicResourceService prs = new PublicResourceService();

            prs.SearchCatInfoCondtion = condtion;
            List <Tree> result = prs.SearchCatTreeList();

            return(result);
        }
示例#3
0
 public ActionResult CatTreeSet(SearchCatInfoRequest condtion)
 {
     ViewBag.PageId   = Guid.NewGuid().ToString();
     ViewBag.condtion = condtion;
     return(View());
 }