48 lines
1.8 KiB
C#
48 lines
1.8 KiB
C#
using System.Web.Mvc;
|
|
|
|
namespace WX.CRM.WEB
|
|
{
|
|
public class MyViewEngineConfig : RazorViewEngine
|
|
{
|
|
public MyViewEngineConfig()
|
|
{
|
|
ViewLocationFormats = new[]
|
|
{
|
|
"~/Views/{1}/{0}.cshtml",
|
|
"~/Views/Shared/{0}.cshtml",
|
|
"~/Views/Base/{1}/{0}.cshtml",
|
|
"~/Views/Res/{1}/{0}.cshtml",
|
|
"~/Views/Soft/{1}/{0}.cshtml",
|
|
"~/Views/Ord/{1}/{0}.cshtml",
|
|
"~/Views/Csvr/{1}/{0}.cshtml",
|
|
"~/Views/Sms/{1}/{0}.cshtml",
|
|
"~/Views/Fxh/{1}/{0}.cshtml",
|
|
"~/Views/Import/{1}/{0}.cshtml",//自定义规则
|
|
"~/Views/Test/{1}/{0}.cshtml",//自定义规则
|
|
"~/Views/Gjs/{1}/{0}.cshtml",
|
|
"~/Views/Hst/{1}/{0}.cshtml",
|
|
"~/Views/Quality/{1}/{0}.cshtml",
|
|
"~/Views/Qc/{1}/{0}.cshtml",
|
|
"~/Views/Level2/{1}/{0}.cshtml",
|
|
"~/Views/TZGW/{1}/{0}.cshtml",
|
|
"~/Views/YTG/{1}/{0}.cshtml",
|
|
"~/Views/Autorpt/{1}/{0}.cshtml",
|
|
"~/Views/DeptRpt/{1}/{0}.cshtml",
|
|
"~/Views/YICH/{1}/{0}.cshtml",
|
|
"~/Views/WeiXin/{1}/{0}.cshtml",
|
|
"~/Views/Weapp/{1}/{0}.cshtml",
|
|
"~/Views/QH/{1}/{0}.cshtml",
|
|
"~/Views/TS/{1}/{0}.cshtml",
|
|
"~/Views/WeWork/{1}/{0}.cshtml",
|
|
"~/Views/Exam/{1}/{0}.cshtml",
|
|
"~/Views/Ww/{1}/{0}.cshtml",
|
|
"~/Views/Cms/{1}/{0}.cshtml"
|
|
};
|
|
}
|
|
public override ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache)
|
|
{
|
|
return base.FindView(controllerContext, viewName, masterName, useCache);
|
|
|
|
}
|
|
}
|
|
} |