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)); }
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()); }