v7.3.2018.0614   重构高性能资源池,减少GC压力,增加线程池,让异步任务得到平等竞争CPU的机会
大石头 编写于 2018-06-14 17:56:44
X
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

namespace ASP
{
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    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;
    using NewLife.Cube;
    using NewLife.Reflection;
    using NewLife.Web;
    using XCode;
    using XCode.Membership;
    
    #line 1 "..\..\Views\Shared\_StatLevel.cshtml"
    using XCode.Statistics;
    
    #line default
    #line hidden
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
    [System.Web.WebPages.PageVirtualPathAttribute("~/Views/Shared/_StatLevel.cshtml")]
    public partial class _Views_Shared__StatLevel_cshtml : System.Web.Mvc.WebViewPage<dynamic>
    {
        public _Views_Shared__StatLevel_cshtml()
        {
        }
        public override void Execute()
        {
            
            #line 2 "..\..\Views\Shared\_StatLevel.cshtml"
  
    // 所有可用层级
    var vs = Model as StatLevels[];
    var ds = System.EnumHelper.GetDescriptions(typeof(StatLevels));
    var def = StatLevels.All;
    if (vs != null && vs.Length > 0)
    {
        ds = vs.ToDictionary(e => (Int32)e, e => e.GetDescription());
        def = vs[0];
    }

    var page = ViewBag.Page as Pager;

    var n = page["Level"].ToInt(-1);
    var level = n >= 0 ? (StatLevels)n : def;
    var formatStr = "";
    switch (level)
    {
        case StatLevels.Year: formatStr = "yyyy"; break;
        case StatLevels.Month: formatStr = "yyyy-MM"; break;
        case StatLevels.Day: formatStr = "yyyy-MM-dd"; break;
        case StatLevels.Hour: formatStr = "yyyy-MM-dd HH"; break;
        case StatLevels.Minute: formatStr = "yyyy-MM-dd HH:mm"; break;
    }

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

WriteLiteral(" class=\"form-group\"");

WriteLiteral(">\r\n");

WriteLiteral("    ");

            
            #line 28 "..\..\Views\Shared\_StatLevel.cshtml"
Write(Html.ForDropDownList("Level", ds, (Int32)level, null, true));

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

            
            #line 30 "..\..\Views\Shared\_StatLevel.cshtml"
 if (level > StatLevels.All)
{

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

WriteLiteral(" class=\"form-group\"");

WriteLiteral(">\r\n        <div");

WriteLiteral(" class=\"input-group\"");

WriteLiteral(">\r\n            <span");

WriteLiteral(" class=\"input-group-addon\"");

WriteLiteral("><i");

WriteLiteral(" class=\"fa fa-calendar\"");

WriteLiteral("></i></span>\r\n            <input");

WriteLiteral(" name=\"Time\"");

WriteLiteral(" id=\"Time\"");

WriteAttribute("value", Tuple.Create(" value=\"", 1160), Tuple.Create("\"", 1181)
            
            #line 35 "..\..\Views\Shared\_StatLevel.cshtml"
, Tuple.Create(Tuple.Create("", 1168), Tuple.Create<System.Object, System.Int32>(page["Time"]
            
            #line default
            #line hidden
, 1168), false)
);

WriteAttribute("dateformat", Tuple.Create(" dateformat=\"", 1182), Tuple.Create("\"", 1205)
            
            #line 35 "..\..\Views\Shared\_StatLevel.cshtml"
, Tuple.Create(Tuple.Create("", 1195), Tuple.Create<System.Object, System.Int32>(formatStr
            
            #line default
            #line hidden
, 1195), false)
);

WriteLiteral(" class=\"form-control form_datetime\"");

WriteLiteral(" />\r\n        </div>\r\n    </div>\r\n");

            
            #line 38 "..\..\Views\Shared\_StatLevel.cshtml"
}
            
            #line default
            #line hidden
        }
    }
}
#pragma warning restore 1591