Example #1
0
        public AppPageModel Build()
        {
            var appPage = new  AppPageModel();

            BuildSidePanel(ref appPage);
            return(appPage);
        }
Example #2
0
        private void BuildSidePanel(ref AppPageModel page)
        {
            var menues = new List <ActionInfo>();

            StackErp.Core.Studio.StudioService ser = new Core.Studio.StudioService();
            var enyts = ser.GetEntityListData();

            foreach (var e in enyts)
            {
                var ent = e.Get("ID", 0);
                if (ent < 99)
                {
                    continue;
                }
                menues.Add(new ActionInfo("/entity/desk", new RequestQueryString()
                {
                    EntityId = ent
                }, "MENU_" + ent.ToString())
                {
                    Title = e.Get("Name", ""), ExecutionType = ActionExecutionType.Redirect
                });
            }
            page.SideMenues = menues;
        }