#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 = NewLife.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");
WriteLiteral("\r\n");
#line 36 "..\..\Views\Shared\_StatLevel.cshtml"
Write(Html.Partial("_DateRange"));
#line default
#line hidden
}
}
}
#pragma warning restore 1591
|