Example #1
0
        public ActionResult AjaxTreeSelect()
        {
            var ltsSourceModule = _moduleDa.GetAllListSimple();
            var ltsValues       = FDIUtils.StringToListInt(Request["ValuesSelected"]);
            var stbHtml         = new StringBuilder();

            _moduleDa.BuildTreeViewCheckBox(ltsSourceModule, 1, true, ltsValues, ref stbHtml);

            var model = new ModelModuleItem
            {
                Container        = Request["Container"],
                SelectMutil      = Convert.ToBoolean(Request["SelectMutil"]),
                SystemActionItem = SystemActionItem,
                StbHtml          = stbHtml.ToString()
            };

            ViewData.Model = model;
            return(View());
        }