@using System.Data;
@using GBLab.Common.Expand;
@{
    var GetSystem_User_Role_Department_Post_Num = ViewData["GetSystem_User_Role_Department_Post_Num"] as DataTable;
    var GetSystem_Login_User_Info = ViewData["GetSystem_Login_User_Info"] as DataTable;

    //取得页面执行开始时间
    DateTime stime = DateTime.Now;

    int build, major, minor, revision;
    build = Environment.Version.Build;
    major = Environment.Version.Major;
    minor = Environment.Version.Minor;
    revision = Environment.Version.Revision;

    var name = Server.MachineName;
    var ip = Request.ServerVariables["LOCAL_ADDR"];
    var domain = Request.ServerVariables["SERVER_NAME"];
    var port = Request.ServerVariables["SERVER_PORT"];
    var ontime = DateTime.Now.ToString();
    var lan = Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"];
    var cpuqty = System.Environment.GetEnvironmentVariable("NUMBER_OF_PROCESSORS");
    var cpumore = System.Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE");
    var system = Environment.OSVersion.ToString();
    var dotnet = ".NET CLR  " + major + "." + minor + "." + build + "." + revision;

    var user = Environment.UserName;
    var sysdir = System.Environment.GetEnvironmentVariable("windir");
    var systmp = System.Environment.GetEnvironmentVariable("TEMP");
    var mem = (Environment.WorkingSet / 1024 / 1024).ToString() + " MB";
    var atdomain = System.Environment.GetEnvironmentVariable("USERDOMAIN");


    var SSL = Request.ServerVariables["HTTPS"];
    var CGI = Request.ServerVariables["GATEWAY_INTERFACE"];
    var IIS = Request.ServerVariables["SERVER_SOFTWARE"];
    var timeout = Server.ScriptTimeout.ToString();
    var runtime = Math.Round((decimal)(Environment.TickCount / 600 / 60)) / 100 + " 小时";
    var path = Request.ServerVariables["APPL_PHYSICAL_PATH"];
    var pathinfo = Request.ServerVariables["PATH_TRANSLATED"];

    //取得页面执行结束时间
    DateTime etime = DateTime.Now;
    //计算页面执行时间
    var timerun = ((etime - stime).TotalMilliseconds).ToString() + "毫秒";

    //100万次相加循环测试
    DateTime ontime1 = DateTime.Now;
    int sum = 0;
    for (int i = 1; i <= 10000000; i++) {
        sum = sum + i;
    }
    DateTime endtime1 = DateTime.Now;
    var timetol = ((endtime1 - ontime1).TotalMilliseconds).ToString() + "毫秒";

    //100万次开平方测试
    DateTime ontime2 = DateTime.Now;
    long k = 2;
    for (int a = 1; a < 1000000; a++) {
        k = k * k;
    }
    DateTime endtime2 = DateTime.Now;
    var timekai = ((endtime2 - ontime2).TotalMilliseconds).ToString() + "毫秒";
}

<form style="margin-top:4px;">
    <span id="SystemConfig_TypeId" style="display: none;"></span>
    <div class="tabs" currentindex="0" eventtype="click">
        <div class="tabsHeader">
            <div class="tabsHeaderContent">
                <ul>
                    <li><a href="javascript:;"><span>平台 - 控制台</span></a></li>
                    <li><a href="javascript:;"><span>系统信息</span></a></li>
                    <li style="display:none"><a href="javascript:;"><span>预留</span></a></li>
                    <li style="display:none"><a href="javascript:;"><span>预留</span></a></li>
                </ul>
            </div>
        </div>
        <div class="tabsContent console" layoutH="47">
            <div>
                <div class="pageFormContent" style="padding:0px; background-color: #eef4f5;border-style:none;" layoutH="47">
                    <div class="col-md-6 col-sm-12">
                        <div class="panel collapse" defH="100">
                            <h1>组织架构</h1>
                            <div class="midContainer">
                                <div class="iconitem">
                                    <div class="icon">人员数量</div>
                                    <div class="text">@(GetSystem_User_Role_Department_Post_Num.Rows[0]["userNum"].DefaultIsNullOrEmpty(0))</div>
                                </div>
                                <div class="iconitem">
                                    <div class="icon">角色数量</div>
                                    <div class="text">@(GetSystem_User_Role_Department_Post_Num.Rows[0]["roleNum"].DefaultIsNullOrEmpty(0))</div>
                                </div>
                                <div class="iconitem">
                                    <div class="icon">部门数量</div>
                                    <div class="text">@(GetSystem_User_Role_Department_Post_Num.Rows[0]["departmentNum"].DefaultIsNullOrEmpty(0))</div>
                                </div>
                                <div class="iconitem">
                                    <div class="icon">岗位数量</div>
                                    <div class="text">@(GetSystem_User_Role_Department_Post_Num.Rows[0]["postNum"].DefaultIsNullOrEmpty(0))</div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-sm-12">
                        <div class="panel collapse" defH="100">
                            <h1>生效系统</h1>
                            <div class="midContainer">
                                <div class="iconitem">
                                    <div class="icon">基础服务</div>
                                    <div class="text">生效</div>
                                </div>
                                <div class="iconitem">
                                    <div class="icon">内容系统</div>
                                    <div class="text">生效</div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-sm-12">
                        <div class="panel collapse" defH="165">
                            <h1>登录信息</h1>
                            <div class="midContainer">
                                <div class="left w30">登录用户：</div>
                                <div class="right w65"><span>@(GetSystem_Login_User_Info.Rows[0]["F_Name"])</span></div>
                                <div class="left w30">用户角色：</div>
                                <div class="right w65"><span>@(GetSystem_Login_User_Info.Rows[0]["F_RoleName"])</span></div>
                                <div class="left w30">登录次数：</div>
                                <div class="right w65"><span>@(GetSystem_Login_User_Info.Rows[0]["F_LoginNum"])</span></div>
                                <div class="left w30">上次登录时间：</div>
                                <div class="right w65"><span>@(GetSystem_Login_User_Info.Rows[0]["F_LoginIp"])</span></div>
                                <div class="left w30">上次登录IP：</div>
                                <div class="right w65"><span>@(GetSystem_Login_User_Info.Rows[0]["F_LastLoginDate"])</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-sm-12">
                        <div class="panel collapse" defH="165">
                            <h1>版权信息</h1>
                            <div class="midContainer">
                                <div class="left w30">系统名称：</div>
                                <div class="right w65"><span><a href="http://www.xuexiaoruanjian.com" target="_blank">学校软件 - http://www.xuexiaoruanjian.com</a></span></div>
                                <div class="left w30">系统版权：</div>
                                <div class="right w65"><span><a href="http://www.xuexiaoruanjian.com" target="_blank">学校软件 - http://www.xuexiaoruanjian.com</a></span></div>
                                <div class="left w30">开发团队：</div>
                                <div class="right w65"><span>淡定</span></div>
                                <div class="left w30">特别感谢：</div>
                                <div class="right w65"><span>伊凡、SEAN</span></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div>
                <div class="pageFormContent" style="padding:0px; background-color: #eef4f5;border-style:none;" layoutH="47">
                    <div class="col-md-6 col-sm-12">
                        <div class="panel collapse" defH="400">
                            <h1>服务器基本参数</h1>
                            <div class="midContainer">
                                <div class="left w30">服务器名：</div><div class="right w65"><span>@(name)</span></div>
                                <div class="left w30">服务器IP：</div><div class="right w65"><span>@(ip)</span></div>
                                <div class="left w30">服务器域名：</div><div class="right w65"><span>@(domain)</span></div>
                                <div class="left w30">服务器端口：</div><div class="right w65"><span>@(port)</span></div>
                                <div class="left w30">服务器时间：</div><div class="right w65"><span>@(ontime)</span></div>
                                <div class="left w30">服务器语言：</div><div class="right w65"><span>@(lan)</span></div>
                                <div class="left w30">服务器CPU数量：</div><div class="right w65"><span>@(cpuqty)</span></div>
                                <div class="left w30">服务器CPU结构：</div><div class="right w65"><span>@(cpumore)</span></div>
                                <div class="left w30">服务器操作系统：</div><div class="right w65"><span>@(system)</span></div>
                                <div class="left w30">DotNET引擎版本：</div><div class="right w65"><span>@(dotnet)</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-sm-12">
                        <div class="panel collapse" defH="400">
                            <h1>服务器更多参数</h1>
                            <div class="midContainer">
                                <div class="left w30">当前执行用户：</div><div class="right w65"><span>@(user)</span></div>
                                <div class="left w30">系统安装目录：</div><div class="right w65"><span>@(sysdir)</span></div>
                                <div class="left w30">系统临时目录：</div><div class="right w65"><span>@(systmp)</span></div>
                                <div class="left w30">IIS版本：</div><div class="right w65"><span>@(IIS)</span></div>
                                <div class="left w30">SSL支持：</div><div class="right w65"><span>@(SSL)</span></div>
                                <div class="left w30">CGI版本：</div><div class="right w65"><span>@(CGI)</span></div>
                                <div class="left w30">脚本超时时间：</div><div class="right w65"><span>@(timeout)</span></div>
                                <div class="left w30">系统运行时间：</div><div class="right w65"><span>@(runtime)</span></div>
                                <div class="left w30">当前文件目录：</div><div class="right w65"><span>@(path)</span></div>
                                <div class="left w30">当前文件位置：</div><div class="right w65"><span>@(pathinfo)</span></div>
                                <div class="left w30">已使用内存：</div><div class="right w65"><span>@(mem)</span></div>
                                <div class="left w30">主机所在域：</div><div class="right w65"><span>@(atdomain)</span></div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-sm-12">
                        <div class="panel collapse" defH="100">
                            <h1>服务器性能参考</h1>
                            <div class="midContainer">
                                <div class="left w30">打开页面速度：</div>
                                <div class="right w65"><span>@(timerun)</span></div>
                                <div class="left w30">100万次整数加法运算：</div>
                                <div class="right w65"><span>@(timetol)</span></div>
                                <div class="left w30">100万浮点次开方运算：</div>
                                <div class="right w65"><span>@(timekai)</span></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div>
                <div class="pageFormContent" style="padding:0px; background-color: #eef4f5;border-style:none;" layoutH="47">
                    <div class="col-md-6 col-sm-12">
                        <div class="panel collapse" defH="150">
                            <h1>预留</h1>
                            <div class="midContainer">
                                预留
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div>
                <div class="pageFormContent" style="padding:0px; background-color: #eef4f5;border-style:none;" layoutH="47">
                    <div class="col-md-6 col-sm-12">
                        <div class="panel collapse" defH="150">
                            <h1>预留</h1>
                            <div class="midContainer">
                                预留
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="tabsFooter">
            <div class="tabsFooterContent">
            </div>
        </div>
    </div>
</form>