123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- @using System.Globalization
- @using System.Web.Optimization
- @using Abp.Configuration
- @using Abp.Timing
- @using WeApp.Configuration
- @using Abp.Web.Mvc.Extensions
- @using WeApp.Helpers
- @{
- Layout = null;
- SetAntiForgeryCookie();
- // var uiTheme = SettingManager.GetSettingValue(IwbSettingNames.UiTheme);
- var lang= CultureInfo.CurrentUICulture.Name == "zh-Hans" ? "zh-cn" : CultureInfo.CurrentUICulture.Name;
- string title = !string.IsNullOrEmpty(ViewBag.YxTitle) ? ViewBag.YxTitle :
- (bool) (ViewBag.NoSuffix ?? false) ? ViewBag.Title :
- string.IsNullOrEmpty(ViewBag.Suffix) ? ViewBag.Title + "-JY" :
- ViewBag.Title + ViewBag.Suffix;
- }
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
- <meta name="description" content="Iwb.Admin.System">
- <meta name="author" content="Iwb.Yue">
- <title>@(title)</title>
- <link rel="shortcut icon" href="~/favicon.ico">
- @Styles.Render("~/Bundles/Base/Css")
- <link id="flag" />
- <!-- View specific styles -->
- @RenderSection("styles", false)
- @Styles.Render("~/Bundles/Site/Css")
- @RenderSection("css", false)
- </head>
- <body class="hold-transition sidebar-mini sidebar-collapse text-sm">
- @Html.Partial("Layout/_PreLoader")
- @RenderBody()
- @Scripts.Render("~/Bundles/Iwb-Exercise/Js")
- <script>
- var lang = '@(lang)';
- // Localizing moment.js
- moment.locale(lang);
- var abp = abp || {};
- abp.appPath = '@ApplicationPath';
- abp.appUrl = '@Path.Combine(ApplicationPath, IwbConsts.ApiAppUrl)';
- </script>
-
- <!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
- <script src="~/AbpScripts/GetScripts?v=@(Clock.Now.Ticks)" type="text/javascript"></script>
- <!-- View specific scripts -->
- @RenderSection("js", false)
- @Scripts.Render("~/Bundles/Iwb-Account/Js")
- <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
- <!-- SignalR scripts -->
- @Html.IncludeScript("~/Content/Libs/signalr/jquery.signalR.min.js")
- <script src="~/signalr/hubs"></script>
- <script>
- abp.signalr = abp.signalr || {};
- abp.signalr.autoConnect = false;
-
- </script>
- @Html.IncludeScript("~/Content/Libs/Abp/abp.signalr.js")
- <script>
- abp.signalr.hubs = abp.signalr.hubs || {};
- abp.signalr.hubs.iwbHub = $.connection.iwbHub;
- var iwbHub = abp.signalr.hubs.iwbHub;
- //Connect to the server
- abp.signalr.connect = function (names,fun) {
- $.connection.hub.start().done(function () {
- abp.log.debug('IwbHub Connected to SignalR server!');
- abp.event.trigger('abp.signalr.connected');
- if (names && iwbHub) {
- if (typeof names == 'string') {
- iwbHub.server.register(names).done(function() {
- abp.log.debug(names + ' Registered to the SignalR server!');
- if (fun) {
- fun.call();
- }
- });
- } else if(names.length) {
- names.forEach(function(v) {
- iwbHub.server.register(v).done(function() {
- abp.log.debug(v + ' Registered to the SignalR server!');
- if (fun) {
- fun.call();
- }
- });
- });
- }
-
- }
- });
- };
- </script>
- @RenderSection("scripts", false)
- <!-- Model -->
- @RenderSection("modal", false)
- @Html.PartialViewScripts()
- </body>
- </html>
|