ShowLawAndRule.cshtml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. 
  2. @{
  3. Layout = null;
  4. }
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta name="viewport" content="width=device-width" />
  9. <title>Dutys</title>
  10. <link href="~/easyui/themes/bootstrap/easyui.css" rel="stylesheet" />
  11. <link href="~/easyui/themes/icon.css" rel="stylesheet" />
  12. <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
  13. <link href="~/Content/js/plugins/layer/skin/layer.css" rel="stylesheet" />
  14. <script src="~/Content/js/jquery.min.js"></script>
  15. <script src="~/Content/js/bootstrap.min.js"></script>
  16. <script src="~/easyui/jquery.easyui.min.js"></script>
  17. <script src="~/easyui/jquery.easyui.mobile.js"></script>
  18. <script src="~/easyui/locale/easyui-lang-zh_CN.js"></script>
  19. <script src="~/Content/js/plugins/layer/laydate/laydate.js"></script>
  20. <script src="~/Content/js/plugins/layer/layer.min.js"></script>
  21. <script src="~/js/Utils.js"></script>
  22. <link href="~/Content/css/Style/Markets.css" rel="stylesheet" />
  23. <style>
  24. .td_1 {
  25. padding-bottom: 5px;
  26. padding-left: 5px;
  27. }
  28. </style>
  29. </head>
  30. <body>
  31. <section class="hidden">
  32. <input id="hid_Type" name="hid_Type" type="hidden" value="0" />
  33. <input id="hid_RuleType" name="hid_RuleType" type="hidden" value="@ViewBag.RuleType" />
  34. </section>
  35. @*<section class="text-center title">
  36. <h2>市场信息</h2>
  37. </section>*@
  38. <section class="container-fluid" style="height: 95vh; padding-top: 10px;">
  39. <div class="row tbToolBar" id="tbToolBar">
  40. <div class="toolbar" id="CurdTool" style="float:left">
  41. <a href="#" class="easyui-linkbutton" iconCls="icon-application_view_detail" plain="true" onclick="btn_Show()">查看内容</a>
  42. </div>
  43. </div>
  44. <table id="dgTable" class="easyui-datagrid" style="height: 100%;"
  45. data-options="singleSelect: true,
  46. method: 'post',
  47. multiSort: false,
  48. toolbar: '#tbToolBar',
  49. fitColumns: true,
  50. rownumbers: true,
  51. remoteSort: false,
  52. loadFilter: pagerFilter,
  53. pagination: true,
  54. pageSize: 50,
  55. pageList: [15, 25, 50, 100]
  56. ">
  57. <thead>
  58. <tr>
  59. @*hid_IsLock<th data-options="field:'TradeTypeID'" class="hidden">行业类型</th>*@
  60. <th data-options="field:'LawRuleName',width:80,align:'center'">标题名称</th>
  61. <th data-options="field:'promulgator',width:80,align:'center'">发布者</th>
  62. <th data-options="field:'promulgateDate',width:80,align:'center'">发布时间</th>
  63. <th data-options="field:'Operation',width:80,align:'center'">下载附件</th>
  64. </tr>
  65. </thead>
  66. </table>
  67. </section>
  68. <section>
  69. <div id="winModal" class="easyui-window winModal" title="职务名称维护" style="width: 600px; height: 250px;padding:5px;"
  70. iconCls="icon-save" data-options="modal:true,closed:true">
  71. <div class="easyui-layout" data-options="fit:true" style="height:400px">
  72. <div data-options="region:'center'" style="padding:5px 5px 1px; height:385px">
  73. <table cellpadding="10" cellspacing="0" style="margin-left:10px">
  74. <tr>
  75. <td class="td_1">职务名称</td>
  76. <td class="td_1">
  77. <input class="easyui-textbox" type="text" id="Names" name="Names" data-options="required:true" style="width:400px;height:20px" />
  78. </td>
  79. </tr>
  80. <tr>
  81. <td class="td_1">备注</td>
  82. <td class="td_1"><textarea id="Remark" name="Remark" style="width:400px;" rows="3"></textarea></td>
  83. </tr>
  84. <tr></tr>
  85. </table>
  86. </div>
  87. <div data-options="region:'south',border:false" style="text-align:right; padding: 12px 20px ;height:52px;">
  88. <a class="easyui-linkbutton" id="Save" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="Save()" style="width:80px">确认</a>
  89. <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModal').window('close');" style="width:80px">取消</a>
  90. </div>
  91. </div>
  92. </div>
  93. </section>
  94. <script>
  95. //修改
  96. function btn_Show() {
  97. $("#hid_Type").val("Show");
  98. var row = $('#dgTable').datagrid('getSelected');
  99. if (row) {
  100. if ($.trim(row.Content).length<=0) {
  101. return;
  102. }else{
  103. open("/SystemModule/ShowLawAndRuleDetail.aspx?LawRuleId=" + row.LawRuleId, "LawRuleInfo", "toolbar=no,scrollbars=yes," + f_Center(720, 680) + ",resizable=yes");
  104. }
  105. } else {
  106. layer.alert('请选择一条记录进行查看', {icon:0, title: '提示信息' });
  107. }
  108. }
  109. //弹出窗体居中
  110. function f_Center(ll_Width, ll_Height) {
  111. var ll_Left;
  112. var ll_Top;
  113. var ls_Str;
  114. ll_Left = (screen.width - ll_Width) / 2
  115. ll_Top = (screen.height - ll_Height) / 2
  116. if (ll_Left < 0) {
  117. ll_Left = 0;
  118. }
  119. if (ll_Top < 0) {
  120. ll_Top = 0;
  121. }
  122. ls_Str = "left = " + ll_Left + ",top = " + ll_Top + ",width = " + ll_Width + ",height = " + ll_Height;
  123. return ls_Str;
  124. }
  125. //加载表格数据
  126. function LoadTable() {
  127. $('#dgTable').datagrid({
  128. url: '@Url.Action("GetLawAndRules", "LawAndRule")' + '?RuleType=' + escape($('#hid_RuleType').val()),
  129. onDblClickRow: function () {
  130. btn_Show();
  131. }
  132. });
  133. }
  134. $(function () {
  135. //加载表格数据
  136. window.LoadTable();
  137. });
  138. </script>
  139. </body>
  140. </html>