| 1234567891011121314151617181920212223242526272829303132 |
- using Abp.Configuration;
- using Abp.Dependency;
- using Abp.Web.Mvc.Views;
- using WePlatform.Configuration;
- using IwbZero;
- using IwbZero.Runtime.Session;
- namespace WePlatform.Views
- {
- public abstract class WePlatformWebViewPageBase : WePlatformWebViewPageBase<dynamic>
- {
- }
- public abstract class WePlatformWebViewPageBase<TModel> : AbpWebViewPage<TModel>
- {
- protected WePlatformWebViewPageBase()
- {
- LocalizationSourceName = IwbZeroConsts.LocalizationSourceName;
- AbpSession = SingletonDependency<IIwbSession>.Instance;
- }
- public IIwbSession AbpSession { get; set; }
- public bool ShowLang()
- {
- #pragma warning disable 162
- return IwbConsts.MultiLanguageEnabled && SettingManager.GetSettingValue(IwbSettingNames.MultiLanguages) == MultiLanguagesDefinition.Multi;
- #pragma warning restore 162
- }
- }
- }
|