Exemplo n.º 1
0
        public void Node_Add()
        {
            B_Page     pageBll  = new B_Page();
            M_PageReg  pageinfo = regBll.SelModelByUid(mu.UserID);
            M_Templata model    = new M_Templata();

            if (Mid > 0)
            {
                model = tempBll.SelReturnModel(Mid);
            }
            model.OrderID         = DataConverter.CLng(Request.Form["OrderID"]);
            model.PageMetakeyinfo = Request.Form["PageMetakeyinfo"];
            model.PageMetakeyword = Request.Form["PageMetakeyword"];
            model.TemplateName    = Request.Form["TemplateName"];
            model.ParentID        = 0;//用户暂不可建多级栏目
            model.Modelinfo       = nodeBll.GetNodeXML(model.ParentNode).ContentModel;
            model.UserGroup       = pageinfo.NodeStyle.ToString();
            model.Nodeimgtext     = Request.Form["Nodeimgtext"];
            model.TemplateUrl     = Request.Form["TemplateUrl_hid"];
            model.Modelinfo       = pageBll.GetSubmitModelChk(Request);
            if (model.TemplateID > 0)
            {
                tempBll.UpdateByID(model);
            }
            else
            {
                model.UserID   = mu.UserID;
                model.Username = mu.UserName;
                tempBll.insert(model);
            }
            function.WriteSuccessMsg("操作成功!", "ClassManage"); return;
        }
Exemplo n.º 2
0
        public ActionResult MyContent()
        {
            string Status = DataConverter.CStr(Request["status"]);

            if (NodeID != 0)
            {
                M_Node     nod            = nodeBll.SelReturnModel(NodeID);
                M_Templata tempMod        = tempBll.SelReturnModel(NodeID);
                B_Page     pageBll        = new B_Page(tempMod.Modelinfo);
                string     AddContentlink = "";
                foreach (DataRow dr in pageBll.modeldt.Rows)
                {
                    M_ModelInfo infoMod = modBll.SelReturnModel(Convert.ToInt32(dr["modelid"]));
                    if (infoMod.IsNull)
                    {
                        continue;
                    }
                    AddContentlink += "<a href='AddContent?NodeID=" + NodeID + "&ModelID=" + infoMod.ModelID + "' class='btn btn-info' style='margin-right:5px;' target='_parent'><i class='zi zi_plus'></i> 添加" + infoMod.ItemName + "</a>";
                }
                ViewBag.addhtml = AddContentlink;
            }
            M_PageReg prMod = regBll.SelModelByUid(mu.UserID);

            ViewBag.pageid = DataConverter.CLng(prMod.ID);
            ViewBag.NodeID = NodeID;
            ViewBag.Status = Status;
            ViewBag.PageID = prMod.ID;
            PageSetting setting = conBll.Page_Sel(CPage, PSize, NodeID, Status, mu.UserName, Request["skey"]);

            return(View(setting));
        }
Exemplo n.º 3
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));
        }
Exemplo n.º 4
0
        public void Page_Apply()
        {
            M_PageReg regMod = regBll.SelModelByUid(mu.UserID);

            if (regMod == null)
            {
                regMod         = new M_PageReg();
                regMod.ModelID = DataConvert.CLng(Request.Form["ApplyModel_Rad"]);
            }
            DataTable dt         = fieldBll.GetModelFieldList(regMod.ModelID);
            Call      commonCall = new Call();
            DataTable table      = commonCall.GetDTFromMVC(dt, Request);

            regMod.CompanyName = Request.Form["CompanyName"];
            regMod.PageTitle   = mu.UserName + "的黄页信息";
            regMod.PageInfo    = Request.Form["PageInfo"];
            regMod.LOGO        = Request.Form["LOGO_t"];
            regMod.NodeStyle   = DataConverter.CLng(Request.Form["TempleID_Hid"]);//样式与首页模板??,首页模板可动态以styleMod中为准
            regMod.Template    = Request.Form["TempleUrl_Hid"];
            regMod.Status      = SiteConfig.SiteOption.RegPageStart ? 0 : 99;
            if (regMod.ID > 0)
            {
                conBll.Page_Update(table, regMod);
                function.WriteSuccessMsg("修改提交成功", "PageInfo"); return;
            }
            else
            {
                M_ModelInfo applyMod = modBll.SelReturnModel(regMod.ModelID);
                regMod.TableName = applyMod.TableName;
                regMod.UserName  = mu.UserName;
                regMod.UserID    = mu.UserID;
                regMod.ID        = conBll.Page_Add(table, regMod);
                function.WriteSuccessMsg("申请提交成功", "PageInfo"); return;
            }
        }
Exemplo n.º 5
0
        public void MyBind()
        {
            DataTable templist = tll.SelByStyleAndPid(StyleID);

            templist.DefaultView.RowFilter = "ParentID=0";
            templist.DefaultView.Sort      = "OrderID ASC";
            templist             = templist.DefaultView.ToTable();
            Temptable.DataSource = templist;
            Temptable.DataBind();
            //--------------------------
            if (this.StyleID > 0)//系统样式,不显示模板选择
            {
                updatetemplate.Visible = false;
            }
            else if (Mid > 0)//用户栏目
            {
                updatetemplate.Visible = true;
                M_PageReg regMod = regBll.SelReturnModel(Mid);
                templateUrl.Value = regMod.Template;
            }
            else
            {
                updatetemplate.Visible = false;
            }
        }
Exemplo n.º 6
0
        //根据传入的PageReg中的ID,列出用户所拥有的表(新用户申请通过,默认建立栏目中配置中处理)
        public ActionResult PageTemplate()
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.page, "manage"))
            {
                return(null);
            }
            if (Mid == 0)
            {
                function.WriteErrMsg("未指定参数"); return(null);
            }
            //ViewBag.TempList = FileSystemObject.GetDTForTemplate();
            DataTable templist = new DataTable();

            if (Mid > 0)
            {
                M_PageReg regMod = regBll.SelReturnModel(Mid);
                templist      = tempBll.Sel(regMod.UserID);
                StyleID       = regMod.NodeStyle;
                UserID        = regMod.UserID;
                ViewBag.title = regMod.UserName;
            }
            else if (Mid == -1)//公用栏目
            {
                templist      = tempBll.Sel(Mid);
                ViewBag.title = "公用栏目";
            }
            //---------------------------------
            templist.DefaultView.RowFilter = "ParentID=0";
            VM_Recursion reMod = new VM_Recursion();

            reMod.alldt   = templist;
            reMod.dt      = templist.DefaultView.ToTable();
            ViewBag.reMod = reMod;
            return(View());
        }
        /// <summary>
        /// 返回该黄页的模板物理路径
        /// </summary>
        /// <param name="cData">ZL_CommonModel</param>
        /// <param name="tempMod">ZL_PageTemplate:栏目</param>
        private string GetTempPath(M_CommonData cData, M_Templata tempMod, int pageID)
        {
            if (pageID == 0)
            {
                function.WriteErrMsg("未为该黄页栏目指定样式!"); return("");
            }
            B_PageReg    pageBll  = new B_PageReg();
            M_PageReg    pageMod  = pageBll.SelReturnModel(pageID);
            B_PageStyle  styleBll = new B_PageStyle();
            M_PageStyle  styleMod = new M_PageStyle();
            M_CommonData ItemInfo = conBll.GetCommonData(ItemID);//获取栏目信息
            M_Templata   Nodeinfo = tll.Getbyid(ItemInfo.NodeID);

            if (pageMod == null)
            {
                function.WriteErrMsg("未找到黄页信息" + pageID); return("");
            }
            if (pageMod.NodeStyle != 0)//样式优先读取客户自己设定的,再读取我们后台设定的
            {
                styleMod = styleBll.SelReturnModel(pageMod.NodeStyle);
            }
            else if (DataConverter.CLng(Nodeinfo.UserGroup) != 0)
            {
                styleMod = styleBll.SelReturnModel(DataConverter.CLng(Nodeinfo.UserGroup));
            }
            else
            {
                function.WriteErrMsg("该栏目未指定样式!!"); return("");
            }
            string modelist = tempMod.Modelinfo;
            string tempUrl  = "";
            string tempPath = "";

            //------TempUrl为栏目所指定的Html模板路径.
            if (!string.IsNullOrEmpty(modelist))                            //38,内容页/招聘内容页
            {
                if (modelist.IndexOf("|") > 0 && modelist.IndexOf(",") > 0) //如绑定多个模型则以|分隔,每个模型,可绑定不同的黄页
                {
                    string[] modearr = modelist.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
                    for (int i = 0; i < modearr.Length; i++)
                    {
                        string[] arr = modearr[i].Split(new char[] { ',' });
                        if (cData.ModelID == Convert.ToInt32(arr[0]))
                        {
                            tempUrl = arr[1]; break;
                        }
                    }
                }
                else if (modelist.IndexOf(",") > 0)
                {
                    tempUrl = modelist.Split(new char[] { ',' })[1];
                }
            }
            //-----获取该黄页所绑定的样式,将栏目模板与样式模板路径组合,UserGroup即为其所绑定的样式ID
            tempPath = Server.MapPath(styleMod.StylePath + tempUrl);
            return(tempPath);
        }
Exemplo n.º 8
0
        /// <summary>
        /// 公用栏目PageReg信息
        /// </summary>
        private M_PageReg SelSysModel()
        {
            M_PageReg model = new M_PageReg();

            model.ID           = -1;
            model.UserID       = -1;
            model.UserName     = "******";
            model.CreationTime = DateTime.Now;
            return(model);
        }
Exemplo n.º 9
0
        public ActionResult Default()
        {
            M_PageReg prMod = prBll.GetSelectByUserID(mu.UserID);

            if (prMod == null || prMod.Status == 0)
            {
                return(RedirectToAction("PageInfo"));
            }
            return(View("Default"));
        }
Exemplo n.º 10
0
        public ActionResult Default()
        {
            M_PageReg prMod = regBll.SelModelByUid(mu.UserID);

            if (prMod == null || prMod.Status == 0)
            {
                return(RedirectToAction("PageInfo"));
            }
            return(View("Default"));
        }
Exemplo n.º 11
0
        ////黄页栏目批量隐藏
        //public int Node_Hide(string id)
        //{
        //    if (tempBll.ChangeStatus(id, 0)) return 1;
        //    else return 0;
        //}
        #endregion
        #region 互动模块
        //注册企业黄页
        public ActionResult Modifyinfo()
        {
            M_PageReg regMod = regBll.SelModelByUid(mu.UserID);

            if (regMod == null || regMod.Status != (int)ZLEnum.ConStatus.Audited)
            {
                Response.Redirect("PageInfo"); return(null);
            }
            return(View(regMod));
        }
Exemplo n.º 12
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());
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string menu = DataSecurity.FilterBadChar(Request.QueryString["menu"]);

            if (!IsPostBack)
            {
                Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='PageManage.aspx'>企业黄页</a></li><li><a href='PageManage.aspx'>黄页管理</a>  <li>查看黄页申请</li>");
                B_Admin badmin = new B_Admin();
                B_Group gll    = new B_Group();
                if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "PageManage"))
                {
                    function.WriteErrMsg("没有权限进行此项操作");
                }
                M_PageReg regMod = b_PageReg.SelReturnModel(Mid);
                int       modid  = regMod.ModelID;//模型ID
                this.ModelID          = modid;
                this.HdnID.Value      = Mid.ToString();
                this.HdnModel.Value   = this.ModelID.ToString();
                UName_T.Text          = regMod.UserName;
                CompName_T.Text       = regMod.CompanyName;
                Logo_T.Text           = regMod.LOGO;
                PageInfo_T.Text       = regMod.PageInfo;
                TxtTemplate_hid.Value = regMod.Template;
                if (menu == "view")//查看黄页资料
                {
                    Label1.Text = "查看黄页资料";
                }
                else if (menu == "modify")
                {
                    Label1.Text = "修改黄页资料";
                }
                int       Umodeid = regMod.ModelID;
                DataTable tbinfo  = mll.SelectTableName(regMod.TableName, "UserName = '******'");
                if (tbinfo.Rows.Count > 0)
                {
                    ModelHtml.Text = mll.InputallHtml(Umodeid, 0, new ModelConfig()
                    {
                        ValueDT = tbinfo
                    });
                }
                else
                {
                    this.ModelHtml.Text = this.mll.InputallHtml(DataConverter.CLng(Umodeid), 0, new ModelConfig());
                }
                Temp_RPT.DataSource = sll.Sel();
                Temp_RPT.DataBind();
                NodeStyle_Hid.Value = regMod.NodeStyle.ToString();
                if (string.IsNullOrEmpty(regMod.Template))//如果没有模板就默认为样式首页模板
                {
                    M_PageStyle stylemod = sll.SelReturnModel(regMod.NodeStyle);
                    TxtTemplate_hid.Value = stylemod.TemplateIndex;
                }
            }
        }
Exemplo n.º 14
0
        /// <summary>
        /// 获取用户申请的附加字段信息
        /// </summary>
        public DataRow SelUserApplyInfo(M_PageReg regMod)
        {
            if (string.IsNullOrEmpty(regMod.TableName) || regMod.InfoID < 1)
            {
                return(null);
            }
            B_ModelField fieldBll = new B_ModelField();
            DataTable    dt       = fieldBll.SelectTableName(regMod.TableName, "ID=" + regMod.InfoID);

            return(dt.Rows.Count > 0 ? dt.Rows[0] : null);
        }
Exemplo n.º 15
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   = regBll.SelModelByUid(mu.UserID);
            DataTable nodeDT   = tempBll.Sel(mu.UserID, true);

            nodeDT.DefaultView.RowFilter = "NodeType IN (0,1)";
            nodeDT           = nodeDT.DefaultView.ToTable();
            ViewBag.NodeHtml = "<ul class='tvNav'><li><a class='list1' id='a0' href='MyContent' target='main_right1'><span class='list_span'>全部内容</span><span class='zi zi_list'></span></a>" + B_Node.GetLI(nodeDT, hasChild, noChild) + "</li></ul>";
            return(View());
        }
Exemplo n.º 16
0
        public ActionResult ClassManage()
        {
            M_PageReg regMod = regBll.SelModelByUid(mu.UserID);

            if (regMod == null || regMod.Status != (int)ZLEnum.ConStatus.Audited)
            {
                Response.Redirect("PageInfo"); return(null);
            }
            PageSetting setting = tempBll.SelPage(CPage, PSize, 0, mu.UserID);

            return(View(setting));
        }
Exemplo n.º 17
0
        //注册企业黄页
        public ActionResult Modifyinfo()
        {
            M_PageReg regMod = prBll.GetSelectByUserID(mu.UserID);

            if (regMod == null)
            {
                function.WriteErrMsg("您还未注册黄页!"); return(Content(""));
            }
            else if (regMod.Status != (int)ZLEnum.ConStatus.Audited)
            {
                function.WriteErrMsg("您的黄页还未通过审核!"); return(Content(""));
            }
            return(View(regMod));
        }
Exemplo n.º 18
0
        //黄页申请
        public ActionResult PageInfo()
        {
            bool      ShowRegPage = false;//新用户,或修改信息时允许显示,审核中则不显示
            M_PageReg regMod      = regBll.SelModelByUid(mu.UserID);
            DataTable applyModDT  = modBll.GetListPage();
            DataTable styleDt     = styleBll.Sel();

            styleDt.Columns["PageNodeid"].ColumnName       = "TemplateID";
            styleDt.Columns["TemplateIndex"].ColumnName    = "TemplateUrl";
            styleDt.Columns["TemplateIndexPic"].ColumnName = "TemplatePic";
            styleDt.Columns["PageNodeName"].ColumnName     = "rname";
            //------------------------------------------------------
            //申请模型提交后不可再次修改
            if (applyModDT.Rows.Count < 1)
            {
                function.WriteErrMsg("未定义黄页申请模型"); return(null);
            }
            if (regMod == null)
            {
                regMod          = new M_PageReg();
                regMod.UserID   = mu.UserID;
                regMod.UserName = mu.UserName;
                if (ModelID > 0)
                {
                    regMod.ModelID = ModelID;
                }
                else
                {
                    regMod.ModelID = Convert.ToInt32(applyModDT.Rows[0]["ModelID"]);
                }
                ShowRegPage = true;
            }
            if (regMod.Status == (int)ZLEnum.ConStatus.Audited)
            {
                Response.Redirect("Modifyinfo"); return(null);
            }
            if (DataConvert.CStr(Request["menu"]).Equals("edit"))
            {
                ShowRegPage = true;
            }
            //InfoID==GeneralID???  修改,黄页申请不在CommonModel中留信息


            ViewBag.valuedr     = regBll.SelUserApplyInfo(regMod);
            ViewBag.ShowRegPage = ShowRegPage;
            ViewBag.applyModDT  = applyModDT;
            ViewBag.styleDt     = styleDt;
            return(View(regMod));
        }
Exemplo n.º 19
0
        public IActionResult Modifyinfo_Edit()
        {
            M_PageReg regMod = regBll.SelModelByUid(mu.UserID);

            regMod.Keyword       = RequestEx["Keyword"];
            regMod.PageTitle     = RequestEx["PageTitle"];
            regMod.Description   = RequestEx["Description"];
            regMod.NavColor      = RequestEx["NavColor"];
            regMod.NavBackground = RequestEx["NavBackground"];
            regMod.NavHeight     = RequestEx["NavHeight"];
            regMod.TopWords      = RequestEx["TopWords"];
            regMod.BottonWords   = RequestEx["BottonWords"];
            regBll.UpdateByID(regMod);
            return(WriteOK("修改成功", "Modifyinfo"));
        }
Exemplo n.º 20
0
        public void Modifyinfo_Edit()
        {
            M_PageReg regMod = prBll.GetSelectByUserID(mu.UserID);

            regMod.Keyword       = Request.Form["Keyword"];
            regMod.PageTitle     = Request.Form["PageTitle"];
            regMod.Description   = Request.Form["Description"];
            regMod.NavColor      = Request.Form["NavColor"];
            regMod.NavBackground = Request.Form["NavBackground"];
            regMod.NavHeight     = Request.Form["NavHeight"];
            regMod.TopWords      = Request.Form["TopWords"];
            regMod.BottonWords   = Request.Form["BottonWords"];
            prBll.Update(regMod);
            function.WriteSuccessMsg("修改成功", "Modifyinfo"); return;
        }
Exemplo n.º 21
0
        public void PageTemplate_Add()
        {
            M_Templata tempMod = new M_Templata();
            M_PageReg  regMod  = new M_PageReg();

            if (Mid > 0)
            {
                tempMod = tempBll.SelReturnModel(Mid); regMod = regBll.SelModelByUid(tempMod.UserID);
            }
            if (RegID != 0)
            {
                regMod = regBll.SelReturnModel(RegID);
            }
            tempMod.TemplateName    = Request.Form["TemplateName"];
            tempMod.TemplateUrl     = Request.Form["TemplateUrl_hid"];
            tempMod.TemplateType    = DataConvert.CLng(Request.Form["TemplateType"]);
            tempMod.OpenType        = Request.Form["OpenType"];
            tempMod.UserGroup       = Request.Form["UserGroup"];
            tempMod.Addtime         = DataConverter.CDate(Request.Form["addtime"]);
            tempMod.IsTrue          = DataConverter.CLng(Request.Form["IsTrue"]);
            tempMod.OrderID         = DataConverter.CLng(Request.Form["OrderID"]);
            tempMod.Identifiers     = Request.Form["Identifiers"];
            tempMod.NodeFileEx      = Request.Form["NodeFileEx"];
            tempMod.ContentFileEx   = Request.Form["ContentFileEx"];
            tempMod.Nodeimgurl      = Request.Form["Nodeimgurl"];
            tempMod.Nodeimgtext     = Request.Form["Nodeimgtext"];
            tempMod.Pagecontent     = Request.Form["Pagecontent"];
            tempMod.PageMetakeyword = Request.Form["PageMetakeyword"];
            tempMod.PageMetakeyinfo = Request.Form["PageMetakeyinfo"];
            tempMod.Linkurl         = Request.Form["linkurl.Text"];
            tempMod.Linkimg         = Request.Form["linkimg.Text"];
            tempMod.Linktxt         = Request.Form["linktxt.Text"];
            tempMod.Modelinfo       = pageBll.GetSubmitModelChk(Request);
            if (tempMod.TemplateID > 0)
            {
                tempBll.UpdateByID(tempMod);
            }
            else
            {
                tempMod.ParentID = DataConvert.CLng(Request.QueryString["ParentID"]);
                tempMod.UserID   = regMod.UserID;
                tempMod.Username = regMod.UserName;
                tempBll.insert(tempMod);
            }
            function.WriteSuccessMsg("操作成功", "PageTemplate?ID=" + regMod.ID);
        }
Exemplo n.º 22
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (StyleID < 1)
     {
         function.WriteErrMsg("Style参数错误,用户尚未绑定样式");
     }
     if (!IsPostBack)
     {
         DPBind();
         UserID = DataConverter.CLng(Request.QueryString["UserID"]);
         if (Menu.Equals("del"))
         {
             int did = DataConverter.CLng(Request.QueryString["did"]);
             if (did > 0)
             {
                 delnodes(did);
             }
             Response.Redirect("PageTemplate.aspx?StyleID=" + StyleID);
         }
         //----------------------------------
         if (StyleID > 0)
         {
             if (!B_ARoleAuth.Check(ZLEnum.Auth.page, "AddPageStyle"))
             {
                 function.WriteErrMsg("没有权限进行此项操作");
             }
             String styleName = sll.Getpagestrylebyid(StyleID).PageNodeName;
             StyleName_L.Text = styleName;
             Label1.Text      = "<a href=\"PageStyle.aspx\">黄页样式管理</a> &gt;&gt; <a href=\"PageTemplate.aspx?styleid=" + this.StyleID + "\">样式栏目设置</a> &gt;&gt; " + styleName;
             addtree.Text     = "<a href=\"AddPageTemplate.aspx?styleid=" + StyleID + "\">添加黄页栏目</a>";
         }
         if (Mid > 0)
         {
             M_PageReg regMod    = regBll.SelReturnModel(Mid);
             string    tablename = regMod.TableName;
             DataTable temptable = mll.SelectTableName(tablename, "UserName =@uname", new SqlParameter[] { new SqlParameter("uname", regMod.UserName) });
             this.tempStyleid = DataConverter.CLng(temptable.Rows[0]["Styleid"]);
             UserID           = regMod.UserID;
             Label1.Text      = "黄页管理 &gt;&gt; <a href=\"PageManage.aspx\">黄页用户列表</a> &gt;&gt; <a href=\"PageTemplate.aspx?id=" + Mid + "\">" + regMod.UserName + "</a> &gt;&gt; ";
             addtree.Text     = "<a href=\"AddPageTemplate.aspx?id=" + Mid + "\">添加自定义用户黄页栏目</a>";
         }
         MyBind();
         Call.SetBreadCrumb(Master, "<li><a href='PageManage.aspx'>企业黄页</a><li><a href='PageStyle.aspx'>黄页样式</a></li></li><li class='active'>黄页栏目<a href='AddPageTemplate.aspx?styleid=" + StyleID + "'>[添加栏目]</a></li>");
     }
 }
        // 操作
        public void Option()
        {
            if (!string.IsNullOrEmpty(Request["menu"]))
            {
                M_CommonData b_CommonData = new M_CommonData();
                switch (Request["menu"])
                {
                case "cancel":
                    m_PageReg        = b_PageReg.SelReturnModel(Mid);
                    m_PageReg.Status = 0;
                    b_PageReg.UpdateByID(m_PageReg);
                    Response.Write("<script>alert('操作成功!');location.href='PageManage.aspx';</script>");
                    break;

                case "Audit":
                    m_PageReg        = b_PageReg.SelReturnModel(Mid);
                    m_PageReg.Status = 99;
                    b_PageReg.UpdateByID(m_PageReg);
                    Response.Write("<script>alert('操作成功!');</script>");
                    Response.Redirect("PageManage.aspx");
                    break;

                case "noLevel":
                    m_PageReg = b_PageReg.SelReturnModel(Mid);
                    m_PageReg.Recommendation = "0";
                    b_PageReg.UpdateByID(m_PageReg);
                    Response.Write("<script>alert('取消推荐成功!');location.href='PageManage.aspx';</script>");
                    break;

                case "Level":
                    m_PageReg = b_PageReg.SelReturnModel(Mid);
                    m_PageReg.Recommendation = "1";
                    b_PageReg.UpdateByID(m_PageReg);
                    Response.Write("<script>alert('推荐成功!');location.href='PageManage.aspx';</script>");
                    break;

                case "del":
                    b_PageReg.Del(Mid);
                    Response.Write("<script>alert('操作成功!');location.href='PageManage.aspx';</script>");
                    break;

                default: break;
                }
            }
        }
Exemplo n.º 24
0
        public ActionResult ApplyInfo()
        {
            if (!B_ARoleAuth.AuthCheckEx(ZLEnum.Auth.page, "manage"))
            {
                return(null);
            }
            M_PageReg regMod = regBll.SelReturnModel(Mid);

            ViewBag.valuedr = regBll.SelUserApplyInfo(regMod);
            DataTable styleDt = styleBll.Sel();

            styleDt.Columns["PageNodeid"].ColumnName       = "TemplateID";
            styleDt.Columns["TemplateIndex"].ColumnName    = "TemplateUrl";
            styleDt.Columns["TemplateIndexPic"].ColumnName = "TemplatePic";
            styleDt.Columns["PageNodeName"].ColumnName     = "rname";
            ViewBag.styleDt    = styleDt;
            ViewBag.applyModDT = modBll.GetListPage();
            return(View(regMod));
        }
Exemplo n.º 25
0
        public IActionResult Apply_Update()
        {
            M_PageReg  regMod = regBll.SelReturnModel(Mid);
            M_UserInfo mu     = buser.SelReturnModel(regMod.UserID);
            DataTable  dt     = fieldBll.GetModelFieldList(regMod.ModelID);
            DataTable  table  = Call.GetDTFromMVC(dt, Request);

            regMod.CompanyName = Request.Form["CompanyName"];
            regMod.PageTitle   = mu.UserName + "的黄页信息";
            regMod.PageInfo    = Request.Form["PageInfo"];
            regMod.LOGO        = Request.Form["LOGO_t"];
            regMod.NodeStyle   = DataConverter.CLng(Request.Form["TempleID_Hid"]);//样式与首页模板??,首页模板可动态以styleMod中为准
            regMod.Template    = Request.Form["TempleUrl_Hid"];
            //regMod.Status =//状态不变更
            //regMod.ModelID = applyMod.ModelID;
            //regMod.TableName = applyMod.TableName;
            conBll.Page_Update(table, regMod);
            return(WriteOK("修改提交成功", "ApplyAudit"));
        }
Exemplo n.º 26
0
        public void Node_Add()
        {
            M_PageReg pageinfo = prBll.GetSelectByUserID(mu.UserID);

            M_Templata model  = new M_Templata();
            string     menu   = Request["menu"] ?? "";
            int        tempID = DataConverter.CLng(Request["ID"]);

            if (menu.ToLower().Equals("edit") && tempID >= 0)
            {
                model = tempBll.Getbyid(tempID);
            }
            model.UserID          = mu.UserID;
            model.Username        = mu.UserName;
            model.Addtime         = DateTime.Now;
            model.ContentFileEx   = "html";
            model.IsTrue          = DataConverter.CLng(Request.Form["IsTrue"]);
            model.NodeFileEx      = "html";
            model.OpenType        = "_blank";
            model.OrderID         = DataConverter.CLng(Request.Form["OrderID"]);
            model.PageMetakeyinfo = Request.Form["PageMetakeyinfo"];
            model.PageMetakeyword = Request.Form["PageMetakeyword"];
            model.TemplateName    = Request.Form["TemplateName"];
            model.TemplateType    = 2;
            model.TemplateUrl     = "";
            model.ParentNode      = DataConverter.CLng(Request.Form["ParentNode"]);
            model.Modelinfo       = nodeBll.GetNodeXML(model.ParentNode).ContentModel;
            model.UserGroup       = pageinfo.NodeStyle.ToString();
            model.Nodeimgtext     = Request.Form["Nodeimgtext"];

            if (menu.ToLower().Equals("edit") && tempID >= 0)
            {
                tempBll.Update(model);
                function.WriteSuccessMsg("修改成功!", "ClassManage"); return;
            }
            else
            {
                tempBll.Add(model);
                function.WriteSuccessMsg("添加成功!", "ClassManage"); return;
            }
        }
Exemplo n.º 27
0
        public void Page_Apply()
        {
            string tempurl = Request.Form["templateUrl"];
            int    InfoID  = DataConverter.CLng(Request.Form["ID_Hid"]);
            int    ModelID = DataConverter.CLng(Request.Form["ModelID_Hid"]);

            conBll.UpTemplata(InfoID, tempurl);
            DataTable   dt           = fieldBll.GetModelFieldList(ModelID);
            M_ModelInfo model        = modBll.GetModelById(ModelID);
            string      pagetemplate = "";

            if (model.ModelID > 0)
            {
                pagetemplate = model.ContentModule;
            }
            else
            {
                pagetemplate = "";
            }
            Call      commonCall = new Call();
            DataTable table;

            try
            {
                table = commonCall.GetDTFromMVC(dt, Request);
            }
            catch (Exception e)
            {
                function.WriteErrMsg(e.Message); return;
            }
            DataRow rs1 = table.NewRow();

            rs1[0] = "UserID";
            rs1[1] = "int";
            rs1[2] = mu.UserID;
            DataRow rs2 = table.NewRow();

            rs2[0] = "UserName";
            rs2[1] = "TextType";
            rs2[2] = mu.UserName;
            DataRow rs3 = table.NewRow();

            //Styleid|黄页样式ID|数字|0
            rs3[0] = "Styleid";
            rs3[1] = "int";
            int styleid = DataConverter.CLng(Request.Form["TempleID_Hid"]);

            rs3[2] = styleid == 0 ? 1 : styleid; //未选择,则默认第一个
            table.Rows.Add(rs1);
            table.Rows.Add(rs2);
            table.Rows.Add(rs3);

            int       styless   = DataConverter.CLng(Request.Form["StyleID"]);
            string    tablename = modBll.GetModelById(styless).TableName;
            M_PageReg crMod     = prBll.GetSelectByUserID(mu.UserID);

            if (crMod == null)
            {
                crMod = new M_PageReg();
            }
            crMod.CompanyName = Request.Form["CompanyName"];
            crMod.UserName    = mu.UserName;
            crMod.UserID      = mu.UserID;
            crMod.PageTitle   = mu.UserName + "的黄页信息";
            crMod.PageInfo    = Request.Form["PageInfo"];
            crMod.LOGO        = Request.Form["LOGO"];
            crMod.NodeStyle   = DataConverter.CLng(Request.Form["TempleID_Hid"]);
            crMod.Template    = Request.Form["TempleUrl_Hid"];
            if (SiteConfig.SiteOption.RegPageStart)
            {
                crMod.Status = 0;
            }
            else
            {
                crMod.Status = 99;
            }
            crMod.TableName    = tablename;
            crMod.ModelID      = styless;
            crMod.CreationTime = DateTime.Now;
            if (crMod.ID > 0)
            {
                conBll.Page_Update(table, crMod);
                function.WriteSuccessMsg("修改提交成功", "PageInfo"); return;
            }
            else
            {
                crMod.TopWords         = "";
                crMod.Style            = 0;
                crMod.ParentPageUserID = 0;
                crMod.ParentPageID     = 0;
                crMod.Keyword          = "";
                crMod.InfoID           = 0;
                crMod.Hits             = 0;
                crMod.NavHeight        = "0";
                crMod.NavColor         = "";
                crMod.Description      = "";
                crMod.BottonWords      = "";
                int newID = conBll.Page_Add(table, crMod);
                function.WriteSuccessMsg("申请提交成功", "PageInfo"); return;
            }
        }
Exemplo n.º 28
0
        public ActionResult PageInfo()
        {
            //传递到页面的数据
            bool      ShowRegPage = true;//显示表单
            string    PageTitle = "", TableTitle = "添加企业黄页";
            int       InfoID     = 0;
            int       SelModelID = 0; //对应申请类型,相关功能暂移除
            string    menu       = DataSecurity.FilterBadChar(Request.QueryString["menu"]);
            M_PageReg prMod      = prBll.GetSelectByUserID(mu.UserID);

            if (prMod != null)
            {
                SelModelID = prMod.ModelID;
            }
            DataTable RegDT      = fieldBll.SelectTableName("ZL_Pagereg", "TableName like 'ZL/_Reg/_%' escape '/' and UserID='" + mu.UserID + "'");
            DataTable UPageDT    = new DataTable();
            string    TableNames = "";

            if (RegDT.Rows.Count > 0)
            {
                TableNames = RegDT.Rows[0]["TableName"].ToString();
                SafeSC.CheckDataEx(TableNames);
                if (!modBll.IsExistTemplate(TableNames))
                {
                    function.WriteErrMsg("找不到系统黄页信息!请到后台创建用户模型"); return(Content(""));
                }
                DataTable modeinfo = fieldBll.SelectTableName("ZL_Model", "TableName = '" + TableNames + "'");
                UPageDT = fieldBll.SelectTableName(TableNames, "UserID='" + mu.UserID + "'");
            }
            if (TableNames != "")
            {
                DataTable modetb = fieldBll.SelectTableName("ZL_Model", "TableName ='" + TableNames + "'");
                if (modetb.Rows.Count > 0)
                {
                    SelModelID = DataConverter.CLng(modetb.Rows[0]["ModelID"]);
                }
            }
            DataTable typeDt = modBll.GetListPage();

            if (SelModelID <= 0 && typeDt.Rows.Count > 0)
            {
                SelModelID = DataConverter.CLng(typeDt.Rows[0]["ModelID"]);
            }

            int UPageCount = UPageDT.Rows.Count;
            int RegCount   = RegDT.Rows.Count;
            int PageStatus = 0;

            if (UPageCount > 0 && RegCount > 0)
            {
                PageStatus = DataConverter.CLng(RegDT.Rows[0]["Status"]);
            }
            if (UPageCount == 0 && RegCount == 0 && PageStatus != 99)//注册黄页
            {
                //ModelHtml = fieldBll.InputallHtml(SelModelID, 0, new ModelConfig() { Source = ModelConfig.SType.Admin });
            }
            else
            {
                if (UPageCount > 0 && RegCount > 0 && PageStatus != 99)//审核黄页
                {
                    #region 正在审核黄页
                    if (menu == "modifile")
                    {
                        TableTitle = "修改企业黄页";
                        //InfoID = DataConverter.CLng(RegDT.Rows[0]["InfoID"]);
                        //ModelHtml = fieldBll.InputallHtml(SelModelID, 0, new ModelConfig()
                        //{
                        //    ValueDT = UPageDT
                        //});
                    }
                    else
                    {
                        ShowRegPage = false;
                    }
                    #endregion
                }
                else if (UPageCount > 0 && RegCount > 0 && PageStatus == 99)//审核通过和注册
                {
                    #region 审核通过的用户(修改资料)
                    if (menu.Equals("modifile"))
                    {
                        TableTitle = "修改企业黄页";
                        InfoID     = DataConverter.CLng(RegDT.Rows[0]["InfoID"]);
                        //显示域名绑定
                        //ModelHtml = fieldBll.InputallHtml(SelModelID, 0, new ModelConfig()
                        //{
                        //    ValueDT = UPageDT
                        //});
                    }
                    else
                    {
                        ShowRegPage = false;
                        RedirectToAction("PageInfo", "Pages", new { menu = "modifile" });
                    }
                    #endregion
                }
                else
                {
                    if (menu.Equals("modifile"))
                    {
                        DataTable dt1 = fieldBll.SelectTableName(RegDT.Rows[0]["TableName"].ToString(), "ID = " + RegDT.Rows[0]["GeneralID"] + "");
                        TableTitle = "修改企业黄页";
                        InfoID     = DataConverter.CLng(RegDT.Rows[0]["InfoID"]);
                        DataTable tbinfo = fieldBll.SelectTableName(TableNames, "UserID = '" + mu.UserID + "'");
                        //ModelHtml = fieldBll.InputallHtml(SelModelID, 0, new ModelConfig() { ValueDT = UPageDT });
                    }
                    else
                    {
                        ShowRegPage = false;
                    }
                }
            }
            DataTable styleDt = styleBll.GetPagestylelist();
            styleDt.Columns["PageNodeid"].ColumnName       = "TemplateID";
            styleDt.Columns["TemplateIndex"].ColumnName    = "TemplateUrl";
            styleDt.Columns["TemplateIndexPic"].ColumnName = "TemplatePic";
            styleDt.Columns["PageNodeName"].ColumnName     = "rname";
            ViewBag.PageTitle   = PageTitle;
            ViewBag.TableTitle  = TableTitle;
            ViewBag.ShowRegPage = ShowRegPage;
            if (UPageDT.Rows.Count > 0)
            {
                ViewBag.valuedr = UPageDT.Rows[0];
            }
            else
            {
                ViewBag.valuedr = null;
            }
            //ViewBag.ModelHtml = ModelHtml;
            ViewBag.typeDt   = typeDt;
            ViewBag.styleDt  = styleDt;
            ViewBag.UserName = mu.UserName;
            ViewBag.ModelID  = SelModelID;
            ViewBag.InfoID   = InfoID;
            return(View(prMod));
        }
        //修改
        protected void Button5_Click(object sender, EventArgs e)
        {
            int HdnID = DataConverter.CLng(this.HdnID.Value);

            this.ModelID = DataConverter.CLng(this.HdnModel.Value);
            DataTable   dt  = this.mll.GetModelFieldList(this.ModelID);
            M_ModelInfo dts = this.moll.GetModelById(this.ModelID);

            #region 扩展表
            DataTable table = new DataTable();
            table.Columns.Add(new DataColumn("FieldName", typeof(string)));
            table.Columns.Add(new DataColumn("FieldType", typeof(string)));
            table.Columns.Add(new DataColumn("FieldValue", typeof(string)));

            foreach (DataRow dr in dt.Rows)
            {
                if (DataConverter.CBool(dr["IsNotNull"].ToString()))
                {
                    if (string.IsNullOrEmpty(this.Page.Request.Form["txt_" + dr["FieldName"].ToString()]))
                    {
                        function.WriteErrMsg(dr["FieldAlias"].ToString() + "不能为空!");
                    }
                }
                if (dr["FieldType"].ToString() == "FileType")
                {
                    string[] Sett      = dr["Content"].ToString().Split(new char[] { ',' });
                    bool     chksize   = DataConverter.CBool(Sett[0].Split(new char[] { '=' })[1]);
                    string   sizefield = Sett[1].Split(new char[] { '=' })[1];
                    if (chksize && sizefield != "")
                    {
                        DataRow row2 = table.NewRow();
                        row2[0] = sizefield;
                        row2[1] = "FileSize";
                        row2[2] = this.Page.Request.Form["txt_" + sizefield];
                        table.Rows.Add(row2);
                    }
                }
                if (dr["FieldType"].ToString() == "MultiPicType")
                {
                    string[] Sett      = dr["Content"].ToString().Split(new char[] { ',' });
                    bool     chksize   = DataConverter.CBool(Sett[0].Split(new char[] { '=' })[1]);
                    string   sizefield = Sett[1].Split(new char[] { '=' })[1];
                    if (chksize && sizefield != "")
                    {
                        if (string.IsNullOrEmpty(this.Page.Request.Form["txt_" + sizefield]))
                        {
                            function.WriteErrMsg(dr["FieldAlias"].ToString() + "的缩略图不能为空!");
                        }
                        DataRow row1 = table.NewRow();
                        row1[0] = sizefield;
                        row1[1] = "ThumbField";
                        row1[2] = this.Page.Request.Form["txt_" + sizefield];
                        table.Rows.Add(row1);
                    }
                }
                DataRow row = table.NewRow();
                row[0] = dr["FieldName"].ToString();
                string ftype = dr["FieldType"].ToString();
                row[1] = ftype;
                string fvalue = this.Page.Request.Form["txt_" + dr["FieldName"].ToString()];
                if (ftype == "TextType" || ftype == "MultipleTextType" || ftype == "MultipleHtmlType")
                {
                    fvalue = sell.ProcessSen(fvalue);
                }
                row[2] = fvalue;
                table.Rows.Add(row);
            }

            string uname = ull.GetLogin().UserName;
            this.UserInfo = ull.GetLogin();

            #endregion
            M_PageReg regMod = b_PageReg.SelReturnModel(Mid);
            regMod.CompanyName = CompName_T.Text;
            regMod.LOGO        = Logo_T.Text;
            regMod.PageInfo    = PageInfo_T.Text;
            regMod.Template    = TxtTemplate_hid.Value;
            regMod.NodeStyle   = Convert.ToInt32(NodeStyle_Hid.Value);
            cll.Page_Update(table, regMod);
            function.WriteSuccessMsg("修改成功", "PageManage.aspx");
        }
Exemplo n.º 30
0
        protected void Page_Load(object sender, EventArgs e)
        {
            sid          = DataConverter.CLng(base.Request.QueryString["sid"]);
            id           = DataConverter.CLng(base.Request.QueryString["id"]);
            styleids     = DataConverter.CLng(base.Request.QueryString["styleids"]);
            PageparentID = DataConverter.CLng(base.Request.QueryString["ParentID"]);
            if (!IsPostBack)
            {
                Call.HideBread(Master);
                BindDP();
                #region 判断添加、修改
                //else if (styleids > 0)
                //{
                //    loadmenulist(UserID);
                //    int groupid = DataConverter.CLng(tll.Getbyid(styleids).UserGroup);
                //    string nodename = sll.Getpagestrylebyid(groupid).PageNodeName.ToString();
                //    Label1_Hid.Value = "<a href=\"PageTemplate.aspx?styleid=" + groupid + "\">[黄页栏目管理]</a><a href=\"PageTemplate.aspx?styleid=" + groupid + "\">样式栏目设置</a>" + nodename;
                //    Label2_Hid.Value = "修改黄页栏目";
                //    Label3.Text = "修改黄页栏目";
                //    Button1.Text = "修改栏目";
                //    returnurl = "PageTemplate.aspx?styleid=" + groupid + "";
                //    Tempinfo = tll.Getbyid(styleids);
                //    PageStyle_DP.SelectedValue = Tempinfo.UserGroup;
                //    StyleID_Hid.Value = Tempinfo.UserGroup;
                //}
                if (sid > 0)//修改
                {
                    string nodename = ull.SeachByID(UserID).UserName;
                    loadmenulist(UserID);
                    int       PageStyleid = 0;
                    DataTable regdt       = mll.SelectTableName("ZL_Pagereg", "TableName like 'ZL_Reg_%' and UserName='******'");
                    if (regdt != null && regdt.Rows.Count > 0)
                    {
                        string    PageTableName = regdt.Rows[0]["TableName"].ToString();
                        DataTable pagetable     = mll.SelectTableName(PageTableName, "UserName = '******'");
                        PageStyleid     = DataConverter.CLng(pagetable.Rows[0]["Styleid"]);
                        UserGroup.Value = PageStyleid.ToString();
                        Username.Value  = nodename;
                    }
                    Label1_Hid.Value           = "黄页管理 <a href=\"PageManage.aspx\">[黄页用户列表]</a> <a href=\"PageTemplate.aspx?id=" + UserID + "\">" + nodename + "</a> ";
                    Label2_Hid.Value           = "修改自定义用户黄页栏目";
                    Label3.Text                = "修改栏目";
                    Button1.Text               = "修改栏目";
                    returnurl                  = "PageTemplate.aspx?id=" + UserID + "";
                    Tempinfo                   = tll.Getbyid(sid);
                    PageStyle_DP.SelectedValue = Tempinfo.UserGroup;
                }
                else if (StyleID > 0)//从样式列表处跳转
                {
                    M_PageStyle styleinfo = sll.Getpagestrylebyid(StyleID);
                    string      nodename  = styleinfo.PageNodeName;
                    returnurl       = "PageTemplate.aspx?styleid=" + StyleID + "";
                    UserGroup.Value = StyleID.ToString();
                    loadmenulist(UserID);
                    if (PageparentID > 0)
                    {
                        string snodename = tll.Getbyid(PageparentID).TemplateName;
                        Label1_Hid.Value = "<a href=\"PageTemplate.aspx?styleid=" + StyleID + "\">[黄页栏目管理]</a><a href=\"PageTemplate.aspx?styleid=" + StyleID + "\">样式栏目设置</a> " + nodename;
                        Label2_Hid.Value = "添加黄页子栏目";
                        Label3.Text      = "添加黄页子栏目 [" + snodename + "]";
                    }
                    else
                    {
                        Label1_Hid.Value = "<a href=\"PageTemplate.aspx?styleid=" + StyleID + "\">[黄页栏目管理]</a>  <a href=\"PageTemplate.aspx?styleid=" + StyleID + "\">样式栏目设置</a>" + nodename;
                        Label2_Hid.Value = "添加黄页栏目";
                        Label3.Text      = "添加黄页样式栏目";
                    }
                    PageStyle_DP.SelectedValue = StyleID.ToString();
                }
                else if (id > 0)
                {
                    M_PageReg m_PageReg     = regBll.SelReturnModel(DataConverter.CLng(Request["id"]));
                    string    nodename      = m_PageReg.UserName;
                    DataTable cmdtable      = mll.SelectTableName("ZL_Pagereg", "TableName like 'ZL_Reg_%' and UserName='******'");
                    string    PageTableName = cmdtable.Rows[0]["TableName"].ToString();
                    DataTable pagetable     = mll.SelectTableName(PageTableName, "UserName = '******'");
                    int       PageStyleid   = DataConverter.CLng(pagetable.Rows[0]["Styleid"]);
                    UserGroup.Value = PageStyleid.ToString();
                    Username.Value  = nodename;
                    string tempoptionlist = "<select name=\"ParentID\" id=\"ParentID\">";
                    tempoptionlist = tempoptionlist + "<option value=\"0\">请选择栏目</option>";
                    loadmenulist(UserID);

                    Label1_Hid.Value = "黄页管理  <a href=\"PageTemplate.aspx?id=" + id + "\">[黄页用户列表]</a> <a href=\"PageTemplate.aspx?id=" + id + "\">" + nodename + "</a> ";
                    Label2_Hid.Value = "添加自定义用户黄页栏目";
                    Label3.Text      = "添加自定义用户黄页栏目";
                    returnurl        = "PageTemplate.aspx?id=" + id + "&userid=" + UserID;
                    Userids.Value    = ull.GetUserByName(nodename).UserID.ToString();
                }
                #endregion
                #region 初始化界面默认值
                if (sid > 0 || styleids > 0)
                {
                    if (Tempinfo != null)//修改栏目
                    {
                        if (!IsPostBack)
                        {
                            templateName.Text          = Tempinfo.TemplateName;               //栏目名称
                            templateUrl_hid.Value      = Tempinfo.TemplateUrl.ToString();     //栏目模板地址
                            templateType.Text          = Tempinfo.TemplateType.ToString();    //栏目类型
                            OpenType.Text              = Tempinfo.OpenType.ToString();        //打开方式
                            isTrue.Text                = Tempinfo.IsTrue.ToString();          //启用状态
                            identifiers.Text           = Tempinfo.Identifiers.ToString();     //标识符
                            NodeFileEx.Text            = Tempinfo.NodeFileEx.ToString();      //栏目扩展名
                            ContentFileEx.Text         = Tempinfo.ContentFileEx;              //内容页扩展名
                            addtime.Text               = Tempinfo.Addtime.ToString();         //添加时间
                            Nodeimgurl.Text            = Tempinfo.Nodeimgurl.ToString();      //栏目图片地址
                            Nodeimgtext.Text           = Tempinfo.Nodeimgtext.ToString();     //栏目提示
                            Pagecontent.Text           = Tempinfo.Pagecontent.ToString();     //说明 用于在单页页详细介绍单页信息,支持HTML
                            PageMetakeyword.Text       = Tempinfo.PageMetakeyword.ToString(); //META关键词
                            PageMetakeyinfo.Text       = Tempinfo.PageMetakeyinfo.ToString(); //META网页描述
                            linkurl.Text               = Tempinfo.Linkurl.ToString();         //外部链接地址
                            linkimg.Text               = Tempinfo.Linkimg.ToString();         //外部链接图片地址
                            linktxt.Text               = Tempinfo.Linktxt.ToString();         //外部链接提示
                            OrderID.Text               = Tempinfo.OrderID.ToString();         //排序
                            TemplateID.Value           = Tempinfo.TemplateID.ToString();      //栏目ID
                            UserGroup.Value            = Tempinfo.UserGroup;                  //所属样式ID
                            PageStyle_DP.SelectedValue = Tempinfo.UserGroup;
                            Userids.Value              = Tempinfo.UserID.ToString();          //所属用户ID
                            lblmodelstr.Value          = Tempinfo.Modelinfo.ToString();
                            Username.Value             = Tempinfo.Username.ToString();
                        }
                    }
                }
                else //公用添加栏目
                {
                    TemplateID.Value   = "0";
                    addtime.Text       = DateTime.Now.ToString();
                    OpenType.Text      = "_blank";
                    NodeFileEx.Text    = "html";
                    ContentFileEx.Text = "html";
                    OrderID.Text       = "0";
                }

                #endregion
                DataTable dt = mll.SelectTableName("ZL_Model", "TableName like 'ZL_Page_%'");
                Repeater1.DataSource = dt;
                Repeater1.DataBind();
                #region 判断栏目类型
                switch (templateType.Text)
                {
                case "0":     //默认为栏目
                    typenode.Visible           = true;
                    tempurl.Visible            = true;
                    typetxt.Visible            = false;
                    urltype.Visible            = false;
                    nodetype.Visible           = true;
                    SelectModel.Visible        = true;
                    templateType.SelectedValue = "2";
                    break;

                case "1":     //单页
                    typenode.Visible           = false;
                    tempurl.Visible            = true;
                    typetxt.Visible            = true;
                    urltype.Visible            = false;
                    nodetype.Visible           = true;
                    SelectModel.Visible        = false;
                    templateType.SelectedValue = "1";
                    break;

                case "2":     //栏目
                    tempurl.Visible            = true;
                    typenode.Visible           = true;
                    typetxt.Visible            = true;
                    urltype.Visible            = false;
                    nodetype.Visible           = true;
                    SelectModel.Visible        = true;
                    templateType.SelectedValue = "2";
                    break;

                case "3":     //url连接
                    typenode.Visible           = false;
                    tempurl.Visible            = false;
                    typetxt.Visible            = false;
                    urltype.Visible            = true;
                    nodetype.Visible           = false;
                    SelectModel.Visible        = false;
                    templateType.SelectedValue = "3";
                    break;

                case "4":     //功能型栏目
                    typenode.Visible           = false;
                    tempurl.Visible            = true;
                    typetxt.Visible            = false;
                    urltype.Visible            = false;
                    nodetype.Visible           = false;
                    SelectModel.Visible        = true;
                    templateType.SelectedValue = "4";
                    break;

                default:     //默认为栏目
                    tempurl.Visible            = true;
                    typenode.Visible           = true;
                    typetxt.Visible            = true;
                    urltype.Visible            = false;
                    nodetype.Visible           = true;
                    SelectModel.Visible        = true;
                    templateType.SelectedValue = "2";
                    break;
                }
                #endregion
            }
        }