v9.8.2018.0605   由DataReader直接映射实体列表,以支持netstandard的MySql和SQLite,且提升性能
大石头 authored at 2018-06-05 00:45:23
7.68 KiB
X
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

namespace ASP
{
    using System;
    
    #line 2 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
    using System.Collections;
    
    #line default
    #line hidden
    using System.Collections.Generic;
    
    #line 1 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
    using System.Diagnostics;
    
    #line default
    #line hidden
    using System.IO;
    using System.Linq;
    using System.Net;
    
    #line 3 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
    using System.Reflection;
    
    #line default
    #line hidden
    
    #line 4 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
    using System.Runtime.Versioning;
    
    #line default
    #line hidden
    using System.Text;
    using System.Web;
    using System.Web.Helpers;
    using System.Web.Mvc;
    using System.Web.Mvc.Ajax;
    using System.Web.Mvc.Html;
    using System.Web.Routing;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.WebPages;
    using NewLife;
    
    #line 5 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
    using NewLife.Common;
    
    #line default
    #line hidden
    using NewLife.Cube;
    using NewLife.Reflection;
    using NewLife.Web;
    using XCode;
    using XCode.Membership;
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
    [System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Admin/Views/Index/ProcessModules.cshtml")]
    public partial class _Areas_Admin_Views_Index_ProcessModules_cshtml : System.Web.Mvc.WebViewPage<dynamic>
    {
        public _Areas_Admin_Views_Index_ProcessModules_cshtml()
        {
        }
        public override void Execute()
        {
            
            #line 6 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
  
    Layout = NewLife.Cube.Setting.Current.Layout;

    ViewBag.Title = "进程模块";
    var Act = ViewBag.Act;

    var asm = Assembly.GetExecutingAssembly();
    var att = asm.GetCustomAttribute<TargetFrameworkAttribute>();
    var ver = att.FrameworkDisplayName ?? att.FrameworkName;

    var isAll = String.Equals("All", Request["Mode"], StringComparison.OrdinalIgnoreCase);

    var process = Process.GetCurrentProcess();
    var list = new List<ProcessModule>();
    foreach (ProcessModule item in process.Modules)
    {
        if (isAll || item.FileVersionInfo.CompanyName != "Microsoft Corporation") { list.Add(item); }
    }

            
            #line default
            #line hidden
WriteLiteral("\r\n<table");

WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");

WriteLiteral(">\r\n    <tr>\r\n        <th");

WriteLiteral(" colspan=\"7\"");

WriteLiteral(">\r\n            进程模块(");

            
            #line 28 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
            Write(process.ProcessName);

            
            #line default
            #line hidden
WriteLiteral(" , PID=");

            
            #line 28 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
                                       Write(process.Id);

            
            #line default
            #line hidden
WriteLiteral(" )\r\n");

            
            #line 29 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
            
            
            #line default
            #line hidden
            
            #line 29 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
             if (!isAll)
                {

            
            #line default
            #line hidden
WriteLiteral("                ");

WriteLiteral("(<a");

WriteLiteral(" href=\"?Mode=All\"");

WriteLiteral(">完整</a>,仅用户):");

WriteLiteral("\r\n");

            
            #line 32 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
                }
                else
                {

            
            #line default
            #line hidden
WriteLiteral("                ");

WriteLiteral("(完整,<a");

WriteLiteral(" href=\"?Mode=OnlyUser\"");

WriteLiteral(">仅用户</a>):");

WriteLiteral("\r\n");

            
            #line 36 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
                }

            
            #line default
            #line hidden
WriteLiteral(@"        </th>
    </tr>
    <tr>
        <th>
            模块名称
        </th>
        <th>
            公司名称
        </th>
        <th>
            产品名称
        </th>
        <th>
            描述
        </th>
        <th>
            版本
        </th>
        <th>
            大小
        </th>
        <th>
            路径
        </th>
    </tr>
");

            
            #line 62 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
    
            
            #line default
            #line hidden
            
            #line 62 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
     foreach (ProcessModule item in list)
    {

            
            #line default
            #line hidden
WriteLiteral("        <tr>\r\n            <td>\r\n");

WriteLiteral("                ");

            
            #line 66 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
           Write(item.ModuleName);

            
            #line default
            #line hidden
WriteLiteral("\r\n            </td>\r\n            <td>\r\n");

WriteLiteral("                ");

            
            #line 69 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
           Write(item.FileVersionInfo.CompanyName);

            
            #line default
            #line hidden
WriteLiteral("\r\n            </td>\r\n            <td>\r\n");

WriteLiteral("                ");

            
            #line 72 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
           Write(item.FileVersionInfo.ProductName);

            
            #line default
            #line hidden
WriteLiteral("\r\n            </td>\r\n            <td>\r\n");

WriteLiteral("                ");

            
            #line 75 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
           Write(item.FileVersionInfo.FileDescription);

            
            #line default
            #line hidden
WriteLiteral("\r\n            </td>\r\n            <td>\r\n");

WriteLiteral("                ");

            
            #line 78 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
           Write(item.FileVersionInfo.FileVersion);

            
            #line default
            #line hidden
WriteLiteral("\r\n            </td>\r\n            <td>\r\n");

WriteLiteral("                ");

            
            #line 81 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
           Write(item.ModuleMemorySize);

            
            #line default
            #line hidden
WriteLiteral("\r\n            </td>\r\n            <td>\r\n");

WriteLiteral("                ");

            
            #line 84 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
           Write(item.FileName);

            
            #line default
            #line hidden
WriteLiteral("\r\n            </td>\r\n        </tr>\r\n");

            
            #line 87 "..\..\Areas\Admin\Views\Index\ProcessModules.cshtml"
    }

            
            #line default
            #line hidden
WriteLiteral("</table>");

        }
    }
}
#pragma warning restore 1591