Example #1
0
        public ActionResult PageTemplateAdd()
        {
            M_PageReg  regMod  = new M_PageReg();
            M_Templata tempMod = new M_Templata();

            regMod = regBll.SelReturnModel(RegID);
            if (Mid > 0)
            {
                tempMod = tempBll.SelReturnModel(Mid);
                regMod  = regBll.SelModelByUid(tempMod.UserID);
                RegID   = regMod.ID;
            }
            //用户所属RegID,公有为-1
            if (regMod == null)
            {
                function.WriteErrMsg("RegID参数错误"); return(null);
            }
            DataTable templist = tempBll.Sel(regMod.UserID);
            DataTable styleDT  = styleBll.Sel();
            B_Page    pageBll  = new B_Page(tempMod.Modelinfo);

            pageBll.moddt     = modBll.SelByType("4");
            ViewBag.pageBll   = pageBll;
            ViewBag.styleList = MVCHelper.ToSelectList(styleDT, "PageNodeName", "PageNodeName", tempMod.UserGroup);
            ViewBag.templist  = templist;
            return(View(tempMod));
        }
Example #2
0
        public ActionResult Default()
        {
            M_PageReg prMod = regBll.SelModelByUid(mu.UserID);

            if (prMod == null || prMod.Status == 0)
            {
                return(RedirectToAction("PageInfo"));
            }
            return(View("Default"));
        }
Example #3
0
        public ActionResult NodeTree()
        {
            string    hasChild = "<a href='MyContent?NodeID={0}' id='a{0}' class='list1' target='main_right1'>{2}<span class='list_span'>{1}</span></a>";
            string    noChild  = "<a href='MyContent?NodeID={0}' target='main_right1'>{2}{1}</a>";
            M_PageReg regMod   = prBll.SelModelByUid(mu.UserID);
            DataTable nodeDT   = tempBll.SelByStyleAndPid(regMod.NodeStyle);

            ViewBag.NodeHtml = "<ul class='tvNav'><li><a  class='list1' id='a0' href='javascript:;' ><span class='list_span'>全部节点</span><span class='fa fa-list'></span></a>" + B_Node.GetLI(nodeDT, hasChild, noChild) + "</li></ul>";
            return(View());
        }