Example #1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public ViewPathHelper()
        {
            CACHEOBJECT = CachedConfigContext.Current.FrameworkConfig;
            CURRENTABSOLUTTHEMPATH = CACHEOBJECT.ThemesPath + "/" + CACHEOBJECT.CurrentTheme + "/";

            MANAGEVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.ManageViewPath;
            DIALOGVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.DialogViewPath;
            NORMALVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.NormalViewPath;
            MEMBERVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.MemberViewPath;
            CONTROLPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.ControlPath + "/";
        }
Example #2
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public BaseController()
        {
            //base.ValidateRequest = false;

            CACHEOBJECT = FrameworkConfig.Instance<FrameworkConfig>();
            CURRENTABSOLUTTHEMPATH = CACHEOBJECT.ThemesPath + "/" + CACHEOBJECT.CurrentTheme + "/";

            MANAGEVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.ManageViewPath;
            DIALOGVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.DialogViewPath;
            NORMALVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.NormalViewPath;
            MEMBERVIEWPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.MemberViewPath;
            CONTROLPATH = CURRENTABSOLUTTHEMPATH + CACHEOBJECT.ControlPath + "/";
        }
Example #3
0
 static Email()
 {
     FrameworkConfig = CachedConfigContext.Current.FrameworkConfig;
 }