多单位版国产化地质资料管理系统
zhai
2025-12-18 3c6f6c1e3016e38146a4c46be6e7b625c35591f2
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<%@ 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 rel="stylesheet" href="static/plugins/jquery-steps/css/main.css" type="text/css">
    <link rel="stylesheet" href="static/plugins/jquery-steps/css/jquery.steps.css" type="text/css">
    <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/scripts/ResizeScroll.js"></script>    
    <script type="text/javascript" src="static/plugins/jquery-easyui-edatagrid/jquery.edatagrid.js"></script>
    <script type="text/javascript" src="static/plugins/ace/src-noconflict/ace.js"></script>
     
    <!-- 弹窗加载组件 -->
    <script type="text/javascript" src="static/plugins/layer/layer.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>
    <!-- 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>
    
</head>
<style>
    html, body {height: 100%;}
 
    body {overflow: hidden;}
    .formula_select {position: absolute; width: 22px; height: 22px; color: #3a7fa6; background: #fff; z-index: 5; right: -22px; border: 1px solid #aaa; top: 0px; text-align: center; cursor: pointer;line-height: 22px;}
</style>
<body>
    <div class="pt-form">
        <form id="formViewColumn" method="post">
            <table style="width: 100%;">
                <tr>
                    <td class="tbtitle">固定字段:</td>
                    <td>
                       <select id="enableFrozen" name="enableFrozen" class="easyui-combobox" style="width:200px;" data-options="panelHeight:'auto',editable:false">
                           <option value="" selected="true" ></option>
                           <option value="true">是</option>
                           <option value="false">否</option>
                       </select>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">启用排序:</td>
                    <td>
                       <select id="enableOrder" name="enableOrder" class="easyui-combobox" style="width:200px;" data-options="panelHeight:'auto',editable:false">
                           <option value="" selected="true" ></option>
                           <option value="true">是</option>
                           <option value="false">否</option>
                       </select>
                    </td>                    
                </tr>
                <tr>
                    <td class="tbtitle">字段显示宽度:</td>
                    <td>
                        <input id="displayWidth" name="displayWidth" class="easyui-numberspinner"  type="text" style="width:610px;" />
                    </td>
                </tr> 
                <tr>
                    <td class="tbtitle">字段输出类型 :
                    </td>
                    <td>
                        <select id="dataType" name="dataType" class="easyui-combobox" style="width:200px;" data-options="panelHeight:'auto',editable:false">
                            <option value="" selected="true" ></option>
                            <option value="0">默认</option>
                            <option value="1">数字</option>
                            <option value="2">日期</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">字段输出格式<a title="1. C 货币 2. F 固定小数点位数 (F2:代表两位小数位)" rel="popover"><i class="fa fa-exclamation-circle"></i></a>:</td>
                    <td>
                        <input id="outputFormat" name="outputFormat" class="easyui-textbox" type="text" style="width:610px;" />
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">字段数据对齐:</td>
                    <td>
                        <select id="columnPosition" name="columnPosition" class="easyui-combobox" style="width:200px;" data-options="panelHeight:'auto',editable:false">
                            <option value="" selected="true" ></option>
                            <option value="left" >左对齐</option>
                            <option value="right">右对齐</option>
                            <option value="center">居中</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="tbtitle">字段标题对齐:</td>
                    <td>
                        <select id="titlePosition" name="titlePosition"  class="easyui-combobox" style="width:200px;" data-options="panelHeight:'auto',editable:false">
                            <option value="" selected="true" ></option>
                            <option value="left" >左对齐</option>
                            <option value="right">右对齐</option>
                            <option value="center">居中</option>
                        </select>
                    </td>
                </tr>
            </table>
        </form>
    </div>
 
    <div class="pt-form-btn" style="bottom:0px;">
        <div class="form-group">
            <button type="button" class="pt-btn pt-btn-primary" onclick="doSave();">确定</button>
            <button type="reset" class="pt-btn pt-btn-default" onclick="doClose();">关闭</button>
        </div>
    </div>
 
</body>
<script>
 //窗口参数,用于弹窗传递
    var params = {
        callBack : null,
        ids: null
    };
 
    function doSave() { //确定按钮事件
        var viewId = '${viewId}';
        var obj = $("#formViewColumn").serializeObject();
        var param = {
            idsList: JSON.stringify(params.ids),
            viewColumn: JSON.stringify(obj)
        }
        wcp.ui.setBusy("body", wcp.ajax({
            url : "config/viewColumn/batchEditViewColumn?viewId=" + viewId,
            data : JSON.stringify(param),
        }).done(function(result) {
            //判断是否需要执行回调函数
            if (params.callBack) {
                params.callBack();
            }
            //关闭窗口
            doClose();
            top.wcp.notify.success("保存成功!");
        }));
    }
 
    function doClose() { //关闭按钮事件
        var index = top.layer.getFrameIndex(window.name); //获取窗口索引
        top.layer.close(index);
    }
</script>
 
</html>