Beispiel #1
0
        public ActionResult SonView(string parentId)
        {
            ViewBag.Id = parentId;
            var list = _dicApp.GetDicSelList();

            ViewBag.DicList = new SelectList(list, "id", "name", parentId);
            return(View());
        }
Beispiel #2
0
        public ActionResult Form(string id)
        {
            ViewBag.Id = id;
            var pid    = RequestHelper.GetQueryString("pid", "0");
            var dicSel = _dicApp.GetDicSelList();

            dicSel.Insert(0, new sys_dictionary()
            {
                id = 0, dic_name = "全部"
            });
            ViewBag.DicSelList = new SelectList(dicSel, "id", "dic_name", pid);
            return(View());
        }