示例#1
0
        /// <summary>
        /// 加载小树下面的所有日志
        /// </summary>
        /// <param name="c"></param>
        private void LoadTreeItem(TreeNodeModel c)
        {
            List <SystemLog> sls = _LoggerService.FindAllSystemLogByModuleId(c.Id);

            SystemLogItems.Clear();
            if (sls != null)
            {
                for (int x = 0; x < sls.Count; x++)
                {
                    var           s  = sls.ElementAt(x);
                    SystemLogBean sb = new SystemLogBean();
                    sb.CreateSystemLogBean(s);
                    sb.LineNumber = SystemLogItems.Count + 1 + "";
                    if (x == 0)
                    {
                        SelectedSystemLogItem = sb;
                    }
                    SystemLogItems.Add(sb);
                }
            }
        }
示例#2
0
        /// <summary>
        /// 加载基本数据
        /// </summary>
        private void LoadBaseData()
        {
            OperatorItems        = _UserService.QueryUsers();
            SelectedOperatorItem = OperatorItems.ElementAt(0);

            List <SystemLog> sls = _LoggerService.FindAllSystemLog();

            SystemLogItems.Clear();
            if (sls != null)
            {
                for (int x = 0; x < sls.Count; x++)
                {
                    var           s  = sls.ElementAt(x);
                    SystemLogBean sb = new SystemLogBean();
                    sb.CreateSystemLogBean(s);
                    sb.LineNumber = SystemLogItems.Count + 1 + "";
                    if (x == 0)
                    {
                        SelectedSystemLogItem = sb;
                    }
                    SystemLogItems.Add(sb);
                }
            }
        }