コード例 #1
0
        /// <summary>
        ///     其他页面
        /// </summary>
        public ActionResult Other(string routerMainLinkDiscription, string linkUrl, string linkId, string noLinkId, int linkKind)
        {
            ViewBag.linkId   = linkId;
            ViewBag.noLinkId = noLinkId;
            ViewBag.linkKind = linkKind;
            CreateTree();

            var routerManager = new RouterManager();

            if (linkUrl == "")
            {
                return(View(routerManager.GetParameterList(routerMainLinkDiscription, linkKind)));
            }


            var value = routerManager.GetParameterForOther(routerMainLinkDiscription, linkUrl, linkKind);
            var list1 = value as List <string>;

            if (list1 != null)
            {
                try
                {
                    var list = list1;
                    ViewBag.state = list[0];
                    ViewBag.value = list[1];
                }
                catch (Exception)
                {
                    // ignored
                }

                return(View(routerManager.GetParameterList(routerMainLinkDiscription, linkKind)));
            }
            return(View(value));
        }