123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
-
- @{
- Layout = null;
- }
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title>@ViewBag.Title</title>
- <link href="~/easyui/themes/default/easyui.css" rel="stylesheet" />
- <link rel="stylesheet" type="text/css" href="~/easyui/themes/icon.css" />
- <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
- <link href="~/Content/js/plugins/layer/skin/layer.css" rel="stylesheet" />
- <script src="~/Content/js/jquery.min.js"></script>
- <script src="~/Content/js/bootstrap.min.js"></script>
- <script src="~/easyui/jquery.easyui.min.js"></script>
- <script src="~/easyui/jquery.easyui.mobile.js"></script>
- <script src="~/easyui/locale/easyui-lang-zh_CN.js"></script>
- <script src="~/Content/js/plugins/layer/laydate/laydate.js"></script>
- <script src="~/Content/js/plugins/layer/layer.min.js"></script>
- <script src="~/js/Utils.js"></script>
- <link href="~/Content/css/Style/Markets.css" rel="stylesheet" />
- <script src="~/Content/js/js/MarketJs.js"></script>
- <style>
- a {
- color:#3c3c3c;
- text-decoration: none;
- }
- a:hover {
- color:#222;
- text-decoration: none;
- }
- </style>
- </head>
- <body>
- <section class="hidden">
- <input type="hidden" id="hid_PcType" name="hid_PcType" value="@ViewBag.BulletinType" />
- </section>
- <section style="height: 95vh; padding: 10px 20px;">
- <div class="row tbToolBar" id="tbToolBar">
- <div class="toolbar" id="CurdTool">
- <a href="#" class="easyui-linkbutton" iconCls="icon-application_view_detail" plain="true" onclick="btn_Read()">阅读信息</a>
- </div>
- </div>
- <table id="dgTable" class="easyui-datagrid" style="height: 100%;"
- data-options="singleSelect: true,
- method: 'post',
- multiSort: false,
- toolbar: '#tbToolBar',
- fitColumns: true,
- @*rownumbers: true,*@
- remoteSort: false,
- @*loadFilter: pagerFilter,*@
- onDblClickRow: function () {
- btn_Read();
- },
- pagination: true,
- pageSize: 50,
- pageList: [20, 50, 100]
- ">
- <thead>
- <tr>
- <th data-options="field:'ID',width:10">序号</th>
- <th data-options="field:'Title',width:80">标题</th>
- <th data-options="field:'UserName',width:50">发布人</th>
- <th data-options="field:'UpdateTime',width:50">发布时间</th>
- <th data-options="field:'ImageStr',width:30">附件</th>
- </tr>
- </thead>
- </table>
- </section>
- <section>
- <div id="winModal" class="easyui-window winModal" title="通知内容" style="width: 450px;padding:10px;"
- data-options="modal:true,closed:true">
- <div class="easyui-layout" data-options="fit:true" style="height:99%">
- <div data-options="region:'center'" style="padding:15px 25px 0;">
- <form class="panle-fluid" id="form">
- <h4 id="Title" class="title" style="color:red;text-align:center"></h4>
- <span id="Content"></span>
- </form>
- </div>
- <div data-options="region:'south',border:false" style="text-align:right;height:45px; padding:13px 20px 0;">
- <a class="easyui-linkbutton" id="Save" href="javascript:void(0)" style="width:80px">下载附件</a>
- <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModal').window('close');" style="width:80px">关闭窗口</a>
- </div>
- </div>
- </div>
- </section>
- <script>
- //加载表格数据
- function LoadTable() {
- $('#dgTable').datagrid({
- url: '@Url.Action("BulletinResult", "GetResult")' + '?PcType=' + $('#hid_PcType').val()
- });
- }
- function btn_Read() {
- var rows = $('#dgTable').datagrid('getSelections');
- if (rows.length === 1) {
- var row = rows[0];
-
- $("#Title").html(row.Title);
- $("#Content").html(row.content);
- $.ajax({
- url: "@Url.Action("SetMsgRead", "Main")",
- type: "post",
- data: {
- TableId: "BulletinInfo",
- ColumnId: "ID",
- SourceKey: row.ID
- },
- success: function () {
- window.parent.MsgTips();
- //console.log(data);
- }
- });
- $("#Save span.l-btn-text").html(row.ImageStr);
- $("#winModal").window("open");
- } else {
- layer.alert('请选择一条记录进行设置', { title: '提示信息' });
- }
- }
- $(function () {
- LoadTable();
- });
- </script>
- </body>
- </html>
|