多单位版国产化地质资料管理系统
zs
2025-12-18 4f0d9bde31a80f6279e26466250da7716eec627f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
 
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" charset="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>编码信息</title>
<link href="static/plugins/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css">
<link href="static/plugins/jquery-easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="static/styles/initialize.css" type="text/css">
<link rel="stylesheet" href="static/styles/common.css" type="text/css">
<link rel="stylesheet" href="static/plugins/layer/skin/default/layer.css" type="text/css">
<script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="static/plugins/jquery-easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="static/plugins/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="static/scripts/easyuiExtend.js"></script>
<script type="text/javascript" src="static/scripts/jquery-extend.js"></script>
<script type="text/javascript" src="static/plugins/layer/layer.js"></script>
<script type="text/javascript" src="static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="static/plugins/jquery-easyui-edatagrid/jquery.edatagrid.js"></script>
<script type="text/javascript" src="static/plugins/spinjs/spin.js"></script>
<script type="text/javascript" src="static/plugins/spinjs/jquery.spin.js"></script>
<script type="text/javascript" src="static/plugins/jquery.blockUI.js"></script>
 
<script type="text/javascript" src="static/scripts/customResize.js"></script>
<!-- wcp组件 -->
<script type="text/javascript" src="static/wcp/scripts/wcp.js"></script>
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.layer.js"></script>
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.blockUI.js"></script>
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.spin.js"></script>
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.jquery.js"></script>
 
<!--[if lt IE 9]>
<script type="text/javascript" src="static/plugins/json2.js"></script>
<![endif]-->
<script type="text/javascript" src="static/wcp/scripts/libs/wcp.infoPicker.js"></script>
<style>
html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}
</style>
 
</head>
<body>
    <div>
        <div class="pt-main-top clear">
            <div class="pt-nav">
                <span class="pt-title-icon"><i class="fa fa-vcard-o"></i></span>
                <div class="pt-title">
                    <div>
                        <h4>编码查看</h4>
                    </div>
                </div>
            </div>
            <div class="pt-search">
                <p class="pt-retrieval">
                    <input id="txtKeySearch" type="text" placeholder="请输入编码格式搜索">
                    <button id="btnKeySearch">
                        <i class="fa fa-search"></i>
                    </button>
                </p>
 
                <a id="btnAdd" class="pt-btn pt-btn-primary" onclick="$('#dg_codingSn').edatagrid('saveRow');"> 保存 </a>
            </div>
        </div>
        <div class="pt-form-inline">
            <div id="right">
 
                <div id="div_table">
                    <table id="dg_codingSn" singleselect="true" toolbar="#toolbar" style="width:100%;height:100%;">
                        <thead>
                            <tr>
                                <th field="codingSnId" width="50" hidden="true">编码Id</th>
                                <th field="codingFormat" width="200">编码形式</th>
                                <th field="createTime" width="150">创建时间</th>
                                <th field="modifyTime" width="150">修改时间</th>
                                <th field=modifyUserName width="150">修改人</th>
                                <th field="currentSn" width="150" editor="{type:'numberbox'}">当前最大编号</th>
                            </tr>
                        </thead>
                    </table>
                </div>
            </div>
        </div>
    </div>
</body>
<script>
    //窗口参数,用于弹窗传递
    var params = {
        callBack : null
    };
 
    $(function() {
        $('#dg_codingSn').edatagrid({
            fitColumns : true,
            striped : true,
            idField : "codingSnId",
            rownums : true,
            pagination : true,
            rownumbers : true,
            url : "config/coding/getSnLsit?codingId=" + "${codingId}",
            updateUrl : "",
            onAfterEdit : function(rowIndex, rowData, changes) {
                //删除isNewRecord属性
                delete rowData.isNewRecord;
                wcp.ui.setBusy("body", wcp.ajax({
                    url : "config/coding/updateSn",
                    data : JSON.stringify(rowData),
                }).done(function(result) {
                    top.wcp.notify.success("保存成功!");
                }));
            },
        });
 
        //关键字检索按钮事件
        $('#txtKeySearch').bind('keypress', function(event) {
            if (event.keyCode == "13") {
                SearchKey();
            }
        });
 
        //绑定关键字检索输入框回车事件
        $("#btnKeySearch").click(function() {
            SearchKey();
        });
 
        new CustomResize({
            "id" : "div_table",
            "fun" : computeHeight
        });
 
    });
 
    function computeHeight() {
        var wh = $(window).height();
        $("#div_table").height(wh - 90);
        $("#dg_codingSn").datagrid("resize");
    }
    //关键字搜索方法
    function SearchKey() {
        var keyValue = $("#txtKeySearch").val();
        var codingId = 0;
        $('#dg_codingSn').datagrid('load', {
            searchText : keyValue,
        });
    }
</script>
</html>