123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
-
- @{
- Layout = null;
- }
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title>Dutys</title>
- <link href="~/easyui/themes/bootstrap/easyui.css" rel="stylesheet" />
- <link href="~/easyui/themes/icon.css" rel="stylesheet" />
- <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" />
- <style>
- .td_1 {
- padding-bottom: 5px;
- padding-left: 5px;
- }
- </style>
- </head>
- <body>
- <section class="hidden">
- <input id="hid_Type" name="hid_Type" type="hidden" value="0" />
- <input id="hid_RuleType" name="hid_RuleType" type="hidden" value="@ViewBag.RuleType" />
- </section>
- @*<section class="text-center title">
- <h2>市场信息</h2>
- </section>*@
- <section class="container-fluid" style="height: 95vh; padding-top: 10px;">
- <div class="row tbToolBar" id="tbToolBar">
-
- <div class="toolbar" id="CurdTool" style="float:left">
-
- <a href="#" class="easyui-linkbutton" iconCls="icon-application_view_detail" plain="true" onclick="btn_Show()">查看内容</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,
- pagination: true,
- pageSize: 50,
- pageList: [15, 25, 50, 100]
- ">
- <thead>
- <tr>
- @*hid_IsLock<th data-options="field:'TradeTypeID'" class="hidden">行业类型</th>*@
- <th data-options="field:'LawRuleName',width:80,align:'center'">标题名称</th>
- <th data-options="field:'promulgator',width:80,align:'center'">发布者</th>
- <th data-options="field:'promulgateDate',width:80,align:'center'">发布时间</th>
- <th data-options="field:'Operation',width:80,align:'center'">下载附件</th>
- </tr>
- </thead>
- </table>
- </section>
- <section>
- <div id="winModal" class="easyui-window winModal" title="职务名称维护" style="width: 600px; height: 250px;padding:5px;"
- iconCls="icon-save" data-options="modal:true,closed:true">
- <div class="easyui-layout" data-options="fit:true" style="height:400px">
- <div data-options="region:'center'" style="padding:5px 5px 1px; height:385px">
- <table cellpadding="10" cellspacing="0" style="margin-left:10px">
- <tr>
- <td class="td_1">职务名称</td>
- <td class="td_1">
- <input class="easyui-textbox" type="text" id="Names" name="Names" data-options="required:true" style="width:400px;height:20px" />
- </td>
- </tr>
- <tr>
- <td class="td_1">备注</td>
- <td class="td_1"><textarea id="Remark" name="Remark" style="width:400px;" rows="3"></textarea></td>
- </tr>
- <tr></tr>
- </table>
- </div>
- <div data-options="region:'south',border:false" style="text-align:right; padding: 12px 20px ;height:52px;">
- <a class="easyui-linkbutton" id="Save" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="Save()" 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 btn_Show() {
- $("#hid_Type").val("Show");
- var row = $('#dgTable').datagrid('getSelected');
- if (row) {
- if ($.trim(row.Content).length<=0) {
- return;
- }else{
- open("/SystemModule/ShowLawAndRuleDetail.aspx?LawRuleId=" + row.LawRuleId, "LawRuleInfo", "toolbar=no,scrollbars=yes," + f_Center(720, 680) + ",resizable=yes");
- }
- } else {
- layer.alert('请选择一条记录进行查看', {icon:0, title: '提示信息' });
- }
- }
- //弹出窗体居中
- function f_Center(ll_Width, ll_Height) {
- var ll_Left;
- var ll_Top;
- var ls_Str;
- ll_Left = (screen.width - ll_Width) / 2
- ll_Top = (screen.height - ll_Height) / 2
- if (ll_Left < 0) {
- ll_Left = 0;
- }
- if (ll_Top < 0) {
- ll_Top = 0;
- }
- ls_Str = "left = " + ll_Left + ",top = " + ll_Top + ",width = " + ll_Width + ",height = " + ll_Height;
- return ls_Str;
- }
- //加载表格数据
- function LoadTable() {
- $('#dgTable').datagrid({
- url: '@Url.Action("GetLawAndRules", "LawAndRule")' + '?RuleType=' + escape($('#hid_RuleType').val()),
- onDblClickRow: function () {
- btn_Show();
- }
- });
- }
- $(function () {
- //加载表格数据
- window.LoadTable();
-
- });
- </script>
- </body>
- </html>
|