Ejemplo n.º 1
0
        public ActionResult Procedure()
        {
            var list = IsAdmin? _dnModuleApi.GetListByParentIdAdmin(UserItem.AgencyID, ParentId())
                :_dnModuleApi.GetListByParentID(UserItem.AgencyID, ParentId(), UserItem.UserId, string.Join(",", UserItem.listRoleID ?? new List <int>()));
            var model = new ModelModuleItem
            {
                ListItem  = list.OrderBy(m => m.Level),
                Container = Module(),
                PrarentID = int.Parse(ParentId())
            };

            return(View(model));
        }
Ejemplo n.º 2
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());
        }