| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- @using System.Security.Policy
- @using System.Web.Optimization
- @using Abp.Configuration
- @using Abp.Runtime.Session
- @using Abp.Timing
- @using ShwasherSys.Models.Modal
- @using IwbZero.Setting
- @{
- SetAntiForgeryCookie();
- var foot = SettingManager.GetSettingValue(SettingNames.HtmlPagesFooter);
- var version = SettingManager.GetSettingValue(SettingNames.AdminSystemVersion);
- string currentUser = AbpSession.UserName;
- //AlertList alerts;
- //IocManager.Instance.Using<IAlertManager>(alertManager => alerts = alertManager.Alerts);
- }
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="description" content="">
- <meta name="author" content="">
- <link rel="shortcut icon" href="~/favicon.ico">
- <title>@ViewBag.Title-IWB</title>
- @Styles.Render("~/Content/css")
- @Scripts.Render("~/bundles/modernizr")
- @RenderSection("CSS", false)
- <link href="~/Content/Plugins/Notice/css/animate.css" rel="stylesheet" />
- <link href="~/Content/Plugins/Notice/dist/noticejs.css" rel="stylesheet" />
- <!-- View specific styles -->
- @RenderSection("styles", false)
- <script type="text/javascript">
- //This is used to get the application's root path from javascript. It's useful if you're running application in a virtual directory under IIS.
- var abp = abp || {}; abp.appPath = '@ApplicationPath';
- </script>
- <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
- <!--[if lt IE 9]>
- <script src="@Url.Content("~/Scripts/Others/html5shiv.js")"></script>
- <script src="@Url.Content("~/Scripts/Others/respond.min.js")"></script>
- <![endif]-->
- <script type="text/javascript">
- //This is used to get the application's root path from javascript. It's useful if you're running application in a virtual directory under IIS.
- var queryParams = {};
- var abp = abp || {}; abp.appPath = '@ApplicationPath', abp.localization = abp.localization || {};
- var appUrl = "/api/services/app/";
- abp.appUrl = appUrl;
- @*var opSuccess = "@L("OpSuccess")",
- opFailed = "@L("OpFailed")",
- opCreate = "@L("Create")",
- opUpdate = "@L("Update")",
- opDelete = "@L("Delete")",
- btnConfirm = "@L("Confirm")",
- btnCancel = "@L("Cancel")";*@
- var opSuccess = "操作成功",
- opFailed = "操作失败",
- opCreate = "添加",
- opUpdate = "修改",
- opDelete = "删除",
- btnConfirm = "确认",
- btnCancel = "取消",
- lang="zh-CN";
- </script>
- </head>
- <body class="skin-black sidebar-mini">
- <div class="wrapper">
- <!-- Header Navbar-->
- @Html.Action("MainHeader", "Layout")
- <!-- Left side column. contains the logo and sidebar -->
- @Html.Action("SideBarNav", "Layout", new { activeMenuName = ViewBag.ActiveMenu })
- <!-- Content Wrapper. Contains page content -->
- <div class="content-wrapper">
- @RenderBody()
- </div>
- <!-- Footer -->
- <footer class="main-footer">
- <div class="pull-right hidden-xs">
- <b>Version</b> @version
- </div>
- @*<strong>Copyright © 2016-2019 <a href="#">IWB Net</a>.</strong> All rights
- reserved.*@
- @Html.Raw(foot)
- </footer>
- </div>
- @RenderSection("Modal", false)
- <!--Pwd Modal -->
- <section>
- <div class="modal fade" id="modal_Pwd" role="dialog" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-dialog-centered" role="document">
- <div class="modal-content">
- @Html.Partial("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("AccountChangePassword")))
- @{
- var inputs = new List<InputViewModel>
- {
- new InputViewModel("LoginName",displayName: "用户名"),
- new InputViewModel("LoginPassword",InputTypes.Password,"原密码"),
- new InputViewModel("NewPassword",InputTypes.Password, "新密码"),
- new InputViewModel("NewPassword1",InputTypes.Password,"确认密码",other:"equalTo=#NewPassword")
- };
- }
- @Html.Partial("Modals/_ModalBody", new ModalBodyViewModel(inputs, "form_Pwd"))
- <div class="modal-footer" style="text-align: center;">
- <button type="button" class="btn btn-default waves-effect" data-dismiss="modal" style="min-width: 100px; background: #FFFFFF; border: 1px solid #DDDDDD;">取消</button>
- <button type="button" id="Save_Pwd" class="btn btn-success waves-effect" style="min-width: 100px; background-color: #678ceb; border: 1px solid #678ceb;">保存</button>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="modal_tongzhi" role="dialog" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-dialog-centered" role="document">
- <div class="modal-content">
- @*@Html.Partial("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("NoticeShow")))*@
- <div class="box box-primary">
- <div class="box-header with-border">
- <h3 class="box-title">@L("NoticeShow")</h3>
- </div>
- <!-- /.box-header -->
- <div class="box-body no-padding">
- <div class="mailbox-read-info">
- <h3 id="bulletinTitle">Message Subject Is Placed Here</h3>
- <h5>
- 发布人: <span id="publicPerson"></span>
- <span class="mailbox-read-time pull-right" id="promulgatDate">15 Feb. 2016 11:03 PM</span>
- </h5>
- </div>
-
- <div class="mailbox-read-message" id="bulletinContent">
-
- </div>
- <!-- /.mailbox-read-message -->
- </div>
-
-
- </div>
- <div class="modal-footer" style="text-align: center;">
- <button type="button" class="btn btn-default waves-effect" data-dismiss="modal" style="min-width: 100px; background: #FFFFFF; border: 1px solid #DDDDDD;">取消</button>
-
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="modal_alarm" role="dialog" tabindex="-1" aria-labelledby="ModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-dialog-centered" role="document">
- <div class="modal-content">
- @*@Html.Partial("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("NoticeShow")))*@
- <div class="box box-primary">
- <div class="box-header with-border">
- <h3 class="box-title">短消息</h3>
- </div>
- <!-- /.box-header -->
- <div class="box-body no-padding">
- <div class="mailbox-read-info">
- <h3 id="msgTitle">Message Subject Is Placed Here</h3>
- <h5>
- 发布人: <span id="sendPerson"></span>
- <span class="mailbox-read-time pull-right" id="sendDatetime">15 Feb. 2016 11:03 PM</span>
- </h5>
- </div>
-
- <div class="mailbox-read-message" id="msgContent">
-
- </div>
- <!-- /.mailbox-read-message -->
- </div>
-
-
- </div>
- <div class="modal-footer" style="text-align: center;">
- <button type="button" class="btn btn-default waves-effect" data-dismiss="modal" style="min-width: 100px; background: #FFFFFF; border: 1px solid #DDDDDD;">取消</button>
-
- </div>
- </div>
- </div>
- </div>
- </section>
- @Scripts.Render("~/bundles/jquery")
- <!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
- <script src="~/api/AbpServiceProxies/GetAll?v=@(Clock.Now.Ticks)"></script>
- <script src="~/AbpScripts/GetScripts?v=@(Clock.Now.Ticks)"></script>
- <script>
- abp.localization.defaultSourceName = '@LocalizationSourceName';
- </script>
- @Scripts.Render("~/bundles/abp")
- <script src="~/Scripts/jquery.signalR-2.4.0.min.js"></script>
- <script src="~/signalr/hubs"></script>
- <script src="~/Content/Scripts/Abp/libs/abp.signalr.js"></script>
- <script src="~/Content/Plugins/Notice/dist/notice.js"></script>
- <script>var iwbHub = $.connection.iwbHub;</script>
- <!-- View specific scripts -->
- @RenderSection("SCRIPTS", false)
- <script>
- iwbHub.client.getShortMsg = function (msg) {
- if (msg) {
- try {
- var data = JSON.parse(msg);
- var users = data.RecieveUserIds;
- if (users) {
- var arr = users.split(",");
- if(arr.indexOf("@currentUser")>-1) {
- new NoticeJs({
- text: data.Title,
- position: 'bottomRight',
- animation: {
- open: 'animated bounceIn',
- close: 'animated bounceOut'
- }
- }).show();
- QueryShortMsg();
- }
- }
- } catch (e) {
- console.log(e);
- }
- }
- };
- function QueryShortMsg() {
- SaveAjax({
- url: window.appUrl+"ShortMsgDetail/GetMsgByUser",
- isValidate: false,
- isAlert: false,
- success: function(res) {
- if (res && res.total > 0) {
- $("#alarmCount").html(res.total);
- var content = '<li>';
- content += '<ul class="menu">';
- res.items.forEach(function(r) {
- content += ' <li onclick="ShowMsg(' + r.msgID + ',' + r.id + ')">';
- content += ' <a href="#">';
- content += ' <i class="iconfont icon-icon-notice" ></i>' + r.title;
- content += ' </a>';
- content += ' </li>';
- });
- content += ' </ul>';
- content += ' </li>';
- if (res.total > 5) {
- content += ' <li class="footer"><a href="/NotificationInfo/ShortMsgMg">查看全部</a></li>';
- }
- $("#alarmInfo").html(content);
- } else {
- $("#alarmCount").html("0");
- }
- }
- });
- }
-
- </script>
- </body>
- </html>
|