-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsysinfo.aspx.cs
More file actions
44 lines (43 loc) · 2.85 KB
/
sysinfo.aspx.cs
File metadata and controls
44 lines (43 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
public partial class Sysinfo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
LearnSite.Common.SiteBuildInfo buildInfo = LearnSite.Common.WordProcess.CurrentBuildInfo();
Label1.Text = LearnSite.Common.Computer.GetServerIp();
Label2.Text = LearnSite.Common.Computer.GetServerName();
Label3.Text = LearnSite.Common.Computer.GetServerOs();
Label4.Text = LearnSite.Common.Computer.GetServerCpu() + "个";
Label5.Text = LearnSite.Common.Computer.GetServerCpuClass();
Label6.Text = "LearnSite" + buildInfo.Version + "版" + LearnSite.Common.WordProcess.SysVerUpdate();
Label7.Text = LearnSite.Common.Computer.GetServerSoftWare();
Label8.Text = "asp.net" + LearnSite.Common.Computer.GetServerDotNetVer();
Label9.Text = LearnSite.Common.Computer.GetServerScriptTimeout() + "秒";
Label10.Text = LearnSite.Common.Computer.GetServerTickCount();
Label11.Text = LearnSite.Common.Computer.GetServerProcessStartTime();
Label12.Text = LearnSite.Common.Computer.GetServerAspNetWorkingSet() + "MB";
Label13.Text = LearnSite.Common.Computer.GetServerAspNetCpuTime() + "分钟";
Label14.Text = LearnSite.Common.Computer.GetServerCurrentThreadsNum() + "个";
Label21.Text = LearnSite.Common.Computer.GetServerLanguage();
Label22.Text = LearnSite.Common.Computer.GetSessionCount() + "个";
Label23.Text = LearnSite.Common.App.AppCounts().ToString();
Labelcomputer.Text = Environment.OSVersion.Platform.ToString();
Label24.Text = Environment.OSVersion.ToString() + " (" + Environment.Version.ToString() + ")";
Label25.Text = LearnSite.Common.Computer.GetMemoryInfo();
Label26.Text = LearnSite.Common.Computer.GetDiskInfo();
Label27.Text = LearnSite.Common.Computer.GetSystemLoad();
Label28.Text = LearnSite.Common.Computer.GetNetworkUsage();
Label29.Text = LearnSite.Common.Computer.GetTopProcesses();
Label30.Text = buildInfo.Git != null && buildInfo.Git.IsRepositoryCheckout ? "源码工作区" : "发布包";
LabelVerLocal.Text = buildInfo.Version;
Label15.Text = LearnSite.DBUtility.DbHelperSQL.TableCounts("Courses").ToString();
Label16.Text = LearnSite.DBUtility.DbHelperSQL.TableCounts("Works").ToString();
Label17.Text = LearnSite.DBUtility.DbHelperSQL.TableCounts("Students").ToString();
Label18.Text = LearnSite.DBUtility.DbHelperSQL.TableCounts("Signin").ToString();
Label19.Text = LearnSite.DBUtility.DbHelperSQL.TableCounts("Ptyper").ToString();
Label20.Text = LearnSite.DBUtility.DbHelperSQL.TableCounts("Soft").ToString();
}
}
}